.support-booking-portal {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 128px 0 88px;
  color: #111111;
}

/* Booking consent: a calm, explicit final checkpoint before the binding action. */
.booking-contract-notice {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: #f7f7f8;
  color: #454850;
  font-size: 15px;
  line-height: 1.5;
}

.booking-contract-notice > p:first-child {
  margin: 0 0 16px;
}

.booking-consent {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 12px;
}

.booking-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #245fd6;
}

.booking-consent label {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.booking-consent.booking-eu-consent label {
  white-space: normal;
}

.booking-consent a {
  color: #245fd6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.booking-consent:focus-within {
  border-color: #245fd6;
  outline: 2px solid rgb(36 95 214 / 24%);
  outline-offset: 2px;
}

.booking-consent.has-error {
  border-color: #b42318;
}

.booking-consent-error {
  margin: 10px 0 0;
  color: #8a1c13;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.booking-consent-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.booking-contract-notice .booking-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin: 18px 0 0;
}

@media (max-width: 640px) {
  .booking-contract-notice {
    margin-top: 20px;
    padding: 17px;
    font-size: 15px;
  }

  .booking-consent {
    align-items: flex-start;
    padding: 8px 0;
  }

  .booking-consent input {
    margin-top: 1px;
  }

  .booking-consent label {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: 0;
    white-space: normal;
  }
}

.booking-portal-shell,
.booking-success-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.booking-portal-hero {
  max-width: 760px;
  text-align: center;
}

.booking-portal-hero h1,
.booking-success-card h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 850;
}

.booking-portal-hero p,
.booking-success-card p {
  max-width: 640px;
  margin: 18px auto 0;
  color: #64666d;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.booking-portal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(440px, 680px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.booking-portal-card {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.booking-calendar-card {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.booking-form-card {
  padding: 26px;
}

.booking-month-head {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.booking-month-head h2 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 850;
}

.booking-month-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f3;
  color: #111111;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.booking-month-arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}

.booking-calendar-legend {
  margin: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: #666970;
  font-size: 12px;
  font-weight: 800;
}

.booking-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.booking-calendar-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.booking-calendar-legend .available { background: #63c48b; }
.booking-calendar-legend .soon { background: #f5b64c; }
.booking-calendar-legend .unavailable { background: #df706c; }

.booking-single-calendar {
  padding: 20px;
  border-radius: 24px;
  background: #f5f5f7;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.booking-weekday {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777981;
  font-size: 13px;
  font-weight: 850;
}

.booking-empty {
  min-height: 44px;
}

.booking-day {
  width: 100%;
  max-width: 44px;
  aspect-ratio: 1 / 1;
  height: auto;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.booking-day.available {
  border-color: rgba(23, 107, 58, 0.22);
  background: #e8f7ee;
  color: #176b3a;
}

.booking-day.soon {
  border-color: rgba(177, 111, 8, 0.22);
  background: #fff0cf;
  color: #96630a;
}

.booking-day.unavailable {
  border-color: rgba(180, 62, 58, 0.18);
  background: #fde8e7;
  color: #a45552;
}

.booking-day:disabled {
  cursor: default;
  opacity: 1;
}

.booking-day.is-selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.booking-selected {
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: #f5f5f7;
  text-align: center;
}

.booking-selected span {
  display: block;
  color: #777981;
  font-size: 15px;
  font-weight: 850;
}

.booking-selected strong {
  display: block;
  margin-top: 8px;
  color: #111111;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 850;
}

.booking-section {
  margin-top: 26px;
}

.booking-section h2,
.booking-summary h2,
.booking-calendar-save h2 {
  margin: 0 0 16px;
  text-align: center;
  color: #111111;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 850;
}

.booking-help {
  margin: -6px 0 18px;
  text-align: center;
  color: #6d6f76;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  white-space: pre-line;
}

.booking-pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.booking-pill {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: #f2f2f4;
  color: #111111;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.booking-pill.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.booking-pill:disabled {
  color: #a1a3aa;
  cursor: default;
  opacity: 0.52;
}

.booking-pill-grid.has-error {
  padding: 10px;
  border: 1px solid #c84f4a;
  border-radius: 22px;
}

.booking-price-row {
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-price-row div {
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  background: #f9f9fa;
  text-align: center;
}

.booking-price-row span,
.booking-summary dt {
  display: block;
  color: #777981;
  font-size: 13px;
  font-weight: 800;
}

.booking-price-row strong,
.booking-summary dd {
  display: block;
  margin: 5px 0 0;
  color: #111111;
  font-size: 16px;
  font-weight: 850;
}

.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #55565d;
  font-size: 14px;
  font-weight: 850;
}

.booking-field-wide {
  grid-column: 1 / -1;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dedee3;
  border-radius: 18px;
  background: #f8f8f9;
  color: #111111;
  font: inherit;
  font-weight: 650;
  outline: none;
}

.booking-field input {
  min-height: 46px;
  padding: 0 16px;
}

.booking-phone-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.booking-phone-row select {
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #dedee3;
  border-radius: 18px;
  background: #f8f8f9;
  color: #111111;
  font: inherit;
  font-weight: 850;
  text-align: center;
  outline: none;
}

.booking-field textarea {
  min-height: 112px;
  padding: 15px 16px;
  resize: vertical;
}

.booking-field input:focus,
.booking-field textarea:focus,
.booking-phone-row select:focus {
  border-color: #111111;
  background: #ffffff;
}

.booking-field.has-error input,
.booking-field.has-error textarea {
  border-color: #c84f4a;
  background: #fff8f7;
}

.booking-summary {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #f5f5f7;
}

.booking-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.booking-summary div {
  min-width: 0;
}

.booking-summary dd {
  overflow-wrap: anywhere;
}

.booking-feedback {
  min-height: 22px;
  margin: 20px 0 0;
  color: #b33d38;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.booking-submit {
  min-height: 50px;
  margin: 6px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.booking-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.booking-success-shell {
  min-height: 60vh;
  justify-content: center;
}

.booking-success-card {
  max-width: 680px;
  padding: 44px;
  text-align: center;
}

.booking-calendar-save {
  margin-top: 34px;
}

.booking-calendar-save > div {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.booking-calendar-button {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eeeeef;
  color: #111111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

@media (hover: hover) and (pointer: fine) {
  .booking-pill,
  .booking-day,
  .booking-month-arrow,
  .booking-submit,
  .booking-calendar-button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }

  .booking-pill:hover,
  .booking-day.available:hover,
  .booking-month-arrow:hover,
  .booking-calendar-button:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 900px) {
  .support-booking-portal {
    width: min(100% - 28px, 560px);
    padding-top: 106px;
    padding-bottom: 92px;
  }

  .booking-portal-grid {
    grid-template-columns: 1fr;
  }

  .booking-calendar-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .support-booking-portal {
    width: min(100% - 24px, 430px);
    padding-top: 138px;
    padding-bottom: 118px;
  }

  .booking-portal-shell {
    gap: 16px;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.08;
    overflow: visible;
  }

  .booking-portal-hero p,
  .booking-success-card p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.35;
  }

  .booking-calendar-card,
  .booking-form-card,
  .booking-success-card {
    padding: 16px;
    border-radius: 22px;
  }

  .booking-month-head {
    grid-template-columns: 46px 1fr 46px;
  }

  .booking-month-head h2 {
    font-size: clamp(24px, 6.8vw, 30px);
  }

  .booking-month-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .booking-single-calendar {
    padding: 12px;
    border-radius: 20px;
  }

  .booking-calendar-grid {
    gap: 6px;
  }

  .booking-day {
    width: 34px;
    height: 34px;
    max-width: 34px;
    aspect-ratio: auto;
    font-size: 13px;
  }

  .booking-empty {
    min-height: 34px;
  }

  .booking-calendar-legend {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .booking-selected {
    padding: 14px;
    border-radius: 20px;
  }

  .booking-selected strong {
    font-size: clamp(22px, 6vw, 29px);
  }

  .booking-section h2,
  .booking-summary h2,
  .booking-calendar-save h2 {
    margin-bottom: 12px;
    font-size: 21px;
  }

  .booking-fields,
  .booking-price-row,
  .booking-summary dl {
    grid-template-columns: 1fr;
  }

  .booking-pill {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .booking-section {
    margin-top: 18px;
  }

  .booking-help {
    margin-bottom: 12px;
    font-size: 12.5px;
  }

  .booking-field {
    gap: 6px;
    font-size: 13px;
  }

  .booking-field input {
    min-height: 40px;
    border-radius: 15px;
  }

  .booking-field textarea {
    min-height: 88px;
    border-radius: 15px;
  }

  .booking-summary {
    margin-top: 18px;
    padding: 14px;
  }

  .booking-submit {
    width: min(100%, 260px);
    min-height: 46px;
  }
}

/* Final preview stabilization for booking portal header, typography and status colors. */
.booking-month-head {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
}

.booking-month-head h2 {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: 1.14 !important;
  font-size: clamp(30px, 4.6vw, 46px) !important;
}

.booking-month-arrow,
.booking-month-arrow-spacer {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
}

.booking-month-arrow {
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.booking-month-arrow svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.booking-month-arrow-spacer {
  display: block !important;
  visibility: hidden !important;
}

.booking-portal-hero,
.booking-portal-hero h1,
.booking-success-card,
.booking-success-card h1 {
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
}

.booking-portal-hero h1 {
  max-width: min(100%, 920px) !important;
  padding-block: 0.08em !important;
  line-height: 1.14 !important;
  white-space: normal !important;
  text-align: center !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance !important;
}

.booking-origin-note {
  display: grid !important;
  justify-items: center !important;
  gap: 2px !important;
  width: min(100%, 520px) !important;
  margin: 10px auto 0 !important;
  text-align: center !important;
}

.booking-origin-note span {
  display: block !important;
}

.booking-calendar-legend .available,
.booking-status-dot.available {
  background: #1f9f63 !important;
}

.booking-calendar-legend .soon,
.booking-status-dot.soon {
  background: #f2a000 !important;
}

.booking-calendar-legend .unavailable,
.booking-status-dot.unavailable {
  background: #d83b32 !important;
}

.booking-day.available {
  background: #e4f7ec !important;
  border-color: #67c78d !important;
  color: #08723f !important;
}

.booking-day.soon {
  background: #fff1cc !important;
  border-color: #eda92a !important;
  color: #855200 !important;
}

.booking-day.unavailable,
.booking-day:disabled.booking-day.unavailable {
  background: #ffe3df !important;
  border-color: #e68179 !important;
  color: #9c2d28 !important;
}

@media (max-width: 520px) {
  .booking-portal-hero {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: 430px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  .booking-portal-hero h1 {
    max-width: 100% !important;
    font-size: clamp(31px, 8vw, 38px) !important;
    line-height: 1.16 !important;
  }

  html[lang^="de"] .booking-portal-hero h1,
  html[lang^="en"] .booking-portal-hero h1 {
    font-size: clamp(28px, 7.2vw, 34px) !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(31px, 8vw, 38px) !important;
  }

  .booking-portal-hero p,
  .booking-language-note {
    max-width: min(100%, 360px) !important;
    line-height: 1.32 !important;
  }

  .booking-month-head {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    column-gap: 8px !important;
  }

  .booking-month-head h2 {
    font-size: clamp(34px, 9.2vw, 44px) !important;
  }

  .booking-month-arrow,
  .booking-month-arrow-spacer {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .booking-month-arrow svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Final booking mobile H1 guard. This must remain after the compact mobile rules. */
@media (max-width: 520px) {
  html body:has(.support-booking-portal) > .topbar.topbar.topbar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: calc(126px + env(safe-area-inset-top)) !important;
    margin-top: 0 !important;
    padding-top: calc(env(safe-area-inset-top) + 18px) !important;
    padding-bottom: 16px !important;
    transform: none !important;
    overflow: visible !important;
  }

  .booking-portal-hero,
  .booking-success-card {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
    contain: none !important;
    transform: none !important;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0.2em 0 !important;
    font-size: clamp(27px, 6.9vw, 33px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(30px, 7.8vw, 37px) !important;
  }
}

/* Dynamic availability states. Kept neutral so elapsed dates do not compete with actionable days. */
.booking-calendar-legend .past {
  background: #a8a8ad !important;
}

.booking-day.past,
.booking-day:disabled.booking-day.past {
  border-color: #dedee2 !important;
  background: #f2f2f4 !important;
  color: #8a8a90 !important;
}

.booking-availability-message {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  color: #5f6065;
  text-align: center;
}

.booking-availability-message p {
  margin: 0;
  line-height: 1.5;
}

/* Absolute final booking mobile H1 guard. Keep this block last. */
@media (max-width: 520px) {
  .booking-portal-hero,
  .booking-success-card {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
    contain: none !important;
    transform: none !important;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0.2em 0 !important;
    font-size: clamp(27px, 6.9vw, 33px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(30px, 7.8vw, 37px) !important;
  }
}

/* Final booking mobile H1 hardening loaded after the global stylesheet. */
@media (max-width: 520px) {
  .booking-portal-hero,
  .booking-success-card {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
    contain: none !important;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0.2em 0 !important;
    font-size: clamp(27px, 6.9vw, 33px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(30px, 7.8vw, 37px) !important;
  }
}

/* Final H1 unclipping guard for the standalone booking portals. */
.support-booking-portal,
.booking-portal-shell,
.booking-portal-hero,
.booking-success-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
  clip-path: none !important;
  contain: none !important;
  transform: none !important;
}

.booking-portal-hero h1,
.booking-success-card h1 {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: min(100%, 920px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0.18em !important;
  padding-bottom: 0.18em !important;
  line-height: 1.22 !important;
  white-space: normal !important;
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
  transform: none !important;
  text-align: center !important;
  text-wrap: balance !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

@media (max-width: 520px) {
  .booking-portal-hero h1,
  .booking-success-card h1 {
    font-size: clamp(29px, 7.4vw, 36px) !important;
    line-height: 1.22 !important;
    padding-top: 0.2em !important;
    padding-bottom: 0.2em !important;
  }
}

/* Responsive support booking refinements. */
body:has(.support-booking-portal) {
  background: #ffffff;
}

body:has(.support-booking-portal) .topbar,
body:has(.support-booking-portal) .mobile-menu {
  background: #ffffff !important;
}

.booking-portal-card {
  box-shadow: none !important;
}

.booking-month-arrow:disabled {
  visibility: hidden;
  pointer-events: none;
}

.booking-month-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.booking-mobile-sticky {
  display: none;
}

.booking-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: center;
}

@media (min-width: 901px) {
  .support-booking-portal {
    width: min(100% - 56px, 1120px);
    padding-top: 116px;
  }

  .booking-portal-grid {
    grid-template-columns: minmax(340px, 430px) minmax(520px, 610px);
    gap: 26px;
  }

  .booking-form-card {
    padding: 26px 28px 30px;
  }
}

@media (max-width: 520px) {
  .support-booking-portal {
    width: min(100% - 20px, 430px);
    padding-top: 118px;
    padding-bottom: 96px;
  }

  .booking-portal-shell {
    gap: 12px;
  }

  .booking-portal-hero {
    max-width: 360px;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    font-size: clamp(24px, 6.9vw, 32px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
    overflow: visible !important;
  }

  .booking-portal-hero p,
  .booking-success-card p {
    max-width: 360px;
    margin-top: 7px;
    font-size: 11.5px;
    line-height: 1.24;
  }

  .booking-calendar-card,
  .booking-form-card,
  .booking-success-card {
    padding: 14px;
    border-radius: 20px;
  }

  .booking-calendar-card {
    padding-bottom: 16px;
  }

  .booking-month-head {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }

  .booking-month-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .booking-calendar-legend {
    margin: 12px 0 16px;
    gap: 6px;
    font-size: 11.5px;
  }

  .booking-single-calendar {
    padding: 10px;
    border-radius: 18px;
  }

  .booking-calendar-grid {
    gap: 5px;
  }

  .booking-day {
    width: min(36px, 100%);
    height: auto;
    max-width: 36px;
    aspect-ratio: 1 / 1;
    font-size: 12.5px;
    border-radius: 50%;
  }

  .booking-empty {
    min-height: 36px;
  }

  .booking-selected {
    padding: 13px;
  }

  .booking-selected span {
    font-size: 12px;
  }

  .booking-selected strong {
    margin-top: 5px;
    font-size: clamp(21px, 6.2vw, 28px);
  }

  .booking-section {
    margin-top: 16px;
  }

  .booking-section h2,
  .booking-summary h2,
  .booking-calendar-save h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .booking-pill-grid {
    gap: 8px;
  }

  .booking-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-pill {
    min-height: 44px;
    padding: 0 13px;
    font-size: 13px;
  }

  .booking-time-grid .booking-pill {
    min-width: 72px;
  }

  .booking-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 10px;
  }

  .booking-price-row div {
    min-height: 62px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .booking-help {
    margin-top: -4px;
    margin-bottom: 10px;
  }

  .booking-fields {
    gap: 10px;
  }

  .booking-field input {
    min-height: 44px;
  }

  .booking-field textarea {
    min-height: 92px;
  }

  .booking-summary {
    margin-top: 16px;
    padding: 14px;
  }

  .booking-summary dl {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-summary-repeat {
    display: none;
  }

  .booking-submit {
    display: none;
  }

  .booking-feedback {
    margin-top: 14px;
  }

  .booking-mobile-sticky {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 20;
    width: min(calc(100vw - 24px), 360px);
    min-height: 58px;
    margin: 14px auto 0;
    padding: 8px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(72px, 0.36fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .booking-mobile-sticky div {
    padding-left: 10px;
  }

  .booking-mobile-sticky span {
    display: block;
    color: #777981;
    font-size: 11px;
    font-weight: 800;
  }

  .booking-mobile-sticky strong {
    display: block;
    margin-top: 1px;
    color: #111111;
    font-size: 15px;
    font-weight: 850;
  }

  .booking-sticky-submit {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #0071e3;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
  }

  .booking-sticky-submit:disabled {
    background: #d8dce3;
    color: #8f949c;
    cursor: default;
    opacity: 1;
  }
}

/* Final support booking page polish before live review. */
.booking-month-arrow,
.support-calendar-mobile-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: normal !important;
  text-indent: 0 !important;
}

.booking-month-arrow svg,
.support-calendar-mobile-arrow svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  flex: 0 0 auto !important;
}

.booking-submit:disabled {
  background: #d8dce3;
  color: #8f949c;
  cursor: default;
  box-shadow: none;
}

.booking-calendar-button {
  box-shadow: none !important;
}

@media (min-width: 901px) {
  .support-booking-portal {
    width: min(100% - 56px, 900px);
    padding-top: 116px;
  }

  .booking-portal-shell {
    gap: 24px;
  }

  .booking-portal-hero {
    max-width: 820px;
  }

  .booking-portal-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.05;
    overflow-wrap: normal;
  }

  .booking-portal-grid {
    grid-template-columns: minmax(0, 760px);
    justify-items: center;
    gap: 24px;
  }

  .booking-calendar-card,
  .booking-form-card {
    max-width: 760px;
  }

  .booking-calendar-card {
    position: static;
    padding: 24px 30px 30px;
  }

  .booking-form-card {
    padding: 30px 36px 34px;
  }

  .booking-single-calendar {
    max-width: 520px;
    margin: 0 auto;
  }

  .booking-pill-grid[data-device-group] {
    max-width: 680px;
    margin-inline: auto;
  }

  .booking-duration-grid {
    grid-template-columns: repeat(3, max-content);
    gap: 12px;
  }

  .booking-success-shell {
    min-height: calc(100svh - 180px);
    justify-content: flex-start;
    padding-top: 118px;
  }

  .booking-success-card {
    width: min(100%, 720px);
    padding: 48px 56px;
  }

  .booking-success-card h1 {
    font-size: clamp(46px, 4vw, 60px);
    line-height: 1.05;
  }

  .booking-success-card p {
    max-width: 560px;
    font-size: 18px;
    line-height: 1.42;
  }

  .booking-calendar-save {
    margin-top: 32px;
  }
}

@media (max-width: 520px) {
  .booking-portal-hero h1 {
    max-width: 100%;
    font-size: clamp(21px, 7.1vw, 30px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .booking-portal-hero p {
    max-width: 350px;
    font-size: 12px;
    line-height: 1.28;
    text-wrap: balance;
  }

  .booking-selected span {
    font-size: 11px !important;
  }

  .booking-selected strong {
    font-size: clamp(20px, 5.5vw, 25px) !important;
    line-height: 1.12;
    text-wrap: balance;
  }

  .booking-phone-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .booking-success-card {
    padding: 24px 18px;
  }

  .booking-success-card h1 {
    font-size: clamp(30px, 8vw, 38px) !important;
  }

  .booking-success-card p {
    font-size: 14px;
  }

  .booking-calendar-save {
    margin-top: 26px;
  }

  .booking-calendar-save h2 {
    font-size: 22px;
  }

  .booking-calendar-save > div {
    gap: 10px;
  }
}

.booking-timezone-note,
.support-timezone-note {
  width: min(100%, 620px);
  margin: 14px auto 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #666970;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

.booking-timezone-note p,
.support-timezone-note p {
  margin: 0;
}

.booking-origin-note {
  max-width: 420px;
  margin: 10px auto 0;
  color: #666970;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

/* Final livegang fixes: keep booking layout precise across languages. */
.booking-submit {
  background: #0071e3 !important;
  box-shadow: none !important;
}

.booking-submit:disabled {
  background: #d8dce3 !important;
  color: #8f949c !important;
  cursor: default !important;
  opacity: 1 !important;
}

.booking-message-counter {
  display: block;
  margin-top: 7px;
  color: #777981;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  text-align: right;
}

.booking-message-counter.is-over-limit {
  color: #b33d38;
}

.booking-phone-row select {
  font-variant-numeric: tabular-nums;
}

.booking-portal-hero {
  width: 100%;
}

.booking-portal-hero h1 {
  max-width: min(100%, 920px) !important;
  margin-inline: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-wrap: balance;
}

.booking-portal-hero p {
  max-width: min(100%, 720px) !important;
  text-align: center !important;
}

html[lang^="en"] .booking-portal-hero h1,
html[lang^="pt"] .booking-portal-hero h1 {
  max-width: min(100%, 980px) !important;
}

.booking-timezone-note {
  margin-top: 12px;
}

.booking-month-arrow {
  position: relative;
  overflow: hidden;
}

.booking-month-arrow svg {
  margin: 0 !important;
}

@media (min-width: 901px) {
  .booking-portal-hero h1 {
    font-size: clamp(44px, 4.1vw, 62px) !important;
  }

  html[lang^="en"] .booking-portal-hero h1,
  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(40px, 3.7vw, 58px) !important;
  }
}

@media (max-width: 520px) {
  .support-booking-portal {
    width: min(100% - 24px, 430px) !important;
    overflow-x: clip;
  }

  .booking-portal-hero {
    width: min(100%, calc(100vw - 28px));
    max-width: 380px !important;
    overflow: visible !important;
  }

  .booking-portal-hero h1 {
    width: 100%;
    max-width: 100% !important;
    font-size: clamp(25px, 7.8vw, 31px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html[lang^="en"] .booking-portal-hero h1 {
    font-size: clamp(24px, 7.1vw, 29px) !important;
    max-width: 330px !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(27px, 8vw, 32px) !important;
  }

  .booking-portal-hero p {
    width: min(100%, 330px);
    max-width: 330px !important;
    margin-inline: auto !important;
    font-size: 12px !important;
    line-height: 1.28 !important;
    text-wrap: balance;
  }

  .booking-timezone-note {
    width: min(100%, 330px);
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.3;
  }

  .booking-message-counter {
    font-size: 11px;
  }
}

/* Final pre-live booking fixes. */
body:has(.booking-page),
.support-booking-portal {
  overflow-x: hidden !important;
}

.booking-portal-hero,
.booking-portal-hero h1,
.booking-success-card,
.booking-success-card h1 {
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
}

.booking-portal-hero h1,
.booking-success-card h1 {
  max-width: min(100%, 980px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.booking-language-note {
  width: min(100%, 620px);
  margin: 10px auto 0;
  color: #686b73;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
  text-align: center;
}

.booking-calendar-legend .available { background: #27a96a !important; }
.booking-calendar-legend .soon { background: #f2a51a !important; }
.booking-calendar-legend .unavailable { background: #dc3f3a !important; }

.booking-day.available {
  background: #e8f8ef !important;
  border-color: #92d7b0 !important;
  color: #14763f !important;
}

.booking-day.soon {
  background: #fff3d8 !important;
  border-color: #f4bd55 !important;
  color: #94610a !important;
}

.booking-day.unavailable,
.booking-day:disabled.booking-day.unavailable {
  background: #ffe7e5 !important;
  border-color: #f0aaa7 !important;
  color: #a9403c !important;
}

.booking-month-arrow,
.booking-month-arrow:not(:disabled) {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

.booking-month-arrow svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.booking-month-arrow:disabled {
  display: none !important;
}

.booking-submit:not(:disabled),
.booking-sticky-submit:not(:disabled) {
  background: #0a84ff !important;
  color: #fff !important;
  border-color: #0a84ff !important;
  box-shadow: none !important;
}

.booking-submit:disabled,
.booking-sticky-submit:disabled {
  background: #d7dde7 !important;
  color: #8a929e !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  .support-booking-portal {
    overflow-x: visible !important;
  }

  .booking-portal-hero {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: 390px !important;
    padding-inline: 0 !important;
  }

  .booking-portal-hero h1 {
    max-width: min(100%, 360px) !important;
    font-size: clamp(27px, 8.1vw, 34px) !important;
    line-height: 1.12 !important;
    padding-block: 2px !important;
  }

  html[lang^="en"] .booking-portal-hero h1 {
    max-width: min(100%, 355px) !important;
    font-size: clamp(25px, 7.3vw, 31px) !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    max-width: min(100%, 350px) !important;
    font-size: clamp(29px, 8.4vw, 34px) !important;
  }

  .booking-portal-hero p,
  .booking-language-note {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  .booking-success-card h1 {
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.1 !important;
  }

  .booking-month-arrow,
  .booking-month-arrow:not(:disabled) {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Final override: stable booking month row and unclipped mobile titles. */
.booking-month-head {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
}

.booking-month-head h2 {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  line-height: 1.14 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: clamp(30px, 4.6vw, 46px) !important;
}

.booking-month-arrow,
.booking-month-arrow-spacer {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
}

.booking-month-arrow {
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.booking-month-arrow svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.booking-month-arrow-spacer {
  display: block !important;
  visibility: hidden !important;
}

.booking-portal-hero,
.booking-portal-hero h1,
.booking-success-card,
.booking-success-card h1 {
  overflow: visible !important;
  clip-path: none !important;
  contain: none !important;
}

.booking-portal-hero h1 {
  max-width: min(100%, 920px) !important;
  padding-block: 0.08em !important;
  line-height: 1.14 !important;
  white-space: normal !important;
  text-align: center !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance !important;
}

.booking-origin-note {
  display: grid !important;
  justify-items: center !important;
  gap: 2px !important;
  width: min(100%, 520px) !important;
  margin: 10px auto 0 !important;
  text-align: center !important;
}

.booking-origin-note span {
  display: block !important;
}

.booking-calendar-legend .available,
.booking-status-dot.available {
  background: #1f9f63 !important;
}

.booking-calendar-legend .soon,
.booking-status-dot.soon {
  background: #f2a000 !important;
}

.booking-calendar-legend .unavailable,
.booking-status-dot.unavailable {
  background: #d83b32 !important;
}

.booking-day.available {
  background: #e4f7ec !important;
  border-color: #67c78d !important;
  color: #08723f !important;
}

.booking-day.soon {
  background: #fff1cc !important;
  border-color: #eda92a !important;
  color: #855200 !important;
}

.booking-day.unavailable,
.booking-day:disabled.booking-day.unavailable {
  background: #ffe3df !important;
  border-color: #e68179 !important;
  color: #9c2d28 !important;
}

@media (max-width: 520px) {
  .booking-portal-hero {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: 430px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  .booking-portal-hero h1 {
    max-width: 100% !important;
    font-size: clamp(31px, 8vw, 38px) !important;
    line-height: 1.16 !important;
  }

  html[lang^="de"] .booking-portal-hero h1,
  html[lang^="en"] .booking-portal-hero h1 {
    font-size: clamp(28px, 7.2vw, 34px) !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(31px, 8vw, 38px) !important;
  }

  .booking-portal-hero p,
  .booking-language-note {
    max-width: min(100%, 360px) !important;
    line-height: 1.32 !important;
  }

  .booking-month-head {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    column-gap: 8px !important;
  }

  .booking-month-head h2 {
    font-size: clamp(34px, 9.2vw, 44px) !important;
  }

  .booking-month-arrow,
  .booking-month-arrow-spacer {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .booking-month-arrow svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Final booking mobile H1 guard. This must remain after the compact mobile rules. */
@media (max-width: 520px) {
  .booking-portal-hero,
  .booking-success-card {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
    contain: none !important;
    transform: none !important;
  }

  .booking-portal-hero h1,
  .booking-success-card h1 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0.2em 0 !important;
    font-size: clamp(27px, 6.9vw, 33px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  html[lang^="pt"] .booking-portal-hero h1 {
    font-size: clamp(30px, 7.8vw, 37px) !important;
  }
}
