/* Custom dropdowns (see shared/assets/js/custom-select.js). Colours follow the brand. */
.cs { position: relative; display: block; width: 100%; min-width: 0; }
.cs-native { position: absolute !important; inset: auto auto 0 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.cs__btn {
    position: relative; display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: .6rem 2.6rem .6rem 1rem;
    border: 1px solid #ece2e1; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; font-weight: 500; color: #22101a;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 245, 244, .92));
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(42, 10, 20, .05), 0 6px 16px -10px rgba(42, 10, 20, .25);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cs__btn:hover { border-color: #d9b9c2; }
.cs__btn:focus-visible, .cs.is-open .cs__btn { outline: none; border-color: #82082c; box-shadow: 0 0 0 3px rgba(130, 8, 44, .12), inset 0 1px 0 #fff; }
.cs__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs.is-placeholder .cs__label { color: #8c7a80; }
.cs__chev { position: absolute; right: .55rem; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: linear-gradient(180deg, #9a1238, #6c0620); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px rgba(130, 8, 44, .3); transition: transform .2s ease; }
.cs__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 6px; height: 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.cs.is-open .cs__chev { transform: rotate(180deg); }
.cs.is-disabled .cs__btn { opacity: .55; cursor: not-allowed; }

.cs__list {
    position: fixed; z-index: 200; max-height: 300px; overflow-y: auto; margin: 0; padding: .35rem; list-style: none;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 50px -12px rgba(42, 10, 20, .35), 0 4px 14px rgba(42, 10, 20, .1);
    opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center; transition: opacity .15s ease, transform .15s ease;
    font-family: inherit; font-size: .92rem; color: #22101a;
}
.cs__list.is-up { transform-origin: bottom center; transform: translateY(4px) scale(.98); }
.cs__list.is-open { opacity: 1; transform: none; }
.cs__opt { position: relative; padding: .62rem 2.2rem .62rem .85rem; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cs__opt.is-active { background: rgba(130, 8, 44, .08); }
.cs__opt.is-selected { color: #82082c; font-weight: 600; }
.cs__opt.is-selected::after { content: ""; position: absolute; right: .9rem; top: 50%; width: 5px; height: 10px; border-right: 2px solid #82082c; border-bottom: 2px solid #82082c; transform: translateY(-65%) rotate(45deg); }
.cs__opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cs__list--admin { font-size: .88rem; }

/* Compact contexts */
.sp-toolbar__sort .cs { width: auto; min-width: 190px; }
.sp-toolbar__sort .cs__btn { min-height: 42px; border-radius: 999px; padding-left: 1.1rem; }
.cell-input.cs .cs__btn, .cs.cell-input .cs__btn { min-height: 36px; padding: .35rem 2.2rem .35rem .6rem; border-radius: 9px; font-size: .86rem; }
.cs.cell-input { padding: 0; border: 0; background: none; min-width: 90px; }
.cs.cell-input .cs__chev { width: 22px; height: 22px; margin-top: -11px; right: .4rem; }
.img-card__body .cs__btn { min-height: 38px; padding: .4rem 2.3rem .4rem .65rem; border-radius: 10px; font-size: .84rem; }
.sp-measure__profile .cs__btn { min-height: 44px; }
.field .cs__btn { font-weight: 500; }
