/* BtAmehr — booking UI.
   Uses the theme's design tokens only, so it inherits the brand automatically
   and follows the page's RTL/LTR direction without a single hard-coded side. */

.btbk-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* The theme only styles the "service" and "channel" chipsets; these two are
   new, so they need their own selected state or nothing looks chosen. */
[data-chipset="package"] .bt-chip.is-active {
  border-color: var(--burgundy-500);
  background: var(--burgundy-50);
  color: var(--burgundy-700);
  font-weight: 600;
}

[data-chipset="mode"] .bt-chip.is-active {
  border-color: var(--forest-500);
  background: var(--forest-50);
  color: var(--forest-700);
  font-weight: 600;
}

.btbk-when {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 14px);
  padding: 14px;
  background: var(--cream-50);
}

.btbk-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.btbk-day {
  flex: 0 0 auto;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  color: var(--text-body);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 180ms var(--ease-standard, ease), background 180ms var(--ease-standard, ease), transform 180ms var(--ease-standard, ease);
}

.btbk-day:hover {
  border-color: var(--burgundy-400);
  transform: translateY(-1px);
}

.btbk-day.is-active {
  background: var(--burgundy-600);
  border-color: var(--burgundy-600);
  color: var(--gold-100);
}

.btbk-day-dow {
  font-size: var(--text-xs);
  opacity: 0.75;
}

.btbk-day-num {
  font-size: var(--text-md);
  font-weight: 600;
}

.btbk-day-free {
  font-size: 11px;
  opacity: 0.6;
}

.btbk-slotrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btbk-slot {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--color-surface);
  color: var(--text-body);
  font-family: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btbk-slot:hover {
  border-color: var(--burgundy-400);
}

.btbk-slot.is-active {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--gold-100);
}

.btbk-hint,
.btbk-empty {
  margin: 10px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.btbk-empty {
  color: var(--burgundy-500);
}

/* ── Floating WhatsApp button ──────────────────────────────────────────── */

.btbk-wa {
  position: fixed;
  inset-inline-end: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-pill, 999px);
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 200ms var(--ease-out-soft, ease), box-shadow 200ms ease;
}

.btbk-wa:hover,
.btbk-wa:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.btbk-wa-label {
  font-family: var(--font-body, inherit);
  font-size: var(--text-sm, 0.9rem);
  font-weight: 600;
  /* Collapsed by default: the mark alone is the icon everyone recognises. */
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 260ms var(--ease-out-soft, ease), opacity 200ms ease, margin 260ms ease;
}

.btbk-wa:hover .btbk-wa-label,
.btbk-wa:focus-visible .btbk-wa-label {
  max-width: 14rem;
  opacity: 1;
  margin-inline-end: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .btbk-wa,
  .btbk-wa-label {
    transition: none;
  }
}

.btbk-form [type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}
