/**
 * Select custom (padrão unit-field) — progressive enhancement sobre <select>.
 */

.custom-select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.custom-select > select._select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 14px 10px 16px;
    box-sizing: border-box;
    border: 2px solid #e6e6e6;
    border-radius: 4px;
    background-color: #fff;
    font-family: jakarta-medium, sans-serif;
    font-size: inherit;
    color: #081237;
    text-align: left;
    cursor: pointer;
    outline: 3px solid transparent;
    transition: .1s ease-in-out;
}

.custom-select-trigger:hover {
    border-color: #cfd6e0;
}

.custom-select-trigger:focus {
    color: #4b9af6;
    border-color: #4b9af6;
    outline: 3px solid #4b9bf62f;
}

.custom-select.is-open .custom-select-trigger {
    color: #4b9af6;
    border-color: #4b9af6;
    outline: 3px solid #4b9bf62f;
}

.custom-select.empty .custom-select-trigger {
    color: #ee5a5ae6;
    border-color: #ee5a5a63;
    background-color: #f64b4b1c;
}

.custom-select-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-label.is-placeholder {
    color: #bfc3d3;
}

.custom-select.empty .custom-select-label.is-placeholder {
    color: #ee5a5ae6;
}

.custom-select-trigger .fa-caret-down {
    flex: 0 0 auto;
    color: #6a7895;
    font-size: 12px;
    transition: transform .15s ease;
}

.custom-select.is-open .custom-select-trigger .fa-caret-down {
    transform: rotate(180deg);
    color: #4b9af6;
}

.custom-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    display: none;
    flex-direction: column;
    z-index: 999;
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.12);
    font-family: jakarta-regular, sans-serif;
}

.custom-select.is-open .custom-select-dropdown {
    display: flex;
}

.custom-select-option {
    margin: 0;
    padding: 8px 12px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: jakarta-regular, sans-serif;
    font-size: 14px;
    color: #081237;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.is-active {
    background-color: #f0f7ff;
}

.custom-select-option.is-selected {
    background-color: #e8f1fc;
    color: #4b9af6;
    font-family: jakarta-medium, sans-serif;
}

.custom-select.is-disabled .custom-select-trigger {
    opacity: 0.72;
    cursor: not-allowed;
    background-color: #f5f6f8;
    color: #6a7895;
}

.custom-select.is-disabled .custom-select-trigger:hover {
    border-color: #e6e6e6;
}

