/* VitalCare 4.4.0 — receipt/mobile hardening + final booking consent */

/* Final booking consent: clear, touch-friendly, and kept in the final step. */
body.public-shell.booking-page-v4320 .booking-final-consent{
  display:grid;
  gap:12px;
  margin-top:14px;
  padding:16px;
  border:1px solid #d9e8e6;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfefd,#f5fbfa);
}
body.public-shell.booking-page-v4320 .booking-final-consent__head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
body.public-shell.booking-page-v4320 .booking-final-consent__head>span{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:color-mix(in srgb,var(--vc-primary) 12%,white);
  color:var(--vc-primary-dark);
  font-weight:950;
}
body.public-shell.booking-page-v4320 .booking-final-consent__head>div{min-width:0;display:grid;gap:3px}
body.public-shell.booking-page-v4320 .booking-final-consent__head strong{font-size:.88rem;color:var(--vc-ink)}
body.public-shell.booking-page-v4320 .booking-final-consent__head small{font-size:.7rem;line-height:1.9;color:var(--vc-muted)}
body.public-shell.booking-page-v4320 .booking-final-consent__check{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr);
  align-items:start!important;
  gap:10px!important;
  margin:0!important;
  padding:13px!important;
  min-height:54px;
  border:1px solid #dce7e7!important;
  border-radius:13px!important;
  background:#fff!important;
  cursor:pointer;
}
body.public-shell.booking-page-v4320 .booking-final-consent__check input{
  width:22px!important;
  height:22px!important;
  margin:1px 0 0!important;
  flex:none!important;
}
body.public-shell.booking-page-v4320 .booking-final-consent__check span{
  min-width:0;
  font-size:.78rem;
  line-height:1.9;
  color:#284a4d;
}
body.public-shell.booking-page-v4320 .booking-final-consent__link{
  width:max-content;
  max-width:100%;
  color:var(--vc-primary-dark);
  font-size:.72rem;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.public-shell.booking-page-v4320 .booking-final-consent:has(input:checked){
  border-color:color-mix(in srgb,var(--vc-primary) 34%,#d9e8e6);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--vc-primary) 7%,transparent);
}

/* Receipt is a document view. The floating public dock must never cover it. */
body.public-shell.receipt-page-v4400 .receipt-page-hero{padding:44px 0 38px}
body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{
  width:min(100% - 32px,780px);
  max-width:780px;
  padding:30px 0 54px;
}
body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400>.row{margin:0}
body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400>.row>[class*="col-"]{width:100%;max-width:100%;padding:0}
body.public-shell.receipt-page-v4400 .receipt-card-v4400{width:100%;max-width:100%;overflow:hidden}
body.public-shell.receipt-page-v4400 .receipt-card-top{padding:28px 20px;text-align:center}
body.public-shell.receipt-page-v4400 .receipt-label{font-size:.78rem}
body.public-shell.receipt-page-v4400 .receipt-code{
  display:block;
  width:100%;
  margin-top:8px;
  font-size:clamp(1.7rem,7vw,2.6rem);
  line-height:1.25;
  letter-spacing:.08em;
  overflow-wrap:anywhere;
  word-break:break-word;
}
body.public-shell.receipt-page-v4400 .receipt-card-body{min-width:0;padding:26px}
body.public-shell.receipt-page-v4400 .receipt-meta{display:flex;justify-content:center;margin-bottom:14px}
body.public-shell.receipt-page-v4400 .detail-grid>div{min-width:0}
body.public-shell.receipt-page-v4400 .detail-grid dd{overflow-wrap:anywhere;word-break:normal}
body.public-shell.receipt-page-v4400 .receipt-invoice{
  display:grid;
  gap:0;
  margin-top:22px;
  overflow:hidden;
  border:1px solid var(--vc-line);
  border-radius:15px;
  background:#fff;
}
body.public-shell.receipt-page-v4400 .receipt-invoice__number,
body.public-shell.receipt-page-v4400 .receipt-invoice__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:12px 14px;
  border-bottom:1px solid #e7efef;
}
body.public-shell.receipt-page-v4400 .receipt-invoice__number{background:#f7fbfa;color:#315356}
body.public-shell.receipt-page-v4400 .receipt-invoice__number bdi,
body.public-shell.receipt-page-v4400 .receipt-invoice__row strong{min-width:0;text-align:left;overflow-wrap:anywhere}
body.public-shell.receipt-page-v4400 .receipt-invoice__row:last-child{border-bottom:0}
body.public-shell.receipt-page-v4400 .receipt-invoice__row--balance{
  background:color-mix(in srgb,var(--vc-primary) 7%,white);
  color:var(--vc-primary-dark);
  font-size:1rem;
  font-weight:900;
}
body.public-shell.receipt-page-v4400 .receipt-payments{display:grid;gap:8px;margin-top:20px}
body.public-shell.receipt-page-v4400 .receipt-payments h3{margin:0 0 2px;font-size:.9rem}
body.public-shell.receipt-page-v4400 .receipt-payment-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #e6eeee;
  font-size:.72rem;
  line-height:1.8;
}
body.public-shell.receipt-page-v4400 .receipt-payment-row span,
body.public-shell.receipt-page-v4400 .receipt-payment-row strong{min-width:0;overflow-wrap:anywhere}
body.public-shell.receipt-page-v4400 .detail-actions{gap:8px;margin-top:24px}

@media(max-width:767px){
  body.public-shell.receipt-page-v4400{padding-bottom:0!important}
  body.public-shell.receipt-page-v4400 .doctor-mobile-dock.meet-mobile-dock{display:none!important}
  body.public-shell.receipt-page-v4400 .meet-site-footer{padding-bottom:34px!important}
  body.public-shell.receipt-page-v4400 .receipt-page-hero{padding:24px 0 20px}
  body.public-shell.receipt-page-v4400 .receipt-page-hero:after{display:none}
  body.public-shell.receipt-page-v4400 .receipt-page-hero:before{width:180px;height:180px;inset:-95px auto auto -55px}
  body.public-shell.receipt-page-v4400 .receipt-page-hero h1{margin:8px 0 4px;font-size:clamp(1.65rem,8vw,2.05rem)}
  body.public-shell.receipt-page-v4400 .receipt-page-hero p{font-size:.74rem}
  body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    padding:14px 0 34px!important;
  }
  body.public-shell.receipt-page-v4400 .receipt-card-v4400{border-radius:17px!important}
  body.public-shell.receipt-page-v4400 .receipt-card-top{padding:22px 14px}
  body.public-shell.receipt-page-v4400 .receipt-code{font-size:clamp(1.65rem,10vw,2.15rem);letter-spacing:.055em}
  body.public-shell.receipt-page-v4400 .receipt-card-body{padding:18px 14px!important}
  body.public-shell.receipt-page-v4400 .detail-grid{grid-template-columns:1fr!important;gap:8px}
  body.public-shell.receipt-page-v4400 .detail-grid>div{padding:11px 12px}
  body.public-shell.receipt-page-v4400 .receipt-price-note{font-size:.68rem;line-height:1.9}
  body.public-shell.receipt-page-v4400 .receipt-invoice{margin-top:17px;border-radius:13px}
  body.public-shell.receipt-page-v4400 .receipt-invoice__number,
  body.public-shell.receipt-page-v4400 .receipt-invoice__row{padding:11px 12px;gap:8px;font-size:.75rem}
  body.public-shell.receipt-page-v4400 .receipt-invoice__row--balance{font-size:.88rem}
  body.public-shell.receipt-page-v4400 .receipt-payment-row{grid-template-columns:1fr;gap:2px;padding:9px 0}
  body.public-shell.receipt-page-v4400 .receipt-payment-row strong{text-align:right}
  body.public-shell.receipt-page-v4400 .detail-actions{display:grid!important;grid-template-columns:1fr!important}
  body.public-shell.receipt-page-v4400 .detail-actions .btn{width:100%!important;min-height:48px}

  body.public-shell.booking-page-v4320 .booking-final-consent{padding:13px;border-radius:14px}
  body.public-shell.booking-page-v4320 .booking-final-consent__head strong{font-size:.82rem}
  body.public-shell.booking-page-v4320 .booking-final-consent__head small{font-size:.68rem}
  body.public-shell.booking-page-v4320 .booking-final-consent__check{min-height:58px;padding:12px!important}
  body.public-shell.booking-page-v4320 .booking-final-consent__check span{font-size:.75rem}
  body.public-shell.booking-page-v4320 .booking-final-consent__link{font-size:.7rem}
}

@media(max-width:360px){
  body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{width:calc(100% - 14px)!important}
  body.public-shell.receipt-page-v4400 .receipt-card-body{padding:15px 11px!important}
  body.public-shell.receipt-page-v4400 .receipt-invoice__number,
  body.public-shell.receipt-page-v4400 .receipt-invoice__row{grid-template-columns:minmax(0,1fr);gap:3px}
  body.public-shell.receipt-page-v4400 .receipt-invoice__number bdi,
  body.public-shell.receipt-page-v4400 .receipt-invoice__row strong{text-align:right}
  body.public-shell.booking-page-v4320 .booking-final-consent__head{gap:8px}
  body.public-shell.booking-page-v4320 .booking-final-consent__head>span{width:30px;height:30px;flex-basis:30px}
}

@media print{
  body.public-shell.receipt-page-v4400 .receipt-page-hero,
  body.public-shell.receipt-page-v4400 .doctor-mobile-dock.meet-mobile-dock{display:none!important}
  body.public-shell.receipt-page-v4400 .receipt-print-wrap-v4400{width:100%!important;max-width:none!important;padding:0!important}
  body.public-shell.receipt-page-v4400 .receipt-card-v4400{border:0!important;box-shadow:none!important}
}
