/* ============================================================
   Phase 68 — Checkout Payment Collection UI
   ------------------------------------------------------------
   Readable, touch-friendly payment method cards for the
   checkout page. Fixes the old mobile layout where method
   information was clipped / half visible: every label and
   description now wraps fully, uses >=13px type, and the
   contextual bank / online details expand in their own panel
   instead of being crammed into one block.
   ============================================================ */

[hidden]{display:none!important;}

.sk-pay-panel{overflow:visible;}
.sk-pay-hint{margin:0 0 12px;font-size:13.5px;color:#5b6b70;line-height:1.5;}

/* ---------- Method cards ---------- */
.sk-pay-list{display:grid;gap:10px;}
.sk-pay-option{
  display:flex;align-items:flex-start;gap:12px;
  margin:0;padding:14px;
  background:#fff;
  border:1.5px solid rgba(13,107,112,.18);
  border-radius:16px;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sk-pay-option:hover{border-color:rgba(13,107,112,.45);transform:translateY(-1px);}
.sk-pay-option:focus-within{outline:3px solid rgba(13,107,112,.35);outline-offset:2px;}
.sk-pay-option input[type="radio"]{
  flex:0 0 20px;width:20px;height:20px;margin:3px 0 0;
  accent-color:#0d6b70;cursor:pointer;
}
.sk-pay-icon{
  flex:0 0 44px;width:44px;height:44px;
  display:grid;place-items:center;
  font-size:24px;line-height:1;
  background:rgba(13,107,112,.08);
  border-radius:12px;
}
.sk-pay-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;}
.sk-pay-text strong{
  font-size:16px;font-weight:750;color:#12343b;line-height:1.3;
  overflow-wrap:anywhere;
}
.sk-pay-text small{
  display:block;font-size:13.5px;color:#5b6b70;line-height:1.5;
  white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
}
.sk-pay-check{
  flex:0 0 22px;width:22px;height:22px;margin-top:2px;
  border:2px solid rgba(13,107,112,.35);border-radius:50%;
  display:grid;place-items:center;
  transition:background .18s ease, border-color .18s ease;
}
.sk-pay-check:after{
  content:"✓";font-size:13px;font-weight:900;color:#fff;
  opacity:0;transform:scale(.6);transition:opacity .18s ease, transform .18s ease;
}
.sk-pay-option.is-selected{
  border-color:#0d6b70;
  background:linear-gradient(135deg,rgba(13,107,112,.07),rgba(255,255,255,.92));
  box-shadow:0 8px 22px rgba(13,107,112,.14);
}
.sk-pay-option.is-selected .sk-pay-check{background:#0d6b70;border-color:#0d6b70;}
.sk-pay-option.is-selected .sk-pay-check:after{opacity:1;transform:scale(1);}
.sk-pay-option.is-selected .sk-pay-icon{background:rgba(13,107,112,.14);}

/* ---------- Contextual details panels ---------- */
.sk-pay-details{
  margin-top:12px;padding:14px;
  background:rgba(13,107,112,.05);
  border:1px solid rgba(13,107,112,.16);
  border-left:4px solid #0d6b70;
  border-radius:14px;
}
.sk-pay-details strong{display:block;margin:0 0 6px;font-size:15px;color:#0d6b70;}
.sk-pay-details p{margin:6px 0 0;font-size:14px;line-height:1.55;color:#33474b;overflow-wrap:anywhere;}
.sk-pay-details pre{
  margin:8px 0 0;padding:10px 12px;max-width:100%;
  background:#fff;border:1px dashed rgba(13,107,112,.25);border-radius:10px;
  font-family:inherit;font-size:14px;line-height:1.55;color:#33474b;
  white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;
}
.sk-pay-note{font-size:13px!important;color:#5b6b70!important;}

/* ---------- Reference input ---------- */
.sk-pay-ref{display:block;margin-top:12px;font-size:13.5px;font-weight:650;color:#33474b;}
.sk-pay-ref input{
  display:block;width:100%;box-sizing:border-box;margin-top:6px;
  min-height:46px;padding:11px 12px;
  border:1px solid rgba(0,0,0,.14);border-radius:12px;
  font-size:16px;font-family:inherit;color:#12343b;background:#fff;
}
.sk-pay-ref input:focus{outline:3px solid rgba(13,107,112,.30);border-color:#0d6b70;}

/* ---------- Mobile: keep everything fully readable ---------- */
@media(max-width:820px){
  .sk-pay-option{padding:13px 12px;gap:10px;}
  .sk-pay-text strong{font-size:15.5px;}
  .sk-pay-text small{font-size:13px;}
}
@media(max-width:560px){
  .sk-pay-list{gap:9px;}
  .sk-pay-option{padding:12px 11px;gap:9px;border-radius:14px;}
  .sk-pay-option input[type="radio"]{flex-basis:19px;width:19px;height:19px;}
  .sk-pay-icon{flex-basis:38px;width:38px;height:38px;font-size:20px;border-radius:10px;}
  .sk-pay-text strong{font-size:15px;}
  .sk-pay-text small{font-size:12.8px;line-height:1.45;}
  .sk-pay-check{flex-basis:20px;width:20px;height:20px;}
  .sk-pay-details{padding:12px 11px;}
  .sk-pay-details pre{font-size:13px;padding:9px 10px;}
  .sk-pay-details p{font-size:13.5px;}
}

/* ---------- Accessibility & print ---------- */
@media(prefers-reduced-motion:reduce){
  .sk-pay-option,.sk-pay-check,.sk-pay-check:after{transition:none!important;}
  .sk-pay-option:hover{transform:none;}
}
@media print{
  .sk-pay-option{border-color:#ccc;box-shadow:none;}
  .sk-pay-check{display:none;}
}

/* ---------- Itemized order summary lines ----------
   Shows each cart line (incl. the buffet Virtual Plate and its picks)
   above the totals so the customer confirms exactly what they ordered. */
.sk-checkout-items{display:grid;gap:8px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px dashed rgba(13,107,112,.25);}
.sk-checkout-item{display:flex;align-items:flex-start;gap:10px;}
.sk-checkout-item-name{flex:1;min-width:0;font-size:13.5px;font-weight:800;color:#0d3b40;line-height:1.35;}
.sk-checkout-item-name small{display:block;font-size:12px;font-weight:600;color:#5b6b70;margin-top:2px;line-height:1.45;}
.sk-checkout-item-qty{flex:0 0 auto;font-size:13px;font-weight:800;color:#5b6b70;padding-top:1px;}
.sk-checkout-item-total{flex:0 0 auto;font-size:13.5px;font-weight:900;color:#0d6b70;}
@media(max-width:700px){
  .sk-checkout-item-name{font-size:13px;}
  .sk-checkout-item-name small{font-size:11.5px;}
}
