/* =============================================
   CHECKOUT MODERNO - PASTA FRESCA Y PIZZA
   Tema: pfypv3 | PrestaShop 9
   ============================================= */



/* Variables de color (paleta original de la web) */
:root {
  --ck-gold:        #F9C940;
  --ck-gold-dark:   #D6B400;
  --ck-black:       #111111;
  --ck-text:        #232323;
  --ck-text-mid:    #666666;
  --ck-text-light:  #aaaaaa;
  --ck-bg:          #f0f2f5;
  --ck-white:       #ffffff;
  --ck-border:      #e8e8e8;
  --ck-border-soft: #f2f2f2;
  --ck-card-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* ── BODY & WRAPPER ─────────────────────────── */
body#checkout {
  font-family: 'Inter', sans-serif !important;
  background: var(--ck-bg) !important;
}

body#checkout #header {
  background: var(--ck-white);
  border-bottom: 1px solid var(--ck-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

body#checkout #wrapper {
  background: var(--ck-bg);
}

/* ── BARRA DE PROGRESO ──────────────────────── */
body#checkout .checkout-process {
  background: var(--ck-white);
  border-bottom: 2px solid var(--ck-border-soft);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

body#checkout .checkout-step {
  background: var(--ck-white) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#checkout .step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-text);
  cursor: pointer;
}

body#checkout .checkout-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--ck-border);
  background: var(--ck-white);
  color: var(--ck-text-light);
  transition: all 0.3s;
  flex-shrink: 0;
}

body#checkout .checkout-step.-complete .step-number {
  background: var(--ck-black);
  border-color: var(--ck-black);
  color: var(--ck-gold);
}

body#checkout .checkout-step.-current .step-number {
  background: var(--ck-gold);
  border-color: var(--ck-gold);
  color: var(--ck-black);
  box-shadow: 0 0 0 4px rgba(249,201,64,0.2);
  padding: 8px 10px;
}

body#checkout .checkout-step.-unreachable .step-number {
  background: var(--ck-white);
  border-color: var(--ck-border);
  color: var(--ck-text-light);
  padding: 8px 10px;
}

body#checkout .checkout-step.-unreachable .step-title {
  color: var(--ck-text-light);
  font-weight: 400;
}

body#checkout .checkout-step.-current .step-title {
  font-weight: 700;
  color: var(--ck-black);
}

/* Línea separadora entre pasos */
body#checkout .checkout-process .checkout-step + .checkout-step::before {
  content: '';
  display: inline-block;
  width: 50px;
  height: 1px;
  background: var(--ck-border);
  margin: 0 10px;
  flex-shrink: 0;
}

body#checkout .checkout-step.-complete + .checkout-step::before {
  background: var(--ck-black);
}

/* Ocultar el separador nativo si existe */
body#checkout .checkout-process .separator {
  display: none;
}

/* ── LAYOUT PRINCIPAL ───────────────────────── */
body#checkout #content-wrapper,
body#checkout .checkout-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 40px;
  align-items: start;
}

/* ── TARJETAS DE PASO ───────────────────────── */
body#checkout .checkout-step .content {
  background: var(--ck-white);
  border-radius: 12px;
  box-shadow: var(--ck-card-shadow);
  border: 1px solid var(--ck-border);
  margin-bottom: 16px;
  overflow: hidden;
  padding: 0 !important;
}

body#checkout .checkout-step.-current {
  border-radius: 12px;
  overflow: visible;
}

/* Cabecera de cada tarjeta / step */
body#checkout .checkout-step .step-title {
  background: var(--ck-white);
  border-bottom: 1px solid var(--ck-border-soft);
  padding: 18px 22px !important;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--ck-card-shadow);
  border: 1px solid var(--ck-border);
  border-bottom: none;
}

/* Cuerpo del paso */
body#checkout .checkout-step .step-edit,
body#checkout .checkout-step .content .form-fields,
body#checkout .checkout-step .content > div {
  padding: 18px 22px;
}

/* Botón editar/modificar paso */
body#checkout .checkout-step .step-edit {
  background: #f5f5f5;
  border: 1px solid var(--ck-border);
  color: #555555;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

body#checkout .checkout-step .step-edit:hover {
  background: var(--ck-gold);
  border-color: var(--ck-gold);
  color: var(--ck-black);
}

/* Badge "Completado" */
body#checkout .checkout-step.-complete .step-title::after {
  content: '✓ Completado';
  margin-left: auto;
  background: var(--ck-black);
  color: var(--ck-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* Badge "Pendiente" para pasos no alcanzados */
body#checkout .checkout-step.-unreachable .step-title::after {
  content: 'Pendiente';
  margin-left: auto;
  background: #f5f5f5;
  color: var(--ck-text-light);
  border: 1px solid var(--ck-border);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── SELECCIÓN DE DIRECCIONES ───────────────── */
body#checkout .address-item {
  border: 1.5px solid var(--ck-border) !important;
  border-radius: 10px !important;
  padding: 14px !important;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ck-white);
  margin-bottom: 12px;
}

body#checkout .address-item:hover {
  border-color: var(--ck-gold) !important;
  background: #fffdf5;
}

body#checkout .address-item .custom-radio input:checked ~ .address-alias {
  color: #7a6200;
}

body#checkout .address-item:has(input:checked) {
  border-color: var(--ck-gold) !important;
  background: #fffdf0;
}

/* Radio button personalizado */
body#checkout .address-item .custom-radio span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ck-border);
  background: var(--ck-white);
  transition: all 0.2s;
  flex-shrink: 0;
}

body#checkout .address-item .custom-radio input:checked ~ span,
body#checkout .address-item:has(input:checked) .custom-radio span {
  border-color: var(--ck-gold);
  background: var(--ck-gold);
}

/* Alias / título de dirección */
body#checkout .address-alias {
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

/* Grid 2 columnas para las direcciones */
body#checkout .address-selector {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Botones editar/eliminar dirección */
body#checkout .address-footer a {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--ck-border);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  color: #444444;
  margin-top: 10px;
  margin-right: 6px;
}

body#checkout .address-footer a:hover {
  background: var(--ck-gold);
  border-color: var(--ck-gold);
  color: var(--ck-black);
}

body#checkout .address-footer a.delete-address {
  background: #fff5f5;
  color: #cc3333;
  border-color: #ffd5d5;
}

body#checkout .address-footer a.delete-address:hover {
  background: #ffe0e0;
  border-color: #ffbbbb;
}

/* Botón añadir nueva dirección */
body#checkout .add-address a {
  border: 1.5px dashed var(--ck-border) !important;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ck-text-light);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 80px;
  background: var(--ck-white);
}

body#checkout .add-address a:hover {
  border-color: var(--ck-gold) !important;
  color: #7a6200;
  background: #fffdf0;
}

/* ── ALERTA DE DIRECCIÓN INCOMPLETA ─────────── */
body#checkout .alert-warning,
body#checkout .alert.alert-warning {
  background: #fffbf0 !important;
  border: 1px solid var(--ck-gold) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13px;
  color: #7a6200 !important;
  margin: 0 0 12px 0;
}

/* ── ALERTA DE ERROR (falta método de pago / condiciones) ── */
body#checkout .alert-danger,
body#checkout .alert.alert-danger {
  background: #fdecec !important;
  border: 1px solid #e0a3a3 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 13px;
  color: #8a1f1f !important;
  margin: 16px 0 0 0;
}
body#checkout .alert-danger a,
body#checkout .alert.alert-danger a {
  color: #8a1f1f !important;
  font-weight: 700;
  text-decoration: underline;
}

/* ── BOTONES PRINCIPALES ────────────────────── */
body#checkout .btn-primary,
body#checkout button.continue,
body#checkout .checkout-step .continue {
  background: var(--ck-gold) !important;
  color: var(--ck-black) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.25s !important;
  font-family: 'Inter', sans-serif !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body#checkout .btn-primary:hover,
body#checkout button.continue:hover {
  background: var(--ck-gold-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,201,64,0.35) !important;
}

/* ── RESUMEN DEL PEDIDO (columna derecha) ───── */
body#checkout #js-checkout-summary,
body#checkout .checkout-summary {
  background: var(--ck-white);
  border-radius: 12px;
  box-shadow: var(--ck-card-shadow);
  border: 1px solid var(--ck-border);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

/* Cabecera del resumen */
body#checkout .cart-summary-products,
body#checkout .block-summary > .cart-summary-top {
  background: var(--ck-white);
  padding: 18px 22px;
  color: var(--ck-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body#checkout .cart-summary-products .summary-label,
body#checkout .cart-summary-top .summary-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-white);
}

body#checkout .cart-summary-products .cart-quantity,
body#checkout .summary-quantity {
  background: var(--ck-gold);
  color: var(--ck-black);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Ítem de producto en el resumen */
body#checkout .cart-overview .product-line-grid {
  padding: 16px 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--ck-border-soft);
}

body#checkout .cart-overview .product-image img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--ck-border);
}

body#checkout .cart-overview .product-line-info .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-black);
  line-height: 1.4;
}

/* Enlace "ver detalles" */
body#checkout .show-details {
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ck-gold);
  cursor: pointer;
  border-bottom: 1px solid var(--ck-border-soft);
  font-weight: 600;
  transition: background 0.2s;
  letter-spacing: 0.2px;
}

body#checkout .show-details:hover {
  background: #fffdf0;
}

/* Filas de precios */
body#checkout .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 22px;
  font-size: 13px;
  color: var(--ck-text-mid);
}

body#checkout .cart-summary-line.cart-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--ck-black);
  padding: 14px 22px 8px;
  margin-top: 8px;
  border-top: 1.5px solid var(--ck-border-soft);
}

body#checkout .cart-summary-line .value {
  font-weight: 600;
}

body#checkout .cart-summary-line.cart-total .value {
  font-weight: 700;
}

/* ── ENLACES GENERALES ──────────────────────── */
body#checkout a {
  color: var(--ck-gold);
  transition: color 0.2s;
}

body#checkout a:hover {
  color: var(--ck-gold-dark);
}

/* ── INPUTS Y FORMULARIOS ───────────────────── */
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="tel"],
body#checkout select,
body#checkout textarea {
  border: 1.5px solid var(--ck-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.2s !important;
  width: 100%;
}

body#checkout input[type="text"]:focus,
body#checkout input[type="email"]:focus,
body#checkout input[type="tel"]:focus,
body#checkout select:focus,
body#checkout textarea:focus {
  border-color: var(--ck-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(249,201,64,0.15) !important;
}

/* ── MÉTODOS DE PAGO ──────────────────────────
   (superseded by the .lcdc-pm-* card design further below —
   kept disabled here on purpose, do not re-enable) ── */

/* ── MÉTODOS DE ENVÍO ───────────────────────── */
body#checkout .lcdc-ship-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body#checkout .lcdc-ship-option {
  border: 2px solid var(--ck-border);
  border-radius: 12px;
  background: var(--ck-white);
  transition: border-color .15s, background .15s, box-shadow .15s;
  overflow: hidden;
}

body#checkout .lcdc-ship-option:hover {
  border-color: var(--ck-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body#checkout .lcdc-ship-option.selected,
body#checkout .lcdc-ship-option:has(input:checked) {
  border-color: var(--ck-gold-dark);
  background: #fff6d9;
  box-shadow: 0 4px 16px rgba(249, 201, 64, 0.35);
  padding: 20px;
}

body#checkout section.checkout-step .delivery-option {
  background: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

body#checkout .lcdc-ship-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  padding: 18px 20px;
  margin: 0 !important;
  cursor: pointer;
}

body#checkout .lcdc-ship-radio { float: none !important; position: static !important; display: inline-flex !important; flex-shrink: 0; width: 20px; height: 20px; }
body#checkout .lcdc-ship-radio input[type="radio"] { display: none !important; }
body#checkout .lcdc-ship-radio > span {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--ck-border);
  background: var(--ck-white);
  display: block;
  position: relative;
  left: 0;
  top: 0;
}
body#checkout .lcdc-ship-option.selected .lcdc-ship-radio > span,
body#checkout .lcdc-ship-option:has(input:checked) .lcdc-ship-radio > span {
  border-color: var(--ck-gold-dark);
  background: var(--ck-gold);
}
body#checkout .lcdc-ship-option.selected .lcdc-ship-radio > span::after,
body#checkout .lcdc-ship-option:has(input:checked) .lcdc-ship-radio > span::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ck-black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body#checkout .lcdc-ship-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
body#checkout .lcdc-ship-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

body#checkout .lcdc-ship-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
body#checkout .lcdc-ship-option .carrier-name { font-size: 15px; font-weight: 700; color: var(--ck-text); }
body#checkout .lcdc-ship-desc { font-size: 12.5px; color: var(--ck-text-mid); line-height: 1.4; }
body#checkout .lcdc-ship-option .carrier-delay { font-size: 12px; color: var(--ck-text-light); font-weight: 600; }
body#checkout .lcdc-ship-option .carrier-price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-black);
  white-space: nowrap;
}

body#checkout .carrier-extra-content:not([style*="display:none"]):not([style*="display: none"]) {
  padding: 0 18px 14px 56px;
  margin: 0 !important;
}

/* ── COMENTARIO DEL PEDIDO — destacado ───────── */
body#checkout .lcdc-ship-comment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  background: #fffaf0;
  border: 1.5px dashed var(--ck-gold);
  border-radius: 10px;
}
body#checkout .lcdc-ship-comment__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ck-gold);
  color: var(--ck-black);
  display: flex;
  align-items: center;
  justify-content: center;
}
body#checkout .lcdc-ship-comment__icon .material-icons { font-size: 20px; }
body#checkout .lcdc-ship-comment__body { flex: 1; min-width: 0; }
body#checkout .lcdc-ship-comment__body label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ck-text);
  margin-bottom: 8px;
}
body#checkout .lcdc-ship-comment__body textarea {
  width: 100%;
  border: 1.5px solid var(--ck-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-family: 'Inter', sans-serif !important;
  resize: vertical;
  background: var(--ck-white);
}
body#checkout .lcdc-ship-comment__body textarea:focus {
  border-color: var(--ck-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(249, 201, 64, 0.15) !important;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 992px) {
  body#checkout #content-wrapper,
  body#checkout .checkout-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 20px auto;
  }

  body#checkout .address-selector {
    grid-template-columns: 1fr !important;
  }

  body#checkout .checkout-process {
    padding: 0 20px;
    overflow-x: auto;
  }

  body#checkout #js-checkout-summary {
    position: static;
  }
}/* ── RESUMEN PEDIDO: ESTRUCTURA ─────────────── */
body#checkout #js-checkout-summary {
  background: var(--ck-white);
  border-radius: 12px;
  box-shadow: var(--ck-card-shadow);
  border: 1px solid var(--ck-border);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

/* Cabecera negra */
body#checkout .mck-summary-header {
  background: var(--ck-white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body#checkout .mck-summary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ck-white);
}

body#checkout .mck-summary-items-badge {
  background: var(--ck-gold);
  color: var(--ck-black);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Lista de productos */
body#checkout .mck-product-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Línea de producto */
body#checkout .mck-product-item {
  padding: 14px 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--ck-border-soft);
}

body#checkout .mck-product-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ck-border);
  flex-shrink: 0;
  background: #f5f5f5;
}

body#checkout .mck-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body#checkout .mck-product-info {
  flex: 1;
  min-width: 0;
}

body#checkout .mck-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-black);
  line-height: 1.4;
}

body#checkout .mck-product-name a {
  color: var(--ck-black);
  text-decoration: none;
}

body#checkout .mck-product-name a:hover {
  color: var(--ck-gold-dark);
}

body#checkout .mck-product-attr {
  font-size: 11px;
  color: var(--ck-text-light);
  margin-top: 2px;
}

body#checkout .mck-product-qty {
  font-size: 12px;
  color: var(--ck-text-light);
  margin-top: 4px;
  font-weight: 500;
}

body#checkout .mck-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ck-black);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filas de precios */
body#checkout .mck-price-rows {
  padding: 14px 22px 8px;
}

body#checkout .mck-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ck-text-mid);
}

body#checkout .mck-tax-row {
  font-size: 12px;
  color: var(--ck-text-light);
}

body#checkout .mck-price-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--ck-black);
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1.5px solid var(--ck-border-soft);
}

body#checkout .mck-tax-note {
  font-size: 11px;
  color: var(--ck-text-light);
  text-align: right;
  padding-bottom: 14px;
}

/* CTA / nota seguridad */
body#checkout .mck-cta-wrap {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--ck-border-soft);
}

body#checkout .mck-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ck-text-light);
  font-weight: 500;
}
body#checkout .mck-pay-methods {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--ck-border-soft);
}

body#checkout .mck-pay-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ck-text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-align: center;
}

body#checkout .mck-pay-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

body#checkout .mck-pay-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

body#checkout .mck-pay-logo:hover {
  opacity: 1;
}

/* ── FIX: Picos blancos en sección Direcciones ── */
body#checkout .checkout-step .step-content,
body#checkout .checkout-step .content,
body#checkout .checkout-step > div:not(.step-title) {
  border-radius: 0 0 12px 12px !important;
  overflow: hidden !important;
}



body#checkout .address-item .custom-radio input[type="radio"]:checked {
  border-color: var(--ck-gold) !important;
  background: var(--ck-gold) !important;
}

body#checkout .address-item .custom-radio input[type="radio"]:checked::after {
  content: '' !important;
  display: block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  margin: auto !important;
}

/* Ocultar el span custom que genera PrestaShop (ya usamos el input directamente) */
body#checkout .address-item .custom-radio span.color-2,
body#checkout .address-item .custom-radio .ps-shown-by-js {
  display: none !important;
}
/* ── FIX PICOS: quitar shadow del step-title que genera el pico ── */
body#checkout .checkout-step .step-title.h3 {
  box-shadow: none !important;
  border: none !important;
  border-bottom: 1px solid #f2f2f2 !important;
}

body#checkout .checkout-step .content {
  border-radius: 0 0 12px 12px !important;
  margin-bottom: 0px !important;
}

body#checkout .checkout-step {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #ececec !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07) !important;
  margin-bottom: 16px !important;
}


/* Quitar cualquier ::after previo del span */
body#checkout .address-item .custom-radio > span::after {
  display: none !important;
}

/* Cuando está seleccionado */
body#checkout .address-item:has(input:checked) .custom-radio > span {
  border-color: var(--ck-gold) !important;
  background: var(--ck-gold) !important;
}

/* Punto negro central cuando seleccionado */
body#checkout .address-item:has(input:checked) .custom-radio > span::after {
  display: block !important;
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* ── FIX RADIO: ocultar input nativo, mostrar solo el span visual ── */
body#checkout .address-item .custom-radio input[type="radio"] {
  display: none !important;
}

body#checkout .address-item .custom-radio {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  position: relative !important;
  opacity: 1 !important;
}

body#checkout .address-item .custom-radio > span {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #cccccc !important;
  background: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  position: relative !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

body#checkout .address-item .custom-radio > span::after {
  display: none !important;
}

body#checkout .address-item:has(input:checked) .custom-radio > span {
  border-color: var(--ck-gold) !important;
  background: var(--ck-gold) !important;
  left: 0;
  top: 0;
}

body#checkout .address-item:has(input:checked) .custom-radio > span::after {
  display: block !important;
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #111111 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
body#checkout #header .header-nav {
    position: static !important;
    height: auto !important;
    pointer-events: auto !important;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 13px;
}

body#checkout #header .header-nav > .container {
    display: block !important;
    justify-content: flex-start !important;
    background: transparent !important;
}

body#checkout #header .header-nav > .container > .row {
    display: flex !important;
    width: 100%;
    margin: 0 -15px;
}

body#checkout #header .header-nav .logo {
    max-height: 80px !important;
    width: auto !important;
}
body#checkout section.checkout-step .form-footer {
	text-align: center;
	float: initial;
}
ul.nav.nav-inline.my-2 {
    margin: 25px 25px 0;
}
.delivery-options-list img {
    max-width: 80px;
}
@media (min-width: 768px) {
    .d-md-none         { display: none !important; }
    .d-md-block        { display: block !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-flex         { display: flex !important; }
}

/* ============================================
   CARRITO — Rediseño elegante minimalista
   La Casa del Chef · PrestaShop 9
   ============================================ */

/* Fondo de página del carrito */
body#cart {
  background: #f5f5f5 !important;
}

/* === PANEL IZQUIERDO — Lista de productos === */

.cart-grid-body .card {
  border: none !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
  overflow: hidden !important;
  background: #fff !important;
}

.cart-item {
  padding: 20px 24px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  transition: background 0.2s !important;
}
.cart-item:hover { background: #fafafa !important; }
.cart-item:last-child { border-bottom: none !important; }

/* Imagen del producto */
.product-line-grid-left img {
  border-radius: 10px !important;
  background: #f5f5f5 !important;
  padding: 6px !important;
  object-fit: contain !important;
}

/* Nombre del producto */
.product-line-info .label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2d2d2d !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}
.product-line-info .label:hover { color: #3a8580 !important; }

/* Precio tachado */
.regular-price {
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  color: #aaa !important;
  text-decoration: line-through !important;
}

/* Precio actual */
.product-line-info .price {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #FF8C00 !important;
}

/* Badge descuento */
.discount-percentage {
  background: #FF8C00 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  letter-spacing: 0.5px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

/* Control de cantidad */
.bootstrap-touchspin {
  border: 1.5px solid #e8e8e8 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.bootstrap-touchspin .btn {
  background: #fafafa !important;
  border: none !important;
  border-radius: 0 !important;
  color: #666 !important;
  transition: background 0.15s, color 0.15s !important;
  box-shadow: none !important;
}
.bootstrap-touchspin .btn:hover {
  background: rgba(32, 178, 170, 0.08) !important;
  color: #3a8580 !important;
}
.input-group.bootstrap-touchspin input {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: none !important;
  border-left: 1.5px solid #e8e8e8 !important;
  border-right: 1.5px solid #e8e8e8 !important;
  box-shadow: none !important;
  text-align: center !important;
  background: #fff !important;
  color: #2d2d2d !important;
}

/* Precio total de línea */
.product-line-grid-right .price {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #2d2d2d !important;
}

/* Botón eliminar */
.cart-item .remove-from-cart {
  color: #aaa !important;
  background: none !important;
  border: none !important;
  transition: color 0.15s !important;
}
.cart-item .remove-from-cart:hover { color: #e53935 !important; }


/* === PANEL DERECHO — Resumen === */

.cart-grid-right .cart-summary {
  border: none !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
  overflow: hidden !important;
  background: #fff !important;
  font-family: 'Poppins', sans-serif !important;
}

.cart-grid-right .card-block { padding: 0 !important; }

/* Filas de resumen */
.cart-grid-right .cart-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 11px 22px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  font-size: 13px !important;
}
.cart-grid-right .cart-summary-line:last-child { border-bottom: none !important; }

.cart-grid-right .cart-summary-line .label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #666 !important;
  padding: 0 !important;
  float: none !important;
  text-align: left !important;
}
.cart-grid-right .cart-summary-line .value {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2d2d2d !important;
  float: none !important;
  text-align: right !important;
}

/* Fila Total sin IVA (secundaria) */
.cart-grid-right .cart-summary-line.cart-total {
  padding: 8px 22px !important;
  background: transparent !important;
  border-top: none !important;
}
.cart-grid-right .cart-summary-line.cart-total .label,
.cart-grid-right .cart-summary-line.cart-total .value {
  font-size: 11px !important;
  color: #aaa !important;
}

/* Fila TOTAL IVA INCLUIDO (protagonista) */
.cart-grid-right .cart-summary-line.cart-grand-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 22px !important;
  background: #f0faf9 !important;
  border-top: 2px solid #20B2AA !important;
}
.cart-grid-right .cart-summary-line.cart-grand-total .label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #3a8580 !important;
}
.cart-grid-right .cart-summary-line.cart-grand-total .value {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #3a8580 !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
}

/* Área del botón de checkout */
.cart-grid-right .checkout.cart-detailed-actions {
  padding: 18px 22px 8px !important;
  background: #fff !important;
  border-top: 1px solid #e8e8e8 !important;
}

/* Botón Finalizar Compra */
.cart-grid-right a.btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #4a9e99 0%, #3a8580 100%) !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 15px 24px !important;
  width: 100% !important;
  transition: box-shadow 0.2s, transform 0.15s !important;
  box-shadow: 0 3px 12px rgba(58, 133, 128, 0.25) !important;
  text-decoration: none !important;
}
.cart-grid-right a.btn-primary:hover {
  background: linear-gradient(135deg, #5aaeaa 0%, #4a9590 100%) !important;
  box-shadow: 0 5px 18px rgba(58, 133, 128, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Badge seguridad bajo el botón */
.cart-grid-right .checkout.cart-detailed-actions::after {
  content: "🔒  Pago 100% seguro y cifrado";
  display: block !important;
  text-align: center !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  color: #aaa !important;
  margin-top: 10px !important;
  padding-bottom: 4px !important;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .cart-grid-right { order: -1 !important; }
  .cart-item { padding: 16px !important; }
}
@media (max-width: 576px) {
  .cart-grid-right .cart-summary-line.cart-grand-total .value {
    font-size: 22px !important;
  }
}

/* ============================================
   BOTÓN "CONTINUAR" FIJO ABAJO DE LA PANTALLA
   ============================================ */
body#checkout {
  padding-bottom: 90px;
}

body#checkout .checkout-step.-current .continue {
  position: fixed !important;
  bottom: 16px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 350px !important;
  max-width: 90% !important;
  z-index: 1030 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   PASO DE PAGO — selector de método destacado
   ============================================ */
body#checkout .lcdc-pm-list { display: flex; flex-direction: column; gap: 12px; }

body#checkout .lcdc-pm {
  border: 2px solid var(--ck-border);
  border-radius: 12px;
  background: var(--ck-white);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}

body#checkout .lcdc-pm:hover {
  border-color: var(--ck-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body#checkout .lcdc-pm.selected,
body#checkout .lcdc-pm:has(input:checked) {
  border-color: var(--ck-gold-dark);
  background: #fff6d9;
  box-shadow: 0 4px 16px rgba(249, 201, 64, 0.35);
}

body#checkout .lcdc-pm-row {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  margin: 0 !important;
  cursor: pointer;
}

body#checkout .lcdc-pm-radio {
  position: static !important;
  float: none !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
body#checkout .lcdc-pm-radio input[type="radio"] { display: none !important; }
body#checkout .lcdc-pm-radio > span {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--ck-border);
  background: var(--ck-white);
  display: block;
  position: relative;
  left: 0px;
  top: 0px;
}
body#checkout .lcdc-pm.selected .lcdc-pm-radio > span,
body#checkout .lcdc-pm:has(input:checked) .lcdc-pm-radio > span {
  border-color: var(--ck-gold-dark);
  background: var(--ck-gold);
}
body#checkout .lcdc-pm.selected .lcdc-pm-radio > span::after,
body#checkout .lcdc-pm:has(input:checked) .lcdc-pm-radio > span::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ck-black);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body#checkout .lcdc-pm-label {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
}

body#checkout .lcdc-pm-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
  width: 100%;
}

body#checkout .lcdc-pm-title { font-size: 16px; font-weight: 700; color: var(--ck-text); }

body#checkout .lcdc-pm-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: var(--ck-black);
  color: var(--ck-gold);
  padding: 4px 10px;
  border-radius: 20px;
}

body#checkout .lcdc-pm-logo { height: 22px; width: auto; margin-left: auto; }

body#checkout .lcdc-pm-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ck-text-mid);
  line-height: 1.5;
  max-width: 56ch;
}

body#checkout .lcdc-pm-details {
  margin: 0 18px 16px !important;
  padding-top: 14px;
  border-top: 1px dashed var(--ck-border);
  font-size: 13px;
  color: var(--ck-text-mid);
  line-height: 1.6;
}

body#checkout .lcdc-pm-form:not(.ps-hidden) { padding: 0 18px 16px; }
body#checkout .lcdc-pm-form.ps-hidden { display: none; }

/* ============================================
   REVISAR PEDIDO ANTES DE PAGAR
   (franja diferenciada dentro de la misma tarjeta "4. Pago")
   ============================================ */
body#checkout #order-summary-content.lcdc-review {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 28px 0 0 !important;
  padding: 24px !important;
  background: #fafafa;
  border-top: 2px solid var(--ck-border-soft);
  border-radius: 0 0 10px 10px;
}

body#checkout .lcdc-review__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--ck-black);
}

body#checkout .lcdc-review__block { margin-bottom: 24px; }
body#checkout .lcdc-review__block:last-child { margin-bottom: 0; }

body#checkout .lcdc-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

body#checkout .lcdc-review__head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ck-text-light);
}

body#checkout .lcdc-edit-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ck-text-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body#checkout .lcdc-edit-link:hover { color: var(--ck-black); }
body#checkout .lcdc-edit-link .material-icons { font-size: 15px; }

body#checkout .lcdc-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  body#checkout .lcdc-addr-grid { grid-template-columns: 1fr; }
}

body#checkout .lcdc-addr-card {
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--ck-white);
  box-shadow: var(--ck-card-shadow);
}
body#checkout .lcdc-addr-card__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ck-text-light);
  margin-bottom: 6px;
}
body#checkout .lcdc-addr-card__text { font-size: 13px; line-height: 1.6; color: var(--ck-text); }

body#checkout .lcdc-carrier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--ck-white);
  box-shadow: var(--ck-card-shadow);
}
body#checkout .lcdc-carrier-row__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
body#checkout .lcdc-carrier-row__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
body#checkout .lcdc-carrier-row__info { display: flex; flex-direction: column; gap: 2px; }
body#checkout .lcdc-carrier-row .carrier-name { font-size: 13.5px; font-weight: 600; }
body#checkout .lcdc-carrier-row .carrier-delay { font-size: 12px; color: var(--ck-text-mid); }
body#checkout .lcdc-carrier-row__price { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--ck-black); }

body#checkout .lcdc-review__items {
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  padding: 16px 18px 4px;
  box-shadow: var(--ck-card-shadow);
}
body#checkout .lcdc-review__items .oc2-label { display: none; }
body#checkout .lcdc-review__items .oc2-item:first-child { padding-top: 0; }

/* ============================================
   TÉRMINOS Y CONDICIONES DEL PEDIDO
   ============================================ */
body#checkout #conditions-to-approve {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ck-border-soft);
}
body#checkout #conditions-to-approve ul { list-style: none; margin: 0; padding: 0; }
body#checkout #conditions-to-approve li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ck-text-mid);
}
body#checkout #conditions-to-approve .custom-checkbox { flex-shrink: 0; margin-top: 1px; }
body#checkout #conditions-to-approve .condition-label { flex: 1; }
body#checkout #conditions-to-approve label a { color: var(--ck-text); font-weight: 600; }
