/* Shared SWIPEDITOR dropdown UI.
   Reuses the exact native customizable picker styling of "Poster une offre". */
#saved .saved-filter-bar select,
#auth[data-view="member"] .acc-field select,
#auth .swpa-setting select {
  box-sizing:border-box;
  border:1px solid #3b5871!important;
  border-radius:24px!important;
  background-color:#1b2b3d!important;
  color:#edf5ff!important;
  color-scheme:dark;
  padding-inline-end:44px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23d8e7f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-size:18px 18px!important;
  background-position:right 15px center!important;
}
/* Centre les valeurs affichées dans les menus du profil sans déplacer le chevron. */
#auth[data-view="member"] .acc-field select,
#auth .swpa-setting select {
  text-align:center!important;
  text-align-last:center!important;
  justify-content:center!important;
  padding-inline-start:44px!important;
}
#saved .saved-filter-bar select:focus-visible,
#auth[data-view="member"] .acc-field select:focus-visible,
#auth .swpa-setting select:focus-visible {
  outline:2px solid #79dfff;
  outline-offset:2px;
}
@supports (appearance:base-select) and selector(::picker(select)){
 @media(forced-colors:none){
  :is(#saved .saved-filter-bar select, #auth select) {
    appearance:base-select!important;
    align-items:center;
  }
  :is(#saved .saved-filter-bar select, #auth select)::picker-icon {display:none}
  :is(#saved .saved-filter-bar select, #auth select)::picker(select) {
   appearance:base-select;box-sizing:border-box;margin-block:5px;padding:5px;
   border:1px solid #3b5871;border-radius:16px;background:#172638;color:#edf5ff;
   position-area:block-end span-inline-end;position-try-fallbacks:none;
   box-shadow:0 12px 28px #03091085;cursor:default;
   max-height:min(55dvh,420px);overflow:auto;
  }
  :is(#saved .saved-filter-bar select, #auth select) option {
   display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;
   border-radius:10px;color:#edf5ff;background:transparent;cursor:pointer;
  }
  :is(#saved .saved-filter-bar select, #auth select) option:checked {background:#173b50;color:#a7ebff}
  :is(#saved .saved-filter-bar select, #auth select) option:is(:hover,:focus-visible) {background:#28465e;color:#fff}
  :is(#saved .saved-filter-bar select, #auth select) option::checkmark {order:1;margin-inline-start:auto;color:#79dfff}
  body.sw-cursor-active :is(#saved .saved-filter-bar select, #auth select) {cursor:var(--post-white-cursor),pointer!important}
  body.sw-cursor-active:has(:is(#saved .saved-filter-bar select, #auth select):hover) :is(.cursor-orb,.cursor-dot),
  body.sw-cursor-active:has(:is(#saved .saved-filter-bar select, #auth select):open) :is(.cursor-orb,.cursor-dot) {display:none!important}
  body.sw-cursor-active:has(:is(#saved .saved-filter-bar select, #auth select):open),
  body.sw-cursor-active:has(:is(#saved .saved-filter-bar select, #auth select):open) *,
  body.sw-cursor-active :is(#saved .saved-filter-bar select, #auth select)::picker(select) {cursor:var(--post-white-cursor),auto!important}
 }
 @media (forced-colors:none) and (prefers-reduced-motion:no-preference){
  :is(#saved .saved-filter-bar select, #auth select):open::picker(select) {
   animation:swip-post-picker-open 540ms cubic-bezier(.32,.72,.32,1) both;
  }
 }
}
@media(forced-colors:active){
 :is(#saved .saved-filter-bar select, #auth select) {appearance:auto!important;background-image:none!important}
}
