/* ==========================================================================
   Booking Widget — Treatwell-style popup
   ========================================================================== */

/* Overlay backdrop */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.booking-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Widget panel */
.booking-widget {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.booking-overlay.open .booking-widget {
  transform: translateY(0);
}

/* Header bar */
.booking-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0ece8;
}

.booking-widget__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.2;
}

.booking-widget__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-heading);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.booking-widget__close:hover {
  background: #ece5dd;
}

/* Salon info bar */
.booking-widget__salon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-bg-alt);
}

.booking-widget__salon-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-widget__salon-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.booking-widget__salon-details {
  min-width: 0;
}

.booking-widget__salon-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
}

.booking-widget__salon-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-widget__rating {
  color: #f5a623;
}

/* Category label */
.booking-widget__category {
  padding: 16px 24px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-body);
}

/* Service list */
.booking-widget__services {
  padding: 0 24px;
}

.booking-widget__service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0ece8;
  gap: 12px;
}

.booking-widget__service:last-child {
  border-bottom: none;
}

.booking-widget__service-info {
  min-width: 0;
  flex: 1;
}

.booking-widget__service-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 2px;
}

.booking-widget__service-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-body);
}

.booking-widget__service-price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

.booking-widget__service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.booking-widget__service-btn:hover {
  background: var(--color-primary-hover);
}

/* Divider between categories */
.booking-widget__divider {
  height: 1px;
  background: #f0ece8;
  margin: 0 24px;
}

/* Footer / Powered by */
.booking-widget__footer {
  padding: 16px 24px 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  color: #bbb;
}

.booking-widget__footer span {
  font-weight: 700;
  color: #999;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 520px) {
  .booking-widget {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .booking-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .booking-widget__header {
    padding: 16px 20px 12px;
  }

  .booking-widget__salon,
  .booking-widget__category,
  .booking-widget__services,
  .booking-widget__divider {
    padding-left: 20px;
    padding-right: 20px;
  }

  .booking-widget__services {
    padding-left: 20px;
    padding-right: 20px;
  }

  .booking-widget__footer {
    padding: 16px 20px 20px;
  }
}
