/* Shared dropdown menus for Color Studio and Design Studio (lib/select-menu.mjs). */
.select-menu { position: relative; display: inline-block; min-width: 150px; vertical-align: middle; }
.select-trigger {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px;
  border: 1px solid #e4dde6; border-radius: 12px; background: #fff; color: #17151d;
  font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 24, 39, .04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.select-trigger:hover { border-color: #cdbccf; }
.select-trigger:focus-visible, .select-menu.open .select-trigger { outline: none; border-color: #8e5892; box-shadow: 0 0 0 3px rgba(142, 88, 146, .16); }
.select-trigger:disabled { opacity: .55; cursor: default; }
.select-value { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger > svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: #6f6a78; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.select-menu.open .select-trigger > svg { transform: rotate(180deg); stroke: #8e5892; }
.select-list {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(340px, 90vw);
  max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  border: 1px solid #ebe4ec; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 44px rgba(31, 24, 39, .16), 0 2px 6px rgba(31, 24, 39, .06);
  transform-origin: top center;
}
.select-menu.opens-up .select-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
.select-list [role="option"] {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 10px 9px 12px; border-radius: 9px;
  color: #17151d; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
}
.select-list [role="option"] span { flex: 1; }
.select-list [role="option"].active { background: #f6eff6; }
.select-list [role="option"][aria-selected="true"] { color: #6f3f74; font-weight: 700; }
.select-list [aria-disabled="true"] { opacity: .45; cursor: default; }
.select-check { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #8e5892; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
[aria-selected="true"] > .select-check { visibility: visible; }
.select-swatch { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
@media (prefers-reduced-motion: no-preference) {
  .select-menu.open .select-list { animation: select-open .16s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes select-open { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.select-menu.opens-up.open .select-list { animation-name: select-open-up; }
@keyframes select-open-up { from { opacity: 0; transform: translateY(4px) scale(.98); } }
