/*!
 * Hand Xpress Platform – UI Guard & Design System
 * Version 4.4.0
 *
 * Loaded LAST, after hx-booking.css and hx-home.css.
 *
 * Purpose
 * 1. Brand lock: the theme (or any other plugin) may paint buttons/links with
 *    its own accent colour on :hover / :focus / :active / [aria-pressed].
 *    Hand Xpress never declared a background for those states, so the foreign
 *    accent (#CC3366) leaked through. Every interactive state is now declared
 *    explicitly in black / white / grey.
 * 2. Typography tokens taken from the supplied Urban Company design audit.
 * 3. Responsive refinement for phone / tablet / desktop.
 * 4. WebView (app shell) hardening.
 *
 * Only .hxplat-* and .hx-* selectors are used, so the rest of the site,
 * Elementor and the WordPress admin are untouched.
 */

/* ------------------------------------------------------------------ *
 * 1. Design tokens (from urbancompany design audit)
 * ------------------------------------------------------------------ */
:root {
  --hx-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Oxygen-Sans, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;

  --hx-ui-ink: #000;          /* headings                       */
  --hx-ui-ink-2: #212121;     /* strong body / labels           */
  --hx-ui-body: #545454;      /* links inside lists             */
  --hx-ui-muted: #757575;     /* secondary paragraphs           */
  --hx-ui-faint: #bdbdbd;     /* on-dark secondary text         */
  --hx-ui-line: #e0e0e0;
  --hx-ui-line-strong: #bdbdbd;
  --hx-ui-soft: #f5f5f5;
  --hx-ui-paper: #fafafa;
  --hx-ui-white: #fff;

  --hx-ui-radius: 16px;
  --hx-ui-radius-sm: 10px;
  --hx-ui-tap: 44px;          /* minimum touch target           */

  /* Type scale */
  --hx-ui-h1: 32px;   --hx-ui-h1-lh: 48px;
  --hx-ui-h2: 32px;   --hx-ui-h2-lh: 44.8px;
  --hx-ui-h3: 16px;   --hx-ui-h3-lh: 24px;
  --hx-ui-lead: 18px; --hx-ui-lead-lh: 25.92px;
  --hx-ui-base: 16px; --hx-ui-base-lh: 24px;
  --hx-ui-small: 14px; --hx-ui-small-lh: 20.02px;
  --hx-ui-tiny: 12px;
}

/* ------------------------------------------------------------------ *
 * 2. BRAND LOCK – kill every inherited accent colour
 *    (this is what removed the pink #CC3366)
 * ------------------------------------------------------------------ */

/* 2a. Neutral text selection + form accents inside Hand Xpress blocks. */
.hxplat-booking,
.hxplat-catalog,
.hxplat-service-selector,
.hxplat-marketplace,
.hxplat-configurator,
.hx-home,
.hx-site-header,
.hx-site-footer,
.hx-help-panel,
.hx-request-layout {
  accent-color: #0b0b0b;
  caret-color: #0b0b0b;
  -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
  font-family: var(--hx-ui-font);
}

.hxplat-booking input,
.hxplat-booking select,
.hxplat-booking textarea,
.hxplat-catalog input,
.hxplat-service-selector input,
.hxplat-service-selector select,
.hx-home input,
.hx-home select,
.hx-home textarea {
  accent-color: #0b0b0b;
  caret-color: #0b0b0b;
}

.hxplat-booking ::selection,
.hxplat-catalog ::selection,
.hx-home ::selection {
  background: #0b0b0b;
  color: #fff;
}

/* 2b. Category tabs – the element that showed the pink fill.
       Every state is now declared, so nothing can be inherited. */
.hxplat-category-tabs button,
.hxplat-category-tabs button:link,
.hxplat-category-tabs button:visited,
.hxplat-category-tabs button:hover,
.hxplat-category-tabs button:focus,
.hxplat-category-tabs button:focus-visible,
.hxplat-category-tabs button:focus-within,
.hxplat-category-tabs button:active,
.hxplat-category-tabs button[aria-pressed],
.hxplat-category-tabs button[aria-pressed="true"] {
  background-color: var(--hx-ui-white) !important;
  background-image: none !important;
  color: #171717 !important;
  text-shadow: none;
}

.hxplat-category-tabs button:hover {
  border-color: #8a8a8a !important;
}

.hxplat-category-tabs button.is-active,
.hxplat-category-tabs button[aria-pressed="true"] {
  border-color: #0b0b0b !important;
  box-shadow: inset 0 0 0 1px #0b0b0b !important;
}

.hxplat-category-tabs button.is-active strong,
.hxplat-category-tabs button[aria-pressed="true"] strong {
  font-weight: 800;
}

.hxplat-category-tabs button.is-active .hxplat-category-tabs__icon,
.hxplat-category-tabs button.is-active > span,
.hxplat-category-tabs button[aria-pressed="true"] > span {
  background: #ececec !important;
}

/* 2c. Primary / secondary buttons. */
.hxplat-button,
.hxplat-button:link,
.hxplat-button:visited {
  background-color: #0b0b0b !important;
  background-image: none !important;
  border-color: #0b0b0b !important;
  color: #fff !important;
}

.hxplat-button:hover,
.hxplat-button:focus,
.hxplat-button:focus-visible,
.hxplat-button:active {
  background-color: #292929 !important;
  border-color: #292929 !important;
  color: #fff !important;
}

.hxplat-button--secondary,
.hxplat-button--secondary:link,
.hxplat-button--secondary:visited {
  background-color: #fff !important;
  border-color: #0b0b0b !important;
  color: #111 !important;
}

.hxplat-button--secondary:hover,
.hxplat-button--secondary:focus,
.hxplat-button--secondary:focus-visible,
.hxplat-button--secondary:active {
  background-color: #f2f2f2 !important;
  border-color: #0b0b0b !important;
  color: #111 !important;
}

.hxplat-button:disabled,
.hxplat-button[disabled] {
  background-color: #6f6f6f !important;
  border-color: #6f6f6f !important;
  color: #fff !important;
}

/* 2d. Card actions (Mehr erfahren / Buchen / Hinzufügen). */
.hxplat-service-card__actions a,
.hxplat-service-card__actions a:link,
.hxplat-service-card__actions a:visited,
.hxplat-booking-card__actions a,
.hxplat-booking-card__actions a:link,
.hxplat-booking-card__actions a:visited {
  background-color: #fff !important;
  border-color: #0b0b0b !important;
  color: #0b0b0b !important;
}

.hxplat-service-card__actions a:hover,
.hxplat-service-card__actions a:focus,
.hxplat-service-card__actions a:active,
.hxplat-booking-card__actions a:hover,
.hxplat-booking-card__actions a:focus,
.hxplat-booking-card__actions a:active {
  background-color: #f2f2f2 !important;
  border-color: #0b0b0b !important;
  color: #0b0b0b !important;
}

.hxplat-service-card__actions .hxplat-service-card__book,
.hxplat-service-card__actions .hxplat-service-card__book:link,
.hxplat-service-card__actions .hxplat-service-card__book:visited,
.hxplat-booking-card__actions button {
  background-color: #0b0b0b !important;
  border-color: #0b0b0b !important;
  color: #fff !important;
}

.hxplat-service-card__actions .hxplat-service-card__book:hover,
.hxplat-service-card__actions .hxplat-service-card__book:focus,
.hxplat-service-card__actions .hxplat-service-card__book:active,
.hxplat-booking-card__actions button:hover,
.hxplat-booking-card__actions button:focus,
.hxplat-booking-card__actions button:active {
  background-color: #292929 !important;
  border-color: #292929 !important;
  color: #fff !important;
}

/* 2e. Selectable option / configurator rows. */
.hxplat-option-card,
.hxplat-option-card:hover,
.hxplat-option-card:focus-within,
.hxplat-option-card.is-selected,
.hxplat-config-option,
.hxplat-config-option:hover,
.hxplat-config-option:focus-within,
.hxplat-config-option.is-selected,
.hxplat-service-selector__card,
.hxplat-service-selector__card:hover,
.hxplat-service-selector__card:focus,
.hxplat-service-selector__card:active {
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
}

.hxplat-option-card.is-selected,
.hxplat-config-option.is-selected {
  border-color: #0b0b0b !important;
  box-shadow: inset 0 0 0 1px #0b0b0b !important;
}

.hxplat-option-card input:checked + .hxplat-option-card__check,
.hxplat-config-option input:checked + .hxplat-config-option__marker {
  border-color: #0b0b0b !important;
  background: #fff !important;
}

/* 2f. Form fields. */
.hxplat-field input,
.hxplat-field select,
.hxplat-field textarea,
.hxplat-service-selector input,
.hxplat-service-selector select {
  background-color: #fff !important;
  color: #111 !important;
}

.hxplat-field input:focus,
.hxplat-field select:focus,
.hxplat-field textarea:focus,
.hxplat-service-selector input:focus,
.hxplat-service-selector select:focus {
  border-color: #0b0b0b !important;
  outline: 3px solid rgba(0, 0, 0, .13) !important;
  outline-offset: 0;
}

/* 2g. Links inside Hand Xpress blocks stay monochrome. */
.hxplat-catalog a:not(.hxplat-button):not([class*="__book"]):not([class*="__details"]),
.hxplat-booking a:not(.hxplat-button):not([class*="__book"]):not([class*="__details"]),
.hx-help-panel a,
.hx-request-layout a:not(.hxplat-button) {
  color: #0b0b0b;
  text-decoration-color: rgba(0, 0, 0, .35);
}

.hxplat-catalog a:hover,
.hxplat-booking a:hover:not(.hxplat-button),
.hx-help-panel a:hover {
  color: #000;
  text-decoration-color: #000;
}

/* 2h. Focus ring – always neutral, never the theme accent. */
.hxplat-booking :focus-visible,
.hxplat-catalog :focus-visible,
.hxplat-service-selector :focus-visible,
.hxplat-configurator :focus-visible,
.hx-home :focus-visible {
  outline: 3px solid rgba(0, 0, 0, .3) !important;
  outline-offset: 2px;
}

/* 2i. The "no service configured yet" notice was the last coloured element
       rendered on the front end (a yellow warning box). Grey instead. */
.hxplat-booking-empty {
  border-color: var(--hx-ui-line-strong) !important;
  background: var(--hx-ui-paper) !important;
  color: var(--hx-ui-ink-2) !important;
  border-radius: var(--hx-ui-radius-sm);
}

/* 2j. Progress steps + cart badge. */
.hxplat-booking__progress .is-active span,
.hxplat-cart__head b {
  background-color: #0b0b0b !important;
  color: #fff !important;
}

/* ------------------------------------------------------------------ *
 * 3. Typography tokens applied
 * ------------------------------------------------------------------ */
.hxplat-catalog__head h2,
.hxplat-service-selector__head h2 {
  font-family: var(--hx-ui-font);
  font-size: clamp(24px, 3.2vw, var(--hx-ui-h1));
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--hx-ui-ink);
}

.hxplat-catalog__head > p,
.hxplat-service-selector__head p {
  font-size: var(--hx-ui-lead);
  line-height: var(--hx-ui-lead-lh);
  font-weight: 400;
  color: var(--hx-ui-muted);
}

.hxplat-service-card__body h3,
.hxplat-booking-card__copy h4 {
  font-size: var(--hx-ui-h3);
  line-height: var(--hx-ui-h3-lh);
  font-weight: 700;
  color: var(--hx-ui-ink);
}

.hxplat-service-card__body > p,
.hxplat-booking-card__copy > p {
  font-size: var(--hx-ui-small);
  line-height: var(--hx-ui-small-lh);
  font-weight: 400;
  color: var(--hx-ui-muted);
}

.hxplat-field label,
.hxplat-field > label {
  font-size: var(--hx-ui-base);
  font-weight: 600;
  color: var(--hx-ui-ink-2);
}

/* ------------------------------------------------------------------ *
 * 4. Head alignment + optional heading (Elementor controls)
 * ------------------------------------------------------------------ */

/* Nothing to show -> no empty gap left behind. */
.hxplat-catalog__head:empty,
.hxplat-service-selector__head:empty,
.hxplat-catalog--no-head .hxplat-catalog__head,
.hxplat-service-selector--no-head .hxplat-service-selector__head {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hxplat-catalog--align-center .hxplat-catalog__head,
.hxplat-service-selector--align-center .hxplat-service-selector__head {
  text-align: center;
}

.hxplat-catalog--align-center .hxplat-catalog__head h2,
.hxplat-catalog--align-center .hxplat-catalog__head > p,
.hxplat-service-selector--align-center .hxplat-service-selector__head h2,
.hxplat-service-selector--align-center .hxplat-service-selector__head p {
  margin-left: auto;
  margin-right: auto;
}

.hxplat-catalog--align-left .hxplat-catalog__head {
  text-align: left;
}

.hxplat-catalog--align-right .hxplat-catalog__head {
  text-align: right;
}

.hxplat-catalog--align-right .hxplat-catalog__head h2,
.hxplat-catalog--align-right .hxplat-catalog__head > p {
  margin-left: auto;
  margin-right: 0;
}

/* ------------------------------------------------------------------ *
 * 5. Card grid + image fit
 * ------------------------------------------------------------------ */
.hxplat-catalog--cols-1 .hxplat-catalog__grid { grid-template-columns: minmax(0, 1fr); }
.hxplat-catalog--cols-2 .hxplat-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hxplat-catalog--cols-3 .hxplat-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hxplat-catalog--cols-4 .hxplat-catalog__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hxplat-catalog--cols-auto .hxplat-catalog__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* A single card must not stretch across the whole row: keep it at a natural
   card width and centre it, the way Urban Company presents a lone service. */
.hxplat-catalog__grid > .hxplat-service-card:only-child {
  max-width: 380px;
  margin-inline: auto;
}

/* Two cards in a three/four column grid should not sit lost on the left. */
.hxplat-catalog--cols-3 .hxplat-catalog__grid,
.hxplat-catalog--cols-4 .hxplat-catalog__grid,
.hxplat-catalog--cols-auto .hxplat-catalog__grid {
  justify-content: center;
}

/* Line-art service icons must never be cropped. */
.hxplat-catalog--fit-contain .hxplat-service-card__visual {
  background: linear-gradient(135deg, #f6f6f6, #ececec);
}

.hxplat-catalog--fit-contain .hxplat-service-card__visual img {
  object-fit: contain;
  padding: 16px;
}

.hxplat-catalog--fit-cover .hxplat-service-card__visual img {
  object-fit: cover;
  padding: 0;
}

/* ------------------------------------------------------------------ *
 * 6. Responsive – desktop / tablet / phone
 * ------------------------------------------------------------------ */

/* --- Large desktop --- */
@media (min-width: 1400px) {
  .hxplat-catalog { max-width: 1280px; }
}

/* --- Tablet landscape / small laptop --- */
@media (max-width: 1180px) {
  .hxplat-catalog { padding-inline: 16px; }
  .hxplat-catalog--cols-4 .hxplat-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Tablet portrait (iPad) --- */
@media (max-width: 1024px) {
  .hxplat-catalog--cols-3 .hxplat-catalog__grid,
  .hxplat-catalog--cols-4 .hxplat-catalog__grid,
  .hxplat-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hxplat-catalog--cols-1 .hxplat-catalog__grid { grid-template-columns: minmax(0, 1fr); }

  .hxplat-marketplace { grid-template-columns: minmax(0, 1fr); }

  .hxplat-cart {
    position: static;
    order: -1;
    margin-bottom: 18px;
  }

  .hxplat-category-tabs {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hxplat-service-selector { padding: 26px 22px; }
  .hxplat-service-selector__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hxplat-catalog__head h2 { font-size: clamp(22px, 3.6vw, 30px); }
  .hxplat-catalog__head > p { font-size: 16px; line-height: 24px; }
}

/* --- Phone --- */
@media (max-width: 600px) {
  .hxplat-catalog {
    margin: 20px 0;
    padding-inline: 0;
  }

  .hxplat-catalog__head { margin-bottom: 18px; }
  .hxplat-catalog__head h2 { font-size: 22px; line-height: 1.3; }
  .hxplat-catalog__head > p { font-size: 15px; line-height: 22px; margin-top: 8px; }

  .hxplat-catalog__grid,
  .hxplat-catalog--cols-2 .hxplat-catalog__grid,
  .hxplat-catalog--cols-3 .hxplat-catalog__grid,
  .hxplat-catalog--cols-4 .hxplat-catalog__grid,
  .hxplat-catalog--cols-auto .hxplat-catalog__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .hxplat-catalog__grid > .hxplat-service-card:only-child { max-width: none; }

  /* Compact, tap-friendly horizontal card. */
  .hxplat-service-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  }

  .hxplat-service-card:hover { transform: none; }

  .hxplat-service-card__visual {
    width: 96px;
    height: 96px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6f6f6, #ececec);
    font-size: 34px;
  }

  .hxplat-catalog--fit-contain .hxplat-service-card__visual img {
    object-fit: contain;
    padding: 10px;
  }

  .hxplat-catalog--fit-cover .hxplat-service-card__visual img {
    object-fit: cover;
    padding: 0;
  }

  .hxplat-service-card__body {
    padding: 0 0 0 12px;
  }

  .hxplat-service-card__body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 21px;
  }

  .hxplat-service-card__body > p {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .hxplat-service-card__meta {
    gap: 4px 10px;
    font-size: 12px;
  }

  .hxplat-service-card__meta strong { font-size: 13px; }

  .hxplat-service-card__actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0 0;
  }

  .hxplat-service-card__actions a {
    min-height: var(--hx-ui-tap);
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Category tabs become a horizontal snap rail. */
  .hxplat-category-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -16px 20px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hxplat-category-tabs::-webkit-scrollbar { display: none; }

  .hxplat-category-tabs button {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    scroll-snap-align: start;
  }

  .hxplat-service-selector { padding: 20px 16px; border-radius: 16px; }
  .hxplat-service-selector__grid { grid-template-columns: minmax(0, 1fr); }

  .hxplat-booking__actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .hxplat-booking__actions .hxplat-button { width: 100%; }

  .hxplat-grid--2 { grid-template-columns: minmax(0, 1fr); }

  .hxplat-review-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  /* iOS: any input under 16px triggers an automatic zoom on focus. */
  .hxplat-field input,
  .hxplat-field select,
  .hxplat-field textarea,
  .hxplat-service-selector input,
  .hxplat-service-selector select,
  .hxplat-option-card__quantity input,
  .hxplat-config-option__quantity input {
    font-size: 16px;
  }
}

/* --- Very small phones --- */
@media (max-width: 380px) {
  .hxplat-service-card { grid-template-columns: 78px minmax(0, 1fr); }
  .hxplat-service-card__visual { width: 78px; height: 78px; }
  .hxplat-service-card__actions { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ *
 * 7. WebView / app-shell hardening
 * ------------------------------------------------------------------ */
.hxplat-booking button,
.hxplat-booking a,
.hxplat-catalog a,
.hxplat-service-selector a,
.hx-mobile-tabbar a {
  touch-action: manipulation;
}

/* Respect the iPhone home indicator when the site runs inside a WebView. */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .hx-mobile-tabbar {
      padding-bottom: max(6px, env(safe-area-inset-bottom));
    }

    .hx-home__footer,
    .hx-site-footer {
      padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
  }
}

/* Bottom sheet keeps its full height above the home indicator. */
@media (max-width: 600px) {
  .hxplat-configurator__dialog {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* No rubber-band bleed inside scrollable sub-areas. */
.hxplat-configurator__content,
.hxplat-cart__items {
  overscroll-behavior: contain;
}

/* Nothing may push a horizontal scrollbar onto a phone. */
.hxplat-booking,
.hxplat-catalog,
.hxplat-service-selector,
.hxplat-marketplace,
.hxplat-marketplace__browser,
.hxplat-category-panel,
.hxplat-booking-cards,
.hxplat-service-card,
.hxplat-service-card__body,
.hxplat-booking-card,
.hxplat-booking-card__copy {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hxplat-service-card__body h3,
.hxplat-service-card__body p,
.hxplat-booking-card__copy h4,
.hxplat-booking-card__copy p,
.hxplat-catalog__head h2,
.hxplat-catalog__head p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ------------------------------------------------------------------ *
 * 8. Motion / contrast preferences
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hxplat-service-card,
  .hxplat-category-tabs button,
  .hxplat-option-card,
  .hxplat-service-card__visual img {
    transition: none !important;
    animation: none !important;
  }

  .hxplat-service-card:hover { transform: none; }
}

@media (prefers-contrast: more) {
  .hxplat-service-card,
  .hxplat-category-tabs button,
  .hxplat-option-card { border-color: #000; }
}

/* ==================================================================== *
 * 10. VISUAL REFRESH 4.4.0
 *     Three areas reported as visually weak:
 *     A) the 40-tile service wall on the request page
 *     B) the mobile tab bar
 *     C) the help centre
 * ==================================================================== */

/* -------------------------------------------------------------------- *
 * A. Service picker – readable tiles instead of a wall of "Möbe…"
 * -------------------------------------------------------------------- */

/* Toolbar injected above the tabs: search + counter + show-all toggle. */
.hxplat-picker-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}

.hxplat-picker-search {
  position: relative;
  min-width: 0;
}

.hxplat-picker-search input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--hx-ui-line);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
}

.hxplat-picker-search input:focus {
  border-color: #0b0b0b;
  outline: 3px solid rgba(0, 0, 0, .12);
}

.hxplat-picker-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #8a8a8a;
  pointer-events: none;
}

.hxplat-picker-toggle {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #0b0b0b;
  border-radius: 14px;
  background: #fff;
  color: #0b0b0b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hxplat-picker-toggle:hover { background: #f2f2f2; }

.hxplat-picker-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.hxplat-picker-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.hxplat-picker-empty {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px dashed var(--hx-ui-line-strong);
  border-radius: 12px;
  background: var(--hx-ui-paper);
  color: var(--hx-ui-muted);
  text-align: center;
}

/* Tiles: taller, full two-line label, calmer grid. */
.hxplat-category-tabs {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 12px !important;
}

.hxplat-category-tabs button {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: 16px;
  border-color: #e6e6e6;
}

.hxplat-category-tabs button:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

/* The old rule cut every name to "Möbe…". Show up to two full lines. */
.hxplat-category-tabs strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hxplat-category-tabs img,
.hxplat-category-tabs button > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f4f4;
  font-size: 19px;
}

/* Tiles hidden behind "show all". */
.hxplat-category-tabs button[data-hx-overflow="1"] { display: none; }
.hxplat-category-tabs.is-expanded button[data-hx-overflow="1"] { display: grid; }
.hxplat-category-tabs button[data-hx-filtered="1"] { display: none !important; }

/* -------------------------------------------------------------------- *
 * B. Mobile tab bar – floating pill with a lifted active bubble
 * -------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hx-mobile-tabbar {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    min-height: 62px !important;
    padding: 6px 4px !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(0, 0, 0, .07) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .16) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    overflow: visible !important;
  }

  .hx-mobile-tabbar a {
    gap: 4px !important;
    padding: 6px 2px !important;
    border-radius: 16px;
    color: #6d6d6d !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
  }

  .hx-mobile-tabbar a:focus,
  .hx-mobile-tabbar a:active { background: transparent !important; }

  /* Inactive items are a plain icon — no outlined circle. */
  .hx-mobile-tabbar__icon {
    width: 26px !important;
    height: 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6d6d6d !important;
    transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), background-color .2s ease;
  }

  .hx-mobile-tabbar__icon svg {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 1.8;
  }

  /* Active item: just the icon in solid black with a bold label.
     No filled bubble — with an icon like plus-circle that produced a circle
     inside a circle, which is what looked wrong. */
  .hx-mobile-tabbar a.is-active {
    color: #000 !important;
    font-weight: 800 !important;
  }

  .hx-mobile-tabbar a.is-active .hx-mobile-tabbar__icon {
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    transform: none !important;
  }

  .hx-mobile-tabbar a.is-active .hx-mobile-tabbar__icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke-width: 2.1;
  }

  .hx-mobile-tabbar a.is-active > span:last-child {
    transform: none !important;
  }

  /* Content must clear the floating bar. */
  .hx-home__footer,
  .hx-site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hx-mobile-tabbar__icon { transition: none !important; }
}

/* -------------------------------------------------------------------- *
 * C. Help centre – modern cards and a real accordion
 * -------------------------------------------------------------------- */

.hx-help-topic-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.hx-help-topic-card {
  align-items: start !important;
  min-height: 0 !important;
  gap: 16px !important;
  padding: 22px !important;
  border-color: #ebebeb !important;
  border-radius: 18px !important;
  grid-template-columns: 44px minmax(0, 1fr) 30px !important;
}

.hx-help-topic-card:hover,
.hx-help-topic-card:focus-visible {
  border-color: #cfcfcf !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .09) !important;
  transform: translateY(-3px) !important;
}

.hx-help-topic-card__icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #f2f2f2 !important;
  transition: background-color .18s ease, color .18s ease;
}

.hx-help-topic-card:hover .hx-help-topic-card__icon {
  background: #0b0b0b !important;
  color: #fff !important;
}

.hx-help-topic-card__icon svg { width: 22px !important; height: 22px !important; }

.hx-help-topic-card strong {
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}

.hx-help-topic-card small {
  color: var(--hx-ui-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

/* The bare "→" becomes a proper affordance. */
.hx-help-topic-card b {
  display: grid !important;
  width: 30px;
  height: 30px;
  place-items: center;
  align-self: center;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  font-size: 14px !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.hx-help-topic-card:hover b {
  background: #0b0b0b;
  border-color: #0b0b0b;
  color: #fff;
  transform: translateX(3px);
}

/* Topic panel */
.hx-help-panel {
  padding: 32px !important;
  border-color: #ebebeb !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.hx-help-panel > header {
  margin-bottom: 22px !important;
  padding-bottom: 20px !important;
  border-bottom-color: #eee !important;
}

.hx-help-panel > header nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hx-help-panel > header button {
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 14px !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
}

.hx-help-panel > header button:hover { background: #f4f4f4 !important; }

.hx-help-panel > header h2 { font-size: clamp(24px, 3.4vw, 34px) !important; }

.hx-help-section > h3 {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hx-ui-muted) !important;
}

.hx-help-section + .hx-help-section { margin-top: 28px !important; }

/* Accordion rows: kill the native ▶ marker, add a rotating chevron. */
.hx-help-section details,
.hx-help-topic__panel details {
  margin-bottom: 8px;
  padding: 0 !important;
  border: 1px solid #ececec !important;
  border-radius: 14px !important;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}

.hx-help-section details:last-child { border-bottom: 1px solid #ececec !important; }

.hx-help-section details:hover,
.hx-help-topic__panel details:hover { border-color: #d4d4d4 !important; }

.hx-help-section details[open],
.hx-help-topic__panel details[open] {
  border-color: #0b0b0b !important;
  background: #fcfcfc;
}

.hx-help-section summary,
.hx-help-topic__panel summary {
  position: relative;
  display: flex !important;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px 52px 16px 18px !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  list-style: none;
  user-select: none;
}

.hx-help-section summary::-webkit-details-marker,
.hx-help-topic__panel summary::-webkit-details-marker,
.hx-help-section summary::marker,
.hx-help-topic__panel summary::marker {
  display: none;
  content: "";
}

.hx-help-section summary::after,
.hx-help-topic__panel summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  content: "+";
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .22s ease, background-color .18s ease, color .18s ease;
}

.hx-help-section details[open] summary::after,
.hx-help-topic__panel details[open] summary::after {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #fff;
  content: "−";
}

.hx-help-section summary:hover::after { border-color: #0b0b0b; }

.hx-help-section details p,
.hx-help-topic__panel details p {
  margin: 0 !important;
  padding: 0 52px 20px 18px;
  color: #555 !important;
  font-size: 15px;
  line-height: 1.7 !important;
}

.hx-help-panel__actions { margin-top: 26px !important; padding-top: 20px !important; }

.hx-help-panel__actions a {
  display: inline-flex;
  min-height: var(--hx-ui-tap);
  align-items: center;
  padding: 11px 22px;
  border: 1px solid #0b0b0b;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.hx-help-panel__actions a:first-child {
  background: #0b0b0b;
  color: #fff !important;
}

.hx-help-panel__actions a:first-child:hover { background: #292929; }
.hx-help-panel__actions a + a { background: #fff; color: #0b0b0b !important; }
.hx-help-panel__actions a + a:hover { background: #f2f2f2; }

@media (max-width: 600px) {
  .hx-help-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-help-topic-card { padding: 16px !important; grid-template-columns: 40px minmax(0, 1fr) 26px !important; }
  .hx-help-panel { padding: 20px 16px !important; }
  .hx-help-section summary { padding: 14px 46px 14px 14px !important; font-size: 15px !important; }
  .hx-help-section details p { padding: 0 16px 16px 14px; }
  .hxplat-picker-tools { grid-template-columns: minmax(0, 1fr); }
  .hxplat-picker-toggle { justify-content: center; }
  .hx-help-panel__actions a { flex: 1; justify-content: center; }
}

/* ==================================================================== *
 * 11. BRAND LOCK v2 — variable driven, no more per-element whack-a-mole
 *
 * 4.3.0 listed every button by name. The "Alle 47 Leistungen" toggle added
 * in 4.4.0 was not on that list, so `button:focus { background: #CC3366 }`
 * from the theme (specificity 0,1,1) beat `.hxplat-picker-toggle` (0,1,0)
 * and the pink came back the moment the button was clicked.
 *
 * The fix is structural. One catch-all claims every interactive state of
 * every control inside a Hand Xpress block and paints it from two custom
 * properties. Each control then only declares its own two variables.
 * A control added in the future is protected automatically.
 * ==================================================================== */

/* Default palette for any control: white surface, near-black text. */
.hxplat-booking :is(button, [role="button"], input[type="button"], input[type="submit"]),
.hxplat-catalog :is(button, [role="button"]),
.hxplat-service-selector :is(button, [role="button"]),
.hxplat-marketplace :is(button, [role="button"]),
.hxplat-configurator :is(button, [role="button"]),
.hx-home :is(button, [role="button"]),
.hx-help-center :is(button, [role="button"]),
.hx-content-page :is(button, [role="button"]) {
  --hx-c-bg: #fff;
  --hx-c-fg: #111;
  --hx-c-bd: #dcdcdc;
  --hx-c-bg-hover: #f2f2f2;
}

/* Solid (primary) controls simply flip the two variables. */
.hxplat-button,
.hxplat-service-card__book,
.hxplat-booking-card__actions button,
[data-hxplat-configure-service],
[data-hxplat-config-save],
.hx-help-panel__actions a:first-child {
  --hx-c-bg: #0b0b0b;
  --hx-c-fg: #fff;
  --hx-c-bd: #0b0b0b;
  --hx-c-bg-hover: #292929;
}

.hxplat-button--secondary,
[data-hxplat-configurator-close] {
  --hx-c-bg: #fff;
  --hx-c-fg: #111;
  --hx-c-bd: #0b0b0b;
  --hx-c-bg-hover: #f2f2f2;
}

/* The catch-all. Every state is claimed, so nothing can be inherited. */
.hxplat-booking :is(button, [role="button"], input[type="button"], input[type="submit"]):is(:hover, :focus, :focus-visible, :focus-within, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hxplat-catalog :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hxplat-service-selector :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hxplat-marketplace :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hxplat-configurator :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hx-home :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hx-help-center :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]),
.hx-content-page :is(button, [role="button"]):is(:hover, :focus, :focus-visible, :active, [aria-pressed="true"], [aria-expanded="true"]) {
  background-color: var(--hx-c-bg-hover, #f2f2f2) !important;
  background-image: none !important;
  color: var(--hx-c-fg, #111) !important;
  border-color: var(--hx-c-bd, #dcdcdc) !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Same treatment for form controls, which themes also tint on focus. */
.hxplat-booking :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active),
.hxplat-catalog :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active),
.hxplat-service-selector :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active),
.hx-home :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active),
.hx-content-page :is(input, select, textarea):is(:hover, :focus, :focus-visible, :active) {
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
  border-color: #0b0b0b !important;
}

/* The picker toggle and search, now covered by the rules above but pinned
   explicitly so their resting state is unambiguous too. */
.hxplat-picker-toggle {
  --hx-c-bg: #fff;
  --hx-c-fg: #0b0b0b;
  --hx-c-bd: #0b0b0b;
  --hx-c-bg-hover: #f2f2f2;
  background-color: #fff !important;
  color: #0b0b0b !important;
  border-color: #0b0b0b !important;
}

.hxplat-picker-search input {
  background-color: #fff !important;
  color: #111 !important;
}

/* Category tiles keep a white surface in every state; selection is a ring. */
.hxplat-category-tabs button {
  --hx-c-bg: #fff;
  --hx-c-fg: #171717;
  --hx-c-bd: #e6e6e6;
  --hx-c-bg-hover: #fff;
}

.hxplat-category-tabs button:hover { --hx-c-bd: #8a8a8a; }

.hxplat-category-tabs button.is-active,
.hxplat-category-tabs button[aria-pressed="true"] { --hx-c-bd: #0b0b0b; }

/* Tab-bar icons come from the shared SVG library (4.5.0). Both styles use a
   single hue; duotone adds a soft filled shape behind the outline. */
.hx-mobile-tabbar .hx-icon { width: 100%; height: 100%; display: block; }
.hx-mobile-tabbar__icon .hx-icon__line { stroke: currentColor; }

@media (max-width: 900px) {
  /* The bar adapts to however many tabs are configured (2 to 5). */
  .hx-mobile-tabbar {
    grid-template-columns: repeat(var(--hx-tabbar-count, 5), minmax(0, 1fr)) !important;
  }
}

/* Custom SVG pasted into a service icon field is forced monochrome so it can
   never introduce a colour outside the brand. */
.hx-icon--custom { display: inline-grid; place-items: center; width: 1em; height: 1em; }
.hx-icon--custom svg { display: block; width: 100%; height: 100%; }
.hx-icon--custom svg [stroke]:not([stroke="none"]) { stroke: currentColor !important; }
.hx-icon--custom svg [fill]:not([fill="none"]) { fill: currentColor !important; }
.hxplat-service-card__visual .hx-icon--custom,
.hxplat-booking-card__media .hx-icon--custom,
.hx-home__service-icon .hx-icon--custom,
.hxplat-category-tabs .hx-icon--custom { width: 1.4em; height: 1.4em; }

/* ------------------------------------------------------------------ *
 * 12. Availability calendar (4.8.1) — popover
 *     Green = free, red = fully booked, grey = closed / past.
 *     Colour is never the only signal: every day carries its free-slot
 *     count and a title + aria-label naming the exact reason.
 * ------------------------------------------------------------------ */
.hxplat-datepicker { position: relative; }

/* The real input stays in the DOM and keeps submitting; it is only hidden
   once the calendar has been built, so the form still works without JS. */
.hxplat-date--enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50%);
}

.hxplat-datepicker__trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--hx-ui-line);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.hxplat-datepicker__trigger::after {
  flex: 0 0 auto;
  content: "\1F5D3";
  font-size: 17px;
  opacity: .55;
}

.hxplat-datepicker__trigger:hover { border-color: #8a8a8a; }
.hxplat-datepicker__trigger.is-empty { color: #767676; }

.hxplat-datepicker__trigger[aria-expanded="true"] {
  border-color: #0b0b0b;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .1);
}

.hxplat-calendar {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.hxplat-calendar[hidden] { display: none; }

.hxplat-calendar__bar {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* The month dropdown carries the label, so navigation survives even if an
   icon font, an SVG or an unexpected layout rule lets the arrows down. */
.hxplat-calendar__jump {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--hx-ui-line) !important;
  border-radius: 10px;
  background: #fff !important;
  color: #111 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.hxplat-calendar__jump:focus {
  border-color: #0b0b0b !important;
  outline: 3px solid rgba(0, 0, 0, .12);
}

.hxplat-calendar__nav {
  display: grid !important;
  visibility: visible !important;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #0b0b0b !important;
  border-radius: 10px;
  background: #0b0b0b !important;
  color: #fff !important;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  --hx-c-bg: #0b0b0b;
  --hx-c-fg: #fff;
  --hx-c-bd: #0b0b0b;
  --hx-c-bg-hover: #292929;
}

.hxplat-calendar__nav:hover:not(:disabled) { background: #292929 !important; }

.hxplat-calendar__nav:disabled {
  border-color: #d0d0d0 !important;
  background: #f0f0f0 !important;
  color: #9a9a9a !important;
  cursor: not-allowed;
}

.hxplat-calendar__dow,
.hxplat-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.hxplat-calendar__dow {
  margin-bottom: 6px;
  color: var(--hx-ui-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.hxplat-calendar__day {
  display: grid;
  min-height: 44px;
  padding: 3px 1px;
  place-content: center;
  gap: 1px;
  border: 1px solid var(--hx-ui-line);
  border-radius: 9px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
}

.hxplat-calendar__day em {
  font-size: 10px;
  font-style: normal;
  opacity: .85;
}

.hxplat-calendar__day.is-available {
  border-color: #1a7f37;
  background: #eaf6ec;
  color: #14532d;
}

.hxplat-calendar__day.is-available:hover {
  border-color: #14532d;
  background: #d5ecdb;
}

.hxplat-calendar__day.is-full {
  border-color: #c0392b;
  background: #fdecea;
  color: #8a1f1f;
  cursor: not-allowed;
}

.hxplat-calendar__day.is-closed,
.hxplat-calendar__day.is-blocked,
.hxplat-calendar__day.is-too-soon,
.hxplat-calendar__day.is-too-far {
  border-color: #ececec;
  background: #f7f7f7;
  color: #a8a8a8;
  cursor: not-allowed;
}

.hxplat-calendar__day.is-chosen {
  border-color: #0b0b0b !important;
  box-shadow: inset 0 0 0 2px #0b0b0b;
}

.hxplat-calendar__pad { min-height: 44px; }

.hxplat-calendar__loading,
.hxplat-calendar__none {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 6px;
  color: var(--hx-ui-muted);
  font-size: 13px;
  text-align: center;
}

.hxplat-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  color: var(--hx-ui-muted);
  font-size: 12px;
}

.hxplat-calendar__legend span { display: inline-flex; gap: 6px; align-items: center; }

.hxplat-calendar__legend span::before {
  width: 11px;
  height: 11px;
  border: 1px solid;
  border-radius: 3px;
  content: "";
}

.hxplat-calendar__legend .is-available::before { border-color: #1a7f37; background: #eaf6ec; }
.hxplat-calendar__legend .is-full::before { border-color: #c0392b; background: #fdecea; }
.hxplat-calendar__legend .is-closed::before { border-color: #d8d8d8; background: #f7f7f7; }

@media (max-width: 600px) {
  .hxplat-calendar__day, .hxplat-calendar__pad { min-height: 44px; }
  .hxplat-calendar { padding: 12px; }
}

/* Month arrows: SVG, so a missing font glyph can never make them vanish. */
.hxplat-calendar__nav svg { display: block; width: 16px; height: 16px; }

/* ------------------------------------------------------------------ *
 * 13. Time slots (4.8.2) — chips instead of a native dropdown
 * ------------------------------------------------------------------ */
.hxplat-select--enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50%);
}

.hxplat-timepicker { position: relative; }

.hxplat-timepicker__trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--hx-ui-line);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}

.hxplat-timepicker__trigger::after {
  flex: 0 0 auto;
  content: "\1F551";
  font-size: 16px;
  opacity: .55;
}

.hxplat-timepicker__trigger:hover { border-color: #8a8a8a; }
.hxplat-timepicker__trigger.is-empty { color: #767676; }

.hxplat-timepicker__trigger[aria-expanded="true"] {
  border-color: #0b0b0b;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .1);
}

.hxplat-timepanel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 260px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hxplat-timepanel[hidden] { display: none; }

.hxplat-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 7px;
}

.hxplat-slots__chip {
  min-height: var(--hx-ui-tap);
  padding: 10px 8px;
  border: 1px solid var(--hx-ui-line);
  border-radius: 11px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
}

.hxplat-slots__chip:hover {
  border-color: #8a8a8a;
  background: #fafafa;
}

.hxplat-slots__chip.is-chosen {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #fff;
  box-shadow: inset 0 0 0 1px #0b0b0b;
}

/* The brand lock must not repaint the chosen chip white on hover. */
.hxplat-slots__chip { --hx-c-bg: #fff; --hx-c-fg: #111; --hx-c-bd: #dcdcdc; --hx-c-bg-hover: #fafafa; }
.hxplat-slots__chip.is-chosen { --hx-c-bg: #0b0b0b; --hx-c-fg: #fff; --hx-c-bd: #0b0b0b; --hx-c-bg-hover: #292929; }

@media (max-width: 600px) {
  .hxplat-slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
  .hxplat-slots__chip { font-size: 12.5px; padding: 9px 4px; }
  .hxplat-timepanel { max-height: 240px; }
  .hxplat-calendar__jump { font-size: 13px; }
}
