/* Booking modal + deposit note + sticky vs Kommo (Session 3). */

.glowlab-booking-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.glowlab-service__cta .glowlab-booking-note,
.glowlab-sticky-cta .glowlab-booking-note {
  margin-top: 0.55rem;
}

.glowlab-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glowlab-booking-modal[hidden] {
  display: none !important;
}

.glowlab-booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 51, 0.55);
}

.glowlab-booking-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 2rem));
  height: min(860px, calc(100vh - 2rem));
  background: var(--gl-color-cream, #f7eacd);
  color: var(--gl-color-ink, #113d34);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 61, 51, 0.28);
  overflow: hidden;
}

.glowlab-booking-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gl-color-green, #0f3d33);
  color: var(--gl-color-cream, #f7eacd);
}

.glowlab-booking-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--gl-font-ui, inherit);
}

.glowlab-booking-modal__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.glowlab-booking-modal__body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--gl-color-white, #fff);
  -webkit-overflow-scrolling: touch;
}

.glowlab-booking-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--gl-color-white, #fff);
  z-index: 1;
}

.glowlab-booking-modal.is-loaded .glowlab-booking-modal__loading {
  display: none;
}

.glowlab-booking-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--gl-color-white, #fff);
}

body.glowlab-booking-lock {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .glowlab-booking-modal {
    align-items: stretch;
    justify-content: stretch;
  }

  .glowlab-booking-modal__dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
  }

  .glowlab-booking-modal__body {
    -webkit-overflow-scrolling: touch;
  }

  /* Sticky Book sits above Kommo; push the chat bubble up if present. */
  .glowlab-sticky-cta {
    z-index: 9998;
  }

  #kommo-widget,
  .kommo-widget,
  .kommo-online-chat,
  iframe[src*="kommo"],
  iframe[src*="amocrm"] {
    bottom: 5.75rem !important;
  }
}
