/* Clinic v5.2.3 — public responsive recovery hotfix */
body.public-shell{overflow-x:hidden}
body.public-shell .page-shell,
body.public-shell .manual-payment-container,
body.public-shell .payment-wait-shell .container{max-width:min(100%,1280px)}
body.public-shell .page-hero .container{padding-inline:14px}

/* Receipt document */
body.public-shell.receipt-page-v4400 .receipt-page-hero{padding:30px 0 26px}
body.public-shell.receipt-page-v4400 .receipt-page-hero .container{max-width:min(92vw,760px)}
body.public-shell.receipt-page-v4400 .receipt-page-hero-eyebrow{margin-inline:auto}
body.public-shell.receipt-page-v4400 .receipt-page-hero h1{margin:10px 0 6px;font-size:clamp(2rem,5.2vw,3.4rem);line-height:1.18}
body.public-shell.receipt-page-v4400 .receipt-page-hero p{max-width:42ch;margin-inline:auto}
body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{width:min(100% - 28px,700px);max-width:700px;padding:18px 0 42px}
body.public-shell.receipt-page-v4400 .receipt-card-v4400{border-radius:22px}
body.public-shell.receipt-page-v4400 .receipt-card-top{padding:24px 18px}
body.public-shell.receipt-page-v4400 .receipt-code{font-size:clamp(1.55rem,6vw,2.45rem);letter-spacing:.06em}
body.public-shell.receipt-page-v4400 .receipt-card-body{padding:22px 18px}
body.public-shell.receipt-page-v4400 .receipt-invoice__number,
body.public-shell.receipt-page-v4400 .receipt-invoice__row,
body.public-shell.receipt-page-v4400 .receipt-payment-row{min-width:0}
body.public-shell.receipt-page-v4400 .receipt-payment-row strong{justify-self:end;text-align:left}
body.public-shell.receipt-page-v4400 .detail-actions{display:flex;flex-wrap:wrap;justify-content:center}
body.public-shell.receipt-page-v4400 .detail-actions .btn{min-width:180px}

/* Track utility page */
body.public-shell.track-page-v523 .page-hero{padding:42px 0 34px}
body.public-shell.track-page-v523 .page-hero-eyebrow{margin-inline:auto}
body.public-shell.track-page-v523 .content-card{overflow:hidden}
body.public-shell.track-page-v523 .content-card-body{padding:22px}
body.public-shell.track-page-v523 .detail-panel{overflow:hidden}
body.public-shell.track-page-v523 .detail-actions{display:flex;flex-wrap:wrap;gap:10px}
body.public-shell.track-page-v523 .detail-actions .btn{min-height:44px}
body.public-shell.track-page-v523 .tracking-code-inline{overflow-wrap:anywhere;word-break:break-word}

/* Payment follow-up */
body.public-shell.payment-wait-page .payment-wait-card{max-width:min(100%,680px);margin-inline:auto}
body.public-shell.payment-wait-page .payment-wait-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
body.public-shell.payment-wait-page .payment-wait-actions .btn,
body.public-shell.payment-wait-page .payment-wait-actions form{min-width:220px;flex:1 1 220px}
body.public-shell.payment-wait-page .payment-wait-actions form .btn{width:100%}
body.public-shell.manual-payment-page .manual-payment-hero{gap:16px}
body.public-shell.manual-payment-page .manual-payment-tracking{min-width:0;max-width:100%}
body.public-shell.manual-payment-page .manual-payment-tracking strong{overflow-wrap:anywhere;word-break:break-word}
body.public-shell.manual-payment-page .manual-copy-row{gap:10px}
body.public-shell.manual-payment-page .manual-copy-row button{flex:0 0 auto}

@media (max-width:991px){
  body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{width:min(100% - 22px,640px);padding-top:14px}
  body.public-shell.track-page-v523 .page-shell{padding-bottom:42px}
}

@media (max-width:767px){
  body.public-shell.receipt-page-v4400 .receipt-page-hero{padding:22px 0 16px}
  body.public-shell.receipt-page-v4400 .receipt-page-hero h1{font-size:clamp(1.85rem,9vw,2.45rem)}
  body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{width:calc(100% - 14px)!important;max-width:none!important;padding:10px 0 28px!important}
  body.public-shell.receipt-page-v4400 .receipt-card-v4400{border-radius:16px!important}
  body.public-shell.receipt-page-v4400 .receipt-card-top{padding:18px 12px!important}
  body.public-shell.receipt-page-v4400 .receipt-card-body{padding:16px 12px!important}
  body.public-shell.receipt-page-v4400 .receipt-code{font-size:clamp(1.45rem,10vw,2rem);letter-spacing:.045em}
  body.public-shell.receipt-page-v4400 .receipt-invoice__number,
  body.public-shell.receipt-page-v4400 .receipt-invoice__row{grid-template-columns:minmax(0,1fr)!important;gap:4px;padding:10px 11px!important}
  body.public-shell.receipt-page-v4400 .receipt-invoice__number bdi,
  body.public-shell.receipt-page-v4400 .receipt-invoice__row strong,
  body.public-shell.receipt-page-v4400 .receipt-payment-row strong{text-align:right;justify-self:start}
  body.public-shell.receipt-page-v4400 .receipt-payment-row{grid-template-columns:1fr;gap:4px}
  body.public-shell.receipt-page-v4400 .detail-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px}
  body.public-shell.receipt-page-v4400 .detail-actions .btn{width:100%!important;min-width:0}

  body.public-shell.track-page-v523 .page-hero{padding:28px 0 22px}
  body.public-shell.track-page-v523 .content-card-body{padding:16px}
  body.public-shell.track-page-v523 .detail-actions{display:grid;grid-template-columns:1fr}
  body.public-shell.track-page-v523 .detail-actions .btn,
  body.public-shell.track-page-v523 form .btn.btn-outline-danger{width:100%}

  body.public-shell.payment-wait-page .payment-wait-actions{display:grid;grid-template-columns:1fr}
  body.public-shell.payment-wait-page .payment-wait-actions .btn,
  body.public-shell.payment-wait-page .payment-wait-actions form{min-width:0;width:100%}

  body.public-shell.manual-payment-page .manual-payment-tracking{width:100%}
  body.public-shell.manual-payment-page .manual-copy-row{grid-template-columns:minmax(0,1fr);align-items:start}
  body.public-shell.manual-payment-page .manual-copy-row button{width:100%}
}

@media (max-width:380px){
  body.public-shell.receipt-page-v4400 .receipt-page-hero h1{letter-spacing:-.03em}
  body.public-shell.receipt-page-v4400 .receipt-card-body{padding:14px 10px!important}
  body.public-shell.receipt-page-v4400 .detail-grid>div{padding:10px}
}
