:root {
  /* Colors - Base */
  --color-white: #fff;
  --bg-main: #f5f7fb;
  --text-primary: #171a21;
  --text-secondary: #4d5667;
  --text-secondary-dark: #3d4450;
  --text-tertiary: #6f7785;
  
  /* Colors - Brand & Nav */
  --brand-primary: #042141;
  --brand-primary-hover: #153154;
  --brand-secondary: #e0e6f1;
  --text-nav: #d9e1ec;
  --nav-border: #7d95b5;
  
  /* Colors - Borders */
  --border-light: #eef2f8;
  --border-default: #dfe5ef;
  --border-dark: #d3dceb;
  --border-tabs: #d6e0ef;
  --border-btn: #d5dbe7;
  
  /* Colors - Actions & States */
  --action-primary: #2f6bc4;
  --action-secondary: #7ea3dc;
  --bg-hover: #f1f4f9;
  --bg-tab: #f3f6fc;
  --switch-bg: #c6cfde;
  
  /* Status Colors */
  --state-info-bg: #e7f1ff;
  --state-info-text: #1f4b8f;
  --border-info: #c5daf5;
  --bg-info-light: #eef5ff;
  
  --state-success-bg: #e9f7ee;
  --state-success-text: #1f6b38;
  
  --state-error-bg: #ffe8ea;
  --state-error-text: #8f1f2e;
  
  --state-pending-bg: #fff4e5;
  --state-pending-text: #7c4a00;
}

:root {
  color-scheme: light;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 76px 14px 20px;
}

body.admin-page .container {
  max-width: 1200px;
}

.top-nav-shell {
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px #00142a29;
  display: grid;
  gap: 0;
  grid-template-columns: auto minmax(0, 1fr);
  left: 0;
  margin-bottom: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

.top-nav-logo-column {
  align-items: center;
  background: var(--brand-secondary);
  border: 1px solid var(--border-dark);
  border-right: none;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.top-nav {
  align-items: center;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: var(--text-nav);
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 14px;
}

.top-nav-logo {
  display: block;
  height: 60px;
  max-height: 100%;
  object-fit: contain;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.top-nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.toast-stack {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  position: sticky;
  top: 56px;
  z-index: 40;
}

.toast-pill {
  border-radius: 999px;
  box-shadow: 0 4px 14px #00000014;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
}

.toast-error {
  background: var(--state-error-bg);
  color: var(--state-error-text);
}

.toast-info {
  background: var(--state-info-bg);
  color: var(--state-info-text);
}

.toast-success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.waiting-header {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 14px;
}

.metric-pill {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  box-sizing: border-box;
  width: 100%;
}

.big-number {
  font-size: 30px;
  font-weight: 700;
}

.waitlist-cta {
  background-color: var(--text-primary);
  border: 1px solid var(--text-primary);
  border-radius: 999px;
  box-shadow: 0 10px 18px #171a2133;
  color: var(--color-white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.waitlist-cta:hover {
  background-color: #2d3340;
}

.content-pill {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  overflow: hidden;
}

.content-pill-reader {
  background: #e5ebf4;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 10px 14px;
}

.my-page-header-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.my-page-header-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 200px;
}

.content-pill-body {
  padding: 14px 16px;
}

.help-article-body {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.55;
}

.help-article-body p {
  margin: 0 0 12px;
}

.help-article-body p:last-child {
  margin-bottom: 0;
}

.table-pill {
  margin-top: 12px;
}

/* Admin only: horizontal scroll for wide tables on narrow viewports. */
body.admin-page .table-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  width: 100%;
}

body.admin-page .table-scroll .slots-table {
  min-width: 100%;
  width: max-content;
}

/* Wrap long headers at word boundaries without shrinking the whole table (max-width on th is unreliable with max-content). */
body.admin-page .table-scroll .slots-table thead th {
  line-height: 1.35;
  vertical-align: bottom;
}

body.admin-page .table-scroll .slots-table thead th .admin-th-wrap {
  display: inline-block;
  max-width: 4rem;
  overflow-wrap: normal;
  vertical-align: bottom;
  white-space: normal;
  word-break: normal;
}

/* Home: give “When” most of the row width (otherwise it stays content-sized and looks cramped). */
.slots-table--home {
  table-layout: fixed;
  width: 100%;
}

.slots-table--home .slots-col-day {
  width: 22%;
}

.slots-table--home .slots-col-location {
  width: 26%;
}

.slots-table--home .slots-col-count {
  width: 12%;
}

.slots-table--home .slots-col-when {
  width: 40%;
  min-width: 10.5rem;
}

.slots-table--home th:last-child,
.slots-table--home td:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
}

.slots-table {
  background: var(--color-white);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

th {
  font-weight: 600;
}

.slots-table tr:last-child td {
  border-bottom: none;
}

.admin-open-row td {
  font-weight: 700;
}

.app-pill-button {
  appearance: none;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--border-btn);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  padding: 0 13px;
  text-decoration: none;
  white-space: nowrap;
}

.app-pill-button:hover {
  background: var(--bg-hover);
}

.auth-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.login-shell {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px auto 0;
  max-width: 430px;
  width: 100%;
}

.login-logo {
  border-radius: 999px;
  display: block;
  height: 240px;
  object-fit: cover;
  width: 240px;
}

.login-title {
  font-size: 26px;
  margin: 2px 0 8px;
  text-align: center;
}

.auth-divider {
  color: var(--text-tertiary);
  margin: 2px 0;
}

.login-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.auth-pill-form {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-control-width {
  width: 100%;
}

.gsi-material-button.auth-control-width {
  max-width: none;
  width: 100%;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  display: inline-flex;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  letter-spacing: 0.25px;
  margin: 2px 0;
  max-width: 400px;
  min-width: min-content;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
}

.gsi-material-button:hover {
  background-color: #e8e8e8;
}

.gsi-material-button:focus-visible {
  box-shadow: 0 0 0 3px #4285f433;
}

.gsi-material-button-content-wrapper {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.gsi-material-button-icon {
  display: inline-flex;
  height: 18px;
  width: 18px;
}

.gsi-material-button-icon svg {
  height: 18px;
  width: 18px;
}

.google-pill-button {
  justify-content: center;
  position: relative;
}

.google-pill-button .gsi-material-button-content-wrapper {
  justify-content: center;
  width: 100%;
}

.google-pill-button .gsi-material-button-icon {
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.email-pill-button {
  background-color: var(--color-white);
  border: 1px solid #d0d0d0;
  color: #111111;
  justify-content: center;
}

.email-pill-button:hover {
  background-color: #f7f7f7;
}

.email-pill-input {
  appearance: none;
  background-color: var(--color-white);
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  box-sizing: border-box;
  color: #111111;
  font-size: 14px;
  height: 40px;
  outline: none;
  padding: 0 14px;
}

.email-pill-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px #4285f433;
}

.hidden-credential-trap {
  height: 0;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -9999px;
  width: 0;
}

.placeholder-main {
  max-width: 100%;
}

.app-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 16px;
}

.app-card.content-pill {
  padding: 0;
}

.language-picker {
  position: relative;
}

.language-picker-trigger {
  align-items: center;
  background: var(--brand-primary);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  color: var(--text-nav);
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  list-style: none;
  width: 34px;
}

.language-picker-trigger::-webkit-details-marker {
  display: none;
}

.language-picker-trigger svg {
  fill: none;
  height: 18px;
  stroke: var(--text-nav);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 18px;
}

.top-nav .app-pill-button {
  background: var(--brand-primary);
  border-color: var(--nav-border);
  color: var(--text-nav);
}

.top-nav .app-pill-button:hover {
  background: var(--brand-primary-hover);
}

.language-picker-menu {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 10px 24px #171a211f;
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 7px;
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 100;
}

.language-picker-item {
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
}

.language-picker-item:hover {
  background: var(--bg-hover);
}

.language-picker-item.is-active {
  background: var(--state-info-bg);
  color: var(--state-info-text);
}

.my-page-settings {
  display: grid;
  gap: 14px;
}

.welcome-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.welcome-bid-stack {
  max-width: 100%;
}

.welcome-text {
  margin: 0;
  min-width: 0;
}

.switch-row {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  max-width: 100%;
  position: relative;
}

.switch-row-control-only {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
  width: auto;
}

.settings-field-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.settings-field-stack .settings-field {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.settings-field-stack .settings-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.switch-input {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.switch-slider {
  background: var(--switch-bg);
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
  height: 22px;
  position: relative;
  transition: background-color 0.2s;
  width: 40px;
}

.switch-slider::before {
  background: var(--color-white);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s;
  width: 18px;
}

.switch-input:checked + .switch-slider {
  background: var(--action-primary);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(18px);
}

.settings-section {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.location-preferences-section {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.settings-section-tabs {
  border: none;
  border-radius: 0;
  gap: 0;
  padding: 0;
}

.settings-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.settings-label {
  color: var(--text-primary);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.settings-value {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  font-weight: 400;
}

.signup-with-email {
  overflow-wrap: anywhere;
}

#signup-with-verified-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

.settings-checkbox-row {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.settings-checkbox-row .settings-label {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.settings-checkbox-row input[type="checkbox"] {
  height: 16px;
  width: 16px;
}

.settings-subheading {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.settings-tabs {
  align-items: flex-end;
  border-bottom: 1px solid var(--border-tabs);
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}

.settings-tab {
  background: var(--bg-tab);
  border: 1px solid var(--border-tabs);
  border-bottom: 1px solid var(--border-tabs);
  border-radius: 10px 10px 0 0;
  color: var(--text-secondary);
  height: 36px;
  padding: 0 14px;
}

.settings-tab.is-active {
  background: var(--color-white);
  border-color: var(--action-secondary);
  border-bottom-color: var(--color-white);
  color: var(--state-info-text);
  position: relative;
  top: 1px;
}

.settings-tab-panel {
  background: var(--color-white);
  border: 1px solid var(--border-tabs);
  border-radius: 0 0 10px 10px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.settings-tab-panel[hidden] {
  display: none;
}

.nested-option {
  margin-left: 18px;
}

.guarantee-subaddress-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.guarantee-label-row {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: 100%;
}

.guarantee-label-row .settings-label {
  display: inline;
  margin: 0;
}

.recommended-pill {
  background: var(--bg-info-light);
  border: none;
  border-radius: 999px;
  color: var(--state-info-text);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  padding: 4px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.guarantee-switch-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-subaddress-help {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.settings-subaddress-help a {
  color: var(--state-info-text);
}

.settings-subaddress-help a:hover {
  color: var(--action-primary);
}

.subaddress-help-link {
  background: none;
  border: none;
  color: var(--state-info-text);
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subaddress-help-link:hover {
  color: var(--action-primary);
}

@keyframes subaddress-help-backdrop-in {
  from {
    background: rgb(15 17 21 / 0%);
  }

  to {
    background: rgb(15 17 21 / 45%);
  }
}

@keyframes subaddress-help-panel-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.subaddress-help-dialog {
  background: transparent;
  border: none;
  color: inherit;
  margin: auto;
  max-height: min(85vh, 640px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 0;
}

.subaddress-help-dialog::backdrop {
  background: rgb(15 17 21 / 45%);
}

.subaddress-help-dialog[open]::backdrop {
  animation: subaddress-help-backdrop-in 0.22s ease-out both;
}

.subaddress-help-dialog-panel {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgb(15 17 21 / 18%);
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 640px);
  min-height: 0;
  padding: 20px 20px 16px;
  position: relative;
}

.subaddress-help-dialog[open] .subaddress-help-dialog-panel {
  animation: subaddress-help-panel-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .subaddress-help-dialog[open]::backdrop,
  .subaddress-help-dialog[open] .subaddress-help-dialog-panel {
    animation: none;
  }
}

.subaddress-help-dialog-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 36px 12px 0;
}

.subaddress-help-dialog-close {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
}

.subaddress-help-dialog-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.subaddress-help-dialog-body {
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  overflow-y: auto;
}

.subaddress-verify-block {
  margin-top: 4px;
}

.subaddress-verify-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-chip {
  background: var(--bg-hover);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
}

/* Preserve native hidden behavior against component display declarations. */
[hidden] {
  display: none !important;
}

.status-chip-success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.status-chip-pending {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.settings-feedback,
.subaddress-action-feedback {
  font-size: 12px;
  margin: 0;
}

.settings-feedback {
  min-height: 16px;
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}

.subaddress-action-feedback:empty {
  display: none;
}

.settings-feedback.is-error,
.subaddress-action-feedback.is-error {
  color: var(--state-error-text);
}

.save-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.save-button.is-dirty {
  animation: save-pulse 1.2s ease-in-out infinite;
  background: var(--bg-info-light);
  border-color: var(--action-secondary);
}

@keyframes save-pulse {
  0% {
    box-shadow: 0 0 0 0 #7ea3dc66;
  }
  70% {
    box-shadow: 0 0 0 10px #7ea3dc00;
  }
  100% {
    box-shadow: 0 0 0 0 #7ea3dc00;
  }
}

.is-disabled {
  opacity: 0.6;
}

.preference-table {
  border-collapse: collapse;
  width: 100%;
}

.preference-table th,
.preference-table td {
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  padding: 8px;
  text-align: center;
}

.preference-table th:first-child,
.preference-table td:first-child {
  text-align: left;
}

@media (max-width: 640px) {
  .welcome-row {
    gap: 10px;
  }

  .settings-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: stretch;
  }

  .settings-tab {
    flex: 1 1 0;
    font-size: 12px;
    line-height: 1.2;
    min-height: 40px;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
    white-space: normal;
  }

  .settings-tab-panel {
    max-height: min(72vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .settings-row {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
  }

  .settings-row .settings-label {
    width: 100%;
  }

  .settings-value {
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }

  .nested-option {
    margin-left: 0;
  }
}

/* Site Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--action-primary);
  text-decoration: underline;
}

.footer-separator {
  color: var(--border-default);
}

.footer-copyright {
  margin: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 229, 239, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 26, 33, 0.15);
  padding: 16px;
  z-index: 1000;
  box-sizing: border-box;
  animation: cookie-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes cookie-slide-up {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-banner-fade-out {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary-dark);
}

.cookie-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cookie-banner-privacy-link {
  align-self: flex-start;
  color: var(--action-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-privacy-link:hover {
  color: var(--brand-primary-hover);
}

.cookie-banner-content a {
  color: var(--action-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-accept-btn {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--color-white);
}

.cookie-accept-btn:hover {
  background-color: #2d3340;
  border-color: #2d3340;
}

@media (min-width: 480px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .cookie-banner-copy {
    flex: 1;
  }
  .cookie-banner-content p {
    flex: unset;
  }
  .cookie-banner-buttons {
    flex-shrink: 0;
  }
}

/* Document Pages (Privacy, Terms) */
.document-main {
  max-width: 100%;
  margin-top: 4px;
}

.document-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.document-body {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.6;
}

.document-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.document-body p {
  margin: 0 0 16px;
}

.document-body p:last-child {
  margin-bottom: 0;
}

/* Site Description Pill */
.description-pill {
  margin-top: 14px;
  margin-bottom: 14px;
}

.site-description-body {
  color: var(--text-secondary-dark);
  font-size: 13px;
  line-height: 1.5;
}

.site-description-body a {
  color: var(--action-primary);
  text-decoration: underline;
  font-weight: 500;
}

.site-description-body a:hover {
  color: var(--brand-primary-hover);
}

.description-lead {
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.description-list {
  margin: 0;
  padding-left: 20px;
}

.description-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.description-list li:last-child {
  margin-bottom: 0;
}

/* Past Slot Results details link button style */
.view-details-link-btn {
  background: transparent;
  border: none;
  color: var(--action-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.view-details-link-btn:hover {
  opacity: 0.8;
}

/* Footer action buttons (suggestions, cookie settings) */
#suggestion-link-btn,
#cookie-settings-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

#suggestion-link-btn:hover,
#cookie-settings-btn:hover {
  color: var(--action-primary);
  text-decoration: underline;
}

.suggestion-textarea {
  appearance: none;
  background-color: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  min-height: 100px;
  max-height: 200px;
  outline: none;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.suggestion-textarea:focus {
  border-color: var(--action-primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 196, 0.2);
}

.suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.suggestion-submit-btn {
  background-color: var(--action-primary) !important;
  color: var(--color-white) !important;
  border: none !important;
}

.suggestion-submit-btn:hover {
  background-color: var(--brand-primary-hover) !important;
}

.suggestion-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.suggestion-feedback {
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

.suggestion-feedback.is-error {
  color: var(--state-error-text);
}

.suggestion-feedback.is-success {
  color: var(--state-success-text);
}

/* Chinese locale: slightly wider location column for 2-char names */
html[lang="zh"] .slots-table--home .slots-col-location {
  width: 18%;
}

html[lang="zh"] .slots-table--home .slots-col-count {
  width: 16%;
}

html[lang="zh"] .slots-table--home .slots-col-when {
  width: 44%;
}
