/* =====================================================
   CALORDECORA - custom.css
   Ruta: public_html/themes/classic/assets/css/custom.css
   ===================================================== */

/* ===== COLORES CORPORATIVOS ===== */
:root {
  --color-boton: #2F4F4F;
  --color-boton-hover: #223A3A;
  --color-acento: #06D6A0;
  --color-pestana: #00c062;
  --color-rojo: #b30012;
}


/* =====================================================
   GENERAL
   ===================================================== */

/* ===== BOTONES ===== */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--color-boton) !important;
  border-color: var(--color-boton) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--color-boton-hover) !important;
  border-color: var(--color-boton-hover) !important;
  color: #fff !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--color-boton) !important;
  border-color: var(--color-boton) !important;
  opacity: 0.5;
}

/* Texto de los botones siempre blanco (también si son enlaces) */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
.cart-summary a.btn-primary {
  color: #fff !important;
}

/* ===== ENLACES ===== */
a {
  color: var(--color-boton);
}

a:hover,
a:focus {
  color: var(--color-boton-hover);
}

/* ===== PESTAÑAS (generales): la activa en verde ===== */
.nav-inline .nav-link.active,
.nav-inline .nav-link.active:hover,
.nav-tabs .nav-link.active {
  color: var(--color-pestana) !important;
  font-weight: 700;
}

.nav-inline .nav-link:not(.active):hover {
  color: var(--color-pestana);
}

/* ===== RADIOS PERSONALIZADOS ===== */
.custom-radio {
  border-color: var(--color-acento) !important;
}

.custom-radio input[type="radio"]:checked + span {
  background-color: var(--color-acento) !important;
}


/* =====================================================
   FORMULARIOS (comunes a checkout y Mi cuenta)
   ===================================================== */

/* Asterisco rojo en campos obligatorios (a la derecha) */
.form-control-label.required::after {
  content: " *";
  color: var(--color-rojo);
  font-weight: 700;
}

/* Campo con dato incorrecto (lo marca custom.js) */
.form-control.campo-error,
input.campo-error {
  border-color: var(--color-rojo) !important;
  box-shadow: 0 0 0 3px rgba(179, 0, 18, .12) !important;
}

/* Ocultar "Tratamiento" (Sr. / Sra. / Otro) */
.form-group.row:has(input[name="id_gender"]) {
  display: none !important;
}

/* Ocultar Alias de dirección */
.form-group:has(input[name="alias"]) {
  display: none !important;
}

/* Quitar "Solo se permiten caracteres alfabéticos..." */
.form-group.row:has(input[name="firstname"]) .form-control-comment,
.form-group.row:has(input[name="lastname"]) .form-control-comment {
  display: none !important;
}

/* Etiqueta "Email" en lugar de "Dirección de correo electrónico" */
.form-group.row:has(input[name="email"]) > label {
  font-size: 0 !important;
}

.form-group.row:has(input[name="email"]) > label::before {
  content: "Email";
  font-size: 1rem;
}

/* Asterisco en Email (la etiqueta tiene tamaño 0, hay que darle tamaño) */
.form-group.row:has(input[name="email"]) > label.required::after {
  font-size: 1rem;
}

/* Sin asterisco suelto en las casillas (términos, privacidad, newsletter...) */
.form-group:has(input[type="checkbox"]) .form-control-label.required::after {
  content: none;
}

/* ===== REQUISITOS DE LA CONTRASEÑA ===== */
.password-strength-feedback {
  margin-top: 10px !important;
  padding: 12px 14px;
  background: #f7f9f9;
  border: 1px solid #e3e8e8;
  border-radius: 8px;
}

.password-strength-feedback .progress-container,
.password-strength-feedback .progress {
  margin: 0 0 10px;
}

.password-strength-feedback .progress {
  height: 6px !important;
  border-radius: 6px;
  overflow: hidden;
  background-color: #e3e8e8;
}

.password-strength-feedback .progress-bar {
  height: 6px !important;
  border-radius: 6px;
}

.password-requirements {
  margin: 0;
}

.password-requirements p,
.password-requirements .password-requirements-length,
.password-requirements .password-requirements-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #555;
}

.password-requirements p:last-child {
  margin-bottom: 0;
}

.password-requirements .material-icons,
.password-requirements .password-requirements-icon {
  font-size: 18px !important;
  color: var(--color-acento) !important;
}


/* =====================================================
   CHECKOUT · CABECERA DE PASOS
   ===================================================== */

/* Números de los pasos: círculo verde, número blanco */
.checkout-step .step-number,
.checkout-step.-current .step-number,
.checkout-step.-complete .step-number,
.checkout-step.-unreachable .step-number {
  background-color: var(--color-acento) !important;
  border-color: var(--color-acento) !important;
  color: #fff !important;
}


/* =====================================================
   CHECKOUT · CABECERA SIN DISTRACCIONES
   Solo en el checkout (body#checkout): fuera barra superior,
   menú, buscador, cuenta y carrito. Queda el logo (enlace a
   la portada) y el aviso de pago seguro.
   ===================================================== */

body#checkout #header .header-nav,
body#checkout #header .header-banner,
body#checkout #_desktop_top_menu,
body#checkout #_mobile_top_menu,
body#checkout #menu-icon,
body#checkout #header .top-menu,
body#checkout #header #search_widget,
body#checkout #header .search-widget,
body#checkout #header .search-widgets,
body#checkout #_desktop_cart,
body#checkout #_mobile_cart,
body#checkout #header .blockcart,
body#checkout #_desktop_user_info,
body#checkout #_mobile_user_info,
body#checkout #header .user-info,
body#checkout #header .header-top-right,
body#checkout #mobile_top_menu_wrapper {
  display: none !important;
}

/* Cabecera compacta con el logo a la izquierda */
body#checkout #header {
  box-shadow: none;
  border-bottom: 1px solid #F3EADC;
}

body#checkout #header .header-top {
  padding: 14px 0;
}

body#checkout #header .header-top .container > .row,
body#checkout #header .header-top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body#checkout #_desktop_logo,
body#checkout #_mobile_logo {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
}

/* Aviso "Pago 100% seguro" a la derecha */
body#checkout #header .header-top .container {
  position: relative;
}

body#checkout #header .header-top .container::after {
  content: "Pago 100% seguro";
  padding-left: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306D6A0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat left center / 16px 16px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-boton);
}

@media (max-width: 767px) {
  body#checkout #_mobile_logo {
    margin: 0 auto 0 0;
  }

  body#checkout #header .header-top .container::after {
    font-size: 12px;
  }
}


/* =====================================================
   CHECKOUT · PASO 1: DATOS PERSONALES
   ===================================================== */

/* ===== Pestañas claras ===== */
#checkout-personal-information-step .nav-inline {
  display: flex;
  gap: 0;
  margin: 8px 0 24px !important;
  border-bottom: 2px solid #e3e8e8;
}

/* Quitar el separador "|" */
#checkout-personal-information-step .nav-separator,
#checkout-personal-information-step .nav-item:has(.nav-separator) {
  display: none !important;
}

#checkout-personal-information-step .nav-inline .nav-item {
  flex: 1;
  display: flex;
  margin: 0;
}

/* La pestaña ocupa toda la altura: evita la doble raya
   cuando la otra pestaña ocupa dos líneas (móvil) */
#checkout-personal-information-step .nav-inline .nav-item .nav-link {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#checkout-personal-information-step .nav-inline .nav-link {
  display: block;
  text-align: center;
  padding: 14px 10px;
  margin-bottom: -2px;
  font-weight: 600;
  color: #7a7a7a !important;
  background: #f7f9f9;
  border: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: color .2s, background-color .2s;
}

#checkout-personal-information-step .nav-inline .nav-link:hover {
  color: var(--color-pestana) !important;
  background: #f0fcf6;
}

/* Pestaña activa */
#checkout-personal-information-step .nav-inline .nav-link.active {
  color: var(--color-pestana) !important;
  background: #fff;
  border-color: #e3e8e8 #e3e8e8 #fff;
  border-bottom: 3px solid var(--color-pestana);
  font-weight: 700;
}

/* ===== Campos con etiqueta arriba ===== */
#checkout-personal-information-step .form-group.row {
  display: block;
  margin: 0 0 18px;
}

#checkout-personal-information-step .form-group.row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding: 0;
  text-align: left;
}

#checkout-personal-information-step .form-control-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: left;
}

/* Campos más cómodos */
#checkout-personal-information-step .form-control {
  height: 48px;
  padding: 0 14px;
  background-color: #fff;
  border: 1.5px solid #cfd6d6;
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}

#checkout-personal-information-step .form-control:focus {
  border-color: var(--color-pestana);
  box-shadow: 0 0 0 3px rgba(0, 192, 98, .15);
  outline: none;
}

/* Quitar el azul del autocompletado del navegador */
#checkout-personal-information-step input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #333 !important;
}

/* Botón "Mostrar" de la contraseña integrado en el campo */
#checkout-personal-information-step .input-group {
  display: flex;
}

#checkout-personal-information-step .input-group .form-control {
  border-radius: 8px 0 0 8px;
}

#checkout-personal-information-step .input-group-btn .btn {
  height: 48px;
  border-radius: 0 8px 8px 0;
}

/* "Opcional" como nota discreta debajo del campo */
#checkout-personal-information-step .form-control-comment {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a8a8a;
}

#checkout-personal-information-step .form-group.row:has(input[name="password"]) {
  margin-top: 8px;
}


/* =====================================================
   CHECKOUT · PASO 2: DIRECCIONES
   ===================================================== */

/* Quitar el texto explicativo de arriba */
#checkout-addresses-step p:has(+ .js-address-form),
#checkout-addresses-step .js-address-form ~ p,
#checkout-addresses-step section > p {
  display: none;
}

/* Dirección de ENVÍO: ocultar Empresa y DNI */
#delivery-address .form-group:has(input[name="company"]),
#delivery-address .form-group:has(input[name="dni"]) {
  display: none !important;
}

/* Quitar el azul del autocompletado del navegador */
#checkout-addresses-step input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #333 !important;
}

/* Check "Necesito factura con DNI/CIF o a nombre de empresa"
   Invertido visualmente: se ve vacío cuando PrestaShop lo tiene
   marcado (misma dirección) y con tick cuando está desmarcado
   (pide datos de facturación) */
#checkout input[name="use_same_address"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  border: 2px solid var(--color-boton);
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
  cursor: pointer;
}

#checkout input[name="use_same_address"]:not(:checked) {
  background: var(--color-acento);
  border-color: var(--color-acento);
}

#checkout input[name="use_same_address"]:not(:checked)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#checkout label[for="use_same_address"] {
  cursor: pointer;
  font-weight: 600;
}

/* Check y texto alineados a la izquierda, uno junto al otro */
#checkout *:has(> input[name="use_same_address"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  text-align: left;
}

#checkout *:has(> input[name="use_same_address"]) > input {
  flex-shrink: 0;
  margin: 0 !important;
}

#checkout *:has(> input[name="use_same_address"]) > label {
  flex: 1;
  margin: 0;
  text-align: left;
  line-height: 1.35;
}

/* ===== Tarjetas de dirección ===== */

/* Misma altura en todas las tarjetas */
#checkout .address-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#checkout .address-item {
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  background: #fff !important;
  border: 2px solid #e3e3e3 !important;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

#checkout .address-item:hover {
  border-color: var(--color-acento) !important;
}

/* Tarjeta seleccionada */
#checkout .address-item.selected {
  border-color: var(--color-acento) !important;
  background: #f2fdf9 !important;
  box-shadow: 0 2px 10px rgba(6, 214, 160, .15);
}

/* Título (Mi Dirección) */
#checkout .address-item .address-alias {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* Texto de la dirección */
#checkout .address-item .address {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  line-height: 1.7;
  color: #444;
  margin-top: 6px;
}

/* Pie: Modificar / Eliminar (siempre abajo) */
#checkout .address-item .address-footer {
  margin-top: auto;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid #eee;
  background: transparent;
}

#checkout .address-item .address-footer a {
  color: var(--color-boton);
  font-size: .85rem;
}

#checkout .address-item .address-footer a:hover {
  color: var(--color-acento);
}

/* Enlaces "Añadir nueva dirección" y "La dirección de facturación difiere" */
#checkout-addresses-step .add-address a,
#checkout-addresses-step a[data-link-action] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--color-boton);
}


/* =====================================================
   CHECKOUT · PASO 3: ENVÍO
   ===================================================== */

/* ===== Opciones de envío como tarjetas ===== */
#checkout-delivery-step .delivery-option {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px !important;
  padding: 16px 18px !important;
  font-family: 'Montserrat', sans-serif;
  background: #fff !important;
  border: 2px solid #e3e3e3;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

#checkout-delivery-step .delivery-option:hover {
  border-color: var(--color-acento);
}

/* Opción seleccionada */
#checkout-delivery-step .delivery-option:has(input[type="radio"]:checked) {
  border-color: var(--color-acento);
  background: #f2fdf9 !important;
  box-shadow: 0 2px 10px rgba(6, 214, 160, .15);
}

/* Columna del radio */
#checkout-delivery-step .delivery-option > div:first-child {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}

#checkout-delivery-step .delivery-option .custom-radio {
  float: none !important;
  margin: 0;
}

/* Contenido: nombre y plazo a la izquierda, precio a la derecha */
#checkout-delivery-step .delivery-option > label {
  flex: 1;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Fila que contiene nombre, plazo y precio (sin depender de la estructura exacta) */
#checkout-delivery-step .delivery-option .row:has(> div > .carrier-price) {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name  price"
    "delay price";
  align-items: center;
  column-gap: 16px;
  margin: 0;
}

#checkout-delivery-step .delivery-option .row:has(> div > .carrier-price) > div {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  text-align: left;
}

#checkout-delivery-step .delivery-option .row:has(> div > .carrier-price) > div:has(.carrier-name)  { grid-area: name; }
#checkout-delivery-step .delivery-option .row:has(> div > .carrier-price) > div:has(> .carrier-delay) { grid-area: delay; }
#checkout-delivery-step .delivery-option .row:has(> div > .carrier-price) > div:has(> .carrier-price) { grid-area: price; text-align: right; }

/* Bloque del nombre: sin columnas ni huecos internos */
#checkout-delivery-step .delivery-option .carrier,
#checkout-delivery-step .delivery-option .carrier > div {
  display: block;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Columna del logo vacía (no hay logo): fuera */
#checkout-delivery-step .delivery-option .carrier-logo:not(:has(img)) {
  display: none !important;
}

/* Nombre del transportista */
#checkout-delivery-step .delivery-option .carrier-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-boton);
  margin: 0;
}

/* Plazo de entrega */
#checkout-delivery-step .delivery-option .carrier-delay {
  display: block;
  margin-top: 2px;
  font-size: .85rem;
  color: #6b6b6b;
}

/* Precio: negro por defecto */
#checkout-delivery-step .delivery-option .carrier-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222 !important;
  white-space: nowrap;
}

/* "Gratis" en verde (la clase la pone custom.js) */
#checkout-delivery-step .delivery-option .carrier-price.is-free,
#cart-subtotal-shipping .value.is-free {
  color: var(--color-acento) !important;
}

/* ===== Comentario del pedido ===== */
#checkout-delivery-step .order-options label,
#checkout-delivery-step #delivery label {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #444;
  margin: 8px 0 6px;
}

#checkout-delivery-step #delivery_message {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  border: 1.5px solid #cfd6d6;
  border-radius: 8px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}

#checkout-delivery-step #delivery_message:focus {
  border-color: var(--color-pestana);
  box-shadow: 0 0 0 3px rgba(0, 192, 98, .15);
  outline: none;
}


/* =====================================================
   CHECKOUT · PASO 4: PAGO
   ===================================================== */

/* ===== Métodos de pago como tarjetas ===== */
.payment-options .payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.payment-options .payment-option:hover {
  border-color: var(--color-acento);
}

.payment-options .payment-option:has(input[type="radio"]:checked) {
  border-color: var(--color-acento);
  background-color: #f0fcf9;
  box-shadow: 0 0 0 1px var(--color-acento);
}

.payment-options .payment-option .custom-radio {
  float: none !important;
  margin: 0;
  flex-shrink: 0;
}

.payment-options .payment-option label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  margin: 0;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

/* Toda la tarjeta clicable: una capa invisible del texto cubre la tarjeta entera */
.payment-options .payment-option {
  position: relative;
}

.payment-options .payment-option label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}

/* El icono de información (i) y similares siguen funcionando por encima */
.payment-options .payment-option [data-toggle],
.payment-options .payment-option [data-bs-toggle],
.payment-options .payment-option a,
.payment-options .payment-option .material-icons {
  position: relative;
  z-index: 2;
}

/* ===== Logos de pago (SVG) alineados a la derecha =====
   Archivos en: themes/classic/assets/img/pagos/
   custom.js añade los logos dentro de cada método */

/* Ocultar los logos y distintivos originales de los módulos */
.payment-options .payment-option.pago-con-logo label img,
.payment-options .payment-option.pago-con-logo label > :not(span):not(.pago-info) {
  display: none !important;
}

/* Distintivo "Paga a plazos" e icono (i) gris del módulo PayPal */
.payment-options .payment-option.pago-plazos > :not(.custom-radio):not(label):not(form):not(.pago-logos),
.payment-options .payment-option.pago-paypal > :not(.custom-radio):not(label):not(form):not(.pago-logos) {
  display: none !important;
}

/* Una sola línea: bolita · texto (+ i) · logos, todo centrado en vertical */
.payment-options .payment-option.pago-con-logo {
  flex-wrap: nowrap;
  align-items: center;
}

.payment-options .payment-option.pago-con-logo label {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

/* Icono de información pegado al texto */
.payment-options .pago-info {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

/* Logos a la derecha, sin bordes */
.payment-options .pago-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.payment-options .pago-logo-chip {
  display: inline-flex;
  align-items: center;
}

.payment-options img.pago-logo {
  display: block;
  height: 28px;
  width: auto;
}

.payment-options img.pago-logo[alt="Visa"] {
  height: 20px;
}

.payment-options .pago-bizum img.pago-logo,
.payment-options .pago-paypal img.pago-logo,
.payment-options .pago-plazos img.pago-logo {
  height: 26px;
}

.payment-options img.pago-logo[alt="Transferencia bancaria"] {
  height: 40px;
}

/* ===== MÓVIL: tarjetas de pago compactas y ordenadas =====
   [bolita] Texto
            logos
   La bolita queda centrada en vertical respecto al bloque */
@media (max-width: 575px) {
  .payment-options .payment-option.pago-con-logo {
    display: grid !important;
    grid-template-columns: 22px 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 14px 14px 12px !important;
    min-height: 0;
  }

  .payment-options .payment-option.pago-con-logo > .custom-radio {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0 !important;
  }

  .payment-options .payment-option.pago-con-logo > label {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .95rem;
    line-height: 1.3;
  }

  .payment-options .payment-option.pago-con-logo > .pago-logos {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    flex-basis: auto;
    margin: 0;
    gap: 14px;
  }

  /* Logos más pequeños y proporcionados */
  .payment-options img.pago-logo { height: 20px; }
  .payment-options img.pago-logo[alt="Visa"] { height: 13px; }
  .payment-options .pago-bizum img.pago-logo,
  .payment-options .pago-paypal img.pago-logo,
  .payment-options .pago-plazos img.pago-logo { height: 20px; }
  .payment-options img.pago-logo[alt="Transferencia bancaria"] { height: 34px; }

  /* Línea de plazos más discreta */
  .payment-options .pago-cuotas {
    font-size: .82rem;
    line-height: 1.4;
  }

  /* Términos: texto y aviso más compactos */
  #conditions-to-approve .condition-label {
    font-size: .9rem;
    line-height: 1.4;
  }

  #conditions-to-approve li:has(input[type="checkbox"]:not(:checked)) .condition-label::after {
    margin-top: 4px;
    font-size: 12px;
  }
}


/* ===== Paga en 3 plazos: importe por plazo y gota informativa ===== */
.payment-options .pago-cuotas {
  display: block;
  margin-top: 3px;
  font-size: .85rem;
  font-weight: 500;
  color: #555;
}

.payment-options .pago-cuotas strong {
  color: var(--color-boton);
  font-weight: 700;
}

/* Icono (i) original del módulo PayPal: se usa nuestra gota */
.payment-options .pago-info-original {
  display: none !important;
}

/* Gota "i" (PayPal y Paga en 3 plazos) */
.payment-options .pago-gota {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: #fff;
  background: var(--color-acento);
  border-radius: 50%;
  vertical-align: middle;
  cursor: help;
}

/* Bocadillo corporativo */
.payment-options .pago-burbuja {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 290px;
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  color: #fff;
  background: var(--color-boton);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(47, 79, 79, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, transform .15s;
  pointer-events: none;
  cursor: default;
}

/* Piquito */
.payment-options .pago-burbuja::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--color-boton);
}

.payment-options .pago-burbuja-titulo {
  display: block;
  margin-bottom: 2px;
  padding-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.payment-options .pago-burbuja-item {
  display: block;
  position: relative;
  padding-left: 22px;
}

/* Check verde en cada punto */
.payment-options .pago-burbuja-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: var(--color-acento);
  border-radius: 50%;
}

.payment-options .pago-burbuja-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 3px;
  height: 6px;
  border: solid var(--color-boton);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.payment-options .pago-burbuja-nota {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
}

.payment-options .pago-gota:hover .pago-burbuja,
.payment-options .pago-gota:focus .pago-burbuja {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.payment-options .pago-gota:focus {
  outline: none;
}

/* En móvil el bocadillo no se sale de la pantalla */
@media (max-width: 575px) {
  .payment-options .pago-burbuja,
  .payment-options .pago-gota:hover .pago-burbuja,
  .payment-options .pago-gota:focus .pago-burbuja {
    left: auto;
    right: -70px;
    transform: none;
    width: 250px;
  }

  .payment-options .pago-burbuja::after {
    left: auto;
    right: 66px;
    transform: none;
  }
}

/* Sin espacios ni fondos en bloques auxiliares vacíos u ocultos */
.payment-options .additional-information,
.payment-options .js-additional-information {
  margin: 0;
  padding: 0;
  background: none;
}

.payment-options .js-payment-option-form,
.payment-options .payment-option form {
  margin: 0;
  padding: 0;
}

/* Ojo: PrestaShop muestra y oculta estos bloques con estilo en línea
   (no quita la clase ps-hidden). No forzar display aquí: el texto de la
   transferencia y el botón de PayPal 3 plazos van dentro. */

/* PayPal: su cuadro de ventajas sobra (usamos la gota i) */
.payment-options .additional-information:has(> .pp-info) {
  display: none !important;
}

/* Contenido que sí debe verse (datos de transferencia, etc.) */
.payment-options .additional-information:not([style*="none"]):not(:empty) {
  margin: -4px 0 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
}

/* =====================================================
   FINANCIACIÓN: seQura + PayPal "Paga en 3 plazos"
   El orden y el título "Financia tu compra" los pone custom.js
   Logo: themes/classic/assets/img/pagos/sequra.svg
   ===================================================== */

/* Título "Financia tu compra" */
.payment-options .pago-financia-titulo {
  margin: 14px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #e3e8e8;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-boton);
}

/* seQura: mismo tratamiento que PayPal (ocultar extras del módulo) */
.payment-options .payment-option.pago-sequra > :not(.custom-radio):not(label):not(form):not(.pago-logos) {
  display: none !important;
}

/* seQura: "Paga con seQura" arriba y sus condiciones debajo, en gris */
.payment-options .pago-sequra-texto {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: #555;
}

.payment-options .pago-sequra-titulo {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-boton);
}

/* Logo seQura */
.payment-options .pago-sequra img.pago-logo {
  height: 24px;
}

@media (max-width: 575px) {
  .payment-options .pago-sequra-texto {
    font-size: .82rem;
    line-height: 1.4;
  }
  .payment-options .pago-sequra-titulo {
    font-size: .95rem;
  }
  .payment-options .pago-sequra img.pago-logo {
    height: 20px;
  }
}

/* Logos de seQura y PayPal del mismo tamaño visual
   (el SVG de PayPal lleva margen, por eso va más alto) */
.payment-options .pago-sequra img.pago-logo {
  height: 24px !important;
  width: auto;
}

.payment-options .pago-paypal img.pago-logo,
.payment-options .pago-plazos img.pago-logo {
  height: 36px !important;
  width: auto;
}

@media (max-width: 575px) {
  .payment-options .pago-sequra img.pago-logo {
    height: 19px !important;
  }
  .payment-options .pago-paypal img.pago-logo,
  .payment-options .pago-plazos img.pago-logo {
    height: 28px !important;
  }
}

/* Títulos de financiación en negro, como el resto de métodos */
.payment-options .pago-sequra-titulo {
  color: #1f2a2a !important;
}

/* Condiciones de seQura: mismo estilo que la línea de PayPal */
.payment-options .pago-sequra-texto {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}


/* ===== Check "Estoy de acuerdo" ===== */

/* Sin marcar: borde rojo suave */
#conditions-to-approve .custom-checkbox input[type="checkbox"] + span {
  width: 24px;
  height: 24px;
  border: 2px solid #e53935;
  background-color: #fff5f5;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, border-color .2s;
}

/* Marcado: cuadro verde con check blanco */
#conditions-to-approve .custom-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
}

#conditions-to-approve .custom-checkbox input[type="checkbox"]:checked + span .checkbox-checked {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

/* Check y texto juntos: el texto empieza justo después del check */
#conditions-to-approve li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#conditions-to-approve li > .float-xs-left,
#conditions-to-approve li > span:first-child {
  float: none !important;
  flex-shrink: 0;
  margin: 0 !important;
}

#conditions-to-approve .custom-checkbox {
  margin: 0;
  padding: 0;
}

#conditions-to-approve .condition-label {
  flex: 1;
  margin: 0 !important;
  padding-top: 2px;
}

/* Aviso mientras no esté marcado */
#conditions-to-approve li:has(input[type="checkbox"]:not(:checked)) .condition-label::after {
  content: "* Debes aceptar los términos para poder finalizar el pedido";
  display: block;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #e53935;
}

/* ===== Botón "Realizar pedido" ===== */
#payment-confirmation button.btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 8px;
}

@media (min-width: 768px) {
  #payment-confirmation button.btn {
    width: auto;
    min-width: 280px;
  }
}


/* =====================================================
   CARRITO Y RESUMEN
   ===================================================== */

/* Precios y enlaces del resumen */
.cart-summary-products .product-price,
.cart-summary-product-list .product-price,
#cart-subtotal-products .value,
.cart-summary a:not(.btn),
.cart-summary .product-line-info a:not(.btn) {
  color: var(--color-boton) !important;
}

/* ===== Línea de producto ===== */

/* Título en verde corporativo oscuro */
.cart-item .product-line-info a.label,
.cart-item .product-line-info .label {
  color: var(--color-boton) !important;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-item .product-line-info a.label:hover {
  color: var(--color-boton-hover) !important;
}

/* Precio tachado */
.cart-item .regular-price {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: #6b6b6b;
  text-decoration: line-through;
}

/* Etiqueta de descuento: pastilla roja */
.cart-item .discount.discount-percentage,
.cart-item .discount-percentage {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 3px 12px;
  background: var(--color-rojo) !important;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 20px;
}

/* Precio actual en rojo y grande */
.cart-item .current-price .price,
.cart-item .product-line-info .price {
  display: block;
  margin-top: 4px;
  color: var(--color-rojo) !important;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
}

/* Importe total de la línea (columna de la derecha) */
.cart-item .product-price strong,
.cart-item .product-price .price {
  color: var(--color-boton);
}


/* Detectar el autorrelleno del email (lo usa custom.js para Brevo) */
@keyframes cdAutorelleno { from { opacity: 1; } to { opacity: 1; } }
#checkout input:-webkit-autofill { animation-name: cdAutorelleno; animation-duration: .01s; }

.pago-sin-corte { white-space: nowrap; }
.pago-sin-corte .pago-burbuja { white-space: normal; }

/* Textos bajo seQura y PayPal 3 plazos: centrados en el recuadro */
.payment-options .additional-information.pago-info-centrada .pp-info { display: none; }

/* PayPal normal: sin bloque desplegable */
.payment-options .additional-information.pago-info-oculta { display: none !important; }

/* seQura y PayPal 3 plazos: texto a la izquierda (alineado con el título) y centrado en vertical */
.payment-options .additional-information.pago-info-centrada {
  display: flex; flex-direction: column; justify-content: center;
  text-align: left; padding-top: 14px !important; padding-bottom: 14px !important;
}
.payment-options .additional-information.pago-info-centrada[style*="none"] { display: none !important; }
.payment-options .additional-information.pago-info-centrada p { margin: 0 !important; text-align: left; }
/* Hueco vacío del botón de PayPal (PayPal lo coloca al final, en lugar del botón de pagar) */
.payment-options [data-container-bnpl]:has([paypal-bnpl-button-container]:empty) { display: none !important; }
.payment-options .pago-info-centrada .clearfix { display: none; }
.payment-options .opc-sub-paypal { display: block; }

/* =====================================================
   CHECKOUT EN UNA PÁGINA
   Solo actúa con la clase .cd-opc (la pone custom.js en modo prueba)
   ===================================================== */

/* Fondo y columnas */
.cd-opc body#checkout,
.cd-opc body#checkout #wrapper {
  background: #FEFBF6;
}

/* Todos los bloques abiertos, uno debajo de otro */
.cd-opc body#checkout section.checkout-step {
  display: block !important;
  margin: 0 0 14px;
  padding: 26px 28px 24px;
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 14px;
  box-shadow: none;
  opacity: 1 !important;
}

.cd-opc body#checkout section.checkout-step .content {
  display: block !important;
  padding: 0 !important;
}

/* Títulos nativos fuera (números de paso, "Modificar") */
.cd-opc body#checkout section.checkout-step > .step-title {
  display: none !important;
}

/* Nuestros títulos */
.cd-opc .opc-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 18px;
}

.cd-opc .opc-titulo {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2a2a;
  text-transform: none;
}

.cd-opc .opc-subtitulo {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: #6b7272;
}

.cd-opc .opc-login-enlace {
  margin: 0;
  font-size: 14px;
  color: #4d5656;
}

.cd-opc .opc-enlace {
  color: var(--color-boton);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cd-opc .opc-enlace:hover {
  color: #06A47B;
}

.cd-opc .opc-subtitulo-bloque {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2a2a;
}

.cd-opc .opc-oculto {
  display: none !important;
}

/* ---------- Campos (todos los bloques, mismo estilo) ---------- */
.cd-opc #checkout-personal-information-step .form-control,
.cd-opc #checkout-addresses-step .form-control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.cd-opc #checkout-addresses-step .form-group.row,
.cd-opc #checkout-delivery-step .form-group.row {
  display: block;
  margin: 0 0 16px;
}

.cd-opc #checkout-addresses-step .form-group.row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: none;
  float: none;
  padding: 0;
  margin-left: 0;
  text-align: left;
}

.cd-opc #checkout-addresses-step .form-control-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: left;
}

.cd-opc #checkout-addresses-step .form-control,
.cd-opc #checkout-personal-information-step .form-control {
  height: 48px;
  padding: 0 14px;
  font-weight: 400;
  background-color: #fff;
  border: 1.5px solid #cfd6d6;
  border-radius: 8px;
  box-shadow: none;
}

.cd-opc #checkout-addresses-step select.form-control {
  padding-right: 34px;
}

.cd-opc #checkout-addresses-step .form-control:focus,
.cd-opc #checkout-personal-information-step .form-control:focus {
  border-color: #06D6A0;
  box-shadow: 0 0 0 3px rgba(6, 214, 160, .18);
  outline: none;
}

.cd-opc #checkout-addresses-step .form-control-comment {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a8a8a;
}

/* Rejilla de la dirección en escritorio:
   Nombre | Apellidos  ·  CP | Ciudad | Provincia */
@media (min-width: 768px) {
  .cd-opc .opc-direccion .form-fields,
  .cd-opc .opc-direccion section.form-fields {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 14px;
  }
  .cd-opc .opc-direccion .form-fields > * {
    grid-column: span 6;
  }
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="firstname"]),
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="lastname"]),
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="company"]),
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="dni"]) {
    grid-column: span 3;
  }
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="postcode"]),
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="city"]),
  .cd-opc .opc-direccion .form-fields > .form-group:has([name="id_state"]) {
    grid-column: span 2;
  }
}

/* Notas bajo los campos */
.cd-opc .opc-nota {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7272;
}

/* Error de un campo */
.cd-opc .opc-error {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-rojo);
}

.cd-opc .opc-aviso-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-rojo);
  background: #fff3f4;
  border: 1px solid #f1c6cb;
  border-radius: 8px;
}

/* ---------- Casillas propias ---------- */
.cd-opc .opc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #2b3434;
  cursor: pointer;
}

.cd-opc .opc-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 20px;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #9aa5a5;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.cd-opc .opc-check input[type="checkbox"]:checked {
  background: #06D6A0;
  border-color: #06D6A0;
}

.cd-opc .opc-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cd-opc .opc-check input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(6, 214, 160, .25);
  outline: none;
}

/* Datos de facturación */
.cd-opc .opc-factura {
  margin: 4px 0 8px;
  padding: 2px 0 0;
}

.cd-opc .opc-factura .opc-subtitulo-bloque {
  margin-top: 6px;
}

/* ---------- Contacto ---------- */
.cd-opc #checkout-personal-information-step .nav-inline {
  display: none !important;
}

.cd-opc #checkout-personal-information-step .tab-pane {
  display: none;
}

.cd-opc #checkout-personal-information-step .tab-pane.active {
  display: block;
}

/* Botón "Continuar" de Contacto: solo al editar o si falla el formulario de dirección */
.cd-opc #checkout-personal-information-step #customer-form .form-footer {
  display: none;
}

.cd-opc #checkout-personal-information-step.opc-editando #customer-form .form-footer,
.cd-opc.opc-sin-formulario #checkout-personal-information-step #customer-form .form-footer {
  display: block;
}

.cd-opc #checkout-personal-information-step.opc-resumido .tab-content,
.cd-opc #checkout-personal-information-step.opc-resumido .opc-login-enlace {
  display: none;
}

.cd-opc .opc-resumen-contacto,
.cd-opc .opc-tarjeta-cliente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px;
  font-size: 14px;
  background: #fafaf7;
  border: 1px solid #ece6dc;
  border-radius: 10px;
}

.cd-opc .opc-resumen-contacto span,
.cd-opc .opc-tarjeta-cliente span {
  flex: 1;
  color: #2b3434;
}

.cd-opc .opc-tarjeta-cliente strong {
  flex-basis: 100%;
  font-weight: 600;
}

.cd-opc #checkout-personal-information-step.opc-conectado .content > :not(.opc-tarjeta-cliente) {
  display: none !important;
}

/* Inicio de sesión dentro de Contacto */
.cd-opc #checkout-personal-information-step.opc-modo-login .opc-login-enlace {
  display: none;
}

.cd-opc .opc-login-intro {
  margin-bottom: 14px;
}

.cd-opc .opc-login-intro p {
  margin: 0 0 4px;
  font-size: 14px;
  color: #4d5656;
}

.cd-opc .opc-login-intro .opc-login-hola {
  font-size: 16px;
  font-weight: 600;
  color: #1f2a2a;
}

.cd-opc #checkout-login-form .form-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.cd-opc #checkout-login-form .form-footer .btn {
  float: none !important;
  min-width: 180px;
  height: 48px;
  border-radius: 999px;
  text-transform: none;
  font-weight: 600;
}

.cd-opc .opc-login-volver {
  margin: 14px 0 0;
  font-size: 14px;
  color: #4d5656;
}

/* ---------- Entrega ---------- */
.cd-opc #checkout-addresses-step .opc-direccion > .js-address-form > form > p,
.cd-opc #checkout-addresses-step > .content > .js-address-form > form > p:first-child {
  display: none;
}

.cd-opc #checkout-addresses-step .form-footer {
  display: none;
}

.cd-opc #checkout-addresses-step .add-address {
  margin: 10px 0 14px;
}

.cd-opc #checkout-addresses-step .add-address a {
  font-weight: 600;
  color: var(--color-boton);
}

/* ---------- Avisos (envío y pago aún no disponibles) ---------- */
.cd-opc .opc-aviso {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #6a5a1e;
  background: #fff8dc;
  border: 1px solid #f1e3a6;
  border-radius: 10px;
}

/* ---------- Envío ---------- */
.cd-opc #checkout-delivery-step #delivery {
  margin-top: 14px;
}

.cd-opc #checkout-delivery-step #delivery_message {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1.5px solid #cfd6d6;
  border-radius: 8px;
  background: #fff;
}

/* ---------- Pago: botón final ---------- */
.cd-opc .opc-frase-legal {
  margin: 20px 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #4d5656;
}

.cd-opc .opc-frase-legal a,
.cd-opc .opc-pie-pago a {
  color: var(--color-boton);
  text-decoration: underline;
}

.cd-opc #payment-confirmation .opc-boton,
.cd-opc .opc-boton {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff !important;
  background: var(--color-boton) !important;
  border: 0 !important;
  border-radius: 999px !important;
  transition: background-color .2s, color .2s;
}

.cd-opc .opc-boton:not(.disabled):not([disabled]):not([aria-disabled="true"]):hover {
  background: #06D6A0 !important;
  color: #1f2a2a !important;
}

.cd-opc .opc-boton.disabled,
.cd-opc .opc-boton[disabled],
.cd-opc .opc-boton[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

.cd-opc .opc-zona-boton {
  margin-top: 22px;
}

.cd-opc .opc-pista {
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--color-rojo);
}

.cd-opc .opc-pie-pago {
  margin: 14px 0 0;
  font-size: 12.5px;
  text-align: center;
  color: #6b7272;
}

/* ---------- Capa "Guardando…" ---------- */
.cd-opc .opc-cargando {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2a2a;
  background: rgba(254, 251, 246, .82);
}

.cd-opc .opc-cargando.activa {
  display: flex;
}

.cd-opc .opc-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d7efe7;
  border-top-color: #06D6A0;
  border-radius: 50%;
  animation: opc-girar .8s linear infinite;
}

@keyframes opc-girar {
  to { transform: rotate(360deg); }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .cd-opc body#checkout section.checkout-step {
    padding: 20px 16px 18px;
    border-radius: 12px;
  }
  .cd-opc .opc-titulo {
    font-size: 18px;
  }
}

/* =====================================================
   CHECKOUT EN UNA PÁGINA · ASPECTO DEL DISEÑO (v2)
   ===================================================== */

/* ---------- Página sin distracciones ---------- */
.cd-opc body#checkout #header,
.cd-opc body#checkout #footer,
.cd-opc body#checkout .breadcrumb,
.cd-opc body#checkout nav.breadcrumb,
.cd-opc body#checkout .blockreassurance_product,
.cd-opc body#checkout #block-reassurance,
.cd-opc body#checkout .opc-nativo-oculto {
  display: none !important;
}

.cd-opc body#checkout,
.cd-opc body#checkout #wrapper,
.cd-opc body#checkout #main,
.cd-opc body#checkout #content-wrapper {
  background: #FEFBF6 !important;
}

.cd-opc body#checkout {
  color: #2b3434;
}

/* Cabecera: logo + pago seguro */
.cd-opc .opc-cabecera-tienda {
  background: #fff;
  border-bottom: 1px solid #ece6dc;
}

.cd-opc .opc-cabecera-dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
}

.cd-opc .opc-logo img {
  display: block;
  width: auto;
  height: 42px;
}

.cd-opc .opc-seguro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2F4F4F;
  white-space: nowrap;
}

.cd-opc .opc-seguro svg {
  color: #06D6A0;
}

/* ---------- Dos columnas ---------- */
.cd-opc body#checkout #wrapper {
  padding-top: 40px;
}

.cd-opc body#checkout #wrapper > .container {
  width: 100%;
  max-width: 1240px;
  padding: 0 24px;
}

.cd-opc body#checkout #content-wrapper {
  width: 100%;
  padding: 0;
  float: none;
}

.cd-opc body#checkout section#content > .row {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  margin: 0;
}

.cd-opc body#checkout section#content > .row::before,
.cd-opc body#checkout section#content > .row::after {
  display: none;
}

.cd-opc body#checkout .cart-grid-body {
  flex: 1 1 auto;
  width: auto;
  max-width: 700px;
  min-width: 0;
  padding: 0;
  float: none;
}

.cd-opc body#checkout .cart-grid-right {
  flex: 0 0 440px;
  width: 440px;
  max-width: 440px;
  padding: 0;
  float: none;
  position: sticky;
  top: 24px;
}

/* ---------- Bloques planos, como el diseño ---------- */
.cd-opc body#checkout section.checkout-step {
  margin: 0 0 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.cd-opc .opc-cabecera {
  margin-bottom: 16px;
}

.cd-opc .opc-titulo {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: #2F4F4F;
}

.cd-opc .opc-subtitulo {
  margin-top: 4px;
  font-size: 14px;
}

.cd-opc .opc-login-enlace {
  font-size: 15px;
}

/* ---------- Etiquetas dentro del campo ---------- */
.cd-opc #checkout-personal-information-step .form-group.row:has(> .js-input-column > input:not([type="checkbox"]):not([type="radio"])),
.cd-opc #checkout-personal-information-step .form-group.row:has(> .js-input-column > .input-group),
.cd-opc #checkout-addresses-step .form-group.row:has(> .js-input-column > input:not([type="checkbox"]):not([type="radio"])),
.cd-opc #checkout-addresses-step .form-group.row:has(> .js-input-column > select) {
  position: relative;
  margin-bottom: 16px;
}

.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label,
.cd-opc #checkout-addresses-step .form-group.row > .form-control-label {
  position: absolute;
  top: 9px;
  left: 16px;
  z-index: 2;
  width: auto !important;
  margin: 0;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.2;
  color: #2F4F4F;
  pointer-events: none;
}

.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label::before {
  content: none !important;
}

.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label.required::after,
.cd-opc #checkout-addresses-step .form-group.row > .form-control-label.required::after {
  font-size: 12px;
}

.cd-opc #checkout-personal-information-step .form-control,
.cd-opc #checkout-addresses-step .form-control {
  height: 60px;
  padding: 22px 16px 6px;
  font-size: 16px;
  color: #1f2a2a;
  border: 1px solid #d5d9d6;
  border-radius: 10px;
}

.cd-opc #checkout-addresses-step select.form-control {
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F4F4F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.cd-opc #checkout-personal-information-step .input-group .form-control {
  border-radius: 10px 0 0 10px;
}

.cd-opc #checkout-personal-information-step .input-group-btn .btn {
  height: 60px;
  border-radius: 0 10px 10px 0;
}

/* Casilla de privacidad (solo mientras esté activa en PrestaShop) */
.cd-opc #checkout-personal-information-step .form-group.row:has(input[name="psgdpr"]) .form-control-label {
  display: none;
}

/* Necesito factura: recuadro discontinuo */
.cd-opc .opc-check-factura {
  margin: 8px 0 16px;
  padding: 16px 18px;
  font-weight: 600;
  color: #2F4F4F;
  border: 1px dashed #c9cfc9;
  border-radius: 10px;
}

/* Añadir comentario: como enlace con "+" */
.cd-opc .opc-check-comentario {
  font-weight: 600;
  color: #2F4F4F;
}

.cd-opc .opc-check-comentario input {
  display: none;
}

.cd-opc .opc-check-comentario span::before {
  content: "+";
  display: inline-block;
  width: 18px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.cd-opc .opc-check-comentario:has(input:checked) span::before {
  content: "−";
}

/* ---------- Envío y pago: listas sin huecos ---------- */
.cd-opc #checkout-delivery-step .delivery-option.opc-fila-grupo,
.cd-opc .payment-options .payment-option.opc-fila-grupo {
  margin: 0 !important;
  padding: 18px 20px !important;
  background: #fff !important;
  border: 1px solid #e3ded4 !important;
  border-top-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cd-opc #checkout-delivery-step .delivery-option.opc-g-primero,
.cd-opc .payment-options .payment-option.opc-g-primero {
  border-top-width: 1px !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.cd-opc #checkout-delivery-step .delivery-option.opc-g-ultimo,
.cd-opc .payment-options .payment-option.opc-g-ultimo {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.cd-opc #checkout-delivery-step .delivery-option.opc-fila-grupo:has(input[type="radio"]:checked),
.cd-opc .payment-options .payment-option.opc-fila-grupo:has(input[type="radio"]:checked) {
  background: #f2fdf9 !important;
  box-shadow: inset 0 0 0 2px #06D6A0 !important;
}

.cd-opc #checkout-delivery-step .carrier-name,
.cd-opc .payment-options .payment-option label > span:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #1f2a2a;
}

.cd-opc #checkout-delivery-step .delivery-options-list,
.cd-opc #checkout-delivery-step .delivery-options {
  margin: 0;
}

.cd-opc #checkout-delivery-step .js-carrier-extra-content:empty,
.cd-opc #checkout-delivery-step .delivery-options > .clearfix {
  display: none !important;
}

/* ---------- Resumen del pedido ---------- */
.cd-opc .opc-resumen {
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 16px;
}

.cd-opc .opc-barra-resumen {
  display: none;
}

.cd-opc .opc-resumen-cuerpo {
  padding: 28px;
}

.cd-opc .opc-resumen-titulo {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: #2F4F4F;
}

.cd-opc .opc-lineas {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cd-opc .opc-linea {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cd-opc .opc-foto {
  position: relative;
  flex: 0 0 68px;
  height: 68px;
  background: #f3f1ec;
  border: 1px solid #ece6dc;
  border-radius: 10px;
}

.cd-opc .opc-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.cd-opc .opc-cant {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: #fff;
  background: #2F4F4F;
  border-radius: 999px;
}

.cd-opc .opc-linea-txt {
  flex: 1;
  min-width: 0;
}

.cd-opc .opc-linea-nombre {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #2F4F4F;
}

.cd-opc .opc-linea-attr {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #6b7272;
}

.cd-opc .opc-linea-precio {
  text-align: right;
  white-space: nowrap;
}

.cd-opc .opc-precio {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1f2a2a;
}

.cd-opc .opc-precio-rebajado {
  color: #b30012;
}

.cd-opc .opc-antes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12.5px;
  color: #6b7272;
}

.cd-opc .opc-dto {
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: #b30012;
  border-radius: 999px;
}

/* Código promocional siempre a la vista */
.cd-opc .opc-resumen-cupon .promo-code-button.display-promo,
.cd-opc .opc-resumen-cupon .cancel-promo {
  display: none !important;
}

.cd-opc .opc-resumen-cupon #promo-code {
  display: block !important;
  height: auto !important;
}

.cd-opc .opc-resumen-cupon .promo-code {
  padding: 0;
  background: none;
}

.cd-opc .opc-resumen-cupon form {
  display: flex;
  gap: 10px;
}

.cd-opc .opc-resumen-cupon .promo-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid #d5d9d6;
  border-radius: 10px;
}

.cd-opc .opc-resumen-cupon .btn {
  height: 52px;
  padding: 0 20px;
  font-weight: 600;
  text-transform: none;
  border-radius: 10px;
}

.cd-opc .opc-resumen-cupon .js-error:not(:has(.js-error-text:not(:empty))) {
  display: none;
}

.cd-opc .opc-resumen-cupon .block-promo,
.cd-opc .opc-resumen-cupon .cart-voucher {
  margin: 0;
  padding: 0;
}

.cd-opc .opc-resumen-filas {
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid #ece6dc;
  border-bottom: 1px solid #ece6dc;
}

.cd-opc .opc-fila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 15px;
}

.cd-opc .opc-fila span:last-child {
  font-weight: 600;
}

.cd-opc .opc-ahorras {
  color: #b30012;
}

.cd-opc .opc-gratis {
  color: #06A47B;
}

.cd-opc .opc-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.cd-opc .opc-total-lbl {
  font-size: 18px;
  font-weight: 600;
  color: #2F4F4F;
}

.cd-opc .opc-iva {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  color: #6b7272;
}

.cd-opc .opc-total-valor {
  font-size: 26px;
  font-weight: 600;
  color: #2F4F4F;
  white-space: nowrap;
}

/* ---------- Tablet y móvil: resumen arriba y plegable ---------- */
@media (max-width: 991px) {
  .cd-opc body#checkout #wrapper {
    padding-top: 0;
  }
  .cd-opc body#checkout #wrapper > .container {
    padding: 0;
  }
  .cd-opc body#checkout section#content > .row {
    flex-direction: column;
    gap: 0;
  }
  .cd-opc body#checkout .cart-grid-right {
    order: -1;
    position: static;
    flex: none;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
  }
  .cd-opc body#checkout .cart-grid-body {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .cd-opc .opc-resumen {
    border-width: 0 0 1px;
    border-radius: 0;
    background: #f7f3ea;
  }
  .cd-opc .opc-barra-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #2F4F4F;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .cd-opc .opc-barra-txt::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 3px 10px;
    border: solid #2F4F4F;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s;
  }
  .cd-opc .opc-resumen.abierto .opc-barra-txt::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
  }
  .cd-opc .opc-barra-total {
    font-size: 18px;
  }
  .cd-opc .opc-resumen-cuerpo {
    display: none;
    max-width: 740px;
    margin: 0 auto;
    padding: 4px 20px 22px;
  }
  .cd-opc .opc-resumen.abierto .opc-resumen-cuerpo {
    display: block;
  }
  .cd-opc .opc-resumen-titulo {
    display: none;
  }
}

@media (max-width: 767px) {
  .cd-opc .opc-cabecera-dentro {
    padding: 12px 16px;
  }
  .cd-opc .opc-logo img {
    height: 32px;
  }
  .cd-opc .opc-seguro {
    font-size: 13px;
  }
  .cd-opc body#checkout .cart-grid-body {
    padding: 0 16px;
  }
  .cd-opc .opc-titulo {
    font-size: 22px;
  }
  .cd-opc body#checkout section.checkout-step {
    margin-bottom: 32px;
    padding: 0;
  }
}

/* Sin márgenes negativos de la rejilla del tema */
.cd-opc body#checkout #wrapper > .container > .row {
  margin-left: 0;
  margin-right: 0;
}

.cd-opc .opc-check,
.cd-opc .opc-check span {
  text-align: left;
}

/* Nombres de pago */
.cd-opc .opc-corto {
  display: none;
}

@media (max-width: 575px) {
  .cd-opc .opc-largo {
    display: none;
  }
  .cd-opc .opc-corto {
    display: inline;
  }
  /* Una fila: bolita · nombre · logos a la derecha */
  .cd-opc .payment-options .payment-option.opc-fila-grupo {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 14px !important;
  }
  .cd-opc .payment-options .payment-option.opc-fila-grupo > label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cd-opc .payment-options .payment-option.opc-fila-grupo > .pago-logos {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    margin: 0 0 0 auto;
  }
  .cd-opc .payment-options .payment-option.opc-fila-grupo img.pago-logo {
    width: auto;
    max-width: 44px;
    height: 18px;
    object-fit: contain;
  }
}

/* Capa "Guardando…" más legible */
.cd-opc .opc-cargando {
  background: rgba(254, 251, 246, .7);
  backdrop-filter: blur(2px);
}

.cd-opc .opc-cargando.activa {
  gap: 0;
}

.cd-opc .opc-cargando .opc-spinner {
  margin-bottom: 14px;
}

.cd-opc .opc-cargando-texto {
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #2F4F4F;
}

.cd-opc .opc-cargando.activa::before {
  content: "";
  position: absolute;
  width: 380px;
  max-width: calc(100% - 32px);
  height: 130px;
  background: #fff;
  border: 1px solid #ece6dc;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(47, 79, 79, .12);
  z-index: -1;
}

/* =====================================================
   v6: listas previas de envío y pago, tarjetas de dirección
   ===================================================== */

/* Radio del diseño: aro verde con bolita que se rellena */
.cd-opc .opc-opcion input[type="radio"],
.cd-opc #checkout-addresses-step .address-item input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #06D6A0;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

.cd-opc .opc-opcion input[type="radio"]::before,
.cd-opc #checkout-addresses-step .address-item input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06D6A0;
  transform: scale(0);
  transition: transform .15s ease-out;
}

.cd-opc .opc-opcion input[type="radio"]:checked::before,
.cd-opc #checkout-addresses-step .address-item input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Listas agrupadas */
.cd-opc .opc-lista {
  border: 1px solid #e3ded4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cd-opc .opc-opcion {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid #e3ded4;
  cursor: pointer;
  font-weight: 400;
}

.cd-opc .opc-lista > .opc-opcion:first-child {
  border-top: 0;
}

.cd-opc .opc-opcion.marcada {
  background: #f2fdf9;
  box-shadow: inset 0 0 0 2px #06D6A0;
}

.cd-opc .opc-lista > .opc-opcion:first-child.marcada {
  border-radius: 12px 12px 0 0;
}

.cd-opc .opc-lista > .opc-opcion:last-child.marcada {
  border-radius: 0 0 12px 12px;
}

.cd-opc .opc-lista > .opc-opcion:only-child.marcada {
  border-radius: 12px;
}

.cd-opc .opc-opcion-txt {
  flex: 1 1 auto;
  min-width: 0;
}

.cd-opc .opc-opcion-nombre {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1f2a2a;
}

.cd-opc .opc-opcion-sub {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: #6b7272;
}

.cd-opc .opc-opcion-sub strong {
  color: #2b3434;
}

.cd-opc .opc-opcion-precio {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a2a;
  white-space: nowrap;
}

.cd-opc .opc-opcion-precio.opc-gratis {
  color: #06A47B;
}

.cd-opc .opc-opcion-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.cd-opc .opc-logo-pago {
  display: block;
  width: auto;
  height: 22px;
}

.cd-opc .opc-logo-banco {
  height: 40px;
}

.cd-opc .opc-titulo-financia {
  margin: 18px 0 10px;
}

.cd-opc .opc-nota-pago {
  margin-top: 12px;
}

.cd-opc .opc-pago-previo.opc-sin-elegir .opc-lista {
  border-color: var(--color-rojo);
  box-shadow: 0 0 0 3px rgba(179, 0, 18, .12);
}

.cd-opc .opc-pago-previo.opc-sin-elegir .opc-nota-pago {
  color: var(--color-rojo);
  font-weight: 600;
}

.cd-opc .opc-zona-boton .opc-frase-legal {
  margin-top: 0;
}

.cd-opc .opc-aviso-final {
  margin: 16px 0;
}

@media (max-width: 575px) {
  .cd-opc .opc-opcion {
    gap: 12px;
    padding: 16px 14px;
  }
  .cd-opc .opc-opcion-logos {
    gap: 8px;
  }
  .cd-opc .opc-logo-pago {
    height: 16px;
    max-width: 46px;
    object-fit: contain;
  }
  .cd-opc .opc-logo-banco {
    height: 34px;
  }
}

/* Tarjetas de dirección guardada: una fila limpia */
.cd-opc #checkout-addresses-step .address-selector {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border: 1px solid #e3ded4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cd-opc #checkout-addresses-step .address-item {
  position: relative;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid #e3ded4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cd-opc #checkout-addresses-step .address-item:first-child {
  border-top: 0 !important;
}

.cd-opc #checkout-addresses-step .address-item.selected {
  background: #f2fdf9 !important;
  box-shadow: inset 0 0 0 2px #06D6A0 !important;
}

.cd-opc #checkout-addresses-step .address-item header {
  margin: 0;
  padding: 0;
}

.cd-opc #checkout-addresses-step .address-item .radio-block {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 16px;
  align-items: center;
  margin: 0;
  padding: 18px 120px 18px 20px;
  cursor: pointer;
}

.cd-opc #checkout-addresses-step .address-item .custom-radio {
  grid-row: 1 / span 2;
  margin: 0;
  border: 0;
  width: 20px;
  height: 20px;
  background: none;
}

.cd-opc #checkout-addresses-step .address-item .custom-radio > span {
  display: none;
}

.cd-opc #checkout-addresses-step .address-item .custom-radio input[type="radio"] {
  position: static;
  opacity: 1;
}

.cd-opc #checkout-addresses-step .address-alias {
  display: none;
}

.cd-opc #checkout-addresses-step .address-item .address {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4d5656;
}

.cd-opc .opc-dir-nombre {
  display: block;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  color: #1f2a2a;
}

.cd-opc .opc-dir-linea,
.cd-opc .opc-dir-tel {
  display: block;
}

.cd-opc #checkout-addresses-step .address-item hr {
  display: none;
}

.cd-opc #checkout-addresses-step .address-item .address-footer {
  position: absolute;
  top: 50%;
  right: 20px;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
}

.cd-opc #checkout-addresses-step .address-item .address-footer a {
  font-size: 13px;
  font-weight: 600;
  color: #2F4F4F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-opc #checkout-addresses-step .address-item .address-footer .material-icons {
  display: none;
}

.cd-opc #checkout-addresses-step .address-item .address-footer .delete-address {
  color: #8a8a8a;
}

.cd-opc #checkout-addresses-step .add-address {
  margin: 14px 0;
}

@media (max-width: 575px) {
  .cd-opc #checkout-addresses-step .address-item .radio-block {
    padding: 16px 14px 44px;
  }
  .cd-opc #checkout-addresses-step .address-item .address-footer {
    top: auto;
    bottom: 14px;
    left: 50px;
    right: auto;
    transform: none;
  }
}

.cd-opc .opc-opcion,
.cd-opc .opc-opcion-txt,
.cd-opc .opc-opcion-nombre,
.cd-opc .opc-opcion-sub {
  text-align: left;
}

/* Calculando el envío con la dirección (sin recargar) */
.cd-opc .opc-envio-previo {
  position: relative;
}

.cd-opc .opc-envio-previo.opc-calculando .opc-lista,
.cd-opc .opc-envio-previo.opc-calculando .opc-aviso {
  opacity: .45;
  pointer-events: none;
}

.cd-opc .opc-envio-previo.opc-calculando::after {
  content: "Calculando el envío para tu dirección…";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2F4F4F;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #e3ded4;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(47, 79, 79, .1);
  transform: translate(-50%, -50%);
}

/* =====================================================
   v8: etiquetas que flotan, facturación y aviso de envío del diseño
   ===================================================== */

/* Campo vacío: la etiqueta ocupa el centro; al escribir sube y se hace pequeña */
.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label,
.cd-opc #checkout-addresses-step .form-group.row > .form-control-label {
  transition: top .15s ease, font-size .15s ease, color .15s ease, transform .15s ease;
}

.cd-opc #checkout-personal-information-step .form-group.row:has(> .js-input-column input.form-control:placeholder-shown):not(:focus-within) > .form-control-label,
.cd-opc #checkout-addresses-step .form-group.row:has(> .js-input-column > input.form-control:placeholder-shown):not(:focus-within) > .form-control-label {
  top: 30px;
  transform: translateY(-50%);
  font-size: 15px !important;
  font-weight: 500;
  color: #6b7272;
}

.cd-opc #checkout-personal-information-step .form-group.row:has(> .js-input-column input.form-control:placeholder-shown):not(:focus-within) > .form-control-label.required::after,
.cd-opc #checkout-addresses-step .form-group.row:has(> .js-input-column > input.form-control:placeholder-shown):not(:focus-within) > .form-control-label.required::after {
  font-size: 15px;
}

.cd-opc #checkout-personal-information-step .form-control::placeholder,
.cd-opc #checkout-addresses-step .form-control::placeholder {
  color: transparent;
}

/* Recuadro "Necesito factura" en blanco */
.cd-opc .opc-check-factura {
  background: #fff;
}

/* Datos de facturación en un bloque verde suave */
.cd-opc .opc-factura {
  margin: 0 0 18px;
  padding: 20px 22px 8px;
  background: #f2fdf9;
  border: 1px solid #7fe3c6;
  border-radius: 14px;
}

.cd-opc .opc-factura .opc-subtitulo-bloque {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #2F4F4F;
}

.cd-opc .opc-factura .form-control {
  border-color: #d9e7e1;
}

.cd-opc .opc-factura .opc-check-misma {
  margin: 0 0 16px;
}

/* Aviso de envío: tono cálido con camión */
.cd-opc .opc-envio-previo .opc-aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: #8a5a1f;
  background: #fcf0e1;
  border: 1px solid #f3e0c6;
  border-radius: 12px;
}

.cd-opc .opc-envio-previo .opc-aviso::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23b7741f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h13v11H1z'/%3E%3Cpath d='M14 8h4l4 4v3h-8z'/%3E%3Ccircle cx='5.5' cy='17.5' r='2'/%3E%3Ccircle cx='17.5' cy='17.5' r='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Comentario antes de tener los envíos reales */
.cd-opc .opc-comentario-previo {
  margin-top: 14px;
}

.cd-opc .opc-comentario-previo textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid #d5d9d6;
  border-radius: 10px;
  background: #fff;
}

/* Contraseña: etiqueta visible sobre el campo y "Mostrar" dentro, como enlace */
.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label,
.cd-opc #checkout-addresses-step .form-group.row > .form-control-label {
  z-index: 5;
}

.cd-opc #checkout-personal-information-step .input-group {
  position: relative;
}

.cd-opc #checkout-personal-information-step .input-group .form-control {
  border-radius: 10px !important;
  padding-right: 96px;
}

.cd-opc #checkout-personal-information-step .input-group-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  width: auto;
}

.cd-opc #checkout-personal-information-step .input-group-btn .btn {
  height: auto;
  margin: 0 14px 0 0;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  color: #2F4F4F !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-opc #checkout-personal-information-step .field-password-policy .form-control-comment {
  display: none !important;
}

/* Inicio de sesión como en el diseño */
.cd-opc #checkout-personal-information-step.opc-modo-login .opc-login-enlace {
  display: block;
}

.cd-opc .opc-login-volver {
  display: none;
}

.cd-opc #checkout-login-form .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.cd-opc #checkout-login-form .form-footer .forgot-password {
  margin: 0;
  padding: 0;
  text-align: left;
}

.cd-opc #checkout-login-form .form-footer .forgot-password a {
  font-size: 14px;
  color: #2F4F4F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-opc #checkout-login-form .form-footer .btn {
  min-width: 170px;
  height: 50px;
  margin: 0;
  padding: 0 28px;
  font-size: 16px;
}

/* "Mostrar" como botoncito gris claro dentro del campo */
.cd-opc #checkout-personal-information-step .input-group-btn .btn {
  margin-right: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2F4F4F !important;
  background: #eef1f0 !important;
  border-radius: 999px !important;
  text-decoration: none;
}

.cd-opc #checkout-personal-information-step .input-group-btn .btn:hover {
  background: #e2e8e6 !important;
}

.cd-opc #checkout-login-form .form-footer .btn {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.cd-opc .opc-envio-falta {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #8a5a1f;
}

.cd-opc .opc-envio-falta-error {
  color: var(--color-rojo);
  font-weight: 500;
}

/* Solo aparece si pulsan «Pagar ahora» sin elegir forma de pago */
.cd-opc .opc-nota-pago {
  display: none;
}

.cd-opc .opc-pago-previo.opc-sin-elegir .opc-nota-pago {
  display: block;
}

/* Direcciones guardadas, estilo lista compacta */
.cd-opc #checkout-addresses-step .address-item {
  flex: none !important;
  display: block !important;
}

.cd-opc #checkout-addresses-step .address-item > header,
.cd-opc #checkout-addresses-step .address-item .radio-block {
  min-height: 0 !important;
  height: auto !important;
}

.cd-opc #checkout-addresses-step .address-item .address-alias {
  display: none !important;
}

.cd-opc #checkout-addresses-step .address-item .radio-block {
  grid-template-columns: 20px 1fr;
  padding: 16px 150px 16px 20px;
}

.cd-opc #checkout-addresses-step .address-item .custom-radio {
  grid-row: 1;
}

.cd-opc #checkout-addresses-step .address-item .address {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.45;
  color: #4d5656;
}

.cd-opc .opc-dir-l1 {
  display: block;
  font-size: 15px;
  color: #1f2a2a;
}

.cd-opc .opc-dir-l1 strong {
  font-weight: 700;
  text-transform: capitalize;
}

.cd-opc .opc-dir-l2 {
  display: block;
  margin-top: 2px;
}

.cd-opc .opc-dir-nueva {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2F4F4F !important;
  text-decoration: none !important;
  border-top: 1px solid #e3ded4;
}

.cd-opc .opc-dir-nueva:hover {
  background: #fafaf7;
}

.cd-opc .opc-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #06A47B;
}

@media (max-width: 575px) {
  .cd-opc #checkout-addresses-step .address-item .radio-block {
    padding: 16px 14px 42px;
  }
}

.cd-opc #checkout-addresses-step #delivery-addresses > p,
.cd-opc #checkout-addresses-step #invoice-addresses > p {
  display: none !important;
}

.cd-opc #checkout-addresses-step .address-selector > .opc-dir-nueva {
  width: 100%;
}

/* Financia tu compra (seQura y PayPal 3 plazos): logos del mismo tamaño */
.cd-opc .opc-titulo-financia {
  margin: 18px 0 10px;
  padding-top: 0;
  border-top: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2F4F4F;
}

.cd-opc .opc-logo-sequra,
.cd-opc .pago-plazos .opc-logo-paypal {
  height: 22px;
}

@media (max-width: 575px) {
  .cd-opc .opc-logo-sequra,
  .cd-opc .pago-plazos .opc-logo-paypal {
    height: 18px;
    max-width: none;
  }
}

/* v16: textos de financiación iguales, títulos en negro y logos PayPal más grandes */
.cd-opc .payment-options .pago-sequra-titulo {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2a2a !important;
}

.cd-opc .payment-options .pago-cuotas,
.cd-opc .opc-opcion-sub.opc-cuotas-previo,
.cd-opc .opc-opcion-sub.opc-sequra-previo {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: #555;
}

.cd-opc .payment-options .pago-cuotas strong,
.cd-opc .opc-opcion-sub strong {
  font-weight: 700;
  color: #2F4F4F;
}

.cd-opc .pago-paypal .opc-logo-paypal,
.cd-opc .pago-plazos .opc-logo-paypal {
  height: 36px;
}

.cd-opc .opc-logo-sequra {
  height: 24px;
}

@media (max-width: 575px) {
  .cd-opc .pago-paypal .opc-logo-paypal,
  .cd-opc .pago-plazos .opc-logo-paypal {
    height: 28px;
    max-width: none;
  }
  .cd-opc .opc-logo-sequra {
    height: 19px;
  }
}

/* Dirección seleccionada: el borde verde sigue el redondeo de la lista */
.cd-opc #checkout-addresses-step .address-selector > .address-item:first-child {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.cd-opc #checkout-addresses-step .address-selector > .address-item:last-child {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* =====================================================
   v17: tipografía refinada, como el diseño
   (Montserrat 600 en nombres, 15 px, verde oscuro corporativo)
   ===================================================== */
.cd-opc body#checkout {
  font-family: 'Montserrat', sans-serif;
}

/* Nombres de envío, pago y dirección */
.cd-opc .opc-opcion-nombre,
.cd-opc .payment-options .payment-option label > span:first-child,
.cd-opc .payment-options .pago-sequra-titulo,
.cd-opc #checkout-delivery-step .carrier-name,
.cd-opc .opc-dir-l1 strong {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #2F4F4F !important;
}

.cd-opc .opc-dir-l1 {
  font-size: 14px;
  color: #2F4F4F;
}

/* Líneas secundarias: 13 px, gris, importes en seminegrita */
.cd-opc .opc-opcion-sub,
.cd-opc .payment-options .pago-cuotas,
.cd-opc #checkout-delivery-step .carrier-delay,
.cd-opc .opc-dir-l2 {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #555 !important;
}

.cd-opc .opc-opcion-sub strong,
.cd-opc .payment-options .pago-cuotas strong {
  font-weight: 600 !important;
  color: #2F4F4F !important;
}

/* Precio del envío */
.cd-opc .opc-opcion-precio,
.cd-opc #checkout-delivery-step .carrier-price {
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* "Financia tu compra" con línea fina a la derecha */
.cd-opc .opc-titulo-financia,
.cd-opc .payment-options .pago-financia-titulo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  padding: 0;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2F4F4F;
}

.cd-opc .opc-titulo-financia::after,
.cd-opc .payment-options .pago-financia-titulo::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e1d8;
}

/* Subtítulo de Pago con candado */
.cd-opc .opc-subtitulo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b6b6b;
}

/* Casillas y enlaces: seminegrita, no negrita */
.cd-opc .opc-check,
.cd-opc .opc-check-factura,
.cd-opc .opc-check-comentario,
.cd-opc .opc-dir-nueva,
.cd-opc .opc-enlace {
  font-weight: 600;
}

.cd-opc .opc-check {
  font-size: 14px;
  color: #2F4F4F;
}

.cd-opc .opc-check-cuenta,
.cd-opc .opc-check-misma {
  font-weight: 500;
}

.cd-opc .opc-check-cuenta strong {
  font-weight: 600;
}

/* Títulos de bloque */
.cd-opc .opc-titulo {
  font-weight: 700;
}

.cd-opc .opc-factura .opc-subtitulo-bloque,
.cd-opc .opc-resumen-titulo {
  font-weight: 600;
}

/* Resumen: nombre del producto y filas en seminegrita */
.cd-opc .opc-linea-nombre,
.cd-opc .opc-fila span:last-child,
.cd-opc .opc-precio {
  font-weight: 600;
}

.cd-opc .opc-total-lbl,
.cd-opc .opc-total-valor {
  font-weight: 700;
}

/* Etiquetas de los campos */
.cd-opc #checkout-personal-information-step .form-group.row > .form-control-label,
.cd-opc #checkout-addresses-step .form-group.row > .form-control-label {
  font-weight: 600;
}

/* Candados: dibujados con línea (el tema rellenaba los SVG) */
.cd-opc .opc-seguro svg,
.cd-opc .opc-subtitulo svg {
  flex: 0 0 auto;
  fill: none !important;
}

.cd-opc .opc-seguro svg *,
.cd-opc .opc-subtitulo svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.cd-opc .opc-seguro svg {
  width: 16px;
  height: 16px;
  color: #06D6A0;
}

.cd-opc .opc-subtitulo svg {
  width: 14px;
  height: 14px;
  color: #6b6b6b;
}

/* Código promocional: campo y botón alineados, misma altura */
.cd-opc .opc-resumen-cupon form {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px;
  margin: 0 !important;
}

.cd-opc .opc-resumen-cupon form > * {
  margin: 0 !important;
}

.cd-opc .opc-resumen-cupon .promo-input {
  flex: 1 1 auto;
  height: 52px !important;
  margin: 0 !important;
  vertical-align: top;
}

.cd-opc .opc-resumen-cupon form .btn,
.cd-opc .opc-resumen-cupon form button {
  flex: 0 0 auto;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  line-height: 1 !important;
  vertical-align: top;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  top: 0 !important;
  transform: none !important;
}

.cd-opc .opc-resumen-cupon form input[type="hidden"] {
  display: none !important;
}

/* Texto bajo el método elegido (transferencia), como en el diseño */
.cd-opc .opc-opcion-info {
  display: none;
  padding: 0 20px 16px 56px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  background: #f2fdf9;
}

.cd-opc .opc-opcion.marcada + .opc-opcion-info {
  display: block;
}

.cd-opc .opc-opcion.marcada:has(+ .opc-opcion-info) {
  border-radius: 0 !important;
}

.cd-opc .opc-opcion-info + .opc-opcion {
  border-top: 1px solid #e3ded4;
}

/* Lo mismo en la lista real de PrestaShop (texto del módulo de transferencia) */
.cd-opc .payment-options .additional-information:not([style*="none"]):not(:empty) {
  margin: 0 !important;
  padding: 0 20px 16px 56px !important;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  background: #f2fdf9 !important;
  border: 1px solid #e3ded4;
  border-top: 0;
  border-radius: 0 !important;
}

.cd-opc .payment-options .additional-information:not([style*="none"]) p {
  margin: 0 0 6px;
}

@media (max-width: 575px) {
  .cd-opc .opc-opcion-info,
  .cd-opc .payment-options .additional-information:not([style*="none"]):not(:empty) {
    padding: 0 14px 14px 46px !important;
  }
}


/* Gotas (i) también en la lista previa de pagos */
.cd-opc .opc-pago-previo .pago-gota {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: #fff;
  background: var(--color-acento);
  border-radius: 50%;
  vertical-align: middle;
  cursor: help;
}

.cd-opc .opc-pago-previo .pago-burbuja {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 290px;
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  color: #fff;
  background: var(--color-boton);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(47, 79, 79, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, transform .15s;
  pointer-events: none;
  cursor: default;
}

.cd-opc .opc-pago-previo .pago-burbuja::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--color-boton);
}

.cd-opc .opc-pago-previo .pago-burbuja-titulo {
  display: block;
  margin-bottom: 2px;
  padding-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.cd-opc .opc-pago-previo .pago-burbuja-item {
  display: block;
  position: relative;
  padding-left: 22px;
}

.cd-opc .opc-pago-previo .pago-burbuja-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: var(--color-acento);
  border-radius: 50%;
}

.cd-opc .opc-pago-previo .pago-burbuja-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 3px;
  height: 6px;
  border: solid var(--color-boton);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.cd-opc .opc-pago-previo .pago-burbuja-nota {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
}

.cd-opc .opc-pago-previo .pago-gota:hover .pago-burbuja,
.cd-opc .opc-pago-previo .pago-gota:focus .pago-burbuja {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cd-opc .opc-pago-previo .pago-gota:focus {
  outline: none;
}

.cd-opc .opc-pago-previo .pago-burbuja,
  .cd-opc .opc-pago-previo .pago-gota:hover .pago-burbuja,
  .cd-opc .opc-pago-previo .pago-gota:focus .pago-burbuja {
    left: auto;
    right: -70px;
    transform: none;
    width: 250px;
  }

.cd-opc .opc-pago-previo .pago-burbuja::after {
    left: auto;
    right: 66px;
    transform: none;
  }

.cd-opc .opc-pie-seguro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cd-opc .opc-pie-seguro svg {
  width: 13px;
  height: 13px;
  fill: none !important;
}

.cd-opc .opc-pie-seguro svg * {
  fill: none !important;
  stroke: currentColor !important;
}

.cd-opc .opc-pago-previo .pago-gota {
  margin-left: 6px;
}

.cd-opc .payment-options .additional-information:not([style*="none"]) p,
.cd-opc .payment-options .additional-information:not([style*="none"]) section {
  font-size: 13px !important;
  line-height: 1.5;
  color: #555;
}


/* Icono de transferencia bancaria más grande (escritorio y móvil) */
.cd-opc .payment-options img.pago-logo[alt="Transferencia bancaria"] { height: 40px; max-width: 120px; }
.cd-opc .opc-logo-banco { max-width: 120px; }
@media (max-width: 767px) {
  .cd-opc .payment-options .payment-option.opc-fila-grupo img.pago-logo[alt="Transferencia bancaria"],
  .cd-opc .payment-options img.pago-logo[alt="Transferencia bancaria"] { height: 34px; max-width: 100px; }
  .cd-opc .opc-logo-pago.opc-logo-banco { height: 34px; max-width: 100px; }
}

/* Pantallas muy estrechas (≤360 px): logos algo más pequeños para no pisar el texto */
@media (max-width: 360px) {
  .cd-opc .payment-options .payment-option.pago-tarjeta .pago-logos { gap: 2px; }
  .cd-opc .payment-options .payment-option.pago-tarjeta img.pago-logo { max-width: 32px; }
  .cd-opc .payment-options img.pago-logo[alt="Transferencia bancaria"] { height: 28px; max-width: 78px; }
  .cd-opc .opc-logo-pago.opc-logo-banco { height: 28px; max-width: 78px; }
}

/* Texto bajo seQura / PayPal 3 plazos: a la izquierda (alineado con el título) y centrado en vertical */
.cd-opc .payment-options .additional-information.pago-info-centrada:not([style*="none"]):not(:empty) {
  padding: 16px 20px 16px 60px !important;
}
.cd-opc .payment-options .additional-information.pago-info-centrada:not([style*="none"]) p {
  margin: 0 !important; text-align: left !important;
}
@media (max-width: 575px) {
  .cd-opc .payment-options .additional-information.pago-info-centrada:not([style*="none"]):not(:empty) {
    padding: 14px 14px 14px 46px !important;
  }
}

/* Método elegido + su texto desplegado: una sola tarjeta verde menta */
.cd-opc .payment-options div:has(+ .additional-information:not([style*="none"]):not(:empty):not(.pago-info-oculta)) > .payment-option.opc-fila-grupo:has(input[type="radio"]:checked) {
  box-shadow: inset 2px 0 0 #06D6A0, inset -2px 0 0 #06D6A0, inset 0 2px 0 #06D6A0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-width: 0 !important;
  padding-bottom: 8px !important;
}
.cd-opc .payment-options div:has(> .payment-option input[type="radio"]:checked) + .additional-information:not([style*="none"]):not(:empty):not(.pago-info-oculta) {
  background: #f2fdf9 !important;
  box-shadow: inset 2px 0 0 #06D6A0, inset -2px 0 0 #06D6A0, inset 0 -2px 0 #06D6A0 !important;
  padding-top: 0 !important;
  padding-bottom: 18px !important;
}
.cd-opc .payment-options div:has(> .payment-option.opc-g-ultimo input[type="radio"]:checked) + .additional-information:not([style*="none"]):not(:empty) {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Texto desplegado (seQura, 3 plazos, transferencia): más pequeño que la línea «Desde…» / «3 pagos…» */
.cd-opc .payment-options .additional-information:not([style*="none"]) p,
.cd-opc .payment-options .additional-information:not([style*="none"]) section,
.cd-opc .payment-options .additional-information:not([style*="none"]) .pago-plazos-info {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #6b6b6b !important;
}
@media (max-width: 575px) {
  .cd-opc .payment-options .additional-information:not([style*="none"]) p,
  .cd-opc .payment-options .additional-information:not([style*="none"]) section {
    font-size: 11.5px !important;
  }
}

/* Al pasar el cursor: verde menta (envío y pago, listas previas y reales) */
.cd-opc #checkout-delivery-step .delivery-option.opc-fila-grupo,
.cd-opc .payment-options .payment-option.opc-fila-grupo,
.cd-opc .opc-opcion {
  transition: background-color .18s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .cd-opc #checkout-delivery-step .delivery-option.opc-fila-grupo:hover,
  .cd-opc .payment-options .payment-option.opc-fila-grupo:hover,
  .cd-opc .opc-opcion:hover {
    background: #f2fdf9 !important;
  }
}

/* Lista previa de pagos: método elegido + su texto = una sola tarjeta verde menta (igual que la real) */
.cd-opc .opc-opcion.marcada:has(+ .opc-opcion-info) {
  box-shadow: inset 2px 0 0 #06D6A0, inset -2px 0 0 #06D6A0, inset 0 2px 0 #06D6A0 !important;
  padding-bottom: 8px;
}
.cd-opc .opc-opcion.marcada + .opc-opcion-info {
  display: block;
  padding: 0 20px 18px 57px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b6b6b;
  box-shadow: inset 2px 0 0 #06D6A0, inset -2px 0 0 #06D6A0, inset 0 -2px 0 #06D6A0;
}
.cd-opc .opc-lista > .opc-opcion-info:last-child { border-radius: 0 0 12px 12px; }
@media (max-width: 575px) {
  .cd-opc .opc-opcion.marcada + .opc-opcion-info { padding: 0 14px 14px 46px !important; font-size: 11.5px; }
}

/* El resumen nativo de PrestaShop nunca se ve (ni un instante cuando PrestaShop lo sustituye al cambiar de envío) */
.cd-opc body#checkout #js-checkout-summary { display: none !important; }

/* «+ info» de seQura en la lista previa (igual que el del módulo) */
.cd-opc .opc-sequra-mas { color: #06b38a; cursor: pointer; white-space: nowrap; }
.cd-opc .opc-sequra-mas:hover { text-decoration: underline; }

/* Botón «Paga a plazos» de PayPal: ancho completo, como «Pagar ahora» */
.cd-opc [data-container-bnpl] { align-items: stretch !important; }
.cd-opc [paypal-bnpl-button-container],
.cd-opc [paypal-bnpl-button-container] > div,
.cd-opc [paypal-bnpl-button-container] .paypal-buttons {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.cd-opc [paypal-bnpl-button-container] { margin: 4px 0 0; }

/* Tablet / ventana estrecha (576–991 px): la columna es estrecha, nombres cortos como en móvil
   para que «Pagar con tarjeta» no se parta en tres líneas junto a los 4 logos */
@media (min-width: 576px) and (max-width: 991px) {
  .cd-opc .opc-largo { display: none; }
  .cd-opc .opc-corto { display: inline; }
}

/* PayPal coloca su botón «Paga a plazos» en #paypal-buttons con ancho fijo de 300 px */
.cd-opc #paypal-buttons { width: 100% !important; max-width: none !important; }

/* Botón flotante de WhatsApp: oculto solo en el checkout */
body#checkout a.float[class*="whatsapp"] { display: none !important; }
