/* Keeps FOODYA look; minimal additions */
.foodya-step3-legal-clean .foodya-step3-body{padding: 14px 18px 18px 18px;}
.foodya-step3-legal-clean .foodya-step3-rows{margin-top:10px;}

/* Per-diner breakdown (may scroll) */
.foodya-step3-legal-clean .foodya-step3-diners{
  margin-top:10px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  max-height:320px;
  overflow:auto;
}
.foodya-step3-legal-clean .foodya-step3-diner{
  padding:10px 12px;
  border-top:1px solid #f1f5f9;
}
.foodya-step3-legal-clean .foodya-step3-diner:first-child{border-top:0;}
.foodya-step3-legal-clean .foodya-step3-diner-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
  padding-bottom:6px;
  margin-bottom:6px;
  border-bottom:1px dashed #e5e7eb;
}
.foodya-step3-legal-clean .foodya-step3-diner-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 0;
  font-size:13px;
}
.foodya-step3-legal-clean .foodya-step3-diner-line.strong{font-weight:800;}
.foodya-step3-legal-clean .foodya-step3-sep{height:10px;}
.foodya-step3-legal-clean .foodya-step3-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  border-top:1px dashed #e5e7eb;
  font-size:14px;
}
.foodya-step3-legal-clean .foodya-step3-row:first-child{border-top:0;}
.foodya-step3-legal-clean .foodya-step3-row.total{
  font-weight:800;
}
.foodya-step3-legal-clean .foodya-step3-note{
  margin-top:10px;
  font-size:12px;
  color:#6b7280;
  line-height:1.35;
}
.foodya-step3-legal-clean .foodya-step3-note.warn{
  color:#b45309;
}
.foodya-step3-legal-clean .foodya-step3-skeleton{
  font-size:13px; color:#6b7280; padding:10px 0;
}
.foodya-step3-legal-clean .foodya-step3-mode{
  margin-top:8px;
  border:1px dashed #e5e7eb;
  border-radius:12px;
  padding:12px;
}
.foodya-step3-legal-clean .foodya-step3-mode-title{
  font-weight:700;
  margin-bottom:10px;
}
.foodya-step3-legal-clean .foodya-step3-mode-buttons{
  display:flex; gap:10px;
}
.foodya-step3-legal-clean .foodya-step3-btn{
  flex:1;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 10px;
  background:#fff;
  font-weight:700;
  cursor:pointer;
}
.foodya-step3-legal-clean .foodya-step3-btn.active{
  border-color:#ff6a00;
}
#foodya-btn-finish.disabled{opacity:.6; pointer-events:none;}

.foodya-step3-bizum{margin-top:12px;}
.foodya-step3-bizum .foodya-phone-input{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:12px;}

.foodya-step3-minbox{margin-top:12px;padding:12px;border:1px dashed #e5e7eb;border-radius:12px;background:#fafafa;}
.foodya-step3-minbox-title{font-weight:600;margin-bottom:6px;}
.foodya-step3-minbox-sub{font-size:12px;opacity:.75;margin-bottom:8px;}

.foodya-step3-minpanel{
  margin-top:12px;
  border:1px solid #f0caa6;
  background:#fff7ef;
  border-radius:14px;
  padding:12px 12px;
}
.foodya-step3-minpanel-title{font-weight:700; margin-bottom:6px;}
.foodya-step3-minpanel-text{font-size:13px; opacity:0.85; margin-bottom:8px; line-height:1.25;}
.foodya-step3-minpanel-list{margin:0 0 10px 16px; padding:0;}
.foodya-step3-minpanel-list li{margin:4px 0; font-size:13px;}
.foodya-step3-minpanel-btn{
  display:block;
  width:100%;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  background:#ffefe0;
}
.foodya-pulse{
  animation: foodyaPulse 1.2s ease-in-out 0s 1;
}
@keyframes foodyaPulse{
  0%{transform:scale(1); opacity:1;}
  50%{transform:scale(1.12); opacity:1;}
  100%{transform:scale(1); opacity:1;}
}
.foodya-step3-minbox-btn{
  margin-top:10px;
  width:100%;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  background:#ffefe0;
}
.foodya-pulse{animation:foodyaPulse 1.2s ease-in-out 0s 1;}
@keyframes foodyaPulse{0%{transform:scale(1);}50%{transform:scale(1.08);}100%{transform:scale(1);}}
.foodya-step3-btn.blocked{opacity:0.6;}

/* Split: pedidos por comensal */
.foodya-step3-split-title{
  margin-top:12px;
  font-weight:700;
  font-size:13px;
}
.foodya-step3-guest{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}
.foodya-step3-guest-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  margin-bottom:8px;
  border-bottom:1px dashed #e5e7eb;
}
.foodya-step3-guest-name{
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
}
.foodya-step3-guest-order{
  font-size:12px;
  color:#6b7280;
  white-space:nowrap;
}


/* FOODYA Step3 1.7.4 — split no permitido para el método seleccionado */
.foodya-step3-note.method-split-note{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:14px;
  line-height:1.4;
  font-weight:700;
}


/* 1.7.7 · modalidad de pago obligatoria, solo cuando hay dos opciones reales */
html.foodya-paymode-gate-open{overflow:hidden!important}
.foodya-paymode-gate[hidden]{display:none!important}
.foodya-paymode-gate{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.foodya-paymode-gate-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.foodya-paymode-gate-card{
  position:relative;
  z-index:1;
  width:min(520px,100%);
  padding:20px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 26px 80px rgba(15,23,42,.28);
}
.foodya-paymode-gate-kicker{
  color:#f97316;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.foodya-paymode-gate-title{
  margin-top:6px;
  color:#111827;
  font-size:27px;
  line-height:1.08;
  font-weight:1000;
  letter-spacing:-.03em;
}
.foodya-paymode-gate-sub{
  margin-top:7px;
  color:#64748b;
  font-size:14px;
  line-height:1.4;
}
.foodya-paymode-gate-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.foodya-paymode-choice{
  min-height:112px;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:17px;
  background:#fff;
  color:#111827;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .1s ease;
}
.foodya-paymode-choice:hover{
  border-color:#fb923c;
  box-shadow:0 8px 24px rgba(249,115,22,.12);
}
.foodya-paymode-choice:active{transform:scale(.985)}
.foodya-paymode-choice strong{
  display:block;
  font-size:16px;
  font-weight:1000;
}
.foodya-paymode-choice span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
@media(max-width:620px){
  .foodya-paymode-gate{align-items:flex-end;padding:0}
  .foodya-paymode-gate-card{
    width:100%;
    border-radius:26px 26px 0 0;
    padding:20px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .foodya-paymode-gate-title{font-size:25px}
  .foodya-paymode-gate-actions{grid-template-columns:1fr;gap:8px}
  .foodya-paymode-choice{min-height:82px;padding:14px 15px}
}

.fy-payment-summary{margin-bottom:16px}
.fy-payment-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px}
.fy-payment-summary button{font:inherit;border:0;color:#c2410c;background:transparent;min-height:44px;padding:8px;cursor:pointer;text-decoration:underline}
.fy-payment-message:empty{display:none}
.fy-payment-message{margin-top:8px;line-height:1.5;color:#9a3412;background:#fff7ed;border-radius:12px;padding:12px;font-size:14px}
.fy-payment-message button{display:inline-block;font-size:14px;font-weight:700}
.foodya-step3-mode-title:empty{display:none}
.foodya-step3-mode-buttons{display:flex;gap:8px;flex-wrap:wrap}
.foodya-step3-mode-buttons .foodya-step3-btn{flex:1;min-height:46px;line-height:1.3}
.foodya-step3-btn:disabled{opacity:.5;cursor:default}
.fy-payment-summary button:focus-visible{outline:3px solid #fed7aa;border-radius:8px}

.foodya-step3-legal-clean .foodya-step3-guest-head{border:0;margin:0;padding:0;align-items:center;font-size:18px}
.foodya-step3-legal-clean .foodya-step3-guest-name{font-size:16px;text-transform:none;letter-spacing:0}
.foodya-step3-legal-clean .fy-payment-details{margin-top:8px}
.foodya-step3-legal-clean .fy-payment-details summary{font-size:13px;color:#64748b;cursor:pointer;padding:8px 0;min-height:24px}
.foodya-step3-legal-clean .fy-payment-details[open] summary{margin-bottom:4px}

.foodya-step3-legal-clean .fy-payment-details[open] .foodya-step3-row.fyckp-tax-detail{display:flex!important}

/* 1.8.1: full available width and readable, touch-friendly checkout. */
html body.foodya-checkout-page #foodya-checkout-wrapper{box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:none!important;position:relative;left:auto!important;transform:none!important;margin:20px 0 120px calc(50% - 50vw + 8px)!important;padding:0 0 40px!important;font-family:inherit!important}
body.foodya-checkout-page .foodya-checkout-card{padding:18px 16px!important}
body.foodya-checkout-page .foodya-checkout-header h2{font-size:25px!important;line-height:1.25!important}
body.foodya-checkout-page .foodya-checkout-subtitle,body.foodya-checkout-page .foodya-mesa-text{font-size:17px!important;line-height:1.45!important}
body.foodya-checkout-page .foodya-resumen-tabla thead th,body.foodya-checkout-page .foodya-resumen-tabla td{font-size:16px!important;line-height:1.4!important;padding:12px 8px!important}
body.foodya-checkout-page .foodya-resumen-tabla .foodya-resumen-name{font-size:18px!important}
body.foodya-checkout-page .foodya-bottom-btn{font-size:17px!important;min-height:54px!important;padding:12px 16px!important;line-height:1.3!important}
body.foodya-checkout-page #foodya-checkout-bottom{box-sizing:border-box!important;padding:10px 8px calc(10px + env(safe-area-inset-bottom,0px))!important}
body.foodya-checkout-page .fy-payment-summary-line{font-size:20px!important}
body.foodya-checkout-page .fy-payment-summary button,body.foodya-checkout-page .foodya-step3-btn{min-height:52px!important;font-size:17px!important}
body.foodya-checkout-page .fy-payment-details summary{min-height:48px!important;font-size:16px!important;display:flex;align-items:center;gap:8px}
body.foodya-checkout-page .fy-payment-details summary:before{content:'▸';font-size:18px}
body.foodya-checkout-page .fy-payment-details[open] summary:before{content:'▾'}
body.foodya-checkout-page .fy-payment-details summary::-webkit-details-marker{display:none}
body.foodya-checkout-page .foodya-step3-guest-name,body.foodya-checkout-page .foodya-step3-guest-total{font-size:20px!important}
body.foodya-checkout-page .fy-payment-message,body.foodya-checkout-page .foodya-step3-row{font-size:16px!important;line-height:1.45!important}
@media(max-width:600px){body.foodya-checkout-page #foodya-checkout-bottom{display:block!important}body.foodya-checkout-page .foodya-bottom-left{display:none!important}body.foodya-checkout-page .foodya-bottom-right{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}body.foodya-checkout-page .foodya-bottom-btn{min-width:0!important;white-space:normal!important;padding:12px 8px!important}}

body.foodya-checkout-page .foodya-radio-card{min-height:64px!important;padding:14px!important;box-sizing:border-box!important}
body.foodya-checkout-page .foodya-radio-title{font-size:19px!important;line-height:1.35!important}
body.foodya-checkout-page .foodya-radio-text,body.foodya-checkout-page .foodya-metodo-contenido,body.foodya-checkout-page .foodya-item-detalle,body.foodya-checkout-page .foodya-item-compartido,body.foodya-checkout-page .foodya-item-nota{font-size:16px!important;line-height:1.45!important}
body.foodya-checkout-page .foodya-item-nombre{font-size:18px!important;line-height:1.4!important;min-height:44px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
body.foodya-checkout-page .foodya-radio-inner{padding-left:36px!important}
body.foodya-checkout-page .foodya-radio-inner:before{width:24px!important;height:24px!important;top:2px!important}
body.foodya-checkout-page .foodya-radio-inner:after{width:12px!important;height:12px!important;left:8px!important;top:8px!important}
body.foodya-checkout-page .foodya-radio-card:focus-within{outline:3px solid #f97316;outline-offset:2px}
