.ui-select {
    --select-brand: var(--navy, #064b61);
    position: relative;
    min-width: 0;
    width: 190px;
    max-width: 100%;
    color: var(--select-brand);
    font-family: inherit;
}

.ui-select--dropdown-only {
    width: 100%;
    color: inherit;
}

.ui-select--dropdown-only .ui-select__menu {
    right: auto;
    left: 0;
}

.ui-select [hidden] {
    display: none !important;
}

.ui-select .ui-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid #d5e2e7;
    border-radius: 22px;
    background: #f7fafb;
    color: var(--select-brand);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.ui-select .ui-select__trigger:hover,
.ui-select.is-open .ui-select__trigger {
    border-color: #8caeb9;
    background: #f0f6f7;
}

.ui-select .ui-select__trigger:focus-visible,
.rental-page .booking-card .ui-select__trigger:focus-visible {
    border-color: var(--select-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgb(6 75 97 / 12%);
}

.ui-select__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ui-select__value {
    overflow: hidden;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select__label {
    color: #6f8792;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.ui-select__arrow {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: -4px 2px 0;
    border-right: 1.5px solid #6d8b97;
    border-bottom: 1.5px solid #6d8b97;
    transform: rotate(45deg);
    transition: transform .18s, margin .18s;
}

.ui-select.is-open .ui-select__arrow {
    margin-top: 4px;
    transform: rotate(225deg);
}

.ui-select__menu {
    position: absolute;
    z-index: 1060;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    min-width: 100%;
    max-width: min(280px, calc(100vw - 32px));
    max-height: 280px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dce8ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(6 45 61 / 14%);
}

.ui-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
    margin: 2px 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #48616e;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.ui-select__option:hover,
.ui-select__option:focus {
    outline: none;
    background: #f1f6f7;
    color: var(--select-brand);
}

.ui-select__option[aria-selected="true"] {
    background: #e8f3f3;
    color: var(--select-brand);
    font-weight: 650;
}

.ui-select__option:focus-visible {
    box-shadow: inset 0 0 0 1.5px #9abcc5;
}

.ui-select__option[aria-disabled="true"] {
    opacity: .4;
    cursor: not-allowed;
}

.ui-select__check {
    flex: 0 0 10px;
    width: 10px;
    height: 6px;
    margin-top: -3px;
    border-left: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    visibility: hidden;
    transform: rotate(-45deg);
}

.ui-select__option[aria-selected="true"] .ui-select__check {
    visibility: visible;
}

.ui-select--stacked {
    width: 100%;
    height: 100%;
}

.ui-select--stacked .ui-select__trigger {
    height: 100%;
    min-height: 56px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ui-select--stacked .ui-select__content {
    gap: 3px;
}

.ui-select--stacked .ui-select__label {
    line-height: 1.2;
}

.ui-select--stacked .ui-select__value {
    line-height: 1.35;
}

.ui-select--stacked .ui-select__menu {
    right: auto;
    left: 0;
}

.ui-select--stacked .ui-select__option {
    font-size: 13px;
}

@media (max-width: 575px) {
    .ui-select__option {
        min-height: 44px;
        font-size: 13px;
    }
}
