.lechner-booking-app {
  --lb-primary: #4f7f63;
  --lb-primary-dark: #315c45;
  --lb-secondary: #dfeee5;
  --lb-accent: #69b785;
  --lb-text: #1f2933;
  --lb-muted: #667085;
  --lb-bg: #ffffff;
  --lb-surface: #f7fbf8;
  --lb-radius: 18px;
  --lb-font-size: 16px;
  font-size: var(--lb-font-size);
  color: var(--lb-text);
  background: var(--lb-bg);
  width: var(--lb-width);
  max-width: var(--lb-max-width);
  margin-block: 1.5rem;
}
.lechner-booking-app *, .lechner-booking-app *::before, .lechner-booking-app *::after { box-sizing: border-box; }
.lechner-booking-app .form-item { margin-block: 1rem; }
.lechner-booking-app label, .lechner-booking-app .form-required { font-weight: 700; color: var(--lb-text); }
.lechner-booking-app input[type="text"], .lechner-booking-app input[type="email"], .lechner-booking-app select, .lechner-booking-app textarea {
  width: 100%;
  max-width: 640px;
  min-height: 48px;
  border: 2px solid #d7e3dc;
  border-radius: calc(var(--lb-radius) * .7);
  padding: .75rem 1rem;
  font: inherit;
  color: var(--lb-text);
  background: #fff;
}
/*.lechner-booking-app input:focus, .lechner-booking-app select:focus, .lechner-booking-app textarea:focus, .lechner-booking-app button:focus, .lechner-booking-app a:focus {
  outline: 3px solid var(--lb-accent);
  outline-offset: 3px;
}*/
.lechner-booking-hero {
  background: linear-gradient(135deg, var(--lb-surface), #fff);
  border: 1px solid #e3eee8;
  border-radius: var(--lb-radius);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 16px 40px rgba(28,69,45,.08);
  margin-bottom: 1.5rem;
}
.lechner-booking-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  color: var(--lb-primary-dark);
  font-weight: 700;
}
.lechner-booking-hero__lead { margin: 0; max-width: 72ch; color: var(--lb-muted); font-size: 1.05rem; }
.lechner-booking-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.25rem 0 1.5rem;
  counter-reset: booking-step;
}
.lechner-booking-stepper__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--lb-muted);
  font-weight: 700;
  position: relative;
}
.lechner-booking-stepper__item::before {
  counter-increment: booking-step;
  content: counter(booking-step);
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lb-secondary);
  color: var(--lb-primary-dark);
}
.lechner-booking-stepper__item.is-active { color: var(--lb-primary-dark); }
.lechner-booking-stepper__item.is-active::before { background: var(--lb-primary); color: #fff; }
.lechner-booking-notice {
  border-left: 5px solid var(--lb-primary);
  background: var(--lb-surface);
  border-radius: calc(var(--lb-radius) * .7);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
  color: var(--lb-text);
}
.lechner-booking-enhancer { margin: 1rem 0 1.75rem; }
.lechner-booking-picker {
  display: grid;
  grid-template-columns: minmax(280px, 370px) 1fr;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}
.lechner-booking-calendar, .lechner-booking-times {
  border: 1px solid #e3eee8;
  border-radius: var(--lb-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(28,69,45,.07);
  padding: 1rem;
}
.lechner-booking-calendar__header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.lechner-booking-calendar__title { font-size: 1.15rem; font-weight: 700; color: var(--lb-text); }
.lechner-booking-calendar__nav {
  appearance: none; border: 0; background: transparent; color: var(--lb-primary);
  font-size: 1.55rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; cursor: pointer;
}
.lechner-booking-calendar__nav:hover { background: var(--lb-secondary); }
.lechner-booking-calendar__weekdays, .lechner-booking-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; }
.lechner-booking-calendar__weekdays { color: var(--lb-muted); font-size: .85rem; font-weight: 700; text-align: center; margin-bottom: .45rem; }
.lechner-booking-day {
  border: 0;
  min-height: 2.55rem;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--lb-primary-dark);
  font-weight: 700;
  cursor: pointer;
}
.lechner-booking-day:hover { background: var(--lb-secondary); }
.lechner-booking-day[disabled] { background: #f2f4f5; color: #a6b0b8; cursor: not-allowed; }
.lechner-booking-day.is-selected { background: var(--lb-primary); color: #fff; }
.lechner-booking-day.is-today { box-shadow: inset 0 0 0 2px var(--lb-accent); }
.lechner-booking-times__title { font-size: 1.25rem; font-weight: 700; color: var(--lb-text); margin: 0 0 .25rem; }
.lechner-booking-times__help { color: var(--lb-muted); margin: 0 0 1rem; }
.lechner-booking-time-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.lechner-booking-time {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--lb-surface);
  color: var(--lb-primary-dark);
  padding: .8rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-width: 8.2rem;
  min-height: 48px;
  text-align: center;
}
.lechner-booking-time:hover { background: var(--lb-secondary); }
.lechner-booking-time.is-selected, .lechner-booking-time[aria-pressed="true"] {
  background: var(--lb-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(42,108,70,.22);
}
.lechner-booking-selected {
  margin-top: 1rem;
  border-radius: calc(var(--lb-radius) * .8);
  background: #fff;
  border: 1px solid #e3eee8;
  padding: 1rem;
  color: var(--lb-text);
}
.lechner-booking-selected strong { color: var(--lb-primary-dark); }
.lechner-booking-enhanced .form-item-slot {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.lechner-booking-app .form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.lechner-booking-app .button, .lechner-booking-app input[type="submit"] {
  border-radius: 999px;
  min-height: 48px;
  padding: .85rem 1.35rem;
  font-weight: 700;
  border: 2px solid var(--lb-primary);
  background: var(--lb-primary);
  color: #fff;
  cursor: pointer;
}
.lechner-booking-app .button:hover, .lechner-booking-app input[type="submit"]:hover {
  background: var(--lb-primary-dark);
  border-color: var(--lb-primary-dark);
}
.lechner-booking-empty {
  padding: 1rem;
  border-radius: calc(var(--lb-radius) * .7);
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
}
@media (max-width: 760px) {
  .lechner-booking-picker { grid-template-columns: 1fr; }
  .lechner-booking-stepper { grid-template-columns: 1fr; }
  .lechner-booking-time { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .lechner-booking-day, .lechner-booking-time, .lechner-booking-app .button, .lechner-booking-app input[type="submit"] {
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  .lechner-booking-time:hover { transform: translateY(-1px); }
}
@media (forced-colors: active) {
  .lechner-booking-day, .lechner-booking-time, .lechner-booking-app input[type="submit"] { border: 1px solid ButtonText; }
}


/* v9 multistep refinements */

.lechner-booking-step-content {
  margin-top: 1.5rem;
}

.lechner-booking-section-title {
  margin: 0 0 .5rem;
  color: var(--lb-primary-dark);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
}

.lechner-booking-section-help {
  color: var(--lb-muted);
  margin: 0 0 1.25rem;
  max-width: 68ch;
}

.lechner-booking-card {
  border: 1px solid #e3eee8;
  border-radius: var(--lb-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(28,69,45,.07);
  padding: 1.5rem;
}

.lechner-booking-card-title {
  margin: 0 0 .5rem;
  color: var(--lb-primary-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.lechner-booking-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.lechner-booking-two-column > .lechner-booking-card {
  min-height: 100%;
}

.lechner-booking-selected-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lechner-booking-selected-large {
  margin: .75rem 0 0;
  line-height: 1.35;
}

.lechner-booking-selected-large strong {
  font-size: 1.35rem;
  color: var(--lb-text);
}

.lechner-booking-selected-large span {
  display: inline-block;
  margin-top: .35rem;
  color: var(--lb-primary-dark);
  font-size: 2.4rem;
  font-weight: 700;
}

.lechner-booking-data-card .form-item,
.lechner-booking-confirm-card .form-item {
  margin-block: 1.15rem;
}

.lechner-booking-gdpr {
  border: 1px solid #e3eee8;
  border-radius: calc(var(--lb-radius) * .65);
  padding: 1rem;
  background: var(--lb-surface);
}

.lechner-booking-honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lechner-booking-summary-table {
  width: 100%;
  margin-top: 1rem;
}

.lechner-booking-summary-table td {
  padding: .75rem;
  border-bottom: 1px solid #e3eee8;
}

.lechner-booking-summary-table td:first-child {
  color: var(--lb-muted);
  font-weight: 700;
  width: 36%;
}

.lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-secondary) !important;
}

.lechner-booking-stepper__item.is-complete::before {
  content: "✓";
  background: var(--lb-secondary);
  color: var(--lb-primary-dark);
}

.lechner-booking-picker {
  align-items: stretch;
}

.lechner-booking-calendar,
.lechner-booking-times {
  height: 100%;
  padding: 1.5rem;
}

.lechner-booking-times {
  display: flex;
  flex-direction: column;
}

.lechner-booking-time-grid {
  flex: 1 1 auto;
  align-content: flex-start;
}

.lechner-booking-selected {
  margin-top: auto;
}

@media (max-width: 760px) {
  .lechner-booking-two-column {
    grid-template-columns: 1fr;
  }

  .lechner-booking-card,
  .lechner-booking-calendar,
  .lechner-booking-times {
    padding: 1rem;
  }

  .lechner-booking-selected-large span {
    font-size: 2rem;
  }
}


/* v10 hard fixes */

.lechner-booking-app {
  width: var(--lb-width);
  max-width: var(--lb-max-width);
  margin-inline: auto;
}

.lechner-booking-step-content--1 .lechner-booking-picker {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.lechner-booking-calendar,
.lechner-booking-times {
  min-height: 354px;
}

.lechner-booking-times {
  display: flex;
  flex-direction: column;
}

.lechner-booking-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.lechner-booking-time {
  min-width: 0;
  width: 100%;
}

.lechner-booking-selected {
  margin-top: auto;
  padding: 16px 18px;
}

.lechner-booking-actions {
  margin-top: 28px !important;
  padding-top: 0;
}

.lechner-booking-step-content--1 + .form-actions,
.lechner-booking-step-content--1 ~ .form-actions {
  margin-top: 28px;
}

.lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-secondary) !important;
}

.lechner-booking-honeypot,
.lechner-booking-honeypot * {
  display: none !important;
  visibility: hidden !important;
}

@media (min-width: 1100px) {
  .lechner-booking-step-content--1 .lechner-booking-picker {
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .lechner-booking-app {
    width: 100% !important;
    max-width: 100% !important;
  }

  .lechner-booking-step-content--1 .lechner-booking-picker {
    grid-template-columns: 1fr;
  }
}


/* v11 step button hard fix */

.lechner-booking-actions input[name="lechner_booking_final_submit"] {
  background: var(--lb-primary);
}

.lechner-booking-step-content--1 ~ .form-actions input[name="lechner_booking_final_submit"] {
  display: none !important;
}

.lechner-booking-step-content--1 ~ .form-actions input[name="lechner_booking_next_slot"] {
  display: inline-flex !important;
}

.lechner-booking-times .lechner-booking-time-grid {
  margin-bottom: 32px;
}

.lechner-booking-times .lechner-booking-selected {
  margin-top: 32px;
}

.lechner-booking-times {
  row-gap: 0;
}


/* v12 accordion fallback */

.lechner-booking-accordion {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.lechner-booking-panel {
  border: 1px solid #e3eee8;
  border-radius: var(--lb-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(28,69,45,.06);
  padding: 22px;
}

.lechner-booking-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.lechner-booking-panel-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--lb-secondary);
  color: var(--lb-primary-dark);
  font-weight: 700;
}

.lechner-booking-panel.is-open .lechner-booking-panel-number {
  background: var(--lb-primary);
  color: #fff;
}

.lechner-booking-panel-header h2 {
  margin: 0 0 4px;
  color: var(--lb-primary-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.lechner-booking-panel-header p {
  margin: 0;
  color: var(--lb-muted);
}

.lechner-booking-accordion-enhanced .lechner-booking-panel:not(.is-open) > *:not(.lechner-booking-panel-header) {
  display: none !important;
}

.lechner-booking-accordion-enhanced .lechner-booking-panel:not(.is-open) {
  background: var(--lb-surface);
  box-shadow: none;
}

.lechner-booking-panel--slot.is-open {
  display: block;
}

.lechner-booking-panel--slot .form-item-slot {
  margin-top: 0;
}

.lechner-booking-panel--slot .lechner-booking-enhancer {
  margin-top: 0;
}

.lechner-booking-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.lechner-booking-final-actions {
  display: none !important;
  margin-top: 24px !important;
}

.lechner-booking-final-actions.is-visible {
  display: flex !important;
}

.lechner-booking-live-summary {
  border: 1px solid #e3eee8;
  border-radius: calc(var(--lb-radius) * .7);
  background: var(--lb-surface);
  padding: 18px;
}

.lechner-booking-live-summary p {
  margin: 0 0 10px;
}

.lechner-booking-live-summary p:last-child {
  margin-bottom: 0;
}

.lechner-booking-accordion-enhanced .lechner-booking-stepper {
  margin-bottom: 16px;
}

.lechner-booking-stepper__item.is-complete::before {
  content: "✓";
}

@media (max-width: 760px) {
  .lechner-booking-panel {
    padding: 16px;
  }

  .lechner-booking-panel-actions .button,
  .lechner-booking-panel-actions button {
    width: 100%;
  }
}


/* v13 real Form API buttons */

.lechner-booking-panel-actions input[type="button"],
.lechner-booking-panel-actions button {
  border-radius: 999px;
  min-height: 48px;
  padding: .85rem 1.35rem;
  font-weight: 700;
  border: 2px solid var(--lb-primary);
  background: var(--lb-primary);
  color: #fff;
  cursor: pointer;
}

.lechner-booking-panel-actions input[type="button"]:disabled,
.lechner-booking-panel-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.lechner-booking-panel-actions .lechner-booking-button-secondary,
.lechner-booking-panel-actions input.lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-secondary) !important;
}

.lechner-booking-accordion-enhanced [data-booking-panel]:not(.is-open) > *:not(.lechner-booking-panel-header) {
  display: none !important;
}

.lechner-booking-accordion-enhanced .form-actions:not(.is-visible),
.lechner-booking-accordion-enhanced [data-drupal-selector="edit-actions"]:not(.is-visible) {
  display: none !important;
}

.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] .form-actions,
.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] [data-drupal-selector="edit-actions"] {
  display: flex !important;
}

.lechner-booking-panel-actions {
  margin-top: 28px;
}


/* v14 html_tag buttons */

.lechner-booking-nav-button {
  border-radius: 999px;
  min-height: 48px;
  padding: .85rem 1.35rem;
  font-weight: 700;
  border: 2px solid var(--lb-primary);
  background: var(--lb-primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lechner-booking-nav-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.lechner-booking-nav-button.lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-secondary) !important;
}

.lechner-booking-accordion-enhanced [data-booking-panel]:not(.is-open) > *:not(.lechner-booking-panel-header) {
  display: none !important;
}

.lechner-booking-accordion-enhanced .form-actions:not(.is-visible),
.lechner-booking-accordion-enhanced [data-drupal-selector="edit-actions"]:not(.is-visible) {
  display: none !important;
}

.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] .form-actions,
.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] [data-drupal-selector="edit-actions"] {
  display: flex !important;
}

.lechner-booking-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .lechner-booking-nav-button {
    width: 100%;
  }
}


/* v15 CSS hard fix: accordion navigation visibility
 *
 * This block intentionally comes last.
 * It overrides old v11/v12/v13/v14 leftovers and theme-level button styles.
 */

/* 1. A nyitott panelben minden közvetlen tartalom látható legyen. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open > * {
  /*display: revert !important;*/
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2. A panel fejléc mindig látszódjon. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel > .lechner-booking-panel-header {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 3. Csak a nem aktív panel tartalmát csukjuk össze. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel:not(.is-open) > *:not(.lechner-booking-panel-header) {
  display: none !important;
}

/* 4. A nyitott panel action sora mindig flex legyen. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-top: 28px !important;
  height: auto !important;
  min-height: 48px !important;
  overflow: visible !important;
  clip: auto !important;
  position: static !important;
}

/* 5. A JS navigációs gombokat semmi ne tudja eltüntetni. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-nav-button,
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  padding: .85rem 1.35rem !important;
  border-radius: 999px !important;
  border: 2px solid var(--lb-primary) !important;
  background: var(--lb-primary) !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: static !important;
  overflow: visible !important;
  clip: auto !important;
  transform: none !important;
}

/* 6. Másodlagos vissza gomb. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-secondary) !important;
}

/* 7. Disabled next gomb még látszódjon, csak halványítva. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [disabled] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* 8. Végleges submit: alapból rejtve, csak confirm panelnél látható. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .form-actions,
.lechner-booking-app.lechner-booking-accordion-enhanced
  [data-drupal-selector="edit-actions"] {
  display: none !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  .form-actions,
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  [data-drupal-selector="edit-actions"],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .form-actions.is-visible,
.lechner-booking-app.lechner-booking-accordion-enhanced
  [data-drupal-selector="edit-actions"].is-visible {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 9. A végleges submit gomb csak a confirm állapotban legyen kattintható. */
.lechner-booking-app.lechner-booking-accordion-enhanced:not([data-booking-current-panel="confirm"])
  input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced:not([data-booking-current-panel="confirm"])
  button[type="submit"] {
  display: none !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  button[type="submit"] {
  display: inline-flex !important;
}

/* 10. Mobilon a navigation gombok teljes szélességűek. */
@media (max-width: 760px) {
  .lechner-booking-app.lechner-booking-accordion-enhanced
    .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-nav-button,
  .lechner-booking-app.lechner-booking-accordion-enhanced
    .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-next],
  .lechner-booking-app.lechner-booking-accordion-enhanced
    .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-back] {
    width: 100% !important;
  }
}


/* v16 animation, secondary back button and configurable form padding
 *
 * This block intentionally comes last.
 */

/* Adminból állítható teljes form padding. */
.lechner-booking-app {
  padding: var(--lb-form-padding, 25px) !important;
}

/* Ha a theme már ad külső háttérkonténert, itt nem verjük szét. */
.lechner-booking-app.lechner-booking-accordion-enhanced {
  border-radius: var(--lb-radius);
}

/* Finom nyitás/zárás. */
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel {
  transition:
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    opacity .22s ease;
}

.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open {
  animation: lechner-booking-panel-in .22s ease-out both;
}

@keyframes lechner-booking-panel-in {
  from {
    opacity: .88;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nyitott panel kicsit élőbb, csukott panel nyugodtabb. */
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open {
  box-shadow: 0 18px 42px rgba(28, 69, 45, .09) !important;
  border-color: color-mix(in srgb, var(--lb-primary), white 72%) !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel:not(.is-open) {
  opacity: .92;
}

/* Időpontgombok finomabb interakciója. */
.lechner-booking-app .lechner-booking-time,
.lechner-booking-app .lechner-booking-day,
.lechner-booking-app .lechner-booking-nav-button,
.lechner-booking-app input[type="submit"] {
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.lechner-booking-app .lechner-booking-time:hover,
.lechner-booking-app .lechner-booking-day:not(:disabled):hover,
.lechner-booking-app .lechner-booking-nav-button:not(:disabled):hover,
.lechner-booking-app input[type="submit"]:hover {
  transform: translateY(-1px);
}

.lechner-booking-app .lechner-booking-time.is-selected,
.lechner-booking-app .lechner-booking-time[aria-pressed="true"] {
  box-shadow: 0 10px 24px rgba(0, 68, 114, .22) !important;
}

/* Vissza gomb valódi másodlagos stílus.
 * Direkt data-booking-back alapján is célozzuk, mert class override-ot a theme ütheti.
 */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary-dark) !important;
  border: 2px solid var(--lb-secondary) !important;
  box-shadow: none !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary:hover {
  background: var(--lb-secondary) !important;
  color: var(--lb-primary-dark) !important;
  border-color: var(--lb-primary) !important;
}

/* Tovább és véglegesítés marad elsődleges. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  button[type="submit"] {
  background: var(--lb-primary) !important;
  color: #fff !important;
  border-color: var(--lb-primary) !important;
}

/* Fókusz külön erős, akadálymentes. */
.lechner-booking-app .lechner-booking-nav-button:focus-visible,
.lechner-booking-app .lechner-booking-time:focus-visible,
.lechner-booking-app .lechner-booking-day:focus-visible,
.lechner-booking-app input[type="submit"]:focus-visible {
  outline: 3px solid var(--lb-accent) !important;
  outline-offset: 3px !important;
}

/* Reduced motion: animációk kikapcsolása. */
@media (prefers-reduced-motion: reduce) {
  .lechner-booking-app *,
  .lechner-booking-app *::before,
  .lechner-booking-app *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobilon ne legyen túl nagy a padding. Admin érték felett is védjük a layoutot. */
@media (max-width: 760px) {
  .lechner-booking-app {
    padding: min(var(--lb-form-padding, 25px), 18px) !important;
  }
}


/* v17 Lechner palette defaults and button hierarchy
 *
 * Reference palette:
 * - deep blue: #1D4771
 * - darker blue: #0E355F
 * - turquoise: #7CC5C2
 * - stronger teal: #519689
 * - light gray: #EEECEC
 */

/* Fallbacks. Admin-set CSS variables still win through inline style. */
.lechner-booking-app {
  --lb-primary-fallback: #1D4771;
  --lb-primary-dark-fallback: #0E355F;
  --lb-secondary-fallback: #7CC5C2;
  --lb-accent-fallback: #519689;
  --lb-surface-fallback: #EEECEC;
}

/* Typography closer to the provided Lechner visual language. */
.lechner-booking-app,
.lechner-booking-app label,
.lechner-booking-app .form-required {
  color: var(--lb-text, #1D4771);
}

.lechner-booking-hero__title,
.lechner-booking-section-title,
.lechner-booking-card-title,
.lechner-booking-panel-header h2,
.lechner-booking-calendar__title,
.lechner-booking-times__title {
  color: var(--lb-primary, #1D4771) !important;
}

/* Panels and soft areas use the light gray/turquoise rhythm. */
.lechner-booking-hero,
.lechner-booking-panel:not(.is-open),
.lechner-booking-notice,
.lechner-booking-gdpr,
.lechner-booking-selected,
.lechner-booking-live-summary {
  background: color-mix(in srgb, var(--lb-surface, #EEECEC), white 45%) !important;
}

.lechner-booking-panel.is-open,
.lechner-booking-calendar,
.lechner-booking-times,
.lechner-booking-card {
  border-color: color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 45%) !important;
}

/* Primary actions: Tovább + Véglegesítés = deep blue. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  button[type="submit"],
.lechner-booking-app input[type="submit"],
.lechner-booking-app .button--primary {
  background: var(--lb-primary, #1D4771) !important;
  color: #fff !important;
  border-color: var(--lb-primary, #1D4771) !important;
  box-shadow: 0 10px 24px rgba(29, 71, 113, .22) !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  input[type="submit"]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  button[type="submit"]:hover,
.lechner-booking-app input[type="submit"]:hover {
  background: var(--lb-primary-dark, #0E355F) !important;
  border-color: var(--lb-primary-dark, #0E355F) !important;
}

/* Secondary action: Vissza = turquoise outline, not same as primary. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary {
  background: #fff !important;
  color: var(--lb-primary, #1D4771) !important;
  border: 2px solid var(--lb-secondary, #7CC5C2) !important;
  box-shadow: none !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary:hover {
  background: var(--lb-secondary, #7CC5C2) !important;
  color: var(--lb-primary, #1D4771) !important;
  border-color: var(--lb-primary, #1D4771) !important;
}

/* Calendar / slot selected states use primary blue. */
.lechner-booking-day.is-selected,
.lechner-booking-time.is-selected,
.lechner-booking-time[aria-pressed="true"] {
  background: var(--lb-primary, #1D4771) !important;
  color: #fff !important;
}

/* Available, not selected slots use turquoise-tinted pale background. */
.lechner-booking-day:not(.is-selected):not(:disabled),
.lechner-booking-time:not(.is-selected):not([aria-pressed="true"]) {
  background: color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 78%) !important;
  color: var(--lb-primary, #1D4771) !important;
}

/* Focus ring: teal, visible and accessible. */

.lechner-booking-app input:focus,
.lechner-booking-app select:focus,
.lechner-booking-app textarea:focus,
/*.lechner-booking-app button:focus,
.lechner-booking-app a:focus,*/
.lechner-booking-app .lechner-booking-nav-button:focus-visible,
.lechner-booking-app .lechner-booking-time:focus-visible,
.lechner-booking-app .lechner-booking-day:focus-visible,
.lechner-booking-app input[type="submit"]:focus-visible {
  outline: 3px solid var(--lb-accent, #519689) !important;
  outline-offset: 3px !important;
}

/* Stepper colors. */
.lechner-booking-stepper__item.is-active::before,
.lechner-booking-panel.is-open .lechner-booking-panel-number {
  background: var(--lb-primary, #1D4771) !important;
  color: #fff !important;
}

.lechner-booking-stepper__item::before,
.lechner-booking-panel-number {
  background: color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 55%) !important;
  color: var(--lb-primary, #1D4771) !important;
}


/* v23 radius and checkbox alignment
 *
 * Comes last intentionally.
 */

/* Use admin-configured radius for action buttons and time buttons.
 * This overrides old pill styles such as border-radius: 999px.
 */
.lechner-booking-app .lechner-booking-time,
.lechner-booking-app .lechner-booking-nav-button,
.lechner-booking-app .lechner-booking-panel-actions [data-booking-next],
.lechner-booking-app .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app input[type="submit"],
.lechner-booking-app button[type="submit"],
.lechner-booking-app .button {
  border-radius: var(--lb-button-radius, 14px) !important;
}

/* Keep calendar day buttons round enough for calendar readability. */
.lechner-booking-app .lechner-booking-day {
  border-radius: 50% !important;
}

/* Slightly reduce the overly large pill feeling of time buttons. */
.lechner-booking-app .lechner-booking-time {
  min-height: 48px !important;
  padding-inline: 1rem !important;
}

/* Checkbox alignment fix.
 * Drupal themes often add margins to checkbox inputs/labels.
 * This normalizes the GDPR box.
 */
.lechner-booking-app .lechner-booking-gdpr {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  min-height: 56px !important;
}

.lechner-booking-app .lechner-booking-gdpr .form-item,
.lechner-booking-app .lechner-booking-gdpr .js-form-item,
.lechner-booking-app .lechner-booking-gdpr .form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr .form-type--checkbox {
  margin: 0 !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
  vertical-align: middle !important;
}

.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  display: inline-block !important;
}

/* If the theme wraps the checkbox differently, still keep inner content aligned. */
.lechner-booking-app .lechner-booking-gdpr > * {
  align-self: center !important;
}

/* Better spacing after the GDPR box. */
.lechner-booking-app .lechner-booking-panel--data .lechner-booking-panel-actions {
  margin-top: 24px !important;
}


/* v24 final radius and checkbox hard override
 *
 * Comes last intentionally.
 * This overrides older rules like:
 * .lechner-booking-app.lechner-booking-accordion-enhanced
 *   .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next] {
 *     border-radius: 999px !important;
 *   }
 */

/* 1. Same-or-higher specificity radius override for every action and time button. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-nav-button,
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions button[data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"]
  button[type="submit"],
.lechner-booking-app .lechner-booking-time,
.lechner-booking-app .lechner-booking-nav-button,
.lechner-booking-app input[type="submit"],
.lechner-booking-app button[type="submit"],
.lechner-booking-app .button {
  border-radius: var(--lb-button-radius, 10px) !important;
}

/* 2. Time buttons should not look like huge pills by default. */
.lechner-booking-app .lechner-booking-time {
  min-height: 46px !important;
  padding-inline: 1rem !important;
}

/* 3. Checkbox: handle both common Drupal markups:
 * A) input and label are siblings
 * B) input is inside label.option
 */
.lechner-booking-app .lechner-booking-gdpr {
  display: block !important;
  padding: 14px 16px !important;
  min-height: 56px !important;
  overflow: visible !important;
}

.lechner-booking-app .lechner-booking-gdpr .form-item,
.lechner-booking-app .lechner-booking-gdpr .js-form-item,
.lechner-booking-app .lechner-booking-gdpr .form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr .form-type--checkbox {
  margin: 0 !important;
  padding: 0 !important;
}

/* Input itself. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 0 12px 0 0 !important;
  position: static !important;
  transform: none !important;
  vertical-align: middle !important;
}

/* Label as sibling after input. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] + label,
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] + .option {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
}

/* Label containing the input. */
.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option {
  color: var(--lb-text, #1D4771) !important;
  line-height: 1.45 !important;
}

/* If input is inside label, make label flex and create gap. */
.lechner-booking-app .lechner-booking-gdpr label:has(input[type="checkbox"]),
.lechner-booking-app .lechner-booking-gdpr .option:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* For label-containing-input markup, avoid double margin. */
.lechner-booking-app .lechner-booking-gdpr label:has(input[type="checkbox"]) input[type="checkbox"],
.lechner-booking-app .lechner-booking-gdpr .option:has(input[type="checkbox"]) input[type="checkbox"] {
  margin: 0 !important;
}

/* Fallback for browsers without :has support. */
@supports not selector(:has(*)) {
  .lechner-booking-app .lechner-booking-gdpr label,
  .lechner-booking-app .lechner-booking-gdpr .option {
    padding-left: 12px !important;
  }
}

/* 4. Keep calendar day round only. */
.lechner-booking-app .lechner-booking-day {
  border-radius: 50% !important;
}



/* v25 exception, conflict and secondary button fixes */
.lechner-booking-closed-days {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-left: 5px solid var(--lb-secondary, #7CC5C2);
  border-radius: var(--lb-button-radius, 10px);
  background: color-mix(in srgb, var(--lb-surface, #EEECEC), white 45%);
}

.lechner-booking-closed-days h3 {
  margin: 0 0 8px;
  color: var(--lb-primary, #1D4771);
  font-size: 1rem;
  font-weight: 700;
}

.lechner-booking-closed-days ul {
  margin: 0;
  padding-left: 1.25rem;
}

.lechner-booking-closed-days li + li {
  margin-top: 6px;
}

.lechner-booking-app .lechner-booking-day.is-closed,
.lechner-booking-app .lechner-booking-day.is-closed:disabled {
  background: #f3d8dc !important;
  color: #7a1f2b !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

/* Back buttons must stay secondary. This intentionally comes after all primary rules. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary,
.lechner-booking-app .lechner-booking-nav-button[data-booking-back] {
  background: #fff !important;
  color: var(--lb-primary, #1D4771) !important;
  border-color: var(--lb-secondary, #7CC5C2) !important;
  box-shadow: none !important;
}

.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back]:hover,
.lechner-booking-app .lechner-booking-nav-button[data-booking-back]:hover {
  background: var(--lb-secondary, #7CC5C2) !important;
  color: var(--lb-primary, #1D4771) !important;
  border-color: var(--lb-primary, #1D4771) !important;
}


/* v27 back button and checkbox color
 *
 * Comes last intentionally.
 * Requested:
 * - Vissza button default should be filled turquoise with dark blue border/text.
 * - Checkbox color should be #0E355F.
 */

/* Vissza button default state: turquoise fill, dark blue border and text. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary,
.lechner-booking-app .lechner-booking-nav-button[data-booking-back] {
  background: var(--lb-secondary, #7CC5C2) !important;
  color: var(--lb-primary-dark, #0E355F) !important;
  border: 2px solid var(--lb-primary-dark, #0E355F) !important;
  box-shadow: none !important;
}

/* Vissza hover: slightly lighter, still secondary. */
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced
  .lechner-booking-panel.is-open .lechner-booking-panel-actions .lechner-booking-button-secondary:hover,
.lechner-booking-app .lechner-booking-nav-button[data-booking-back]:hover {
  background: color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 18%) !important;
  color: var(--lb-primary-dark, #0E355F) !important;
  border-color: var(--lb-primary-dark, #0E355F) !important;
}

/* Vissza focus: strong and visible. */
.lechner-booking-app .lechner-booking-nav-button[data-booking-back]:focus-visible {
  outline: 3px solid var(--lb-primary-dark, #0E355F) !important;
  outline-offset: 3px !important;
}

/* Checkbox native accent color. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  accent-color: #0E355F !important;
}

/* Some themes draw custom checkbox UI through pseudo elements or Bootstrap classes. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"]:checked,
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"]:checked {
  background-color: #0E355F !important;
  border-color: #0E355F !important;
}

/* Keep label spacing from v24. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] {
  margin-right: 12px !important;
}


/* v28 hard secondary back button override
 *
 * Comes last intentionally.
 * This targets the exact rendered DOM:
 * <button class="button lechner-booking-nav-button lechner-booking-button-secondary lechner-booking-js-back"
 *         data-booking-back="slot">
 *
 * Goal:
 * - Vissza button: turquoise fill, dark blue text/border.
 * - Tovább / submit buttons: primary dark blue.
 */

/* Hard target the back button. Do not rely only on generic secondary class. */
.lechner-booking-app button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back],
.lechner-booking-app .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back],
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back].lechner-booking-button-secondary {
  background: #7CC5C2 !important;
  background-color: #7CC5C2 !important;
  color: #0E355F !important;
  border: 2px solid #0E355F !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Hover/focus for back button. */
.lechner-booking-app button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back]:hover,
.lechner-booking-app .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions [data-booking-back].lechner-booking-button-secondary:hover,
.lechner-booking-app button.lechner-booking-nav-button.lechner-booking-button-secondary.lechner-booking-js-back[data-booking-back]:focus-visible {
  background: #9DD7D4 !important;
  background-color: #9DD7D4 !important;
  color: #0E355F !important;
  border-color: #0E355F !important;
  box-shadow: 0 0 0 3px rgba(14, 53, 95, .18) !important;
}

/* Keep next/final buttons primary. This must come after the secondary override too. */
.lechner-booking-app button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next],
.lechner-booking-app .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] input[type="submit"],
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] button[type="submit"] {
  background: #1D4771 !important;
  background-color: #1D4771 !important;
  color: #FFFFFF !important;
  border: 2px solid #1D4771 !important;
}

/* Primary hover. */
.lechner-booking-app button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next]:hover,
.lechner-booking-app .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced .lechner-booking-panel.is-open .lechner-booking-panel-actions button.lechner-booking-nav-button.lechner-booking-js-next[data-booking-next]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] input[type="submit"]:hover,
.lechner-booking-app.lechner-booking-accordion-enhanced[data-booking-current-panel="confirm"] button[type="submit"]:hover {
  background: #0E355F !important;
  background-color: #0E355F !important;
  border-color: #0E355F !important;
}

/* GDPR checkbox requested color. */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  accent-color: #0E355F !important;
}





/* v32 success page redesign */

.lechner-booking-success {
  width: min(100%, 1120px);
  margin: 48px auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 42%);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 62%) 0, transparent 34%),
    linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--lb-surface, #EEECEC), white 68%) 100%);
  box-shadow: 0 22px 58px rgba(29, 71, 113, .12);
  color: var(--lb-text, #1D4771);
}

.lechner-booking-success__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.lechner-booking-success__main {
  text-align: left;
}

.lechner-booking-success__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 38%);
  color: var(--lb-primary-dark, #0E355F);
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--lb-secondary, #7CC5C2), var(--lb-primary-dark, #0E355F) 16%);
}

.lechner-booking-success__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 0 22px;
  border-radius: 50%;
  background: var(--lb-secondary, #7CC5C2);
  color: var(--lb-primary-dark, #0E355F);
  font-size: 46px;
  font-weight: 700;
  border: 4px solid var(--lb-primary-dark, #0E355F);
  box-shadow: 0 12px 32px rgba(14, 53, 95, .18);
}

.lechner-booking-success__title {
  margin: 0 0 12px;
  color: var(--lb-primary, #1D4771);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.04em;
}

.lechner-booking-success__lead {
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--lb-muted, #526173);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.lechner-booking-success__notice {
  max-width: 60ch;
  margin: 0 0 28px;
  color: var(--lb-primary-dark, #0E355F);
  font-weight: 650;
}

.lechner-booking-success__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lechner-booking-success-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.45rem;
  border-radius: var(--lb-button-radius, 10px);
  background: var(--lb-primary, #1D4771);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 2px solid var(--lb-primary, #1D4771);
  box-shadow: 0 12px 28px rgba(29, 71, 113, .22);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lechner-booking-success-button:hover,
.lechner-booking-success-button:focus {
  background: var(--lb-primary-dark, #0E355F);
  border-color: var(--lb-primary-dark, #0E355F);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(29, 71, 113, .26);
}

.lechner-booking-success-button:focus-visible {
  outline: 3px solid var(--lb-accent, #519689);
  outline-offset: 3px;
}

.lechner-booking-success__details {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 42%);
  box-shadow: 0 18px 42px rgba(29, 71, 113, .10);
}

.lechner-booking-success__details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 18px 0 0 18px;
  background: var(--lb-secondary, #7CC5C2);
}

.lechner-booking-success__details-title {
  margin: 0 0 8px;
  color: var(--lb-primary, #1D4771);
  font-size: 1.35rem;
  font-weight: 700;
}

.lechner-booking-success__detail {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--lb-surface, #EEECEC), white 42%);
}

.lechner-booking-success__detail span {
  color: var(--lb-muted, #526173);
  font-size: .92rem;
  font-weight: 700;
}

.lechner-booking-success__detail strong {
  color: var(--lb-primary-dark, #0E355F);
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .lechner-booking-success__layout {
    grid-template-columns: 1fr;
  }

  .lechner-booking-success__main {
    text-align: center;
  }

  .lechner-booking-success__icon {
    margin-inline: auto;
  }

  .lechner-booking-success__actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .lechner-booking-success {
    margin: 24px auto;
    padding: 22px;
  }

  .lechner-booking-success-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lechner-booking-success-button {
    transition: none;
  }

  .lechner-booking-success-button:hover,
  .lechner-booking-success-button:focus {
    transform: none;
  }
}


/* v33 clean success page chrome
 *
 * Primary cleanup is done in PHP:
 * - no public messenger status on success redirect
 * - empty route title
 * - breadcrumb emptied by preprocess hook
 *
 * This CSS is only a defensive fallback for themes that still render an empty
 * title wrapper close to the success card.
 */
.lechner-booking-success {
  margin-top: clamp(24px, 4vw, 56px);
}


/* v36 full responsive hardening
 *
 * Goal:
 * - stable layout from 320px mobile to wide desktop
 * - no horizontal overflow
 * - booking calendar/times, panels, success page and admin tables adapt
 * - admin-configured fixed widths cannot break mobile
 *
 * This block comes last intentionally.
 */

/* Global component guardrails. */
.lechner-booking-app,
.lechner-booking-success {
  box-sizing: border-box !important;
  width: min(var(--lb-width, 100%), 100%) !important;
  max-width: min(var(--lb-max-width, 1180px), calc(100vw - 24px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-wrap: anywhere;
}

.lechner-booking-app *,
.lechner-booking-app *::before,
.lechner-booking-app *::after,
.lechner-booking-success *,
.lechner-booking-success *::before,
.lechner-booking-success *::after {
  box-sizing: border-box !important;
}

/* Inputs must never overflow their cards. */
.lechner-booking-app input[type="text"],
.lechner-booking-app input[type="email"],
.lechner-booking-app input[type="url"],
.lechner-booking-app input[type="number"],
.lechner-booking-app input[type="date"],
.lechner-booking-app select,
.lechner-booking-app textarea {
  max-width: 100% !important;
}

/* Main booking picker adapts automatically. */
.lechner-booking-app .lechner-booking-picker,
.lechner-booking-app .lechner-booking-step-content--1 .lechner-booking-picker {
  display: grid !important;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr) !important;
  gap: clamp(16px, 3vw, 32px) !important;
  align-items: stretch !important;
  width: 100% !important;
}

.lechner-booking-app .lechner-booking-calendar,
.lechner-booking-app .lechner-booking-times {
  min-width: 0 !important;
  width: 100% !important;
}

/* Calendar cells scale instead of forcing overflow. */
.lechner-booking-app .lechner-booking-calendar__weekdays,
.lechner-booking-app .lechner-booking-calendar__grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

.lechner-booking-app .lechner-booking-day {
  width: clamp(34px, 5vw, 44px) !important;
  height: clamp(34px, 5vw, 44px) !important;
  min-height: clamp(34px, 5vw, 44px) !important;
  margin-inline: auto !important;
  font-size: clamp(.86rem, 2vw, 1rem) !important;
}

/* Time slots use a true responsive grid. */
.lechner-booking-app .lechner-booking-time-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)) !important;
  gap: clamp(10px, 2vw, 16px) !important;
  width: 100% !important;
}

.lechner-booking-app .lechner-booking-time {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  white-space: nowrap !important;
}

/* Panels and hero scale with viewport. */
.lechner-booking-app .lechner-booking-hero,
.lechner-booking-app .lechner-booking-panel,
.lechner-booking-app .lechner-booking-calendar,
.lechner-booking-app .lechner-booking-times,
.lechner-booking-app .lechner-booking-card {
  padding: clamp(16px, 3vw, 28px) !important;
}

.lechner-booking-app .lechner-booking-hero__title {
  font-size: clamp(2rem, 5.5vw, 4.2rem) !important;
}

.lechner-booking-app .lechner-booking-panel-header {
  gap: clamp(10px, 2vw, 16px) !important;
}

.lechner-booking-app .lechner-booking-panel-header h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
}

.lechner-booking-app .lechner-booking-panel-header p,
.lechner-booking-app .lechner-booking-section-help,
.lechner-booking-app .lechner-booking-times__help {
  font-size: clamp(.95rem, 2vw, 1rem) !important;
}

/* Action buttons wrap cleanly. */
.lechner-booking-app .lechner-booking-panel-actions,
.lechner-booking-app .lechner-booking-actions,
.lechner-booking-app .form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: clamp(10px, 2vw, 18px) !important;
  align-items: center !important;
}

.lechner-booking-app .lechner-booking-nav-button,
.lechner-booking-app input[type="submit"],
.lechner-booking-app button[type="submit"] {
  min-width: min(220px, 100%) !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
}

/* GDPR row responsive alignment. */
.lechner-booking-app .lechner-booking-gdpr {
  display: block !important;
  width: 100% !important;
}

.lechner-booking-app .lechner-booking-gdpr label:has(input[type="checkbox"]),
.lechner-booking-app .lechner-booking-gdpr .option:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] {
  flex: 0 0 auto !important;
  margin-top: .15em !important;
}

/* Admin list/filter tables should scroll instead of breaking the page. */
.lechner-booking-app table,
.lechner-booking-success table,
.region-content table {
  max-width: 100%;
}

.lechner-booking-app .responsive-table-wrapper,
.lechner-booking-success .responsive-table-wrapper {
  overflow-x: auto;
}

/* Success page. */
.lechner-booking-success {
  width: min(100%, 1120px) !important;
  max-width: calc(100vw - 24px) !important;
}

.lechner-booking-success__layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
}

.lechner-booking-success__title {
  font-size: 3.75rem;
}

.lechner-booking-success__details {
  min-width: 0 !important;
}

/* Large desktop gets a bit more breathing room, but does not stretch forever. */
@media (min-width: 1440px) {
  .lechner-booking-app {
    max-width: min(var(--lb-max-width, 1280px), 1360px) !important;
  }

  .lechner-booking-app .lechner-booking-time-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

/* Tablet and small desktop. */
@media (max-width: 1024px) {
  .lechner-booking-app .lechner-booking-picker,
  .lechner-booking-app .lechner-booking-step-content--1 .lechner-booking-picker {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
  }

  .lechner-booking-success__layout {
    grid-template-columns: 1fr !important;
  }

  .lechner-booking-success__main {
    text-align: center !important;
  }

  .lechner-booking-success__icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .lechner-booking-success__actions {
    justify-content: center !important;
  }
}

/* Mobile landscape and narrow tablets. */
@media (max-width: 820px) {
  .lechner-booking-app {
    padding: min(var(--lb-form-padding, 20px), 20px) !important;
  }

  .lechner-booking-app .lechner-booking-picker,
  .lechner-booking-app .lechner-booking-step-content--1 .lechner-booking-picker {
    grid-template-columns: 1fr !important;
  }

  .lechner-booking-app .lechner-booking-calendar,
  .lechner-booking-app .lechner-booking-times {
    min-height: auto !important;
  }

  .lechner-booking-app .lechner-booking-time-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)) !important;
  }

  .lechner-booking-app .lechner-booking-nav-button,
  .lechner-booking-app input[type="submit"],
  .lechner-booking-app button[type="submit"] {
    min-width: min(180px, 100%) !important;
  }
}

/* Phones. */
@media (max-width: 560px) {
  .lechner-booking-app,
  .lechner-booking-success {
    max-width: calc(100vw - 16px) !important;
    margin-top: 12px !important;
    margin-bottom: 20px !important;
  }

  .lechner-booking-app {
    padding: min(var(--lb-form-padding, 16px), 14px) !important;
  }

  .lechner-booking-app .lechner-booking-hero,
  .lechner-booking-app .lechner-booking-panel,
  .lechner-booking-app .lechner-booking-calendar,
  .lechner-booking-app .lechner-booking-times,
  .lechner-booking-app .lechner-booking-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .lechner-booking-app .lechner-booking-hero__title {
    font-size: clamp(1.85rem, 9vw, 2.8rem) !important;
  }

  .lechner-booking-app .lechner-booking-panel-header {
    align-items: flex-start !important;
  }

  .lechner-booking-app .lechner-booking-panel-number {
    width: 34px !important;
    height: 34px !important;
  }

  .lechner-booking-app .lechner-booking-calendar__header {
    gap: 8px !important;
  }

  .lechner-booking-app .lechner-booking-calendar__title {
    font-size: 1rem !important;
  }

  .lechner-booking-app .lechner-booking-calendar__nav {
    width: 36px !important;
    height: 36px !important;
  }

  .lechner-booking-app .lechner-booking-calendar__weekdays,
  .lechner-booking-app .lechner-booking-calendar__grid {
    gap: 6px !important;
  }

  .lechner-booking-app .lechner-booking-day {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .lechner-booking-app .lechner-booking-time-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .lechner-booking-app .lechner-booking-time {
    min-height: 44px !important;
    padding: .65rem .75rem !important;
  }

  .lechner-booking-app .lechner-booking-panel-actions,
  .lechner-booking-app .lechner-booking-actions,
  .lechner-booking-app .form-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .lechner-booking-app .lechner-booking-nav-button,
  .lechner-booking-app input[type="submit"],
  .lechner-booking-app button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .lechner-booking-success {
    padding: 18px !important;
  }

  .lechner-booking-success__details {
    padding: 16px !important;
  }

  .lechner-booking-success-button {
    width: 100% !important;
  }
}

/* Very small phones, 320-380px. */
@media (max-width: 380px) {
  .lechner-booking-app .lechner-booking-time-grid {
    grid-template-columns: 1fr !important;
  }

  .lechner-booking-app .lechner-booking-calendar__weekdays,
  .lechner-booking-app .lechner-booking-calendar__grid {
    gap: 4px !important;
  }

  .lechner-booking-app .lechner-booking-day {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: .82rem !important;
  }

  .lechner-booking-app .lechner-booking-panel-header h2 {
    font-size: 1.15rem !important;
  }

  .lechner-booking-success__title {
    font-size: 2.1rem !important;
  }
}

/* Print-friendly success page. */
@media print {
  .lechner-booking-success {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    max-width: 100% !important;
  }

  .lechner-booking-success-button,
  .lechner-booking-success__actions {
    display: none !important;
  }
}


/* v37 mobile typography, checkbox and date wrapping fixes
 *
 * Comes last intentionally.
 * Fixes:
 * - title breaking inside words on mobile
 * - GDPR checkbox/label collision
 * - selected date wrapping after the hyphen
 * - over-large headings on narrow screens
 */

/* Do not break Hungarian words inside headings. */
.lechner-booking-app .lechner-booking-hero__title,
.lechner-booking-app .lechner-booking-panel-header h2,
.lechner-booking-app .lechner-booking-times__title,
.lechner-booking-success__title {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* More restrained title sizes. */
.lechner-booking-app .lechner-booking-hero__title {
  font-size: clamp(1.85rem, 4.4vw, 3.4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
}

.lechner-booking-app .lechner-booking-panel-header h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important;
  line-height: 1.18 !important;
}

.lechner-booking-app .lechner-booking-times__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  line-height: 1.22 !important;
}

/* Selected date/time must stay readable. */
.lechner-booking-app .lechner-booking-selected {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: .35rem .45rem !important;
  line-height: 1.4 !important;
}

.lechner-booking-app .lechner-booking-selected strong {
  flex: 0 0 auto !important;
}

.lechner-booking-app .lechner-booking-selected-datetime,
.lechner-booking-app [data-booking-summary-slot] {
  display: inline-block !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* GDPR checkbox fix for Bootstrap Barrio / Drupal form-check markup. */
.lechner-booking-app .lechner-booking-gdpr.form-check,
.lechner-booking-app .lechner-booking-gdpr .form-check,
.lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
.lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  align-items: start !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  align-self: start !important;
  accent-color: #0E355F !important;
}

.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option,
.lechner-booking-app .lechner-booking-gdpr .form-check-label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

/* If the theme renders input inside the label, keep it flex-based. */
.lechner-booking-app .lechner-booking-gdpr label:has(input[type="checkbox"]),
.lechner-booking-app .lechner-booking-gdpr .option:has(input[type="checkbox"]),
.lechner-booking-app .lechner-booking-gdpr .form-check-label:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.lechner-booking-app .lechner-booking-gdpr label:has(input[type="checkbox"]) input[type="checkbox"],
.lechner-booking-app .lechner-booking-gdpr .option:has(input[type="checkbox"]) input[type="checkbox"],
.lechner-booking-app .lechner-booking-gdpr .form-check-label:has(input[type="checkbox"]) input[type="checkbox"] {
  margin: 2px 0 0 0 !important;
}

/* Mobile-specific heading and spacing corrections. */
@media (max-width: 560px) {
  .lechner-booking-app .lechner-booking-hero__title {
    font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
    line-height: 1.12 !important;
  }

  .lechner-booking-app .lechner-booking-hero__lead {
    font-size: .96rem !important;
    line-height: 1.45 !important;
  }

  .lechner-booking-app .lechner-booking-panel-header {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .lechner-booking-app .lechner-booking-panel-header h2 {
    font-size: 1.18rem !important;
    line-height: 1.2 !important;
  }

  .lechner-booking-app .lechner-booking-panel-header p {
    font-size: .93rem !important;
    line-height: 1.42 !important;
  }

  .lechner-booking-app .lechner-booking-times__title {
    font-size: 1.08rem !important;
  }

  .lechner-booking-app .lechner-booking-selected {
    font-size: .96rem !important;
  }

  .lechner-booking-app .lechner-booking-gdpr {
    padding: 14px !important;
  }

  .lechner-booking-app .lechner-booking-gdpr label,
  .lechner-booking-app .lechner-booking-gdpr .option,
  .lechner-booking-app .lechner-booking-gdpr .form-check-label {
    font-size: .98rem !important;
  }
}

@media (max-width: 380px) {
  .lechner-booking-app .lechner-booking-hero__title {
    font-size: clamp(1.4rem, 6.4vw, 1.85rem) !important;
  }

  .lechner-booking-app .lechner-booking-panel-header h2 {
    font-size: 1.08rem !important;
  }

  .lechner-booking-app .lechner-booking-selected-datetime,
  .lechner-booking-app [data-booking-summary-slot] {
    font-size: .95rem !important;
  }
}


/* v38 mobile button width and required marker fixes
 * - mobile nav buttons full width
 * - required star inline and visible
 * - GDPR label / checkbox stronger theme override
 */
@media (max-width: 560px) {
  .lechner-booking-app .lechner-booking-panel-actions,
  .lechner-booking-app .lechner-booking-actions,
  .lechner-booking-app .form-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 14px !important;
  }

  .lechner-booking-app .lechner-booking-panel-actions > *,
  .lechner-booking-app .lechner-booking-actions > *,
  .lechner-booking-app .form-actions > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .lechner-booking-app .lechner-booking-nav-button,
  .lechner-booking-app .lechner-booking-panel-actions .button,
  .lechner-booking-app .lechner-booking-panel-actions button,
  .lechner-booking-app .lechner-booking-actions .button,
  .lechner-booking-app .lechner-booking-actions button,
  .lechner-booking-app .form-actions .button,
  .lechner-booking-app .form-actions button,
  .lechner-booking-app input[type="submit"],
  .lechner-booking-app button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .lechner-booking-app .lechner-booking-gdpr,
  .lechner-booking-app .lechner-booking-gdpr.form-check,
  .lechner-booking-app .lechner-booking-gdpr .form-check,
  .lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
  .lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
  .lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
  }

  .lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
  .lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .lechner-booking-app .lechner-booking-gdpr label,
  .lechner-booking-app .lechner-booking-gdpr .option,
  .lechner-booking-app .lechner-booking-gdpr .form-check-label,
  .lechner-booking-app .lechner-booking-gdpr .form-required {
    display: inline !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
}

.lechner-booking-app label.form-required::after,
.lechner-booking-app .form-required::after,
.lechner-booking-app .js-form-required::after,
.lechner-booking-app .required::after {
  content: " *" !important;
  color: #d7263d !important;
  display: inline !important;
  position: static !important;
  float: none !important;
  vertical-align: baseline !important;
  margin-left: .18em !important;
  font-size: 1em !important;
  line-height: inherit !important;
}

.lechner-booking-app .lechner-booking-gdpr .form-required,
.lechner-booking-app .lechner-booking-gdpr .form-check-label,
.lechner-booking-app .lechner-booking-gdpr label {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}


/* v39 checkbox vertical centering and required star visibility fix */
.lechner-booking-app .lechner-booking-gdpr,
.lechner-booking-app .lechner-booking-gdpr.form-check,
.lechner-booking-app .lechner-booking-gdpr .form-check,
.lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
.lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
  align-items: center !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  align-self: center !important;
  margin-top: 0 !important;
}

.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option,
.lechner-booking-app .lechner-booking-gdpr .form-check-label,
.lechner-booking-app .lechner-booking-gdpr .form-required {
  padding-right: 14px !important;
  overflow: visible !important;
}

.lechner-booking-app label.form-required::after,
.lechner-booking-app .form-required::after,
.lechner-booking-app .js-form-required::after,
.lechner-booking-app .required::after {
  content: "*" !important;
  color: #d7263d !important;
  display: inline-block !important;
  position: static !important;
  float: none !important;
  vertical-align: baseline !important;
  width: 10px !important;
  min-width: 10px !important;
  margin-left: 4px !important;
  text-align: left !important;
  line-height: 1 !important;
  overflow: visible !important;
}

@media (max-width: 560px) {
  .lechner-booking-app .lechner-booking-gdpr,
  .lechner-booking-app .lechner-booking-gdpr.form-check,
  .lechner-booking-app .lechner-booking-gdpr .form-check,
  .lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
  .lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
  .lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
    align-items: center !important;
    column-gap: 12px !important;
  }

  .lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
  .lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
    align-self: center !important;
    justify-self: center !important;
  }

  .lechner-booking-app .lechner-booking-gdpr label,
  .lechner-booking-app .lechner-booking-gdpr .option,
  .lechner-booking-app .lechner-booking-gdpr .form-check-label,
  .lechner-booking-app .lechner-booking-gdpr .form-required {
    padding-right: 16px !important;
  }

  .lechner-booking-app label.form-required::after,
  .lechner-booking-app .form-required::after,
  .lechner-booking-app .js-form-required::after,
  .lechner-booking-app .required::after {
    width: 10px !important;
    min-width: 10px !important;
    margin-left: 4px !important;
  }
}


/* v40 GDPR checkbox final required marker fix
 *
 * The checkbox input itself must never get a required star.
 * Only the text label should show the required marker.
 * This block intentionally comes last.
 */

/* Remove pseudo required marker from input elements. */
.lechner-booking-app input.form-required::before,
.lechner-booking-app input.form-required::after,
.lechner-booking-app input.js-form-required::before,
.lechner-booking-app input.js-form-required::after,
.lechner-booking-app input.required::before,
.lechner-booking-app input.required::after,
.lechner-booking-app input[type="checkbox"].form-required::before,
.lechner-booking-app input[type="checkbox"].form-required::after,
.lechner-booking-app input[type="checkbox"].js-form-required::before,
.lechner-booking-app input[type="checkbox"].js-form-required::after,
.lechner-booking-app input[type="checkbox"].required::before,
.lechner-booking-app input[type="checkbox"].required::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Defensive reset: if a theme turns required checkbox input into a marker-looking box,
 * keep it a normal checkbox.
 */
.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"] {
  color: initial !important;
  font-size: initial !important;
  text-indent: 0 !important;
}

/* Hide standalone required marker nodes inside the GDPR box.
 * The required mark will be added to the actual label below.
 */
.lechner-booking-app .lechner-booking-gdpr > .form-required:not(label):not(.form-check-label):not(.option),
.lechner-booking-app .lechner-booking-gdpr .form-required:not(label):not(.form-check-label):not(.option)::before,
.lechner-booking-app .lechner-booking-gdpr .form-required:not(label):not(.form-check-label):not(.option)::after {
  display: none !important;
  content: none !important;
}

/* Label-only GDPR required marker. */
.lechner-booking-app .lechner-booking-gdpr label.form-required::after,
.lechner-booking-app .lechner-booking-gdpr label.js-form-required::after,
.lechner-booking-app .lechner-booking-gdpr .form-check-label.form-required::after,
.lechner-booking-app .lechner-booking-gdpr .form-check-label.js-form-required::after,
.lechner-booking-app .lechner-booking-gdpr .option.form-required::after,
.lechner-booking-app .lechner-booking-gdpr .option.js-form-required::after {
  content: " *" !important;
  color: #d7263d !important;
  display: inline-block !important;
  width: 10px !important;
  min-width: 10px !important;
  margin-left: 4px !important;
  text-align: left !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  position: static !important;
  float: none !important;
  overflow: visible !important;
}

/* Checkbox and label alignment. */
.lechner-booking-app .lechner-booking-gdpr,
.lechner-booking-app .lechner-booking-gdpr.form-check,
.lechner-booking-app .lechner-booking-gdpr .form-check,
.lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
.lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  align-items: center !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 0 !important;
}

.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option,
.lechner-booking-app .lechner-booking-gdpr .form-check-label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding-right: 18px !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}



/* v41 email confirmation field */

.lechner-booking-app .js-form-item-customer-email-confirm,
.lechner-booking-app .form-item-customer-email-confirm {
  margin-top: 1rem !important;
}


/* v42 email confirmation no paste/autofill */

.lechner-booking-app input[data-lechner-email-confirm="true"] {
  -webkit-text-security: none;
}


/* v43 GDPR checkbox spacing fix
 * Prevent overlap between checkbox and label on all breakpoints.
 */
.lechner-booking-app .lechner-booking-gdpr,
.lechner-booking-app .lechner-booking-gdpr.form-check,
.lechner-booking-app .lechner-booking-gdpr .form-check,
.lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
.lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
.lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  column-gap: 0 !important;
}

.lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
.lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
  justify-self: start !important;
  align-self: center !important;
  margin-right: 12px !important;
}

.lechner-booking-app .lechner-booking-gdpr label,
.lechner-booking-app .lechner-booking-gdpr .option,
.lechner-booking-app .lechner-booking-gdpr .form-check-label {
  padding-right: 18px !important;
}

@media (max-width: 560px) {
  .lechner-booking-app .lechner-booking-gdpr,
  .lechner-booking-app .lechner-booking-gdpr.form-check,
  .lechner-booking-app .lechner-booking-gdpr .form-check,
  .lechner-booking-app .lechner-booking-gdpr.form-type-checkbox,
  .lechner-booking-app .lechner-booking-gdpr.form-type--checkbox,
  .lechner-booking-app .lechner-booking-gdpr.js-form-type-checkbox {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  .lechner-booking-app .lechner-booking-gdpr input[type="checkbox"],
  .lechner-booking-app input[type="checkbox"][name="gdpr_accepted"] {
    margin-right: 14px !important;
  }
}


/* v44 hide native slot select when visual picker is active
 *
 * The native select stays in the DOM for submission/fallback, but once JS builds
 * the visual calendar/time picker, the select must not be visible or usable.
 * This fixes the admin booking page where the huge native select dropdown broke
 * the layout.
 */
.lechner-booking-app.lechner-booking-enhanced .lechner-booking-native-slot-select,
.lechner-booking-app.lechner-booking-enhanced .js-form-item-slot,
.lechner-booking-app.lechner-booking-enhanced .form-item-slot {
  display: none !important;
}

.lechner-booking-app.lechner-booking-enhanced select[name="slot"],
.lechner-booking-app.lechner-booking-enhanced select[data-lechner-booking-slot="true"] {
  display: none !important;
}



/* v45 admin booking ordering and auto-close visual states */

.lechner-booking-admin-list-help {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-left: 5px solid #7CC5C2;
  border-radius: 10px;
  background: #f4fbfa;
  color: #0E355F;
  font-weight: 650;
}

table.lechner-booking-admin-bookings {
  width: 100%;
  border-collapse: collapse;
}

table.lechner-booking-admin-bookings th {
  white-space: nowrap;
}

table.lechner-booking-admin-bookings td {
  vertical-align: middle;
}

table.lechner-booking-admin-bookings tr.lechner-booking-admin-row--today td {
  background: #edf9f8;
}

table.lechner-booking-admin-bookings tr.lechner-booking-admin-row--future td {
  background: #ffffff;
}

table.lechner-booking-admin-bookings tr.lechner-booking-admin-row--past td {
  background: #f7f7f7;
  color: #5d6670;
}

table.lechner-booking-admin-bookings tr.lechner-booking-admin-row--status-closed td {
  opacity: .88;
}

.lechner-booking-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.lechner-booking-admin-badge--today {
  background: #7CC5C2;
  color: #0E355F;
  border-color: #0E355F;
}

.lechner-booking-admin-badge--future {
  background: #e5f4f3;
  color: #0E355F;
  border-color: #7CC5C2;
}

.lechner-booking-admin-badge--past {
  background: #eeeeee;
  color: #4b5563;
  border-color: #d1d5db;
}

.lechner-booking-admin-badge--status-confirmed {
  background: #e5f4f3;
  color: #0E355F;
  border-color: #7CC5C2;
}

.lechner-booking-admin-badge--status-closed {
  background: #e8e8e8;
  color: #374151;
  border-color: #c7c7c7;
}

.lechner-booking-admin-badge--status-cancelled,
.lechner-booking-admin-badge--status-exception-cancelled {
  background: #fff3cd;
  color: #7a4b00;
  border-color: #ffdc73;
}

.lechner-booking-admin-badge--email-sent {
  background: #e6f4ea;
  color: #1f6f43;
  border-color: #9bd3ad;
}

.lechner-booking-admin-badge--email-failed {
  background: #fde8e8;
  color: #9f1239;
  border-color: #f5a3a3;
}

.lechner-booking-admin-badge--email-pending,
.lechner-booking-admin-badge--email-unknown {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

@media (max-width: 900px) {
  table.lechner-booking-admin-bookings {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* v48 hide empty selected slot frame */

.lechner-booking-app .lechner-booking-selected:not(.has-selection),
.lechner-booking-app .lechner-booking-selected:empty {
  display: none !important;
}


/* v49 border and shadow polish
 *
 * Requested:
 * - On booking time/calendar cards only borders should remain, no card shadows.
 * - On success page the accent border should align with the card border.
 */

/* Public booking calendar/time panels: border only, no shadow. */
.lechner-booking-app .lechner-booking-calendar,
.lechner-booking-app .lechner-booking-times,
.lechner-booking-app .lechner-booking-picker > .lechner-booking-calendar,
.lechner-booking-app .lechner-booking-picker > .lechner-booking-times {
  box-shadow: none !important;
}

/* Also remove extra active panel shadow inside the slot step, because it makes
 * the two inner bordered cards look visually misaligned.
 */
.lechner-booking-app .lechner-booking-panel--slot.is-open {
  box-shadow: none !important;
}

/* Success page details: use a real integrated left border instead of a separate
 * pseudo-element line. This prevents the two borders from looking misaligned.
 */
.lechner-booking-success__details {
  border-left: 6px solid var(--lb-secondary, #7CC5C2) !important;
}

.lechner-booking-success__details::before {
  display: none !important;
  content: none !important;
}


/* v50 form label spacing and description spacing
 *
 * Requested:
 * - normal form labels should sit 5px above their input
 * - form descriptions should sit 8px below their input
 * - do not disturb the GDPR checkbox card layout
 */
.lechner-booking-app .form-item:not(.lechner-booking-gdpr) > label,
.lechner-booking-app .js-form-item:not(.lechner-booking-gdpr) > label,
.lechner-booking-app .form-item:not(.lechner-booking-gdpr) .form-item__label,
.lechner-booking-app .js-form-item:not(.lechner-booking-gdpr) .form-item__label {
  display: inline-block !important;
  margin-bottom: 5px !important;
}

.lechner-booking-app .form-item:not(.lechner-booking-gdpr) .description,
.lechner-booking-app .js-form-item:not(.lechner-booking-gdpr) .description,
.lechner-booking-app .form-item:not(.lechner-booking-gdpr) .form-item__description,
.lechner-booking-app .js-form-item:not(.lechner-booking-gdpr) .form-item__description {
  margin-top: 8px !important;
}


/* v51 inline client-side errors and no native browser validation */

.lechner-booking-inline-error {
  /*width: min(100%, 640px);*/
  margin-top: 8px;
  padding: .7rem .85rem;
  border-left: 4px solid #d7263d;
  border-radius: 10px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 700;
  line-height: 1.45;
}

.lechner-booking-app .lechner-booking-field-error,
.lechner-booking-app .lechner-booking-field-error:focus {
  border-color: #d7263d !important;
  box-shadow: 0 0 0 4px rgba(215, 38, 61, .16) !important;
}

.lechner-booking-app .has-lechner-booking-error .lechner-booking-gdpr,
.lechner-booking-app .lechner-booking-gdpr.has-lechner-booking-error {
  border-color: #d7263d !important;
}

.lechner-booking-app .lechner-booking-gdpr + .lechner-booking-inline-error {
  width: 100%;
}

.lechner-booking-app .lechner-booking-enhancer + .lechner-booking-inline-error {
  width: 100%;
  margin-bottom: 1rem;
}


/* v53 test feedback fixes */

/* Avoid double required markers. Drupal/core already outputs the required marker.
 * Older module CSS added another ::after star.
 */
.lechner-booking-app label.form-required::after,
.lechner-booking-app .form-required::after,
.lechner-booking-app .js-form-required::after,
.lechner-booking-app .required::after {
  content: none !important;
  display: none !important;
}

/* Show the selected appointment on the second step so users do not need to go
 * back just to check what they selected.
 */
.lechner-booking-data-selected-slot {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-left: 5px solid var(--lb-secondary, #7CC5C2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lb-surface, #EEECEC), white 42%);
  color: var(--lb-primary-dark, #0E355F);
  font-weight: 700;
}

.lechner-booking-data-selected-slot span {
  font-weight: 700;
}

.lechner-booking-data-selected-slot:not(.has-selection),
.lechner-booking-data-selected-slot:empty {
  display: none !important;
}

/* Strong no-cache related visual safety: closed dates and exception notices
 * must be visible and not collapse due to theme styles.
 */
.lechner-booking-closed-days {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-left: 5px solid #d7263d;
  border-radius: 12px;
  background: #fff1f2;
  color: #7f1d1d;
}

.lechner-booking-closed-days h3 {
  margin: 0 0 .5rem;
  color: #7f1d1d;
  font-size: 1.05rem;
}

.lechner-booking-closed-days ul {
  margin: 0;
  padding-left: 1.25rem;
}


/* v54 required marker final fix
 *
 * Goal:
 * - exactly one visible asterisk
 * - only on required labels
 * - never on inputs, wrappers, helper spans, checkbox boxes or descriptions
 *
 * Drupal/Bootstrap themes differ:
 * some use label.form-required::after,
 * some render a separate span.form-required,
 * older module CSS also added custom ::after markers.
 * This final block normalizes everything at the end of the cascade.
 */

/* 1. Remove every required marker that is NOT on a label-like element. */
.lechner-booking-app input.form-required::before,
.lechner-booking-app input.form-required::after,
.lechner-booking-app input.js-form-required::before,
.lechner-booking-app input.js-form-required::after,
.lechner-booking-app input.required::before,
.lechner-booking-app input.required::after,
.lechner-booking-app select.form-required::before,
.lechner-booking-app select.form-required::after,
.lechner-booking-app select.js-form-required::before,
.lechner-booking-app select.js-form-required::after,
.lechner-booking-app textarea.form-required::before,
.lechner-booking-app textarea.form-required::after,
.lechner-booking-app textarea.js-form-required::before,
.lechner-booking-app textarea.js-form-required::after,
.lechner-booking-app .form-required:not(label):not(.form-check-label):not(.option)::before,
.lechner-booking-app .form-required:not(label):not(.form-check-label):not(.option)::after,
.lechner-booking-app .js-form-required:not(label):not(.form-check-label):not(.option)::before,
.lechner-booking-app .js-form-required:not(label):not(.form-check-label):not(.option)::after,
.lechner-booking-app .required:not(label):not(.form-check-label):not(.option)::before,
.lechner-booking-app .required:not(label):not(.form-check-label):not(.option)::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* 2. Hide separate Drupal/theme marker spans in this component.
 * The single marker is rendered by the required label rule below.
 */
.lechner-booking-app span.form-required,
.lechner-booking-app span.js-form-required,
.lechner-booking-app span.required,
.lechner-booking-app abbr.form-required,
.lechner-booking-app abbr.js-form-required,
.lechner-booking-app abbr.required {
  display: none !important;
}

/* 3. Add one marker only to required labels. */
.lechner-booking-app label.form-required::after,
.lechner-booking-app label.js-form-required::after,
.lechner-booking-app label.required::after,
.lechner-booking-app .form-check-label.form-required::after,
.lechner-booking-app .form-check-label.js-form-required::after,
.lechner-booking-app .form-check-label.required::after,
.lechner-booking-app .option.form-required::after,
.lechner-booking-app .option.js-form-required::after,
.lechner-booking-app .option.required::after {
  content: " *" !important;
  display: inline !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 0 0 .2em !important;
  padding: 0 !important;
  color: #d7263d !important;
  background: none !important;
  background-image: none !important;
  font-size: 1em !important;
  font-weight: 700 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  text-align: left !important;
  overflow: visible !important;
}

/* 4. If a theme puts required class on a wrapper instead of the actual label,
 * do not show a marker on the wrapper. This prevents duplicate markers.
 */
.lechner-booking-app .form-item.form-required::after,
.lechner-booking-app .js-form-item.form-required::after,
.lechner-booking-app .form-item.js-form-required::after,
.lechner-booking-app .js-form-item.js-form-required::after {
  content: none !important;
  display: none !important;
}

/* 5. Keep checkbox label layout stable with the single marker. */
.lechner-booking-app .lechner-booking-gdpr label.form-required::after,
.lechner-booking-app .lechner-booking-gdpr label.js-form-required::after,
.lechner-booking-app .lechner-booking-gdpr .form-check-label.form-required::after,
.lechner-booking-app .lechner-booking-gdpr .form-check-label.js-form-required::after,
.lechner-booking-app .lechner-booking-gdpr .option.form-required::after,
.lechner-booking-app .lechner-booking-gdpr .option.js-form-required::after {
  margin-left: .2em !important;
}



/* v55 online administration notice banner */

.lechner-booking-online-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  margin: -0.25rem 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 28%);
  border-left: 6px solid var(--lb-secondary, #7CC5C2);
  border-radius: var(--lb-radius, 18px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lb-secondary, #7CC5C2), white 78%) 0%, #fff 100%);
  color: var(--lb-primary-dark, #0E355F);
}

.lechner-booking-online-notice__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lb-secondary, #7CC5C2);
  color: var(--lb-primary-dark, #0E355F);
  font-size: 1.55rem;
  border: 2px solid var(--lb-primary-dark, #0E355F);
}

.lechner-booking-online-notice__content {
  min-width: 0;
}

.lechner-booking-online-notice__eyebrow {
  margin-bottom: .15rem;
  color: var(--lb-primary-dark, #0E355F);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.lechner-booking-online-notice h2 {
  margin: 0 0 .35rem;
  color: var(--lb-primary, #1D4771);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 700;
}

.lechner-booking-online-notice p {
  margin: 0;
  max-width: 80ch;
  color: var(--lb-primary-dark, #0E355F);
  line-height: 1.55;
}

.lechner-booking-online-notice__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1rem;
  border-radius: var(--lb-button-radius, 10px);
  background: var(--lb-primary, #1D4771);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--lb-primary, #1D4771);
}

.lechner-booking-online-notice__link:hover,
.lechner-booking-online-notice__link:focus {
  background: var(--lb-primary-dark, #0E355F);
  border-color: var(--lb-primary-dark, #0E355F);
}

.lechner-booking-online-notice__link:focus-visible {
  outline: 3px solid var(--lb-accent, #519689);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .lechner-booking-online-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lechner-booking-online-notice__link {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .lechner-booking-online-notice {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .lechner-booking-online-notice__icon {
    width: 3rem;
    height: 3rem;
  }
}

/* "3. pont" nyomtatvány letöltés lépés kiemelt CTA linkje.
 * A gomb csak akkor látszik, amikor a panel nyitva van (a
 * lechner-booking-panel-header-en kívüli gyermekek collapse állapotban
 * el vannak rejtve), és a fejléc sorával egy magasságban, jobbra igazítva
 * jelenik meg.
 */
.lechner-booking-panel--form-download.is-open {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 16px;
}

.lechner-booking-panel--form-download.is-open .lechner-booking-panel-header {
  grid-column: 1;
  grid-row: 1;
}

.lechner-booking-panel--form-download.is-open .lechner-booking-form-download {
  grid-column: 2;
  grid-row: 1;
}

.lechner-booking-panel--form-download.is-open .lechner-booking-panel-actions {
  grid-column: 1 / -1;
  grid-row: 2;
}

.lechner-booking-form-download {
  margin: 0;
}

.lechner-booking-form-download__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.35rem;
  border-radius: var(--lb-button-radius, 14px);
  background: #fff;
  color: var(--lb-primary-dark, #315c45) !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 2px solid var(--lb-primary-dark, #315c45);
  white-space: nowrap;
}

.lechner-booking-form-download__link:hover,
.lechner-booking-form-download__link:focus,
.lechner-booking-form-download__link:active {
  background: color-mix(in srgb, var(--lb-primary-dark, #315c45), white 90%) !important;
  border-color: var(--lb-primary-dark, #315c45) !important;
  color: var(--lb-primary-dark, #315c45) !important;
}

.lechner-booking-form-download__link:focus-visible {
  outline: 3px solid var(--lb-accent, #69b785);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .lechner-booking-panel--form-download.is-open {
    grid-template-columns: 1fr;
  }

  .lechner-booking-panel--form-download.is-open .lechner-booking-form-download {
    grid-column: 1;
    grid-row: 2;
  }

  .lechner-booking-panel--form-download.is-open .lechner-booking-panel-actions {
    grid-row: 3;
  }

  .lechner-booking-form-download__link {
    width: 100%;
  }
}

/* v51 success page Figma reconciliation: badge/icon markup removed from the
 * controller, so the title needs a bit more top margin to avoid sitting too
 * close to the card edge; shadows tightened to match the design spec. */
.lechner-booking-success__title {
  margin-top: .5rem;
}

.lechner-booking-success-button {
  box-shadow: 0 12px 14px rgba(29, 71, 113, .22) !important;
}

.lechner-booking-success__details {
  box-shadow: 0 18px 21px rgba(29, 71, 113, .10) !important;
}
