/* State picker (js/state-combobox.js). Dark by default, like the checkout dialog; the light store checkout overrides the colours below. */
.cb { position: relative; min-width: 0; scroll-margin-top: 72px; }
.cb .in, .cb .st-in { padding-right: 38px; text-overflow: ellipsis; }
.cb .st-in { padding-right: 40px; }
.cb-toggle {
  position: absolute; right: 0; bottom: 0; width: 38px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-3, #7d848c);
}
.cb-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.25s var(--ease, ease), margin 0.25s var(--ease, ease);
}
.cb.is-open .cb-toggle::after { transform: rotate(-135deg); margin-top: -2px; }
.cb-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none;
  max-height: 248px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #171a1f; border: 1px solid var(--night-line, rgba(238, 240, 242, 0.11)); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); animation: cb-in 0.14s ease-out both;
}
.cb-list[hidden] { display: none; }
.cb-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  font-size: 16px; line-height: 1.25; color: var(--ink, #eef0f2); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cb-opt.is-active { background: rgba(238, 240, 242, 0.09); }
.cb-opt[aria-selected="true"] { color: var(--route-hi, #5c9bff); font-weight: 600; }
.cb-opt[aria-selected="true"]::after { content: ""; flex: 0 0 auto; width: 10px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.cb-none { padding: 12px; font-size: 14px; color: var(--ink-3, #7d848c); }
.cb-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Light store checkout */
.st-field .cb-toggle { color: var(--graphite-2, #55595f); height: 46px; }
.st-field .cb-list { background: #fff; border-color: rgba(17, 18, 20, 0.16); box-shadow: 0 14px 32px rgba(17, 18, 20, 0.16); }
.st-field .cb-opt { color: var(--graphite, #111214); }
.st-field .cb-opt.is-active { background: rgba(17, 18, 20, 0.06); }
.st-field .cb-opt[aria-selected="true"] { color: var(--route, #2f7cf6); }
.st-field .cb-none { color: var(--graphite-2, #55595f); }

@keyframes cb-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cb-list { animation: none; } .cb-toggle::after { transition: none; } }
