/* Shared custom picker for every ordinary user-facing <select>. */
.pho-sheet-select {
    position: relative;
    width: 100%;
}

.pho-sheet-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.pho-sheet-select__opener {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #34323d;
    border-radius: 10px;
    background: #17161d;
    color: #f7f5fb;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.pho-sheet-select__opener::after {
    content: '⌄';
    flex: 0 0 auto;
    color: #a8a4b3;
    font-size: 20px;
    line-height: 1;
}

.pho-sheet-select__opener[data-placeholder="1"] {
    color: #9995a3;
}

.pho-sheet-select__opener:focus-visible {
    outline: 2px solid #7567E5;
    outline-offset: 2px;
}

.pho-sheet-select__opener:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pho-select-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
}

.pho-select-sheet.is-open {
    display: block;
}

.pho-select-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.pho-select-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(720px, 100%);
    max-height: min(78dvh, 720px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #3a3743;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #18171d;
    color: #fff;
    box-shadow: 0 -16px 44px rgba(0,0,0,.45);
    overflow: hidden;
}

.pho-select-sheet__head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #34313b;
}

.pho-select-sheet__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.pho-select-sheet__close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 9px;
    background: #24222b;
    color: #fff;
    font: inherit;
    font-size: 25px;
    cursor: pointer;
}

.pho-select-sheet__options {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.pho-select-sheet__option {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid #302e37;
    background: transparent;
    color: #f7f5fb;
    font: inherit;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.pho-select-sheet__option::after {
    content: '';
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #8c8795;
    border-radius: 50%;
    box-sizing: border-box;
}

.pho-select-sheet__option[aria-selected="true"] {
    background: #22202a;
    font-weight: 800;
}

.pho-select-sheet__option[aria-selected="true"]::after {
    border: 6px solid #7567E5;
}

.pho-select-sheet__option:disabled {
    opacity: .4;
    cursor: not-allowed;
}

body.pho-select-sheet-open {
    overflow: hidden;
    touch-action: none;
}

@media (min-width: 721px) {
    .pho-select-sheet__panel {
        bottom: 24px;
        border-bottom: 1px solid #3a3743;
        border-radius: 18px;
    }
}
