.lb-brand svg > g { display: none !important; }
.lb-brand svg { height: 34px !important; width: auto !important; display: block !important; }
html, body { background: #f3efe7; }

/* Keep the public header on the same rails as the homepage and checkout. */
.lb-header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  padding-inline: clamp(20px, 3vw, 48px) !important;
}

/* The exact clinic agenda is the one deliberately scrollable surface. */
.checkout-edit-dialog .checkout-time-editor:has(.checkout-availability-day) {
  max-height: min(58svh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;
}

/* Quieter checkout hierarchy: four compact pieces, no duplicate demo copy. */
.checkout-single .checkout-heading h1 { font-size: clamp(32px, 3.4vw, 42px); }
.checkout-single .checkout-clinic-overlay > small { display: none; }
.checkout-single .checkout-payment-summary {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px 16px;
  padding: 10px 13px;
}
.checkout-single .checkout-payment-summary dl {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
}
.checkout-single .checkout-payment-summary dl > div { gap: 7px; }
.checkout-single .checkout-payment-summary p {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid var(--lb-line);
}
.checkout-single .checkout-payment-heading > span,
.checkout-single .checkout-submit-note { display: none; }

@media (max-width: 560px) {
  .checkout-single .checkout-contact { grid-template-columns: 1fr; }
  .checkout-single .checkout-contact > label:first-child { grid-column: auto; }
  .checkout-single .checkout-payment-summary { grid-template-columns: 1fr; }
  .checkout-single .checkout-payment-summary dl { justify-content: space-between; }
  .checkout-single .checkout-payment-summary p { grid-column: 1; }
  .checkout-edit-dialog .checkout-time-editor:has(.checkout-availability-day) { max-height: 56svh; }
}

/* Flow v3: the clinic popup owns time selection; checkout only confirms it. */
.checkout-single .checkout-when { display: none !important; }
.checkout-single .checkout-heading { margin-bottom: 8px; }
.checkout-single .checkout-heading h1 {
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -0.7px;
}
.checkout-single .checkout-selection-summary {
  padding: 9px 0 10px;
  margin-bottom: 10px;
}
.checkout-single .checkout-selection-summary p { margin: 0; }
.checkout-single .checkout-selected-slot {
  color: #315d43;
  font-size: 14px !important;
  font-weight: 800;
  margin-top: 3px !important;
}
.checkout-single .checkout-selection-summary .checkout-text-button {
  color: var(--lb-muted);
  font-weight: 700;
}
.checkout-single .checkout-panel {
  max-width: 760px;
}
.checkout-single .checkout-contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.checkout-single .checkout-contact > label:first-child {
  grid-column: auto;
}
.checkout-single .checkout-contact label {
  color: #4f5669;
  font-size: 12px;
}
.checkout-single .checkout-contact input {
  height: 44px;
  min-height: 44px;
  margin-top: 5px;
  border-radius: 12px;
}
.checkout-single .checkout-contact-options {
  margin: 8px 0;
  min-height: 25px;
}
.checkout-single .checkout-whatsapp-choice,
.checkout-single .checkout-contact-options .checkout-text-button {
  font-size: 12px;
}
.checkout-single .checkout-payment-summary {
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
  gap: 10px 18px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--lb-line);
  border-bottom: 1px solid var(--lb-line);
  border-radius: 0;
  background: transparent;
}
.checkout-single .checkout-payment-summary dl {
  justify-content: flex-end;
  gap: 14px;
}
.checkout-single .checkout-payment-summary dl > div {
  gap: 6px;
}
.checkout-single .checkout-payment-summary dd {
  font-size: 18px;
}
.checkout-single .checkout-payment-summary p,
.checkout-single .checkout-prep-inline {
  display: none !important;
}
.checkout-single .checkout-consents {
  gap: 4px;
  margin-top: 9px;
}
.checkout-single .checkout-consents .launch-check {
  font-size: 12px;
}
.checkout-single .checkout-actions {
  margin-top: 10px;
}
.checkout-single .checkout-actions .launch-button {
  min-height: 48px;
}

@media (max-width: 1180px) and (min-width: 561px) {
  .checkout-single .checkout-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkout-single .checkout-contact > label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .checkout-single .checkout-contact { grid-template-columns: 1fr; }
  .checkout-single .checkout-contact > label:first-child { grid-column: auto; }
  .checkout-single .checkout-payment-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .checkout-single .checkout-payment-summary dl {
    justify-content: space-between;
  }
  .checkout-single .checkout-contact-options {
    align-items: flex-start;
  }
}
