/* Reserve sheet: header "Reservations" panel (see uvwpframe/reserve-sheet.php and js/reserve-sheet.js) */

.uvrs {
  position: fixed;
  inset: 0;
  z-index: 1100;
  font-family: Poppins, sans-serif;
  color: #fff;
}

.uvrs[hidden] {
  display: none;
}

html.uvrs-open {
  overflow: hidden;
}

.uvrs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Phone: a sheet that slides up from the bottom */
.uvrs-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #42454E;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
  outline: none;
}

.uvrs.is-open .uvrs-panel {
  transform: translateY(0);
}

.uvrs.is-venue .uvrs-panel {
  height: 88vh;
}

.uvrs-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid rgba(153, 153, 153, 0.2);
}

.uvrs-title {
  flex: 1;
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  outline: none;
}

.uvrs-back:not([hidden]) + .uvrs-title {
  padding-left: 0;
}

.uvrs-back[hidden] + .uvrs-title {
  padding-left: 12px;
}

.uvrs-iconbtn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}

.uvrs-iconbtn:hover,
.uvrs-iconbtn:focus-visible {
  background: #2B2D33;
}

.uvrs-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.uvrs-list {
  display: flex;
  flex-direction: column;
}

.uvrs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-bottom: 1px solid rgba(153, 153, 153, 0.1);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.uvrs-row:hover,
.uvrs-row:focus-visible {
  background: #2B2D33;
  color: #fff;
}

.uvrs-row-meta {
  flex: none;
  font-size: 13px;
  color: #c9cbd1;
}

.uvrs-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 18px;
  color: #fff;
}

.uvrs-hood,
.uvrs-sub {
  margin: 16px 24px 4px;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9cbd1;
}

.uvrs-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 24px 4px;
}

.uvrs-tab {
  flex: 1;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.uvrs-tab[aria-selected="true"] {
  background: #971B2F;
  border-color: #971B2F;
}

.uvrs-notify {
  padding: 16px 24px;
}

.uvrs-notify-lead {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.uvrs-notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uvrs-input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: #2B2D33;
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.uvrs-primary {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: #971B2F;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.uvrs-notify-done {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

.uvrs-frame {
  position: relative;
  height: 100%;
  min-height: 420px;
  margin: 0 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.uvrs-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  opacity: 0;
}

.uvrs-frame.is-loaded iframe {
  opacity: 1;
}

.uvrs-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid #ddd;
  border-top-color: #971B2F;
  border-radius: 50%;
  animation: uvrs-spin 0.8s linear infinite;
}

.uvrs-frame.is-loaded .uvrs-spinner {
  display: none;
}

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

.uvrs-secondary {
  display: block;
  margin: 12px 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.uvrs-secondary:hover {
  background: #2B2D33;
  color: #fff;
}

.uvrs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.uvrs button:focus-visible,
.uvrs a:focus-visible,
.uvrs input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* Desktop: a dropdown panel under the header button */
@media (min-width: 900px) {
  .uvrs-backdrop {
    background: rgba(0, 0, 0, 0.3);
  }

  .uvrs-panel {
    top: 96px;
    right: 40px;
    bottom: auto;
    left: auto;
    width: 420px;
    max-height: calc(100vh - 120px);
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  .uvrs.is-open .uvrs-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .uvrs.is-venue .uvrs-panel {
    height: calc(100vh - 120px);
    max-height: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uvrs-panel,
  .uvrs-spinner {
    transition: none;
    animation: none;
  }
}
