/* HXFX themed dropdown (assets/abc/js/hx-dropdown.js) */

select.hx-dd-native {
    display: none !important;
}

.hx-dd {
    position: relative;
    width: 100%;
}

/* The button also carries the select's own classes (form-control, my-2, ...) */
.hx-dd .hx-dd__btn {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding-right: 40px !important;
    text-align: left;
    cursor: pointer;
}

.hx-dd .hx-dd__btn::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2310594B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") center / 12px 12px no-repeat;
    transition: transform 0.15s;
}

.hx-dd.is-open .hx-dd__btn::after {
    transform: rotate(180deg);
}

.hx-dd .hx-dd__btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.hx-dd__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hx-dd .hx-dd__btn.is-placeholder .hx-dd__label {
    color: #8a949c;
}

.hx-dd.is-open .hx-dd__btn,
.hx-dd .hx-dd__btn:focus-visible {
    border-color: #10594B !important;
    box-shadow: 0 0 0 3px rgba(16, 89, 75, 0.15) !important;
    outline: none;
}

.hx-dd__panel {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    z-index: 1060;
    padding: 6px;
    background: #fff;
    border: 1px solid #d5dfdc;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    text-align: left;
}

.hx-dd .hx-dd__search {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0 0 6px;
    padding: 0 12px 0 34px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a949c' stroke-width='2' stroke-linecap='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cpath d='M20 20l-3.5-3.5'/%3e%3c/svg%3e") 11px center / 15px 15px no-repeat;
    border: 1px solid #d5dfdc;
    border-radius: 8px;
    color: #212529;
    font-size: 14px;
    outline: none;
}

.hx-dd .hx-dd__search:focus {
    border-color: #10594B;
}

.hx-dd .hx-dd__search::placeholder {
    color: #8a949c !important;
}

.hx-dd .hx-dd__search::-webkit-input-placeholder {
    color: #8a949c !important;
}

.hx-dd__list {
    max-height: 240px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.hx-dd__option {
    padding: 9px 12px;
    border-radius: 7px;
    color: #212529;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.hx-dd__option.is-active {
    background: #e7f1ef;
    color: #10594B;
}

.hx-dd__option.is-selected {
    background: #10594B;
    color: #fff;
    font-weight: 600;
}

.hx-dd__option.is-selected.is-active {
    background: #0d4a3e;
    color: #fff;
}

.hx-dd__option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hx-dd__empty {
    padding: 10px 12px;
    color: #8a949c;
    font-size: 13px;
}
