/* Native fields remain successful form controls, including required/reset/name.
   Hide them visually only after the adjacent keyboard-accessible proxy exists. */
select.ui-select-native {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-inline-size: 0 !important;
  min-block-size: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ui-select-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: var(--ui-control-height, 44px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ui-line, var(--ui-control-line, #c7d8e5));
  border-radius: var(--ui-radius-control, 12px);
  background: var(--ui-surface, var(--ui-control-surface, #fcfdff));
  color: var(--ui-ink, var(--ui-control-ink, #304c62));
  font-family: var(--ui-font-body, inherit);
  font-size: var(--ui-text-input, 16px);
  font-weight: 400;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ui-select-trigger[hidden], .ui-select-menu[hidden], .ui-select-option[hidden], .ui-select-group[hidden], .ui-select-error[hidden] { display: none !important; }
.ui-select-error { display: block; margin-top: 6px; color: var(--ui-danger, #c85568); font-size: var(--ui-text-md, 14px); line-height: 1.5; }
.ui-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select-arrow { flex: 0 0 7px; width: 7px; height: 7px; margin: -3px 3px 0 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .65; }
.ui-select-trigger[aria-expanded="true"] .ui-select-arrow { transform: translateY(3px) rotate(225deg); }
.ui-select-trigger:enabled:hover, .ui-select-trigger[aria-expanded="true"] { border-color: var(--ui-focus, var(--ui-control-focus, #598798)); }
.ui-select-trigger:focus-visible { outline: 2px solid var(--ui-focus, var(--ui-control-focus, #598798)); outline-offset: 3px; }
.ui-select-trigger[aria-invalid="true"] { border-color: var(--ui-danger, #c85568); }
.ui-select-trigger:disabled { opacity: .5; cursor: not-allowed; }
.ui-select-menu {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  z-index: 2147483000;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--ui-line, var(--ui-control-line, #c7d8e5));
  border-radius: var(--ui-radius-control, 12px);
  background: var(--ui-surface, var(--ui-control-surface, #fcfdff));
  color: var(--ui-ink, var(--ui-control-ink, #304c62));
  box-shadow: 0 12px 36px #07132926, 0 2px 8px #07132912;
  font-family: var(--ui-font-body, inherit);
  font-size: var(--ui-text-input, 16px);
  font-weight: 400;
  line-height: 1.4;
  text-align: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ui-muted, #8199b0) transparent;
}
.ui-select-menu::backdrop { background: transparent; }
.ui-select-menu:not([hidden]) { animation: ui-select-enter 150ms var(--ui-ease, ease-out); transform-origin: top center; }
.ui-select-menu[data-side="top"] { transform-origin: bottom center; }
.ui-select-arrow { transition: transform var(--ui-duration, 160ms) var(--ui-ease, ease); }
@keyframes ui-select-enter { from { opacity: 0; transform: scale(.98) translateY(-3px); } to { opacity: 1; transform: none; } }
.ui-select-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--ui-control-height, 44px);
  box-sizing: border-box;
  padding: 9px 32px 9px 11px;
  border-radius: 7px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ui-select-option[aria-selected="true"] { background: var(--ui-primary-bg, #dcecf9); color: var(--ui-primary-ink, #304c62); font-weight: 600; }
.ui-select-option[aria-selected="true"]::after { content: ''; position: absolute; right: 12px; top: calc(50% - 6px); width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ui-select-option[data-active], .ui-select-option:not([aria-disabled="true"]):hover { outline: 2px solid var(--ui-focus, var(--ui-control-focus, #598798)); outline-offset: -2px; background: color-mix(in srgb, var(--ui-focus, #598798) 10%, var(--ui-surface, #fcfdff)); }
.ui-select-option[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.ui-select-group, .ui-select-empty { padding: 10px 11px 6px; color: var(--ui-muted, var(--ui-control-muted, #617687)); font-size: var(--ui-text-md, 14px); }
.ui-select-group { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ui-select-trigger, .ui-select-arrow { transition: none; } .ui-select-menu:not([hidden]) { animation: none; } }
@media (forced-colors: active) {
  .ui-select-trigger, .ui-select-menu { background: Canvas; color: CanvasText; border-color: ButtonText; box-shadow: none; }
  .ui-select-trigger:focus-visible, .ui-select-option[data-active] { outline-color: Highlight; }
  .ui-select-option[aria-selected="true"] { color: HighlightText; background: Highlight; }
  .ui-select-trigger:disabled, .ui-select-option[aria-disabled="true"] { opacity: 1; color: GrayText; }
}

/* Keep real checkbox/radio inputs: labels, form reset, keyboard, validation and
   fieldset disabling remain native. Only explicit role=switch is a switch. */
input:is([type="checkbox"], [type="radio"]):not([hidden]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0;
  padding: 0 !important;
  border: 1.5px solid var(--ui-line, var(--ui-control-line, #8199b0)) !important;
  border-radius: 6px !important;
  background: var(--ui-surface, var(--ui-control-surface, #fcfdff)) !important;
  color: var(--ui-primary-ink, var(--ui-control-ink, #304c62)) !important;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease;
}
input[type="radio"]:not([hidden]) { border-radius: 50% !important; }
input:is([type="checkbox"], [type="radio"]):not([hidden]):checked,
input[type="checkbox"]:not([hidden]):indeterminate {
  border-color: var(--ui-focus, var(--ui-control-focus, #598798)) !important;
  background: var(--ui-primary-bg, #dcecf9) !important;
}
input[type="radio"]:not([hidden]):checked::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
input:is([type="checkbox"], [type="radio"]):not([hidden]):focus-visible { outline: 2px solid var(--ui-focus, var(--ui-control-focus, #598798)); outline-offset: 3px; }
input:is([type="checkbox"], [type="radio"]):not([hidden]):disabled { opacity: .5; cursor: not-allowed; }
input[type="checkbox"][role="switch"]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 42px !important;
  min-width: 42px !important;
  height: 24px !important;
  padding: 3px !important;
  border-radius: 99px !important;
}
input[type="checkbox"][role="switch"]:not([hidden])::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  transform: none;
  transition: transform .16s ease;
}
input[type="checkbox"][role="switch"]:not([hidden]):checked::before { transform: translateX(16px); }

/* Glass checkbox adapted from Uiverse.io by Shammy2002.
   Keep the native input and the existing 22px layout footprint, including in
   dynamically mounted forms. Explicit and privacy switches retain their slider
   treatment. High contrast uses the native control instead of glass layers. */
@media not (forced-colors: active) {
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]) {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--ui-ink, #eeeef0) 55%, transparent) !important;
  border-radius: 38% !important;
  background: color-mix(in srgb, var(--ui-ink, #eeeef0) 12%, transparent) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 8px 20px #0000001f, 0 2px 6px #00000014,
    inset 0 1px 2px #ffffff80, inset 0 -1px 2px #0000001a;
  -webkit-tap-highlight-color: transparent;
  transition: background .4s cubic-bezier(.16, 1, .3, 1),
    border-color .4s cubic-bezier(.16, 1, .3, 1),
    box-shadow .4s cubic-bezier(.16, 1, .3, 1),
    transform .4s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) {
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):enabled:not(:checked):not(:indeterminate):hover:not(:active),
  :root label:hover:not(:active) input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):enabled:not(:checked):not(:indeterminate):not(:active) {
    background: color-mix(in srgb, var(--ui-ink, #eeeef0) 20%, transparent) !important;
    border-color: var(--ui-primary-border, #db5962) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px #00000026, 0 4px 8px #00000014, inset 0 1.5px 3px #ffffffb3;
  }
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):is(:checked, :indeterminate) {
  transform: scale(1.22);
  background: linear-gradient(145deg, #e33442 0%, #c72532 50%, #8f101e 100%) !important;
  border-color: #ffffff73 !important;
  box-shadow: 0 12px 28px #c7253273, 0 4px 10px #8f101e1f,
    inset 0 2px 4px #ffffff99, inset 0 -2px 6px #ffffff59;
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden])::before {
  content: '';
  box-sizing: content-box;
  width: 5px;
  height: 10px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  border-radius: 1px;
  opacity: 0;
  transform: rotate(45deg) scale(.3);
  filter: drop-shadow(0 1px 2px #0000004d);
  transition: opacity .35s cubic-bezier(.34, 1.56, .64, 1),
    transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):checked::before {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):indeterminate::before {
  width: 10px;
  height: 2px;
  margin: 0;
  border: 0;
  background: currentColor;
  opacity: 1;
  transform: none;
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):enabled:active,
:root label:active input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):enabled {
  transform: scale(.92);
  transition: transform .15s ease-out;
}
:root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]):disabled {
  transform: none;
  box-shadow: inset 0 1px 2px #ffffff40;
}
}
@media (prefers-reduced-motion: reduce) {
  :root input:is([type="checkbox"], [type="radio"]):not([hidden]), input[type="checkbox"][role="switch"]:not([hidden])::before { transition: none; }
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]),
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden])::before { transition: none !important; }
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]) { transform: none !important; }
}
@media (forced-colors: active) {
  :root input:is([type="checkbox"], [type="radio"]):not([hidden]) { appearance: auto !important; -webkit-appearance: auto !important; accent-color: Highlight; }
  :root input:is([type="checkbox"], [type="radio"]):not([hidden])::before { content: none; }
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden]) {
    background: Canvas !important;
    color: CanvasText !important;
    border-color: ButtonText !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none !important;
    transition: none !important;
    opacity: 1;
  }
  :root input[type="checkbox"]:not([role="switch"], .privacy-notice__switch):not([hidden])::before { content: none; }
}



/* Compatibility with the currently deployed ticket-wallet markup. */
html .ticket-wallet-workspace .wallet-refund-selection input[type="checkbox"] {
  position: relative;
  opacity: 1;
}
html .ticket-wallet-workspace .wallet-refund-selection input[type="checkbox"]:disabled { opacity: .5; }
html .ticket-wallet-workspace .wallet-refund-selection .wallet-checkbox { display: none !important; }
