/*
 * Select personnalisé (js/showcase/select.js)
 */

.wz-select-root {
    position: relative;
}

.wz-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: var(--deep-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.wz-select-button:focus {
    outline: none;
}

.wz-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wz-select-button i {
    color: var(--wizi-blue);
    font-size: 12px;
    transition: transform 0.15s ease;
}

.wz-select-root.is-open .wz-select-button i {
    transform: rotate(180deg);
}

.wz-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    max-height: 280px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #ebe4df;
    border-radius: 12px;
    background: var(--pure-white);
    box-shadow: 0 14px 34px rgba(31, 35, 65, 0.14);
}

.wz-select-list:focus {
    outline: none;
}

.wz-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--deep-blue);
    font-size: 15px;
    cursor: pointer;
}

.wz-select-option.is-active {
    background: var(--fake-white);
}

.wz-select-option[aria-selected="true"] {
    color: var(--wizi-blue);
    font-weight: 600;
}

.wz-select-option[aria-selected="true"]::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 400;
}
