/* React booking + cennik (redesign tokens) */
/* Booking layout */
.ab-booking .ab-flex {
  min-width: 0;
  max-width: 100%;
}

.ab-booking .ab-col {
  min-width: 0;
  max-width: 100%;
}

.ab-booking-contact-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.ab-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, var(--ink) 45%, var(--blue) 100%);
  box-shadow: 0 0 10px rgba(253, 19, 16, 0.45);
}

.ab-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.ab-field {
  margin-bottom: 20px;
}

.ab-picker {
  position: relative;
  display: block;
}

.ab-picker::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -2px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  opacity: 0.9;
}

.ab-select,
.ab-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background-color: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.ab-picker .ab-select {
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

.ab-picker--list::after {
  display: none;
}

.ab-select--listbox {
  height: auto;
  overflow: visible;
  padding: 4px;
  cursor: default;
  appearance: auto;
  -webkit-appearance: listbox;
}

.ab-select--listbox option {
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 6px;
}

.ab-select:hover,
.ab-input:hover {
  border-color: rgba(1, 112, 252, 0.45);
}

.ab-select:focus,
.ab-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 112, 252, 0.18);
}

.ab-select option {
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}

.ab-phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.ab-phone-prefix {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ab-input-phone {
  flex: 1 1 160px;
  min-width: 0;
}

.ab-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ab-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(1, 112, 252, 0.35);
  background: rgba(1, 112, 252, 0.12);
  color: var(--ink);
}

.ab-price-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.ab-service-row,
.ab-barber-row {
  margin-bottom: 0;
}

.ab-booking-form-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-booking-contact-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Wybrana usługa (pod kalendarzem / godzinami) */
.ab-selected-service-wrap {
  margin-top: 22px;
}

.ab-selected-service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.ab-selected-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.ab-selected-service-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}

.ab-selected-service-scroll {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ab-selected-service-table .ab-cennik-row--selected td {
  background: rgba(1, 112, 252, 0.08);
}

.ab-selected-service-hint {
  margin: 0;
  max-width: 420px;
}

.ab-selected-service-scroll {
  margin-bottom: 0;
}

/* Pełny cennik pod kartą rezerwacji */
.ab-cennik-full-wrap {
  margin-top: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ab-cennik-full-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.ab-cennik-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.ab-cennik-title--full {
  font-size: clamp(18px, 2.5vw, 24px);
  letter-spacing: 0.06em;
  margin: 8px 0 18px;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 800;
}

.ab-cennik-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-inset);
}

.ab-cennik-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 13px;
}

.ab-cennik-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper-3);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}

.ab-cennik-th-narrow {
  width: 1%;
  white-space: nowrap;
}

.ab-cennik-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.ab-cennik-table tbody tr:last-child td {
  border-bottom: none;
}

.ab-cennik-row:hover td {
  background: rgba(1, 112, 252, 0.07);
}

.ab-cennik-row--selected td {
  background: rgba(1, 112, 252, 0.12);
  box-shadow: inset 3px 0 0 var(--blue);
  color: var(--ink);
}

.ab-cennik-name {
  font-weight: 600;
  color: var(--ink);
}

.ab-cennik-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ab-cennik-meta {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ab-cennik-price {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}

/* —— Kalendarz rezerwacji (redesign) —— */
.ab-calendar {
  background: var(--cal-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px 14px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.35s, border-color 0.35s, opacity 0.3s;
}

.ab-calendar--locked {
  opacity: 0.42;
  pointer-events: none;
}

.ab-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ab-calendar-month {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--ink);
}

.ab-calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  flex: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.3s var(--ease);
}

.ab-calendar-nav-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.ab-calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.ab-calendar-body {
  width: 100%;
  margin: 0 0 10px;
}

.ab-booking-horizon-note {
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.ab-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 34px;
  gap: 6px;
}

.ab-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.ab-calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ab-calendar-legend__item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 6px;
  flex: none;
}

.ab-calendar-legend__item--working::before {
  background: var(--cal-working-bg);
  border: 1.5px solid var(--cal-working-border);
}

.ab-calendar-legend__item--active::before {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border: none;
}

.ab-times-block {
  transition: opacity 0.3s;
}

.ab-times-block--locked {
  opacity: 0.42;
  pointer-events: none;
}

/* Osobny box: sprawdzanie wizyt */
.ab-booking-lookup {
  margin-top: 0;
  border-radius: 16px;
  overflow-x: clip;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.ab-booking-lookup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 16px 16px 0 0;
}

.ab-booking-lookup__heading {
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.ab-booking-lookup__intro {
  max-width: 520px;
  margin: 0 auto 24px;
  text-align: center;
}

.ab-appointment-lookup {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.ab-appointment-lookup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.ab-appointment-lookup__mode {
  display: flex;
  gap: 8px;
}

.ab-appointment-lookup__mode-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ab-appointment-lookup__mode-btn--active {
  border-color: var(--blue);
  color: var(--ink);
  background: rgba(1, 112, 252, 0.15);
}

.ab-appointment-lookup__submit {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--line), #2a2a30);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ab-appointment-lookup__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ab-appointment-lookup__submit:not(:disabled):hover {
  background: linear-gradient(135deg, #4a4a52, #35353c);
}

.ab-appointment-lookup__msg {
  margin-top: 10px;
  max-width: 100%;
  text-align: center;
}

.ab-appointment-lookup__result {
  margin-top: 16px;
  max-width: 100%;
  text-align: center;
}

.ab-appointment-lookup__summary {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  text-align: center;
}

.ab-appointment-lookup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-appointment-lookup__list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(1, 112, 252, 0.08);
  border: 1px solid rgba(1, 112, 252, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ab-booking-lookup .ab-phone-field {
  justify-content: center;
}

.ab-appointment-lookup__when {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.ab-appointment-lookup__meta {
  font-size: 12px;
  color: var(--muted);
}

.ab-calendar-weekday {
  text-align: center;
  font-size: 10px;
  padding: 2px 0 4px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.ab-calendar-day--empty {
  display: block;
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
  height: 34px;
  min-height: 34px;
}

.ab-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: var(--cal-day-bg);
  color: var(--cal-day-ink);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.18s ease,
    box-shadow 0.22s ease, opacity 0.22s ease, border-color 0.22s ease,
    color 0.22s ease;
}

.ab-calendar-day:not(.ab-calendar-day--disabled):hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 112, 252, 0.15);
}

.ab-calendar-day:not(.ab-calendar-day--disabled):active {
  transform: scale(0.94);
}

.ab-calendar-day--disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.28;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.ab-calendar-day--disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.ab-calendar-day--available {
  border-color: var(--line);
  background: var(--cal-day-bg);
}

.ab-calendar-day--working {
  border-color: var(--cal-working-border);
  background: var(--cal-working-bg);
  color: var(--cal-day-ink);
  box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.2);
}

.ab-calendar-day--active {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(253, 19, 16, 0.35),
    0 0 0 1px rgba(1, 112, 252, 0.25);
}

.ab-calendar-day--active:hover {
  border-color: transparent;
  color: #fff;
}

.ab-times-holder {
  position: relative;
  margin-bottom: 16px;
}

.ab-times-updating-banner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: ab-pulse-soft 1.2s ease-in-out infinite;
}

@keyframes ab-pulse-soft {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.ab-times-columns {
  position: relative;
  min-height: 120px;
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.ab-times-columns--pending {
  opacity: 0.42;
  filter: blur(0.4px);
  pointer-events: none;
}

.ab-times-columns-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  align-items: start;
}

.ab-times-loading-placeholder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
  padding: 24px 12px;
}

.ab-times-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b9bd4;
  opacity: 0.45;
  animation: ab-bounce-dots 0.9s ease-in-out infinite;
}

.ab-times-loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.ab-times-loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ab-bounce-dots {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.ab-times-loading-text {
  width: 100%;
  text-align: center;
  margin: 0;
}

.ab-times-column-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.ab-times-column-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ab-time-slot {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 6px;
  min-height: 28px;
  line-height: 1.2;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, color 0.22s, transform 0.25s var(--ease),
    box-shadow 0.22s;
}

.ab-time-slot:hover:not(:disabled):not(.ab-time-slot--disabled) {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.ab-time-slot--selected {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(253, 19, 16, 0.28);
}

.ab-time-slot--disabled {
  opacity: 0.28;
  cursor: default;
  background: transparent;
}

.ab-note {
  font-size: 11px;
  color: var(--muted);
}

.ab-success {
  font-size: 14px;
  color: #8ec5ff;
  margin-top: 12px;
  text-shadow: 0 0 16px rgba(1, 112, 252, 0.35);
}

.ab-booking-success {
  background: var(--cal-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 320px;
  justify-content: center;
  gap: 0;
}

.ab-booking-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(1, 112, 252, 0.18) 0%, rgba(253, 19, 16, 0.12) 100%);
  border: 1px solid rgba(1, 112, 252, 0.35);
  color: var(--blue);
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(1, 112, 252, 0.2);
}

.ab-booking-success__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ab-booking-success__lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
}

.ab-booking-success__details {
  width: 100%;
  max-width: 420px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 10px 14px;
  text-align: left;
}

.ab-booking-success__term {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ab-booking-success__value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.ab-booking-success__cta {
  min-width: 220px;
}

#rezerwacja .ab-booking--panel .ab-booking-success {
  padding: 22px 18px 20px;
  min-height: 280px;
}

#rezerwacja .ab-booking--panel .ab-booking-success__title {
  font-size: 20px;
}

#rezerwacja .ab-booking--panel .ab-booking-success__details {
  padding: 14px 14px;
  gap: 8px 12px;
}

@media (max-width: 640px) {
  .ab-booking-success {
    padding: 22px 16px 20px;
    min-height: 0;
  }

  .ab-booking-success__details {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .ab-booking-success__term {
    margin-top: 6px;
  }

  .ab-booking-success__term:first-child {
    margin-top: 0;
  }
}

.ab-error {
  font-size: 13px;
  color: #e07070;
  margin-top: 12px;
}


#ab-booking-root,
.ab-booking-shell {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: min-content;
}

/* Rezerwacja — kompakt bez zoom (zoom psuł siatkę kalendarza) */
#rezerwacja .ab-booking-shell {
  zoom: 1;
}

#ab-cennik-root,
.ab-cennik-shell {
  width: 100%;
  max-width: 100%;
}

.ab-booking-lookup {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.ab-cennik-full-wrap {
  width: 100%;
}

.ab-booking {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3vw, 32px) clamp(20px, 2.5vw, 28px) clamp(26px, 3vw, 34px);
  transition: background 0.35s, border-color 0.35s;
  overflow: hidden;
  width: 100%;
}

.ab-booking::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.ab-booking-intro {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.ab-booking-intro .eyebrow {
  margin-bottom: 10px;
}

.ab-booking-intro .ab-chip {
  margin-bottom: 14px;
}
.ab-booking .ab-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Rezerwacja na stronie — bez dodatkowej ciemnej ramki, pełna szerokość */
#rezerwacja .ab-booking--panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

#rezerwacja .ab-booking--panel::before {
  display: none;
}

#rezerwacja .ab-booking--panel .ab-booking-intro {
  display: none;
}

#rezerwacja .ab-booking--panel .ab-flex {
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
}

#rezerwacja .ab-booking--panel .ab-booking-left {
  padding-right: clamp(16px, 2vw, 28px);
}

#rezerwacja .ab-booking--panel .ab-field-label {
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

#rezerwacja .ab-booking--panel .ab-input {
  padding: 10px 12px;
  font-size: 16px;
  min-height: 44px;
}

#rezerwacja .ab-booking--panel .ab-select {
  font-size: 15px;
  min-height: 44px;
}

#rezerwacja .ab-booking--panel .ab-booking-form-stack {
  gap: 14px;
}

#rezerwacja .ab-booking--panel .ab-booking-contact-grid {
  gap: 12px !important;
}

#rezerwacja .ab-booking--panel .ab-service-meta {
  font-size: 13px;
}

#rezerwacja .ab-booking--panel .ab-calendar {
  padding: 10px 12px 8px;
  margin-bottom: 8px;
  border-radius: 12px;
  max-width: 100%;
}

#rezerwacja .ab-booking--panel .ab-calendar-body,
#rezerwacja .ab-booking--panel .ab-calendar-header {
  width: 100%;
  max-width: none;
}

#rezerwacja .ab-booking--panel .ab-calendar-header {
  margin-bottom: 6px;
}

#rezerwacja .ab-booking--panel .ab-calendar-month {
  font-size: 13px;
}

#rezerwacja .ab-booking--panel .ab-calendar-nav-btn {
  width: 30px;
  height: 30px;
}

#rezerwacja .ab-booking--panel .ab-calendar-grid {
  gap: 4px;
  grid-auto-rows: 32px;
}

#rezerwacja .ab-booking--panel .ab-calendar-day:not(.ab-calendar-day--empty),
#rezerwacja .ab-booking--panel .ab-calendar-day--empty {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  font-size: 12px;
  border-radius: 7px;
}

#rezerwacja .ab-booking--panel .ab-calendar-weekday {
  font-size: 9px;
  padding: 0 0 4px;
}

#rezerwacja .ab-booking--panel .ab-calendar-legend {
  font-size: 10px;
  gap: 6px 12px;
  padding-top: 6px;
  margin-top: 2px;
  width: 100%;
  max-width: none;
  justify-content: center;
}

#rezerwacja .ab-booking--panel .ab-booking-step,
#rezerwacja .ab-booking-step {
  min-height: 0;
}

#rezerwacja .ab-times-step {
  background: var(--cal-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
}

#rezerwacja .ab-times-step__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

#rezerwacja .ab-times-step__date {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  text-transform: capitalize;
}

#rezerwacja .ab-change-day-btn {
  flex: none;
  white-space: nowrap;
  min-height: 30px;
  padding: 5px 12px !important;
  font-size: 11px !important;
}

#rezerwacja .ab-times-step .ab-times-block {
  margin-top: 0;
  flex: 1 1 auto;
}

#rezerwacja .ab-booking--panel .ab-time-slot {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 4px;
  min-height: 26px;
  max-height: 26px;
  border-radius: 6px;
}

#rezerwacja .ab-booking--panel .ab-times-column-title {
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

#rezerwacja .ab-booking--panel .ab-times-column-list {
  gap: 4px;
}

#rezerwacja .ab-booking--panel .ab-times-columns-inner {
  gap: 6px;
}

#rezerwacja .ab-times-columns {
  min-height: 0;
}

#rezerwacja .ab-times-loading-placeholder {
  min-height: 64px;
  padding: 16px 10px;
}

#rezerwacja .ab-times-step {
  width: 100%;
  max-width: none;
  margin: 0;
}

#rezerwacja .ab-booking--panel .ab-booking-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 12px;
  line-height: 1.45;
  cursor: pointer;
}

#rezerwacja .ab-booking--panel .ab-booking-policy input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--red);
}

.ab-booking-policy__link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ab-booking-policy__link:hover,
.ab-booking-policy__link:focus-visible {
  color: var(--ink);
}

.ab-page-back {
  margin: 0 0 16px;
  font-size: 14px;
}

.ab-page-back a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.ab-page-back a:hover,
.ab-page-back a:focus-visible {
  text-decoration: underline;
}

#rezerwacja .ab-booking--panel .btn.ab-booking__submit {
  width: 100%;
  margin-top: 4px;
  min-height: 50px;
  font-size: 14px;
}

#rezerwacja .ab-booking--panel .ab-note {
  font-size: 12px;
  margin-top: 10px !important;
}

@media (min-width: 981px) {
  #rezerwacja .ab-booking--panel .ab-flex {
    grid-template-columns: minmax(280px, 30%) minmax(0, 70%);
    align-items: start;
  }

  #rezerwacja .ab-booking--panel .ab-booking-right {
    display: block;
  }

  #rezerwacja .ab-booking--panel .ab-times-columns-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Pływający przycisk — sprawdź wizyty (lewy dolny róg) */
.float-lookup {
  position: fixed;
  left: var(--float-edge, 24px);
  bottom: var(--float-bottom, 24px);
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.float-lookup:hover {
  transform: translateY(-3px);
  background: var(--paper-3);
  border-color: var(--blue);
}

.float-lookup[aria-expanded="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

body.ab-lookup-open {
  overflow: hidden;
}

.ab-lookup-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ab-lookup-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.ab-lookup-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.ab-lookup-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ab-lookup-modal__x:hover {
  background: var(--paper-3);
}

.ab-lookup-modal__actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ab-lookup-modal__close {
  width: 100%;
  justify-content: center;
}

/* Cennik — jak w HTML (price-grid / price-card / price-row) + opis z WP */
#cennik .ab-cennik-grid {
  width: 100%;
  max-width: none;
  margin: 0;
}

#cennik .ab-cennik-grid .price-card {
  padding: 30px 28px;
}

#cennik .ab-cennik-grid:has(.price-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#cennik details.ab-cennik-row > summary.price-row {
  list-style: none;
  cursor: pointer;
}

#cennik details.ab-cennik-row > summary.price-row::-webkit-details-marker {
  display: none;
}

#cennik details.ab-cennik-row > summary.price-row::marker {
  content: "";
}

#cennik .ab-cennik-row--no-desc summary.price-row,
#cennik .ab-cennik-row--static .price-row {
  cursor: default;
}

#cennik .price-row .n {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 12px;
}

#cennik .ab-cennik-row__end {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: none;
}

#cennik .ab-cennik-row__chev {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-bottom: 3px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

#cennik details.ab-cennik-row[open] .ab-cennik-row__chev {
  transform: rotate(-135deg);
  border-color: var(--blue);
}

#cennik .ab-cennik-row__hint {
  font-style: italic;
}

#cennik .ab-cennik-row__body {
  margin: 0;
  padding: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

#cennik details.ab-cennik-row .price-row {
  margin-bottom: 0;
}

#cennik details.ab-cennik-row[open] .price-row {
  border-bottom-color: transparent;
}

#cennik .ab-cennik-row--selected > summary.price-row,
#cennik .ab-cennik-row--selected > .price-row {
  background: rgba(1, 112, 252, 0.08);
  border-radius: 6px;
  margin-left: -6px;
  margin-right: -6px;
  padding-left: 6px;
  padding-right: 6px;
}

#cennik .ab-cennik-row--selected .n {
  color: var(--blue);
}

@media (max-width: 980px) {
  #cennik .ab-cennik-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .float-lookup {
    left: 16px;
    bottom: 16px;
    padding: 11px 16px;
    font-size: 11px;
  }
}
.ab-booking-left { border-right: 1px solid var(--line); padding-right: 28px; border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ab-booking-right { padding-left: 0; }
.ab-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 16px 30px; border: none; border-radius: 3px; background: var(--red); color: #fff; transition: transform .4s var(--ease), background .35s; width: 100%; }
.ab-cta-btn:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-3px); }
.ab-cta-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ab-appointment-lookup__submit { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.ab-appointment-lookup__submit:not(:disabled):hover { background: var(--paper-3); }
/* TrustIndex — ramka + nadpisanie stylów wtyczki (sekcja pod hero) */
#opinie .ab-trustindex-frame,
.opinie-band .ab-trustindex-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 28px);
  transition: background 0.35s, border-color 0.35s;
}

#opinie .ab-trustindex-frame::before,
.opinie-band .ab-trustindex-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  pointer-events: none;
}

#opinie .ab-trustindex-frame .ti-widget,
#opinie .ab-trustindex-frame .ti-widget-container,
.opinie-band .ab-trustindex-frame .ti-widget,
.opinie-band .ab-trustindex-frame .ti-widget-container {
  width: 100% !important;
  max-width: 100% !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-widget-container,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-widget-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-header,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-header {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  margin: 0 0 clamp(18px, 2.5vw, 28px) !important;
  padding: 0 0 clamp(16px, 2vw, 22px) !important;
  color: var(--ink) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text,
#opinie .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text strong,
#opinie .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text span,
#opinie .ab-trustindex-frame div.ti-widget .ti-header .ti-stars .ti-star,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text strong,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-header .ti-rating-text span,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-header .ti-stars .ti-star {
  color: var(--ink) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-star.f,
#opinie .ab-trustindex-frame div.ti-widget .ti-star.e,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-star.f,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-star.e {
  color: var(--red) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-review-item > .ti-inner,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-review-item > .ti-inner {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.35s !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-review-item:hover > .ti-inner,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-review-item:hover > .ti-inner {
  border-color: var(--line) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(-4px) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-review-text,
#opinie .ab-trustindex-frame div.ti-widget .ti-review-content,
#opinie .ab-trustindex-frame div.ti-widget .ti-review-text-container,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-review-text,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-review-content,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-review-text-container {
  color: var(--ink-soft) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-profile-details .ti-name,
#opinie .ab-trustindex-frame div.ti-widget .ti-profile-details strong,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-profile-details .ti-name,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-profile-details strong {
  color: var(--ink) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-profile-details .ti-date,
#opinie .ab-trustindex-frame div.ti-widget .ti-profile-details span,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-profile-details .ti-date,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-profile-details span {
  color: var(--muted) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-button,
#opinie .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-container .ti-load-more-reviews-button,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-button,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-container .ti-load-more-reviews-button {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-button:hover,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-load-more-reviews-button:hover {
  background: var(--paper-3) !important;
  border-color: var(--blue) !important;
  transform: translateY(-2px) !important;
}

#opinie .ab-trustindex-frame div.ti-widget .ti-footer,
#opinie .ab-trustindex-frame div.ti-widget .ti-footer a,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-footer,
.opinie-band .ab-trustindex-frame div.ti-widget .ti-footer a {
  color: var(--muted) !important;
}

[data-theme="light"] #opinie .ab-trustindex-frame div.ti-widget .ti-review-item:hover > .ti-inner,
[data-theme="light"] .opinie-band .ab-trustindex-frame div.ti-widget .ti-review-item:hover > .ti-inner {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 768px) {
  #opinie .ab-trustindex-frame,
  .opinie-band .ab-trustindex-frame {
    padding: 18px 14px 20px;
    border-radius: 10px;
  }
}

.ab-booking__title {
  font-size: clamp(24px, 3.4vw, 38px);
  margin: 0 0 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.ab-booking__lead {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}
.ab-booking-lookup__heading {
  font-size: clamp(22px, 3vw, 28px);
  margin: 16px 0 10px;
  color: var(--ink);
  text-transform: uppercase;
}
.ab-booking__submit,
.btn.ab-booking__submit {
  width: 100%;
}
.btn.ab-appointment-lookup__submit {
  width: 100%;
  justify-content: center;
}
.svc-text p,
.about-copy p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
}
.svc-text p:last-child {
  margin-bottom: 22px;
}
.contact-info__body p {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.ab-page-wrap {
  padding-top: 120px;
  padding-bottom: 80px;
}
.ab-page-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 24px;
}
.ab-page-content {
  color: var(--ink-soft);
  max-width: 800px;
  font-size: 16px;
  line-height: 1.75;
}
.ab-page-content a {
  color: var(--blue);
}
.ab-page-content h2,
.ab-page-content h3 {
  color: var(--ink);
  margin: 1.4em 0 0.6em;
}
.map .ab-map-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map .ab-map-inner > * {
  width: 100%;
  height: 100%;
}
.map .ab-map-inner iframe {
  filter: var(--map-filter);
}

[data-theme="light"] .ab-select,
[data-theme="light"] .ab-input {
  background-color: var(--surface);
}

[data-theme="light"] .ab-cennik-table-scroll {
  background: var(--surface-2);
}

[data-theme="light"] .ab-times-updating-banner {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
@media (max-width: 980px) {
  .ab-booking .ab-flex { grid-template-columns: 1fr; }
  .ab-booking-left { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 24px; margin-bottom: 8px; }
}
#rezerwacja .ab-booking--panel .ab-times-columns-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#rezerwacja .ab-booking--panel .ab-times-column-title {
  text-align: center;
  font-size: clamp(9px, 1.8vw, 11px);
  line-height: 1.25;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  #rezerwacja .ab-booking--panel .ab-times-columns-inner {
    gap: 6px;
  }

  #rezerwacja .ab-booking--panel .ab-time-slot {
    font-size: 10px;
    padding: 2px 3px;
    min-height: 24px;
    max-height: 24px;
  }
  .ab-calendar {
    padding: 12px 10px 10px;
  }
  .ab-calendar-day {
    min-height: 32px;
    font-size: 12px;
    border-radius: 8px;
  }
  .ab-calendar-nav-btn {
    width: 34px;
    height: 34px;
  }
}
