/* ===================================================================
   §121 (2026-11-06) — CARRITO Y PAGO
   El Siglo y tiendas de equipo. Sólo se carga en checkout/* (header.twig).
   Colores por tienda vía --brand-* / --sg-* (base.css §1).
   Marcado: checkout/cart.twig y checkout/login.twig (§121).
   =================================================================== */

/* --- 1. Sin migas en carrito y pago; título en la banda, como ficha (§108) --- */
html.route-checkout-cart .breadcrumbs,
html.route-checkout-checkout .breadcrumbs { display: none; }
html.route-checkout-cart .site-wrapper > h1.page-title,
html.route-checkout-checkout .site-wrapper > h1.page-title { padding-bottom: 20px; }

/* --- 2. Carrito: dos columnas (cesta | resumen) --- */
html body .sg-carrito .cart-page {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
html body .sg-carrito .cart-page > * { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }

/* La cesta */
html body .sg-cesta-form { background: transparent !important; border: 0 !important; padding: 0 !important; }
.sg-cesta { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-cesta-form.sg-guardando { opacity: .55; pointer-events: none; transition: opacity var(--sg-t); }

.sg-cesta-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: var(--brand-surface, #fff);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
}
.sg-cesta-foto { display: block; border-radius: var(--sg-radius-sm); overflow: hidden; background: #fff; }
.sg-cesta-foto img { display: block; width: 100%; height: auto; }

.sg-cesta-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body .sg-cesta-nombre {
  color: var(--sg-ink) !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}
html body a.sg-cesta-nombre:hover { color: var(--brand-primary) !important; }
.sg-cesta-opcion { font-size: 13px; color: var(--sg-ink-soft); }
.sg-cesta-opcion b { color: var(--sg-ink); font-weight: 600; }
.sg-cesta-agotado { font-size: 13px; font-weight: 600; color: var(--sg-sale); }
.sg-cesta-unitario { font-size: 13px; color: var(--sg-ink-soft); margin-top: 2px; }
.sg-cesta-unitario del { color: var(--sg-ink-faint); margin-left: 4px; }

.sg-cesta-acciones { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

/* Contador (−) n (+) — mismo dibujo que la ficha (ficha.css §9) */
.sg-contador {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 3px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-pill);
  background: #fff;
}
.sg-contador button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sg-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--sg-t);
}
.sg-contador button:hover { background: rgba(0, 0, 0, .07); }
.sg-contador button:active { background: rgba(0, 0, 0, .13); }
.sg-contador button:disabled { opacity: .3; cursor: default; background: transparent; }
html body .sg-contador input {
  width: 38px;
  height: 32px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--sg-ink);
  -moz-appearance: textfield;
}
.sg-contador input::-webkit-outer-spin-button,
.sg-contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

html body .sg-cesta-quitar {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 13px;
  color: var(--sg-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
html body .sg-cesta-quitar:hover { color: var(--sg-sale); }

.sg-cesta-total { text-align: right; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.sg-cesta-total strong { font-size: 16px; color: var(--sg-ink); }
.sg-cesta-ahorro {
  font-size: 12px;
  font-weight: 700;
  color: var(--sg-ok);
}

/* --- 3. Resumen --- */
html body .sg-carrito .cart-bottom {
  background: var(--brand-surface, #fff) !important;
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius) !important;
  box-shadow: var(--sg-shadow);
  padding: 20px !important;
  position: sticky;
  top: calc(var(--sg-sticky-top, 90px) + 12px);
}
html body .sg-carrito .sg-resumen-titulo {
  font-size: 16px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html body .sg-carrito .sg-resumen-titulo::after { display: none !important; }
html body .sg-carrito .cart-total { display: block !important; width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }
html body .sg-carrito .cart-total .table-responsive { width: 100% !important; border: 0 !important; margin: 0 !important; overflow: visible !important; }
html body .sg-carrito .cart-total .table { width: 100% !important; margin: 0 !important; }
html body .sg-carrito .cart-bottom .row { margin: 0 !important; }
html body .sg-carrito .cart-total .table,
html body .sg-carrito .cart-total .table td {
  border: 0 !important;
  background: transparent !important;
  padding: 6px 0 !important;
  font-size: 14px;
  color: var(--sg-ink-soft);
}
html body .sg-carrito .cart-total .table td:first-child { text-align: left !important; }
html body .sg-carrito .cart-total .table td strong { font-weight: 400; }
html body .sg-carrito .cart-total .table tr.sg-total-final td {
  border-top: 1px solid var(--sg-line) !important;
  padding-top: 12px !important;
  font-size: 18px;
  font-weight: 800;
  color: var(--sg-ink);
}
html body .sg-carrito .cart-total .table tr.sg-total-final td strong { font-weight: 800; }
.sg-resumen-ahorro {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: var(--sg-radius-sm);
  background: rgba(15, 143, 77, .09);
  color: var(--sg-ok);
  font-size: 13px;
  text-align: center;
}

/* Botones: PAGAR manda; «seguir comprando» es un enlace */
html body .sg-carrito .cart-bottom .buttons {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body .sg-carrito .cart-bottom .buttons > div { float: none !important; width: 100% !important; margin: 0 !important; text-align: center; }
html body .sg-carrito .cart-bottom .buttons .pull-right { order: 1; }
html body .sg-carrito .cart-bottom .buttons .pull-left { order: 2; }
html body .sg-carrito .sg-btn-pagar {
  display: flex !important;
  width: 100% !important;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  letter-spacing: .04em;
}
html body .sg-carrito .sg-btn-pagar::before { display: none !important; }
html body .sg-seguir {
  font-size: 13px;
  color: var(--sg-ink-soft) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body .sg-seguir:hover { color: var(--brand-primary) !important; }

/* Cupón y envío: debajo, discretos */
html body .sg-carrito .sg-paneles {
  margin: 18px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid var(--sg-line);
  background: transparent !important;
  width: 100% !important;
}
html body .sg-carrito .sg-paneles > h2.title { display: none !important; }
html body .sg-carrito .sg-paneles > p { display: none; }
html body .sg-carrito .sg-paneles .panel { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body .sg-carrito .sg-paneles .panel-heading { padding: 0 !important; background: transparent !important; border: 0 !important; }
html body .sg-carrito .sg-paneles .panel-title,
html body .sg-carrito .sg-paneles .panel-title a {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--sg-ink) !important;
}
html body .sg-carrito .sg-paneles .panel-title a { display: flex !important; padding: 10px 0 !important; justify-content: space-between; }
/* Vales de regalo: 0 usos en 1.868 pedidos */
html body .sg-carrito .sg-paneles .panel:has(#collapse-voucher) { display: none !important; }

/* --- 4. Carrusel de abajo: título (lo pone carrito.js) --- */
html.route-checkout-cart .sg-sugeridos-titulo {
  margin: 0 0 14px !important;
  text-align: left;
}
/* En el pago, nada que distraiga */
html.route-checkout-checkout .grid-row-bottom-1 { display: none !important; }

/* --- 5. Barra fija de PAGAR (teléfono) --- */
.sg-barra-pago { display: none; }
@media (max-width: 767px) {
  .sg-barra-pago {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--sg-line);
    box-shadow: 0 -6px 18px rgba(16, 24, 40, .1);
    transform: translateY(110%);
    transition: transform var(--sg-t);
  }
  html.sg-barra-on .sg-barra-pago { transform: none; }
  .sg-barra-pago-total { display: flex; flex-direction: column; line-height: 1.15; }
  .sg-barra-pago-total small { font-size: 12px; color: var(--sg-ink-soft); }
  .sg-barra-pago-total strong { font-size: 18px; color: var(--sg-ink); }
  html body .sg-barra-pago .btn { flex: 1; min-height: 48px; display: flex !important; align-items: center; justify-content: center; font-size: 15px !important; }
  /* WhatsApp y «subir» se apartan mientras la barra está a la vista */
  html.sg-barra-on .whatsapp-box,
  html.sg-barra-on .scroll-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* --- 6. Carrito en tablet y teléfono --- */
@media (max-width: 991px) {
  html body .sg-carrito .cart-page { grid-template-columns: minmax(0, 1fr); }
  html body .sg-carrito .cart-bottom { position: static; }
}
@media (max-width: 480px) {
  .sg-cesta-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .sg-cesta-total { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 10px; }
}

/* --- 7. Pago --- */
/* Pasos: color de la marca, no el azul de enlace de fábrica */
html.route-checkout-checkout #accordion .panel-heading .panel-title,
html.route-checkout-checkout #accordion .panel-heading .panel-title a {
  color: var(--sg-ink-faint) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
html.route-checkout-checkout #accordion .panel-heading .panel-title a.accordion-toggle,
html.route-checkout-checkout #accordion .panel-heading .panel-title a[href] { color: var(--brand-primary) !important; }
html.route-checkout-checkout #accordion .panel-heading .panel-title i,
html.route-checkout-checkout #accordion .panel-heading .panel-title::after { color: inherit !important; }

/* Paso 1 */
.sg-login .sg-opcion { margin: 0 0 10px !important; }
.sg-login .sg-opcion label {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px !important;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--sg-t), box-shadow var(--sg-t);
}
.sg-login .sg-opcion label:has(input:checked) {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}
html body .sg-login .sg-opcion input[type="radio"] {
  position: static !important;
  margin: 3px 0 0 !important;
  flex: 0 0 auto;
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
}
.sg-opcion-texto { display: flex; flex-direction: column; gap: 2px; }
.sg-opcion-texto b { font-size: 15px; color: var(--sg-ink); }
.sg-opcion-texto small { font-size: 13px; color: var(--sg-ink-soft); line-height: 1.4; }
/* Journal le pone 68px de padding-bottom a .buttons: era el hueco bajo CONTINUAR */
html body .sg-login .buttons { margin-top: 14px !important; padding-bottom: 0 !important; min-height: 0 !important; height: auto !important; }
html body .sg-login .sg-opcion label { width: 100% !important; box-sizing: border-box; }

.sg-login-abrir { display: none; }

@media (max-width: 767px) {
  html body .sg-login .sg-login-nuevo .buttons .pull-right,
  html body .sg-login .sg-login-nuevo #button-account { float: none !important; width: 100% !important; }
  html body .sg-login #button-account { min-height: 48px; }

  /* «¿Ya tienes cuenta?»: plegado. Un botón de una línea en lugar de media pantalla */
  html body .sg-login .sg-login-cliente { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
  .sg-login .sg-login-cliente > h2.title { display: none !important; }
  .sg-login-abrir {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius-sm);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--sg-ink);
    cursor: pointer;
  }
  .sg-login-abrir span { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; }
  .sg-login-cliente.sg-abierta .sg-login-abrir span { visibility: hidden; }
  .sg-login-campos { display: none; padding: 14px 4px 0; }
  .sg-login-cliente.sg-abierta .sg-login-campos { display: block; }
}

/* ===================================================================
   §122 (2026-11-06) — FORMULARIOS DE LOS PASOS 2 Y 3
   Journal pone etiqueta y campo en renglón (flex con un truco de calc en
   la etiqueta) y el error en negro. Aquí: etiqueta arriba, campo a lo
   ancho, pares lado a lado y error en rojo bajo su campo. Vale para
   guest, register, payment_address, guest_shipping y shipping_address.
   =================================================================== */
html.route-checkout-checkout #accordion .form-group {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
html.route-checkout-checkout #accordion .form-group[style*="none"] { display: none !important; }
html.route-checkout-checkout #accordion .form-group > .control-label {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 0 6px !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--sg-ink) !important;
}
/* Los obligatorios ya no llevan asterisco: lo opcional dice «(opcional)» */
html.route-checkout-checkout #accordion .form-group.required > .control-label::before,
html.route-checkout-checkout #accordion .form-group.required > .control-label::after { display: none !important; }
html.route-checkout-checkout #accordion .form-group > .form-control,
html.route-checkout-checkout #accordion .form-group > select,
html.route-checkout-checkout #accordion .form-group > div {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
}
html.route-checkout-checkout #accordion .form-group .form-control {
  height: 46px !important;
  padding: 0 14px !important;
  background: #fff !important;
  border: 1px solid #cfd5dc !important;
  border-radius: 8px !important;
  font-size: 16px !important;   /* menos de 16 px = el iPhone hace zoom al tocar */
  color: var(--sg-ink) !important;
  box-shadow: none !important;
  transition: border-color var(--sg-t), box-shadow var(--sg-t);
}
html.route-checkout-checkout #accordion .form-group textarea.form-control { height: auto !important; min-height: 90px; padding: 10px 14px !important; }
html.route-checkout-checkout #accordion .form-group .form-control:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent) !important;
  outline: 0 !important;
}
html.route-checkout-checkout #accordion .form-group .form-control::placeholder { color: transparent !important; }

/* Error: rojo, pegado a su campo */
html.route-checkout-checkout #accordion .text-danger {
  display: block;
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sg-sale) !important;
}
html.route-checkout-checkout #accordion .has-error .form-control {
  border-color: var(--sg-sale) !important;
  background: #fff7f8 !important;
}
html.route-checkout-checkout #accordion .has-error > .control-label { color: var(--sg-sale) !important; }

/* Dos columnas dentro de cada bloque */
html.route-checkout-checkout #accordion fieldset {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
html.route-checkout-checkout #accordion fieldset > * { grid-column: 1 / -1; }
html.route-checkout-checkout #accordion fieldset > .form-group { grid-column: auto; }
html.route-checkout-checkout #accordion fieldset > .form-group:has(> [name="address_1"]),
html.route-checkout-checkout #accordion fieldset > .form-group:has(> [name="address_2"]),
html.route-checkout-checkout #accordion fieldset > .form-group:has(> [name="company"]),
html.route-checkout-checkout #accordion fieldset > .form-group.custom-field { grid-column: 1 / -1; }
/* Empresa al final: casi nadie la necesita */
html.route-checkout-checkout #accordion fieldset > .form-group:has(> [name="company"]) { order: 50; }
html.route-checkout-checkout #accordion fieldset > legend {
  grid-column: 1 / -1;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html.route-checkout-checkout #accordion fieldset > legend::after { display: none !important; }

/* «Enviar mi pedido a esta misma dirección» y demás casillas */
html.route-checkout-checkout #accordion .checkbox label {
  display: inline-flex !important;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--sg-ink);
}
html.route-checkout-checkout #accordion .checkbox input[type="checkbox"] {
  position: static !important;
  margin: 0 !important;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
}

@media (max-width: 540px) {
  html.route-checkout-checkout #accordion fieldset { grid-template-columns: minmax(0, 1fr); }
  html.route-checkout-checkout #accordion fieldset > .form-group { grid-column: 1 / -1; }
}

/* ===================================================================
   §123 (2026-11-06) — PASOS 4 «ENVÍO» Y 5 «FORMA DE PAGO»
   Cada opción es una tarjeta (radio | nombre + entrega | precio).
   Marcado en shipping_method.twig y payment_method.twig (§123).
   =================================================================== */
html.route-checkout-checkout .sg-paso-intro { margin: 0 0 14px !important; font-size: 15px; color: var(--sg-ink-soft); }
.sg-opciones { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.sg-pagos { gap: 10px; }
.sg-grupo { display: flex; flex-direction: column; gap: 8px; }
html.route-checkout-checkout .sg-grupo-titulo {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sg-ink-faint) !important;
}
html.route-checkout-checkout .sg-opcion-card { margin: 0 !important; padding: 0 !important; }
html.route-checkout-checkout .sg-opcion-card label {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--sg-t), box-shadow var(--sg-t), background var(--sg-t);
}
html.route-checkout-checkout .sg-opcion-card label:hover { border-color: #aeb6c0; }
html.route-checkout-checkout .sg-opcion-card label:has(input:checked) {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}
html.route-checkout-checkout .sg-opcion-card input[type="radio"] {
  position: static !important;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  accent-color: var(--brand-primary);
}
.sg-opcion-cuerpo { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-opcion-nombre { font-size: 15px; font-weight: 700; color: var(--sg-ink); line-height: 1.3; }
.sg-opcion-detalle { font-size: 13px; color: var(--sg-ink-soft); }
/* Logos que meten algunos módulos de pago en el título */
.sg-opcion-nombre img { max-height: 24px; width: auto; vertical-align: middle; margin-left: 6px; }
.sg-opcion-precio { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: var(--sg-ink); white-space: nowrap; }
.sg-opcion-precio.sg-gratis { color: var(--sg-ok); }

/* Avisos (antes con estilo en línea) */
html.route-checkout-checkout .sg-aviso {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f3d9a4;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #5c4310;
}
html.route-checkout-checkout .sg-aviso > .fa { color: #d97706; margin-top: 3px; }
html.route-checkout-checkout .sg-aviso.sg-aviso-ok { background: #ecf8f0; border-color: #b7e2c4; color: #1d4f2e; }
html.route-checkout-checkout .sg-aviso.sg-aviso-ok > .fa { color: var(--sg-ok); }
/* El script de PayPal/tarjeta usa .toggle(): con display:none en línea manda él */
html.route-checkout-checkout .sg-aviso[style*="display: block"],
html.route-checkout-checkout .sg-aviso[style*="display:block"] { display: flex !important; }

/* Comentario: chico y opcional */
html.route-checkout-checkout .sg-comentario { margin: 0 0 16px; }
html.route-checkout-checkout .sg-comentario label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sg-ink); }
html.route-checkout-checkout .sg-comentario textarea.form-control {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
  background: #fff !important;
  border: 1px solid #cfd5dc !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  resize: vertical;
}
html.route-checkout-checkout .sg-comentario textarea.form-control::placeholder { color: #9aa3ad; }
/* El comentario es UN campo en sesión: si ya salió en «Envío», no repetirlo en «Pago» */
html.route-checkout-checkout #accordion:has(#collapse-shipping-method .sg-comentario) #collapse-payment-method .sg-comentario { display: none; }

/* Casilla de aceptación arriba del botón, legible */
html.route-checkout-checkout .buttons.sg-con-acepto { display: flex !important; flex-direction: column; align-items: flex-end; gap: 12px; }
html.route-checkout-checkout .sg-acepto {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 14px;
  font-weight: 400 !important;
  color: var(--sg-ink);
  cursor: pointer;
}
html.route-checkout-checkout .sg-acepto input[type="checkbox"] { position: static !important; margin: 0 !important; width: 18px; height: 18px; accent-color: var(--brand-primary); }

@media (max-width: 540px) {
  html.route-checkout-checkout .sg-opcion-card label { padding: 12px 14px !important; gap: 12px; }
  .sg-opcion-nombre { font-size: 14px; }
  .sg-opcion-precio { font-size: 15px; }
  html.route-checkout-checkout .buttons.sg-con-acepto { align-items: stretch; }
}
/* Journal da padding-bottom:68px a .buttons (mismo hueco que en el paso 1) */
html.route-checkout-checkout #accordion .buttons { padding-bottom: 0 !important; min-height: 0 !important; }

/* ===================================================================
   §124 (2026-11-06) — PÁGINA DE AGRADECIMIENTO POR EQUIPO
   common/success.twig (rama sg_exito) + carrito_siglo/exitoVista.
   La cabecera va en el color de mando de cada tienda y usa el logo del
   pie, que ya se eligió por contraste sobre fondo oscuro (§51).
   =================================================================== */
html.route-checkout-success .sg-exito { padding-top: 24px; padding-bottom: 32px; }
.sg-exito-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 36px 24px 32px;
  border-radius: 16px;
  background: var(--brand-primary);
  color: var(--brand-on-primary, #fff);
  box-shadow: var(--sg-shadow);
}
/* filete del acento del equipo abajo */
.sg-exito-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--brand-accent);
}
.sg-exito-logo { display: block; width: auto; max-width: 180px; max-height: 96px; margin: 0 auto 14px; }
html body .sg-exito-frase {
  margin: 0 0 6px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit !important;
  opacity: .85;
}
html body .sg-exito-titulo {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-size: clamp(28px, 5vw, 42px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: inherit !important;
  text-transform: none !important;
  background: none !important;
}
html body .sg-exito-titulo::after { display: none !important; }
html body .sg-exito-sub { margin: 0 auto !important; max-width: 560px; font-size: 16px; line-height: 1.5; color: inherit !important; opacity: .95; }
.sg-exito-sub strong { color: inherit; }

.sg-exito-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.sg-exito-card {
  padding: 22px;
  background: var(--brand-surface, #fff);
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  box-shadow: var(--sg-shadow);
}
html body .sg-exito-card h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--sg-ink) !important;
}
html body .sg-exito-card h2::after { display: none !important; }

.sg-exito-productos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-exito-productos li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sg-exito-productos img, .sg-exito-sinfoto { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--sg-line); display: block; }
.sg-exito-productos div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-exito-productos strong { font-size: 14px; color: var(--sg-ink); line-height: 1.3; }
.sg-exito-productos span { font-size: 13px; color: var(--sg-ink-soft); }
.sg-exito-productos b { font-size: 14px; color: var(--sg-ink); white-space: nowrap; }

.sg-exito-datos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sg-line); }
.sg-exito-datos dt { font-size: 13px; font-weight: 600; color: var(--sg-ink-soft); }
.sg-exito-datos dd { margin: 0; font-size: 14px; color: var(--sg-ink); text-align: right; }
.sg-exito-datos .sg-exito-total { font-size: 18px; font-weight: 800; color: var(--sg-ink); padding-top: 8px; border-top: 1px solid var(--sg-line); }

.sg-exito-sigue ol { list-style: none; counter-reset: paso; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.sg-exito-sigue li { counter-increment: paso; position: relative; padding-left: 42px; font-size: 14px; line-height: 1.5; color: var(--sg-ink-soft); }
.sg-exito-sigue li::before {
  content: counter(paso);
  position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-primary); color: var(--brand-on-primary, #fff);
  font-weight: 800; font-size: 14px;
}
.sg-exito-sigue li strong { color: var(--sg-ink); }
.sg-exito-banco { display: block; margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px dashed #cfd5dc; border-radius: 8px; color: var(--sg-ink); font-size: 13px; }
html body .sg-exito-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px;
  border-radius: var(--sg-radius-pill);
  background: #25d366; color: #fff !important;
  font-weight: 700; font-size: 14px; text-decoration: none !important;
}
html body .sg-exito-whatsapp:hover { background: #1fb457; }
.sg-exito-whatsapp .fa { font-size: 20px; }

.sg-exito-botones { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
html body .sg-exito-botones .btn { min-height: 48px; padding: 0 32px !important; display: inline-flex !important; align-items: center; font-size: 15px !important; }
html body .sg-exito-enlace { font-size: 14px; color: var(--sg-ink-soft) !important; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .sg-exito-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-exito-hero { padding: 28px 18px 26px; border-radius: 14px; }
  .sg-exito-logo { max-width: 140px; max-height: 76px; }
  .sg-exito-card { padding: 18px; }
  .sg-exito-botones { flex-direction: column; gap: 14px; }
  html body .sg-exito-botones .btn { width: 100%; justify-content: center; }
}
/* Transferencia: el resto de las instrucciones, plegado */
.sg-exito-banco-mas { margin-top: 8px; font-size: 13px; }
.sg-exito-banco-mas summary { cursor: pointer; color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sg-exito-banco-mas > div { margin-top: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--sg-line); border-radius: 8px; color: var(--sg-ink); line-height: 1.5; }

/* ===================================================================
   §125 (2026-11-06) — CÓDIGO DE SEGUIMIENTO Y «ESTADO DE TU PEDIDO»
   =================================================================== */
/* Recuadro del código en la página de gracias */
.sg-exito-codigo {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 20px; padding: 18px 22px;
  background: var(--brand-surface, #fff);
  border: 2px dashed var(--brand-primary);
  border-radius: 14px;
}
.sg-exito-codigo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-exito-codigo-txt span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-ink-soft); }
.sg-exito-codigo-txt strong { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--brand-primary); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; user-select: all; }
.sg-exito-codigo-txt small { font-size: 13px; color: var(--sg-ink-soft); line-height: 1.4; }
.sg-exito-codigo-botones { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
html body .sg-exito-codigo-botones .btn { min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
html body .sg-exito-copiar {
  min-height: 44px; padding: 0 18px;
  background: #fff; border: 1px solid #cfd5dc; border-radius: var(--sg-radius-pill);
  font-size: 14px; font-weight: 700; color: var(--sg-ink); cursor: pointer;
}
html body .sg-exito-copiar:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
@media (max-width: 767px) {
  .sg-exito-codigo { flex-direction: column; align-items: stretch; text-align: center; padding: 16px; }
  .sg-exito-codigo-txt strong { font-size: 26px; }
}

/* Página «Estado de tu pedido» */
html.route-extension-module-estado_pedido .breadcrumbs { display: none; }
html.route-extension-module-estado_pedido .site-wrapper > h1.page-title { padding-bottom: 20px; }
.sg-estado { padding-top: 24px; padding-bottom: 32px; max-width: 980px; }
.sg-estado-card {
  padding: 22px; margin-bottom: 20px;
  background: var(--brand-surface, #fff);
  border: 1px solid var(--sg-line); border-radius: 14px; box-shadow: var(--sg-shadow);
}
html body .sg-estado-card h2 { margin: 0 0 14px !important; padding: 0 !important; font-size: 18px !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--sg-ink) !important; }
html body .sg-estado-card h2::after { display: none !important; }

/* Formulario */
.sg-estado-form { max-width: 620px; margin-left: auto; margin-right: auto; }
.sg-estado-intro { margin: 0 0 16px; font-size: 16px; color: var(--sg-ink-soft); }
.sg-estado-form label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sg-ink); }
html body .sg-estado-form input[type="text"] {
  width: 100%; height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid #cfd5dc; border-radius: 8px;
  font-size: 16px; color: var(--sg-ink);
}
html body .sg-estado-form input#sg-codigo { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
html body .sg-estado-form input[type="text"]:focus { outline: 0; border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.sg-estado-fila { display: flex; gap: 10px; }
.sg-estado-fila input { flex: 1 1 auto; min-width: 0; }
html body .sg-estado-form .btn { min-height: 48px; padding: 0 24px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.sg-estado-ayuda { margin: 8px 0 0; font-size: 13px; color: var(--sg-ink-soft); }
.sg-estado-alterno { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sg-line); }
.sg-estado-alterno summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--brand-primary); }
.sg-estado-alterno form { margin-top: 14px; }
.sg-estado-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-bottom: 12px; }
.sg-estado-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: #fff1f2; border: 1px solid #f5c2c7; color: #9f1d2b; font-size: 14px; font-weight: 600; }
html body .sg-estado-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; margin-top: 16px; padding: 0 16px;
  border-radius: var(--sg-radius-pill); background: #25d366; color: #fff !important;
  font-weight: 700; font-size: 14px; text-decoration: none !important;
}
html body .sg-estado-whatsapp:hover { background: #1fb457; }
html body .sg-estado-whatsapp-sec { background: transparent; color: #128c4a !important; border: 1px solid #9fdcb8; }
html body .sg-estado-whatsapp-sec:hover { background: #effaf3; }

/* Resultado: estado actual */
.sg-estado-actual { border-top: 6px solid var(--brand-primary); }
.sg-estado-actual.sg-estado-alerta { border-top-color: var(--sg-sale); }
.sg-estado-pedido { margin: 0 0 6px; font-size: 13px; color: var(--sg-ink-soft); }
html body .sg-estado-titulo { margin: 0 0 6px !important; font-size: clamp(24px, 4vw, 32px) !important; color: var(--brand-primary) !important; }
html body .sg-estado-alerta .sg-estado-titulo { color: var(--sg-sale) !important; }
.sg-estado-texto { margin: 0; font-size: 16px; color: var(--sg-ink); }

.sg-estado-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 4px; padding: 0; }
.sg-estado-pasos li { position: relative; text-align: center; font-size: 13px; font-weight: 600; color: var(--sg-ink-faint); padding-top: 34px; }
.sg-estado-pasos li span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid #cfd5dc; z-index: 1;
}
/* línea entre pasos */
.sg-estado-pasos li::before {
  content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #dfe3e8;
}
.sg-estado-pasos li:first-child::before { display: none; }
.sg-estado-pasos li.hecho { color: var(--sg-ink); }
.sg-estado-pasos li.hecho span { background: var(--brand-primary); border-color: var(--brand-primary); }
.sg-estado-pasos li.hecho span::after { content: "\2713"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--brand-on-primary, #fff); font-size: 14px; font-weight: 800; }
.sg-estado-pasos li.hecho::before { background: var(--brand-primary); }
.sg-estado-pasos li.actual { color: var(--brand-primary); font-weight: 800; }
.sg-estado-pasos li.actual span { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 20%, transparent); }

.sg-estado-guias { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
html body .sg-estado-guia {
  display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px;
  padding: 12px 16px; border-radius: 10px;
  background: #fff; border: 1px solid #cfd5dc; text-decoration: none !important;
}
html body .sg-estado-guia:hover { border-color: var(--brand-primary); }
.sg-estado-guia span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sg-ink-soft); }
.sg-estado-guia strong { font-size: 16px; color: var(--sg-ink); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; word-break: break-all; }
.sg-estado-guia em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand-primary); }

.sg-estado-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sg-estado-historial { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #dfe3e8; display: grid; gap: 16px; }
.sg-estado-historial li { position: relative; }
.sg-estado-historial li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-primary); }
.sg-estado-historial li:first-child::before { background: var(--brand-primary); }
.sg-estado-fecha { display: block; font-size: 12px; color: var(--sg-ink-soft); }
.sg-estado-historial strong { font-size: 15px; color: var(--sg-ink); }
.sg-estado-historial p { margin: 6px 0 0; padding: 10px 12px; background: #fff; border: 1px solid var(--sg-line); border-radius: 8px; font-size: 13px; line-height: 1.5; color: var(--sg-ink); overflow-wrap: anywhere; }
.sg-estado-productos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-estado-productos li { display: flex; flex-direction: column; gap: 2px; }
.sg-estado-productos strong { font-size: 14px; color: var(--sg-ink); }
.sg-estado-productos span { font-size: 13px; color: var(--sg-ink-soft); }
.sg-estado-datos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--sg-line); }
.sg-estado-datos dt { font-size: 13px; font-weight: 600; color: var(--sg-ink-soft); }
.sg-estado-datos dd { margin: 0; text-align: right; font-size: 14px; color: var(--sg-ink); }
.sg-estado-otra { text-align: center; margin: 4px 0 0; }
.sg-estado-otra a { font-size: 14px; color: var(--sg-ink-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .sg-estado-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-estado-dos { grid-template-columns: minmax(0, 1fr); }
  .sg-estado-fila { flex-direction: column; }
  html body .sg-estado-form .btn { width: 100%; }
  .sg-estado-pasos li { font-size: 11px; }
  .sg-estado-card { padding: 18px; }
}

/* §128 (2026-11-10) — Leones: el logo de la página de gracias va sobre una placa
   blanca. Sus 5 estrellas son oscuras y sobre el verde no se veían. */
html.store-2 .sg-exito-logo {
  box-sizing: content-box;
  background: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
@media (max-width: 767px) {
  html.store-2 .sg-exito-logo { padding: 10px 16px; border-radius: 14px; }
}

/* ===================================================================
   2026-11-24 — PASO 6 «Confirma tu pedido» en tarjetas (checkout/confirm.twig)
   Antes: la tabla de fábrica con «Modelo» (código de almacén) y celdas grises.
   =================================================================== */
.sg-confirma { display: grid; gap: 14px; margin-bottom: 18px; }
.sg-confirma-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-confirma-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--sg-line, #e3e6ea);
  border-radius: var(--sg-radius, 12px);
}
.sg-confirma-item.sg-sin-foto { grid-template-columns: minmax(0, 1fr) auto; }
.sg-confirma-foto { width: 80px; height: 80px; object-fit: contain; border-radius: var(--sg-radius-sm, 8px); background: #fff; display: block; }
.sg-confirma-info { min-width: 0; }
html body a.sg-confirma-nombre, .sg-confirma-nombre {
  display: block; font-weight: 700; font-size: 15px; line-height: 1.3; color: #111 !important; text-decoration: none;
}
html body a.sg-confirma-nombre:hover { color: var(--brand-primary) !important; }
.sg-confirma-opciones { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: #555; line-height: 1.45; }
.sg-confirma-opciones span { color: #888; }
.sg-confirma-cantidad { margin: 6px 0 0 !important; font-size: 13px; color: #666; }
.sg-confirma-importe { font-weight: 800; font-size: 16px; white-space: nowrap; color: #111; }

.sg-confirma-totales {
  margin: 0;
  padding: 14px 16px;
  background: var(--brand-surface, #f6f7f9);
  border: 1px solid var(--sg-line, #e3e6ea);
  border-radius: var(--sg-radius, 12px);
  display: grid; gap: 6px;
}
.sg-confirma-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: #444; }
.sg-confirma-fila dt { font-weight: 400; margin: 0; }
.sg-confirma-fila dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sg-confirma-fila.sg-confirma-final { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--sg-line, #e3e6ea); color: #111; }
.sg-confirma-fila.sg-confirma-final dt { font-weight: 800; font-size: 16px; }
.sg-confirma-fila.sg-confirma-final dd { font-weight: 800; font-size: 20px; color: var(--brand-primary); }

@media (max-width: 575px) {
  .sg-confirma-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
  .sg-confirma-item.sg-sin-foto { grid-template-columns: minmax(0, 1fr); }
  .sg-confirma-foto { width: 64px; height: 64px; }
  .sg-confirma-importe { grid-column: 2; font-size: 15px; }
  .sg-confirma-item.sg-sin-foto .sg-confirma-importe { grid-column: 1; }
}
