/* =========================================
   CUSTOM SELECT
========================================= */

.custom-select-ui {
    display: none !important;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.custom-select-trigger {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #fff;
    border: 1.5px solid #d8c9f5;
    border-radius: 14px;

    color: #27203a;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.custom-select-trigger:hover {
    border-color: #7047a8;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #7047a8;
    box-shadow: 0 0 0 3px rgba(112, 71, 168, 0.10);
}

.custom-select-left {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}

.custom-select-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f4efff;
    color: #7047a8;

    font-size: 16px;
    flex-shrink: 0;
}

.custom-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-arrow {
    color: #777;
    font-size: 17px;

    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
    color: #7047a8;
}


/* Dropdown */

.custom-select-dropdown {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    background: #fff;

    border: 1px solid #e5dcf4;
    border-radius: 14px;

    padding: 7px;

    box-shadow:
        0 15px 40px rgba(58, 37, 92, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.05);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    max-height: 300px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Options */

.custom-select-option {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 9px 12px;

    border-radius: 9px;

    color: #332c3d;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.custom-select-option:hover {
    background: #f5f0ff;
    color: #7047a8;
}

.custom-select-option.selected {
    background: #7047a8;
    color: #fff;
    font-weight: 600;
}

.custom-select-option.selected:hover {
    background: #7047a8;
    color: #fff;
}


/* Scrollbar */

.custom-select-dropdown::-webkit-scrollbar {
    width: 5px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #d4c6eb;
    border-radius: 10px;
}


/* Mobile */

@media (max-width: 767px) {

    .custom-select-trigger {
        min-height: 50px;
        padding: 0 13px;
        font-size: 14px;
    }

    .custom-select-icon {
        width: 32px;
        height: 32px;
    }

    .custom-select-dropdown {
        max-height: 260px;
    }
}