/* The state picker's look (state-picker.js) — one file, loaded by the desk's
   shell and by the customer pages that ask for a state. It borrows whichever
   page's colours it lands on, with plain fallbacks, so the same box reads as
   part of the desk on the desk and part of the portal in the portal. */

.state-pick { position: relative; min-width: 0; }
.state-pick > input { width: 100%; padding-right: 44px !important; }
.state-pick-arrow {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted, #5f6a76); font-size: 16px; line-height: 1;
}
.state-pick-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  margin: 0; padding: 4px; list-style: none;
  max-height: 240px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card, #fff);
  border: 1px solid var(--card-line, var(--line, #cfd9e2));
  border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 45, 70, .16);
}
.state-pick-list[hidden] { display: none; }
.state-pick-list li {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px;
  border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text, var(--ink, #152033));
}
.state-pick-list li b { font-weight: 600; color: var(--muted, #5f6a76); }
.state-pick-list li.is-on, .state-pick-list li:hover { background: var(--soft, #eef4f9); }
.state-pick-list li.is-on b { color: inherit; }
.state-pick-list li.state-pick-none { cursor: default; color: var(--muted, #5f6a76); font-size: 13px; }
.state-pick.is-bad > input { border-color: var(--danger, #b3261e) !important; }
.state-pick-note { display: block; margin-top: 6px; font-size: 13px; color: var(--danger, #b3261e); }
.state-pick-note[hidden] { display: none; }
@media (max-width: 600px) {
  .state-pick > input { font-size: 16px; }
  .state-pick-list li { min-height: 48px; font-size: 15px; }
}
