/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /* Tab navigation styles for calculator elements */
  .vue-calculator-element:focus,
  [tabindex]:focus,
  input:focus,
  input[type="number"]:focus,
  .calculator-input:focus,
  select:focus,
  button:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3) !important;
    border-color: #0073aa !important;
  }

  /* Ensure interactive elements are focusable */
  .vue-calculator-element,
  .calculator-option,
  .calculator-input,
  .calculator-button,
  input[type="number"] {
    cursor: pointer;
  }

  input[type="number"],
  .calculator-input {
    cursor: text;
  }

  .vue-calculator-element:hover,
  .calculator-option:hover {
    background-color: rgba(0, 115, 170, 0.1);
    transition: background-color 0.2s ease;
  }

/* Override WooCommerce/OceanWP theme narrow number inputs - Match select styling */
#app input[type="number"],
.price-calculator input[type="number"],
.woocommerce #app input[type="number"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #333 !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  margin-top: 5px !important;
  -moz-appearance: textfield !important;
}

/* Remove spinner arrows for cleaner look */
#app input[type="number"]::-webkit-outer-spin-button,
#app input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Ensure labels display above inputs */
#app label,
.price-calculator label {
  display: block !important;
  margin-bottom: 5px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

/* ===== Price display styling ===== */

/* Main price (sin IVA) - Add "Precio:" label via CSS */
#app li.h3::before,
.price-calculator li.h3::before {
  content: "Precio: " !important;
  font-weight: 600 !important;
}

/* Main price - large and bold */
#app li.h3,
.price-calculator li.h3 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}

/* Secondary prices (IVA incluido, Unitario) - smaller */
#app li.h5,
.price-calculator li.h5 {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-bottom: 4px !important;
}

/* Bloque "Fechas estimadas de entrega". Personalizable por tenant
   redefiniendo las variables --rpt-entrega-* dentro de .rpt-entrega. */
.rpt-entrega {
  --rpt-entrega-titulo: #0B5460;
  --rpt-entrega-acento: #0B5460;
  --rpt-entrega-urgente: #F18814;
  --rpt-entrega-borde: #E2E8F0;
  --rpt-entrega-fondo: #ffffff;
  --rpt-entrega-texto-secundario: #64748B;
  --rpt-entrega-fuente: inherit;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--rpt-entrega-fondo);
  border: 1px solid var(--rpt-entrega-borde);
  border-radius: 14px;
  font-family: var(--rpt-entrega-fuente);
}
.rpt-entrega__cabecera {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.rpt-entrega__icono {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background: color-mix(in srgb, var(--rpt-entrega-acento) 10%, white);
  color: var(--rpt-entrega-acento);
}
.rpt-entrega__titulo {
  font-size: 17px;
  font-weight: 700;
  color: var(--rpt-entrega-titulo);
  line-height: 1.2;
}
.rpt-entrega__subtitulo {
  font-size: 12.5px;
  color: var(--rpt-entrega-texto-secundario);
  line-height: 1.3;
}
.rpt-entrega__opcion {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.rpt-entrega__opcion + .rpt-entrega__opcion {
  border-top: 1px solid #EEF1F4;
}
.rpt-entrega__opcion .rpt-entrega__icono {
  margin-right: 14px;
}
.rpt-entrega__metodo {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--rpt-entrega-acento);
}
.rpt-entrega__estado {
  font-size: 12.5px;
  color: var(--rpt-entrega-texto-secundario);
  line-height: 1.3;
}
.rpt-entrega__fecha {
  flex: 0 0 auto;
  text-align: right;
  padding-left: 10px;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--rpt-entrega-acento);
}
.rpt-entrega__opcion--urgente .rpt-entrega__metodo,
.rpt-entrega__opcion--urgente .rpt-entrega__fecha,
.rpt-entrega__opcion--urgente .rpt-entrega__icono {
  color: var(--rpt-entrega-urgente);
}
.rpt-entrega__pie {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #EEF1F4;
  font-size: 12px;
  color: var(--rpt-entrega-texto-secundario);
}

/* ImagePickerMultiple: cuadrícula por grupos (pecho, espalda, mangas…) */
.eq-ipm-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 8px;
  padding: 6px;
  margin-bottom: 12px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
}
.eq-ipm-item {
  position: relative;
  min-width: 0;
  padding: 4px;
  border: 2px solid #e3e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.eq-ipm-item:hover {
  border-color: #b8c2cc;
  transform: scale(1.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  z-index: 5;
}
.eq-ipm-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.eq-ipm-item.eq-ipm-selected {
  border-color: #2a5560;
}
.eq-ipm-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: #2a5560;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.eq-ipm-label {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
}
