/* O select do site (Select.jsx) — docs/DESIGN_SYSTEM.md, "Seleção".
   O gatilho tem a mesma cara do campo de texto padrão (.input-wrap input):
   51px, fundo escuro neutro, borda cinza, foco verde. Quem mora num lugar
   mais compacto ajusta só o gatilho, no CSS daquele lugar. A lista é uma só
   e vai pro <body> (posição fixa, calculada no componente). */

.custom-select{position:relative;min-width:0}
.custom-select-trigger{
  width:100%;height:51px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:0 14px 0 16px;border:1px solid #5f6879;border-radius:10px;
  background:linear-gradient(160deg,#12161f,#0f131b);color:#f5f7fb;
  font:400 14px 'Manrope',sans-serif;text-align:left;cursor:pointer;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.custom-select-trigger:hover:not(:disabled){border-color:#7c8698}
.custom-select-trigger:focus-visible,.custom-select.is-open .custom-select-trigger{outline:none;border-color:#1DB954;box-shadow:0 0 0 4px rgba(29,185,84,.14)}
.custom-select-trigger:disabled{opacity:.5;cursor:not-allowed}
.custom-select-value{min-width:0;display:flex;align-items:center;gap:9px}
.custom-select-value-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-select-placeholder{color:#7a8394}
.custom-select-caret{flex:none;color:#7c8698;transition:transform .2s,color .2s}
.custom-select.is-open .custom-select-caret{transform:rotate(180deg);color:#4CD97B}
.custom-select-icon{flex:none;width:21px;height:15px;display:inline-flex;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
.custom-select-icon svg{width:100%;height:100%;display:block}
.custom-select-image{flex:none;width:30px;height:30px;border-radius:6px;object-fit:cover;background:#1a202b}
.custom-select-node{flex:none;display:inline-flex}

/* `columns`: as opções em grade (lista de lojas com logo). */
.custom-select-panel.is-grid{width:min(560px,calc(100vw - 16px));max-width:calc(100vw - 16px)}
.custom-select-panel.is-grid .custom-select-group{grid-template-columns:repeat(var(--select-columns),minmax(0,1fr))}

/* a lista */
.custom-select-panel{
  position:fixed;z-index:1400;top:0;left:0;visibility:hidden;
  display:flex;flex-direction:column;width:max-content;max-width:min(360px,calc(100vw - 16px));max-height:320px;
  border:1px solid rgba(255,255,255,.13);border-radius:12px;background:#11151f;
  box-shadow:0 22px 48px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.35);overflow:hidden;
  color:#dce1eb;font-family:'Manrope',sans-serif;
}
.custom-select-panel.is-placed{visibility:visible;animation:custom-select-in .16s cubic-bezier(.2,.8,.3,1) both}
.custom-select-panel.is-above.is-placed{animation-name:custom-select-in-up}
@keyframes custom-select-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes custom-select-in-up{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.custom-select-search{flex:none;padding:8px;border-bottom:1px solid rgba(255,255,255,.08)}
.custom-select-search input{box-sizing:border-box;width:100%;height:36px;padding:0 11px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#0b0f16;color:#f5f7fb;font:inherit;font-size:13px;outline:none;transition:border-color .2s}
.custom-select-search input:focus{border-color:#1DB954}
.custom-select-search input::placeholder{color:#7a8394}
.custom-select-options{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px;outline:none}
.custom-select-empty{margin:0;padding:14px 10px;text-align:center;font-size:12.5px;color:#8d99ae}
.custom-select-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.custom-select-group{display:grid;gap:2px}
.custom-select-group+.custom-select-group{margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.06)}
.custom-select-group-label{display:block;padding:6px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7c8698}
.custom-select-option{display:flex;align-items:center;gap:9px;min-height:36px;padding:7px 10px;border-radius:8px;font-size:13px;line-height:1.35;cursor:pointer;user-select:none;transition:background .12s,color .12s}
.custom-select-option-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-select-option.is-active{background:rgba(255,255,255,.06);color:#f5f7fb;box-shadow:inset 0 0 0 2px #7be69c}
.custom-select-option.is-selected{color:#4CD97B;font-weight:600}
.custom-select-option.is-selected.is-active{background:rgba(29,185,84,.14)}
.custom-select-option.is-disabled{opacity:.4;cursor:not-allowed}
.custom-select-option-check{flex:none}
.custom-select-options::-webkit-scrollbar{width:8px}
.custom-select-options::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:99px;border:2px solid #11151f}
.custom-select-options::-webkit-scrollbar-track{background:transparent}

@media(prefers-reduced-motion:reduce){
  .custom-select-panel.is-placed{animation:none}
  .custom-select-caret{transition:color .2s}
}
html[data-user-reduced-motion="true"] .custom-select-panel.is-placed{animation:none}
