/* Shared custom select / popup picker across the whole fan-club site. */
.cs-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select {
  position: relative;
  min-width: 0;
  width: 100%;
}
.custom-select .cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #f4f7fb;
  background: linear-gradient(135deg, #102640, #091525);
  border: 1px solid rgba(124, 229, 242, 0.34);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.custom-select .cs-trigger:hover,
.custom-select.is-open .cs-trigger {
  border-color: #ff875b;
  box-shadow: 0 0 0 3px rgba(255, 135, 91, 0.12);
}
.custom-select .cs-trigger:focus-visible {
  outline: 2px solid #7ce5f2;
  outline-offset: 3px;
}
.custom-select .cs-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cs-trigger-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-trigger-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: #7ce5f2;
  background: rgba(124, 229, 242, 0.08);
  border: 1px solid rgba(124, 229, 242, 0.24);
  border-radius: 9px;
  font:
    700 18px/1 system-ui,
    sans-serif;
  transition: transform 0.16s ease;
}
.custom-select.is-open .cs-trigger-arrow {
  transform: rotate(180deg);
}
.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: #f4f7fb;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.cs-dialog {
  position: fixed;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  color: #f4f7fb;
  background: #0a1525;
  border: 1px solid rgba(124, 229, 242, 0.3);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}
.cs-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(115deg, #12263d, #0b1728);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cs-dialog-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cs-kicker {
  color: #7ce5f2;
  font:
    700 10px/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.16em;
}
.cs-dialog-title {
  color: #f4f7fb;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.cs-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #f4f7fb;
  background: #14243a;
  border: 1px solid #344961;
  border-radius: 10px;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.cs-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-width: thin;
}
.cs-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: #dce8f7;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.cs-option + .cs-option {
  margin-top: 3px;
}
.cs-option:hover,
.cs-option:focus-visible {
  color: #fff;
  background: #13263d;
  border-color: #354b63;
  outline: none;
}
.cs-option[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(100deg, rgba(255, 106, 53, 0.16), rgba(124, 229, 242, 0.07));
  border-color: rgba(255, 135, 91, 0.48);
  font-weight: 800;
}
.cs-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cs-option-mark {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #07101f;
  background: #ff875b;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.cs-option[aria-selected="false"] .cs-option-mark {
  color: transparent;
  background: #101e31;
  border: 1px solid #465c76;
}
.cs-option:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .custom-select .cs-trigger {
    min-height: 50px;
    padding: 12px 13px;
    font-size: 15px;
  }
  .cs-overlay.is-mobile {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(2, 7, 15, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
  .cs-overlay.is-mobile .cs-dialog {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0;
    max-width: 560px;
    height: min(72dvh, 620px);
    max-height: min(72dvh, 620px);
    border-radius: 18px 18px 10px 10px;
  }
  .cs-overlay.is-mobile .cs-dialog-head {
    padding: 17px 17px 14px;
  }
  .cs-overlay.is-mobile .cs-dialog-title {
    font-size: 19px;
  }
  .cs-overlay.is-mobile .cs-options {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 9px max(12px, env(safe-area-inset-bottom));
  }
  .cs-overlay.is-mobile .cs-option {
    min-height: 56px;
    padding: 15px 13px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-trigger,
  .cs-trigger-arrow {
    transition: none;
  }
}
