/* ---- Default button style (used when no cssClass is set) ---- */

.reservation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  filter: brightness(1);
  transition: filter 0.2s ease;
}

.reservation-btn:hover {
  filter: brightness(0.85);
}

/* ---- Lightbox ---- */

.reservation-lightbox {
  /* Explicitly gate visibility on [open] below rather than relying on the
     UA stylesheet's dialog:not([open]){display:none} to win over this
     rule's own unconditional display value - keeps a closed dialog from
     ever being laid out (and hit-testable) again regardless of engine. */
  display: none;
  position: fixed;
  margin: auto;
  border: none;
  padding: 0;
  width: 94vw;
  max-width: 340px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex-direction: column;
}

.reservation-lightbox[open] {
  display: flex;
}

.reservation-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.reservation-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #2b2b2b;
  z-index: 2;
}

.reservation-lightbox__head {
  padding: 24px 28px 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.reservation-lightbox__head h3 {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #2b2b2b;
  margin: 0;
}

.reservation-lightbox__frame {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0 28px;
}

.reservation-lightbox__frame iframe {
  border: 0;
  display: block;
  background: #fff;
}

.reservation-lightbox__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.25s ease;
}

.reservation-lightbox__spinner span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e5e5;
  border-top-color: #999;
  animation: reservation-spin 0.8s linear infinite;
}

@keyframes reservation-spin {
  to { transform: rotate(360deg); }
}

.reservation-lightbox__foot {
  flex-shrink: 0;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  border-top: 1px solid #eee;
  background: #fff;
}

/* ---- Floating widget ---- */

.reservation-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.reservation-floating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reservation-floating.is-docked {
  position: absolute;
  right: auto;
  bottom: auto;
  transition: opacity 0.25s ease;
}
