/* The time zone dialog (FE-6), views/components/timeZoneDialog.pug.
   Many bookers are grandparents: 18px text or more, 48px tap targets,
   built on the theme.css variables. */

.tz-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 0;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: var(--theme-shadow-lifted);
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  font-size: 1.125rem;
}

.tz-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.tz-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--bs-primary);
}

.tz-dialog-why,
.tz-dialog-last {
  margin-bottom: 1rem;
}

.tz-dialog-last {
  font-weight: 600;
}

.tz-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 576px) {
  .tz-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.tz-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bs-border-color);
  border-radius: 0.5rem;
  cursor: pointer;
}

.tz-choice:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.tz-choice:has(.tz-choice-input:checked) {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.tz-choice:has(.tz-choice-input:focus-visible) {
  outline: 3px solid var(--theme-focus-color);
  outline-offset: 2px;
}

.tz-choice-input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--bs-primary);
}

.tz-choice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tz-choice-name {
  font-weight: 600;
  font-size: 1.15rem;
}

.tz-choice-places,
.tz-choice-clock {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.tz-choice-clock {
  color: var(--bs-secondary-color);
}

.tz-other-toggle {
  min-height: 3rem;
  margin: 0.5rem 0;
  padding-left: 0;
  font-size: 1.125rem;
  text-decoration: underline;
}

.tz-other {
  margin-bottom: 1rem;
}

.tz-other .tz-choices {
  margin-top: 0.5rem;
}

.tz-no-results {
  margin: 0.5rem 0 0;
}

/* The answer button stays in view while the list scrolls. */
.tz-confirm-bar {
  position: sticky;
  bottom: 0;
  margin: 0 -1.5rem;
  padding: 0.75rem 1.5rem 1.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 -6px 12px -8px rgba(0, 0, 0, 0.25);
}

.tz-confirm {
  --bs-btn-font-size: 1.25rem;
  display: block;
  width: 100%;
  min-height: 3.5rem;
  white-space: normal;
}

/* The line above the calendar and times that names the zone in use. */
.tz-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(var(--bs-primary-rgb), 0.06);
  font-size: 1.125rem;
  text-align: center;
}

.tz-chip .btn-link {
  min-height: 3rem;
  font-size: 1.125rem;
  text-decoration: underline;
}
