/* One form control language for every page. The native select is the source. */
:root { --sh-form-select-ready: 1; }

.form-select {
  --select-ink: var(--site-ink, #191919);
  --select-paper: var(--site-paper, #f2f2f2);
  --select-coral: var(--site-coral, #ff6f61);
  position: relative;
  min-width: 0;
  width: 100%;
}

.material-page[data-site-page] select.form-select-source,
select.form-select-source {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.material-page[data-site-page] .form-select-trigger,
.form-select-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  border: 1px solid #8b8b87;
  border-radius: 0;
  padding: 13px 16px;
  background: var(--select-paper);
  color: var(--select-ink);
  font-family: var(--site-font, var(--sans, Arial, sans-serif));
  font-size: var(--type-body, 20px);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  box-shadow: 3px 3px 0 rgba(25, 25, 25, .14);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-select-value { min-width: 0; overflow-wrap: anywhere; }
.form-select-trigger[data-placeholder="true"] .form-select-value { color: #555550; }
.form-select-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin: -5px 3px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.form-select-trigger[aria-expanded="true"] .form-select-chevron { transform: translateY(4px) rotate(225deg); }

@media (hover: hover) and (pointer: fine) {
  .material-page[data-site-page] .form-select-trigger:not(:disabled):hover,
  .form-select-trigger:not(:disabled):hover {
    border-color: var(--select-ink);
    box-shadow: 3px 3px 0 var(--select-coral);
  }
}

.material-page[data-site-page] .form-select-trigger:focus-visible,
.form-select-trigger:focus-visible {
  border-color: var(--select-ink);
  outline: 2px solid var(--select-ink);
  outline-offset: 3px;
  box-shadow: 4px 4px 0 var(--select-coral);
}
.material-page[data-site-page] .form-select-trigger[aria-expanded="true"],
.form-select-trigger[aria-expanded="true"] {
  border-color: var(--select-ink);
  box-shadow: 4px 4px 0 var(--select-coral);
}
.material-page[data-site-page] .form-select-trigger[aria-invalid="true"],
.form-select-trigger[aria-invalid="true"] { border: 2px solid var(--site-accent, #b8453b); }
.material-page[data-site-page] .form-select-trigger:disabled,
.form-select-trigger:disabled {
  color: #777772;
  border-color: #b7b7b2;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}
.form-select-error {
  margin: 10px 0 0;
  color: var(--site-accent, #b8453b);
  font-size: var(--type-small, 17px);
  line-height: 1.45;
}

.form-select-panel {
  --select-ink: var(--site-ink, #191919);
  --select-paper: var(--site-paper, #f2f2f2);
  --select-coral: var(--site-coral, #ff6f61);
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  z-index: 100;
  display: block;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--select-ink);
  border-radius: 0;
  background: var(--select-paper);
  color: var(--select-ink);
  font-family: var(--site-font, var(--sans, Arial, sans-serif));
  font-size: var(--type-body, 20px);
  line-height: 1.45;
  box-shadow: 4px 4px 0 var(--select-ink), 5px 5px 0 var(--select-coral);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #777772 var(--select-paper);
  touch-action: pan-y;
  isolation: isolate;
}
.form-select-panel[hidden] { display: none !important; }
.form-select-panel::backdrop { background: transparent; pointer-events: none; }
.form-select-option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid #d3d3ce;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color 100ms ease, color 100ms ease;
}
.form-select-option:last-child { border-bottom-color: transparent; }
.form-select-option-label { min-width: 0; }
.form-select-option-check {
  flex: 0 0 20px;
  color: var(--select-coral);
  font-size: 21px;
  font-weight: 700;
  opacity: 0;
}
.form-select-option[aria-selected="true"] .form-select-option-check { opacity: 1; }
.form-select-option[data-active="true"] {
  background: var(--select-ink);
  color: var(--select-paper);
  border-bottom-color: var(--select-ink);
}
.form-select-option[aria-disabled="true"] {
  color: #84847f;
  cursor: not-allowed;
}
.form-select-group-label {
  padding: 13px 14px 7px;
  font-size: .78em;
  font-weight: 600;
  line-height: 1.4;
  color: #62625e;
}
.form-select-empty { padding: 14px; color: #62625e; }

@media (max-width: 600px) {
  .material-page[data-site-page] .form-select-trigger,
  .form-select-trigger { min-height: 58px; padding: 14px; }
  .form-select-option { min-height: 56px; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .form-select-trigger, .form-select-chevron, .form-select-option { transition: none !important; }
}
@media (forced-colors: active) {
  .material-page[data-site-page] .form-select-trigger,
  .form-select-trigger, .form-select-panel {
    background: Canvas;
    color: CanvasText;
    border-color: ButtonText;
    box-shadow: none;
    forced-color-adjust: none;
  }
  .form-select-trigger:focus-visible { outline: 2px solid Highlight !important; }
  .form-select-option { border-color: GrayText; }
  .form-select-option[data-active="true"] { background: Highlight; color: HighlightText; }
  .form-select-option-check { color: currentColor; }
  .form-select-option[aria-disabled="true"], .form-select-trigger:disabled { color: GrayText; }
}
