/* Custom dropdown (see js/cc-select.js). Themed with the site tokens, so it follows light/dark. */
.ccsel { position: relative; display: inline-block; font-family: 'Inter', system-ui, sans-serif; }
.ccsel__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }

.ccsel__btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: .5rem .9rem .5rem 1rem; cursor: pointer;
  font: 600 .84rem/1 'Inter', sans-serif; color: var(--text-primary, #0d1b2a);
  background: var(--surface, #fff); border: 1.5px solid var(--border-color, #e0e6ed); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .2s, box-shadow .2s, background-color .2s, transform .15s;
}
.ccsel__btn:hover { border-color: rgba(0, 208, 132, .55); }
.ccsel__btn:active { transform: scale(.985); }
.ccsel__btn:focus-visible, .ccsel.is-open .ccsel__btn { outline: 0; border-color: var(--accent, #00d084); box-shadow: 0 0 0 4px rgba(0, 208, 132, .16); }
.ccsel__lead { color: var(--accent-dark, #00b070); font-size: .95rem; }
.ccsel__label { font-weight: 500; color: var(--text-tertiary, #64748b); }
.ccsel__label::after { content: ""; display: inline-block; width: 1px; height: .9em; margin-left: .55rem; vertical-align: -.1em; background: var(--border-color, #e0e6ed); }
.ccsel__chev { font-size: .72rem; color: var(--text-tertiary, #64748b); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.ccsel.is-open .ccsel__chev { transform: rotate(180deg); color: var(--accent-dark, #00b070); }

.ccsel__list {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: max(100%, 210px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface, #fff); border: 1.5px solid var(--border-color, #e0e6ed); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(13, 27, 42, .3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top right;
  transition: opacity .16s ease, transform .2s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .2s;
}
.ccsel.is-up .ccsel__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; transform: translateY(6px) scale(.97); }
.ccsel.is-open .ccsel__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.ccsel__opt {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 11px; cursor: pointer; user-select: none;
  font-size: .84rem; font-weight: 600; color: var(--text-secondary, #475569); transition: background-color .12s, color .12s;
}
.ccsel__opt.is-active { background: rgba(0, 208, 132, .1); color: var(--text-primary, #0d1b2a); }
.ccsel__oi { width: 1.1rem; text-align: center; color: var(--text-faint, #94a3b8); }
.ccsel__opt.is-active .ccsel__oi { color: var(--accent-dark, #00b070); }
.ccsel__ot { flex: 1; white-space: nowrap; }
.ccsel__tick { font-size: 1rem; color: var(--accent-dark, #00b070); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.22, 1, .36, 1); }
.ccsel__opt[aria-selected="true"] { color: var(--brand-text, #007a4d); }
.ccsel__opt[aria-selected="true"] .ccsel__tick { opacity: 1; transform: none; }

:root[data-theme="dark"] .ccsel__list { box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .65); }
:root[data-theme="dark"] .ccsel__opt[aria-selected="true"], :root[data-theme="dark"] .ccsel__btn:hover .ccsel__lead { color: var(--brand-400, #00d084); }
:root[data-theme="dark"] .ccsel__opt.is-active { color: #fff; }

@media (prefers-reduced-motion: reduce) { .ccsel__list, .ccsel__chev, .ccsel__tick, .ccsel__btn { transition: none; } }
