.booking-page {
  min-height: min(760px, calc(100svh - var(--header-height)));
  padding-block: clamp(42px, 8vw, 96px);
}

.booking-page__inner {
  display: grid;
  min-height: 440px;
  place-items: center;
}

.booking-panel {
  width: min(100%, 900px);
}

.booking-panel__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.booking-panel__icon,
.booking-calendar__mark {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}

.booking-panel__icon svg,
.booking-calendar__mark svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.booking-panel__heading .eyebrow {
  margin-bottom: 5px;
}

.booking-panel__heading h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -.055em;
  line-height: 1.05;
}

.booking-panel__intro {
  max-width: 650px;
  margin: 0 0 22px 76px;
  color: var(--muted);
  font-size: 13px;
}

.booking-panel__intro a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.booking-calendar {
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 560px) {
  .booking-panel__heading {
    align-items: flex-start;
    gap: 13px;
  }

  .booking-panel__intro {
    margin-left: 0;
  }

  .booking-page__inner {
    min-height: 360px;
  }

  .booking-calendar {
    padding: 24px;
  }
}

/* Kalendarz rezerwacji: dopasowanie wyglądu do motywu bez zmian w wtyczce. */
.booking-calendar #smartcalendar-wrapper {
  margin: 0;
  color: var(--text);
  font-family: inherit;
}

.booking-calendar #smartcalendar-wrapper button {
  font-family: inherit;
}

.booking-calendar #smartcalendar-wrapper .calendar-topbar {
  gap: 10px;
  margin-bottom: 18px;
}

.booking-calendar #smartcalendar-wrapper .calendar-switch {
  gap: 8px;
}

.booking-calendar #smartcalendar-wrapper .calendar-btn,
.booking-calendar #smartcalendar-wrapper .calendar-nav,
.booking-calendar #smartcalendar-wrapper .calendar-today-btn,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.booking-calendar #smartcalendar-wrapper .calendar-btn {
  padding-inline: 18px;
  background: var(--surface-raised);
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper .calendar-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper .calendar-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.booking-calendar #smartcalendar-wrapper .calendar-nav {
  width: 44px;
  min-width: 44px;
  height: 44px;
  background: var(--surface-raised);
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper .calendar-nav:hover,
.booking-calendar #smartcalendar-wrapper .calendar-today-btn:hover,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn:hover {
  transform: translateY(-1px);
}

.booking-calendar #smartcalendar-wrapper .calendar-nav:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
}

.booking-calendar #smartcalendar-wrapper .calendar-header {
  min-height: 44px;
  margin-bottom: 12px;
}

.booking-calendar #smartcalendar-wrapper .calendar-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.booking-calendar #smartcalendar-wrapper .calendar-today-btn,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn {
  position: static;
  height: 44px;
  padding-inline: 16px;
  background: var(--surface-raised);
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper .calendar-today-btn:hover,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
}

.booking-calendar #smartcalendar-wrapper .operator-filter-btn .filter-icon,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn .operator-avatar-small {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--surface);
}

.booking-calendar #smartcalendar-wrapper .operator-filter-btn .filter-icon svg circle,
.booking-calendar #smartcalendar-wrapper .operator-filter-btn .filter-icon svg path {
  stroke: var(--muted);
}

.booking-calendar #smartcalendar-wrapper .fc {
  --fc-border-color: var(--line);
  --fc-page-bg-color: var(--surface);
  --fc-neutral-bg-color: var(--surface-raised);
  --fc-neutral-text-color: var(--muted);
  --fc-today-bg-color: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
}

.booking-calendar #smartcalendar-wrapper .fc .fc-scrollgrid,
.booking-calendar #smartcalendar-wrapper .fc .fc-scrollgrid-section > td,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-axis,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-col {
  border-color: var(--line);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-scrollgrid,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-body,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-col,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-lane {
  background: var(--surface);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-col-header-cell,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-axis,
.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-label {
  background: var(--surface-raised);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-col-header-cell-cushion {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.booking-calendar #smartcalendar-wrapper .fc-day-header,
.booking-calendar #smartcalendar-wrapper .fc-day-header .fc-dzien,
.booking-calendar #smartcalendar-wrapper .fc-day-header .fc-data,
.booking-calendar #smartcalendar-wrapper .fc-day-header .fc-miesiac {
  color: var(--muted);
}

.booking-calendar #smartcalendar-wrapper .fc-day-header .fc-data {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.booking-calendar #smartcalendar-wrapper .fc .fc-col-header-cell.fc-day-today {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
}

.booking-calendar #smartcalendar-wrapper .fc .fc-col-header-cell.fc-day-today .fc-day-header-custom .fc-data {
  color: var(--accent);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-label-cushion {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-now-indicator-line {
  border-color: var(--accent);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-now-indicator-arrow {
  border-color: var(--accent);
  color: var(--accent);
}

.booking-calendar #smartcalendar-wrapper .fc .fc-highlight {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)) !important;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised)) !important;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms ease;
}

.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in .fc-event-main,
.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in .fc-event-time {
  color: transparent !important;
}

.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in[style*="rgb(245, 181, 181)"] {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  box-shadow: none;
}

.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.booking-page .booking-calendar #smartcalendar-wrapper .fc-timegrid-event.slot-bounce-in:hover:not([style*="rgb(245, 181, 181)"]) {
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface-raised)) !important;
}

.booking-calendar #smartcalendar-wrapper #day-slots {
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper .day-slot-btn {
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised));
  color: var(--text);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.booking-calendar #smartcalendar-wrapper .day-slot-btn:hover,
.booking-calendar #smartcalendar-wrapper .day-slot-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.booking-calendar #smartcalendar-wrapper #calendar-summary {
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper #calendar-summary:hover {
  box-shadow: none;
}

.booking-calendar #smartcalendar-wrapper #slots-list p:only-child {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0;
  font-style: normal;
}

.booking-calendar #smartcalendar-wrapper #slots-list p:only-child::before {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa3d50' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.booking-calendar #smartcalendar-wrapper #slots-list p:only-child::after {
  color: var(--muted);
  content: "Brak zaznaczonych slot\00f3w.";
  font-size: 13px;
  font-style: italic;
}

.booking-calendar #smartcalendar-wrapper #slots-list p strong {
  border-bottom-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper #slots-list p:not(:has(strong))::before,
.booking-calendar #smartcalendar-wrapper #slots-list p:last-child strong::before {
  content: none;
}

.booking-calendar #smartcalendar-wrapper #slots-list p:not(:has(strong)) {
  border-left-color: var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper #slots-list p:not(:has(strong)):hover {
  border-left-color: var(--accent-hover);
  box-shadow: none;
}

.booking-calendar #smartcalendar-wrapper #slots-list hr {
  border-top-color: var(--line);
}

.booking-calendar #smartcalendar-wrapper #slots-list p:last-child strong {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.booking-calendar #smartcalendar-wrapper #package-login-prompt {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper #package-login-prompt .login-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
}

.booking-calendar #smartcalendar-wrapper #add-to-cart-summary {
  min-height: 48px;
  margin-top: 0;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.booking-calendar #smartcalendar-wrapper #add-to-cart-summary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.booking-calendar #smartcalendar-wrapper #add-to-cart-summary:active {
  transform: scale(.99);
}

.booking-calendar #smartcalendar-wrapper .calendar-swipe-hint {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: 0 16px 48px #0005;
  color: var(--muted);
}

.booking-calendar #smartcalendar-wrapper .calendar-swipe-hint svg path {
  stroke: var(--accent);
}

.booking-calendar #smartcalendar-wrapper .calendar-swipe-hint span:last-child {
  color: var(--muted) !important;
}

@media (max-width: 600px) {
  .booking-page {
    padding-block: 24px 0;
  }

  .booking-panel__heading {
    margin-bottom: 8px;
  }

  .booking-panel__intro {
    margin-bottom: 0;
  }

  .booking-page__inner {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    place-items: stretch;
  }

  .booking-panel {
    width: 100%;
  }

  .booking-panel__heading,
  .booking-panel__intro {
    margin-inline: 16px;
  }

  .booking-calendar {
    width: 100%;
    padding: 8px 0;
    border-right: 0;
    border-left: 0;
  }

  .booking-calendar #smartcalendar-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-topbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-switch {
    min-width: 0;
    flex-direction: row;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-nav {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-btn {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 11px;
    width: auto;
    flex: 1 1 0;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-header {
    min-height: 40px;
    margin-bottom: 8px;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-title {
    font-size: 14px;
  }

  .booking-calendar #smartcalendar-wrapper .calendar-today-btn,
  .booking-calendar #smartcalendar-wrapper .operator-filter-btn {
    min-height: 40px;
    height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .booking-calendar #smartcalendar-wrapper .operator-filter-btn .filter-icon,
  .booking-calendar #smartcalendar-wrapper .operator-filter-btn .operator-avatar-small {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
  }

  .booking-calendar #smartcalendar-wrapper .fc {
    width: 100%;
    font-size: 12px;
    line-height: 1.3;
  }

  .booking-calendar #smartcalendar-wrapper .fc-day-header-custom {
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .booking-calendar #smartcalendar-wrapper .fc-day-header-custom .fc-data {
    margin: 2px 0;
    font-size: 14px;
  }

  .booking-calendar #smartcalendar-wrapper .fc-day-header-custom .fc-miesiac {
    display: block;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timeGridWeek-view {
    height: 42vh !important;
    height: 42svh !important;
    min-height: 42vh !important;
    min-height: 42svh !important;
    max-height: 440px !important;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-body,
  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-body table {
    height: 100% !important;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-col,
  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-axis {
    min-width: 0 !important;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-axis {
    width: 34px !important;
    padding-inline: 3px !important;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot,
  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-label,
  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-lane {
    height: calc((42vh - 60px) / 15) !important;
    height: calc((42svh - 60px) / 15) !important;
    min-height: calc((42vh - 60px) / 15) !important;
    min-height: calc((42svh - 60px) / 15) !important;
  }

  .booking-calendar #smartcalendar-wrapper[data-mode="vip"] .fc .fc-timegrid-slot,
  .booking-calendar #smartcalendar-wrapper[data-mode="vip"] .fc .fc-timegrid-slot-label,
  .booking-calendar #smartcalendar-wrapper[data-mode="vip"] .fc .fc-timegrid-slot-lane {
    height: calc((42vh - 60px) / 24) !important;
    height: calc((42svh - 60px) / 24) !important;
    min-height: calc((42vh - 60px) / 24) !important;
    min-height: calc((42svh - 60px) / 24) !important;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-slot-label-cushion {
    padding-block: 2px;
    font-size: 11px;
    line-height: 1.2;
  }

  .booking-calendar #smartcalendar-wrapper .fc .fc-timegrid-col {
    min-height: 0 !important;
  }

  .booking-calendar #smartcalendar-wrapper #calendar-summary {
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
  }

  .booking-calendar #smartcalendar-wrapper #slots-list p:only-child {
    padding: 8px;
  }

  .booking-calendar #smartcalendar-wrapper #add-to-cart-summary {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-calendar #smartcalendar-wrapper *,
  .booking-calendar #smartcalendar-wrapper *::before,
  .booking-calendar #smartcalendar-wrapper *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.booking-calendar #smartcalendar-wrapper .sc-package-price,
.booking-calendar #smartcalendar-wrapper .sc-package-guest-section {
  font-family: inherit;
}

.booking-calendar #smartcalendar-wrapper .sc-package-guest-section > span {
  font-weight: 700;
}

.booking-calendar #smartcalendar-wrapper .sc-package-guest-button {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.booking-calendar #smartcalendar-wrapper .sc-package-guest-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
  color: var(--text);
}
