/* Step 3 — premium medical checkout (request reference, UPI QR, paid notification).
 * One stylesheet for the real flow; the obsolete preview screen no longer exists. */
#bookingLive[hidden],#bookingLive [hidden],.booking-resume[hidden]{display:none!important}
#bookingLive{--clinic-ink:#19374d;--clinic-muted:#607b8e;--clinic-line:#dfe9ee;max-width:720px;margin:0 auto 8px;color:var(--clinic-ink);font:inherit;line-height:1.5;box-sizing:border-box}
#bookingLive *,#bookingLive *::before,#bookingLive *::after{box-sizing:border-box}
#bookingLive button,#bookingLive input{font:inherit}
#bookingLive button,#bookingLive a,#bookingLive summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#bookingLive button:focus-visible,#bookingLive a:focus-visible,#bookingLive input:focus-visible,#bookingLive summary:focus-visible{outline:3px solid #6bbec9;outline-offset:3px}
#bookingLive button:disabled{cursor:not-allowed;opacity:.62}
#bookingLive .clinic-kicker{display:block;color:#5d8092;letter-spacing:.13em;font-size:10px;font-weight:800;line-height:1.5}

/* Card and header */
#bookingLive .clinic-checkout{border:1px solid #d6e7eb;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 9px 25px #1c4c6110}
#bookingLive .clinic-checkout-head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:linear-gradient(112deg,#f1f9f9,#fff 78%);border-bottom:1px solid #e3eef0}
#bookingLive .clinic-checkout-brand{flex:1;min-width:0}
#bookingLive .clinic-checkout-head h4{margin:0;color:#183d53;font-size:18px;font-weight:730;line-height:1.25;letter-spacing:-.02em}
#bookingLive .clinic-checkout-head h4:focus{outline:none}
#bookingLive .clinic-checkout-summary{margin:2px 0 0;font-size:12px;color:#5f7b8c;line-height:1.45;overflow-wrap:anywhere}
#bookingLive .clinic-checkout-state{font-size:11px;line-height:1.4;font-weight:750;color:#795d35;border:1px solid #edd9b9;background:#fff9f0;border-radius:999px;padding:5px 10px;white-space:nowrap}
#bookingLive .clinic-checkout-state[data-kind="ok"]{color:#14653c;border-color:#b9e2c9;background:#effaf3}
#bookingLive .clinic-checkout-state[data-kind="warn"]{color:#8a3b2c;border-color:#efc8bf;background:#fff4f1}
#bookingLive .clinic-request-reference{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;margin:10px 16px 2px;color:#607d8d;font-size:12px}
#bookingLive .clinic-request-reference strong{font-size:13px;letter-spacing:.04em;color:#1b536c;overflow-wrap:anywhere}

/* Fee and QR choice */
#bookingLive .clinic-checkout-bill{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 16px;padding:10px 14px;border:1px solid #d5e6e6;border-radius:13px;background:linear-gradient(110deg,#eef8f7 0%,#f6fbfc 90%)}
#bookingLive .clinic-checkout-bill strong{color:#104e5c;font-size:clamp(24px,4.7vw,30px);font-variant-numeric:tabular-nums;line-height:1.15;white-space:nowrap;letter-spacing:-.04em}
#bookingLive .clinic-checkout-body{padding:0 14px 14px}
#bookingLive .clinic-payment-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
#bookingLive .clinic-payment-methods.is-single{grid-template-columns:1fr}
#bookingLive .clinic-payment-methods.is-single button{display:none}
#bookingLive .clinic-payment-methods button{display:grid;gap:2px;text-align:left;border:1px solid #d6e4ea;background:#fff;color:#34596e;border-radius:12px;padding:8px 12px;min-height:50px;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
#bookingLive .clinic-payment-methods button:hover:not(:disabled){border-color:#80b7bd;background:#f9fdfd}
#bookingLive .clinic-payment-methods button.is-selected{border-color:#328f98;background:#f1faf9;box-shadow:inset 0 0 0 1px #328f98;color:#174e62}
#bookingLive .clinic-payment-methods strong{font-size:13px;line-height:1.25;font-weight:750}
#bookingLive .clinic-payment-methods small{font-size:11px;line-height:1.35;color:#668194}
#bookingLive .clinic-qr-section{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;margin-top:9px;border-radius:15px;border:1px solid #e0eaee;background:linear-gradient(180deg,#fbfefe 0%,#f7fbfc 100%);padding:12px 11px 14px}
#bookingLive .clinic-qr-title{margin:0 0 8px;color:#284e62;font-weight:700;font-size:14px}
#bookingLive .clinic-qr-frame{display:grid;place-items:center;width:min(232px,100%);min-height:216px;padding:8px;background:#fff;border:1px solid #d7e4e9;border-radius:15px}
#bookingLive .booking-live-qr{display:block;width:100%;max-width:212px;max-height:260px;object-fit:contain;margin:auto;background:white;border:0;padding:0;border-radius:6px}
#bookingLive .booking-live-qr svg{display:block;width:100%;height:auto;max-height:212px}
#bookingLive .clinic-original-image{width:auto;max-width:100%;height:auto;object-fit:contain}
#bookingLive .clinic-qr-help{font-size:12px;color:#607d8b;line-height:1.55;margin:9px auto 0;max-width:330px}
#bookingLive .clinic-recipient{position:relative;width:min(390px,100%);text-align:left;padding:9px 11px;margin-top:10px;background:white;border:1px solid #deeaee;border-radius:12px}
#bookingLive .clinic-recipient-label{display:block;font-size:10px;letter-spacing:.12em;font-weight:800;color:#7891a1;margin-bottom:3px}
#bookingLive .clinic-recipient-row{display:grid;gap:2px;padding-right:95px;min-width:0}
#bookingLive .clinic-recipient-row strong{font-size:13px;color:#24546b;overflow-wrap:anywhere}
#bookingLive .clinic-recipient-row span{font-size:12px;color:#53798b;overflow-wrap:anywhere}
#bookingLive .clinic-copy-upi{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:1px solid #cbe2e6;border-radius:8px;padding:7px 9px;background:#eef8f8;color:#1b6f78;cursor:pointer;font-weight:700;font-size:11px}
#bookingLive .clinic-alternate-note{font-size:12px;line-height:1.6;text-align:left;color:#5a7486;margin:10px auto 0;width:min(390px,100%);padding:10px 12px;border-left:3px solid #8ab5ba;background:#fff;border-radius:9px}

/* Premium blue Open UPI App */
#bookingLive .clinic-upi-action{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:100%;max-width:390px;min-height:56px;margin-top:13px;
  border:1px solid #1550a3;border-radius:14px;
  background:linear-gradient(125deg,#2375e6 0%,#1052ba 55%,#08418e 100%);
  color:white;text-decoration:none;font-size:16px;font-weight:850;letter-spacing:.01em;
  box-shadow:0 11px 24px rgba(19,88,183,.27),0 2px 5px rgba(13,67,142,.12);
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
#bookingLive .clinic-upi-action:hover{color:#fff;filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 14px 28px rgba(19,88,183,.32)}
#bookingLive .clinic-upi-action:focus-visible{outline:3px solid #77b5ff;outline-offset:3px}
#bookingLive .clinic-upi-action span:last-child{font-size:18px;line-height:1}

/* I've paid — notify */
#bookingLive .clinic-paid{display:grid;gap:8px;margin-top:12px;text-align:center}
#bookingLive .clinic-paid-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border-radius:13px;border:1px solid #0f5f6b;background:linear-gradient(135deg,#167f8c,#0f5f6b);color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 8px 19px rgba(15,95,107,.2)}
#bookingLive .clinic-paid-button:hover:not(:disabled){filter:brightness(1.06)}
#bookingLive .clinic-paid small{font-size:11.5px;line-height:1.5;color:#6a8190}
#bookingLive .clinic-utr{text-align:left;border:1px solid #e1ebef;border-radius:11px;padding:0 12px;background:#fbfdfe}
#bookingLive .clinic-utr summary{cursor:pointer;font-size:12.5px;font-weight:700;color:#2b5b70;padding:11px 0;list-style-position:inside}
#bookingLive .clinic-utr[open]{padding-bottom:12px}
#bookingLive .booking-live-label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#284e63;margin:2px 0 10px}
#bookingLive .booking-live-label input{display:block;width:100%;min-height:46px;border:1px solid #ccdde6;border-radius:11px;padding:10px 12px;font-size:16px;color:#204a62;background:#fff}
#bookingLive #liveReport{width:100%;min-height:44px;border-radius:11px}
#bookingLive .clinic-payment-safety{display:block;color:#758c99}

/* Pending / error panels */
#bookingLive .clinic-pending,#bookingLive .clinic-pay-error{margin:10px 16px;padding:13px 14px;border-radius:12px;font-size:13px;line-height:1.6}
#bookingLive .clinic-pending{border:1px solid #cfe3dc;background:#f3faf7;color:#2e5747}
#bookingLive .clinic-pending strong{display:block;font-size:14px;color:#1d5a41}
#bookingLive .clinic-pending p{margin:4px 0 0}
#bookingLive .clinic-pay-error{border:1px solid #efd3c9;background:#fff7f4;color:#7a3d2e}
#bookingLive .clinic-pay-error p{margin:0 0 10px}
#bookingLive .clinic-pay-error .button{width:100%;min-height:46px;border-radius:12px}
#bookingLive .clinic-text-button{margin-top:8px;padding:0;border:0;background:none;color:#1d6783;text-decoration:underline;text-underline-offset:3px;font-size:12.5px;font-weight:700;cursor:pointer}
#bookingLive .clinic-checkout-status{margin:8px 16px;color:#36596b;font-size:12.5px;line-height:1.6}
#bookingLive .clinic-checkout-status:empty{display:none}
#bookingLive .clinic-status-tools{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px;margin-top:8px}
#bookingLive .clinic-status-tools button{flex:1 1 150px;min-height:44px;border-radius:11px;font-size:12.5px}
#bookingLive .clinic-status-note{display:block;margin:7px 16px 0;color:#708999;font-size:11px;line-height:1.55}
#bookingLive .clinic-checkout-help{margin:12px 16px 16px}

/* Step 1: reopen a request already made in this tab */
.booking-resume{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;margin:0 0 12px;padding:11px 13px;border:1px solid #cfe3e6;border-left:3px solid #2a8d97;border-radius:12px;background:#f4fafb;color:#244b5f}
.booking-resume>div{display:grid;gap:2px;flex:1 1 200px;min-width:0}
.booking-resume strong{font-size:13px}
.booking-resume small{font-size:12px;color:#5f7b8c;overflow-wrap:anywhere}
.booking-resume .button{min-height:42px;border-radius:11px}

/* Compact dialog chrome on steps 2–3: a single progress bar, no repeated headings. */
#bookingModal .modal-header p{display:none}
#bookingModal:has(#bookingDetailsDraft:not([hidden])) #availabilityNotice,
#bookingModal:has(#bookingLive:not([hidden])) #availabilityNotice{display:none!important}
#bookingModal:has(#bookingDetailsDraft:not([hidden])) .modal-header,
#bookingModal:has(#bookingLive:not([hidden])) .modal-header{min-height:0!important;height:auto!important;margin:0!important;padding:3px 12px 2px!important;border:0!important;justify-content:flex-end}
#bookingModal:has(#bookingDetailsDraft:not([hidden])) .modal-header>div,
#bookingModal:has(#bookingLive:not([hidden])) .modal-header>div{display:none!important}
#bookingModal:has(#bookingDetailsDraft:not([hidden])) .modal-close,
#bookingModal:has(#bookingLive:not([hidden])) .modal-close{margin-left:auto!important;position:relative!important;top:auto!important;right:auto!important}
#bookingModal:has(#bookingDetailsDraft:not([hidden])) .modal-progress,
#bookingModal:has(#bookingLive:not([hidden])) .modal-progress{margin:3px 0 10px!important}

@media(max-width:590px){
 #bookingLive .clinic-checkout{border-radius:15px}
 #bookingLive .clinic-checkout-head{padding:10px 13px}
 #bookingLive .clinic-request-reference{margin:9px 13px 2px}
 #bookingLive .clinic-checkout-bill{margin:7px 12px;padding:9px 11px}
 #bookingLive .clinic-checkout-body{padding:0 10px 10px}
 #bookingLive .clinic-qr-section{padding:10px 8px}
 #bookingLive .clinic-qr-frame{width:min(214px,100%);min-height:194px}
 #bookingLive .booking-live-qr{max-width:196px}
 #bookingLive .booking-live-qr svg{max-height:196px}
 #bookingLive .clinic-pending,#bookingLive .clinic-pay-error{margin:10px 12px}
 #bookingLive .clinic-checkout-status,#bookingLive .clinic-status-note{margin-left:13px;margin-right:13px}
 #bookingLive .clinic-status-tools{padding:0 13px}
 #bookingLive .clinic-checkout-help{margin:12px 13px 14px}
}
@media(max-width:410px){
 #bookingLive .clinic-payment-methods button{padding:8px 9px}
 #bookingLive .clinic-payment-methods strong{font-size:12px}
 #bookingLive .clinic-payment-methods small{font-size:10.5px}
 #bookingLive .clinic-checkout-state{font-size:10px;padding:4px 8px}
}
@media(prefers-reduced-motion:reduce){
 #bookingLive .clinic-payment-methods button,#bookingLive .clinic-upi-action{transition:none}
 #bookingLive .clinic-upi-action:hover{transform:none}
}

/* Brief fallback above the fee, keeping the payment QR prominent. */
#bookingLive .clinic-payment-tip{margin:8px 16px 3px;padding:7px 10px;border:1px solid #eedab6;border-radius:9px;background:#fff9ef;color:#6f5226;font-size:11.5px;line-height:1.4}
#bookingLive .clinic-payment-tip strong{font-weight:750}
#bookingLive .clinic-qr-section .clinic-request-reference{align-self:stretch;justify-content:center;margin:7px 0 1px;gap:4px 7px;font-size:10.5px;opacity:.86}
#bookingLive .clinic-qr-section .clinic-request-reference strong{font-size:11px}
@media(max-width:680px){#bookingLive .clinic-payment-tip{margin:7px 12px 3px;padding:7px 9px;font-size:11px}}
