/* dropdown */
.dropdown-selected {
    background: var(--white1);
    border: 1px solid var(--greyBorder1);
    border-radius: 8px;
    width: 100%;
    padding: 13px 16px;
    color: var(--greyText1);
    transition: all 0.4s ease;
}

.dropdown-selected:hover {
    border-color: var(--greyText1);
}
.custom-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.custom-dropdown::after {
    content: '';
    position: absolute;
    background-image: url(../../icons/dropdown-passive.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    pointer-events: none;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.4s ease;
}
.custom-dropdown.active::after {
    background-image: url(../../icons/dropdown-active.svg);
    transform: translateY(-50%) rotate(180deg);
}
.dropdown-selected {
    cursor: pointer;
}
/* search */
.dropdown-search {
    position: absolute;
    width: 100%;
    top: 0;
    opacity: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: opacity 0.4s ease;
}

.dropdown-search-input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    outline: none;
    border-radius: 8px;
    background: var(--white1);
    box-sizing: border-box;
}
.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white1);
    color: var(--black1);
    border: 1px solid var(--blue1);
    border-radius: 8px;
    /* max-height: 180px; */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 50;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}
.custom-dropdown.active .dropdown-options {
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
}
.custom-dropdown.active .dropdown-search {
    opacity: 1;
    border-color: var(--blue1);
}
.custom-dropdown.selected .dropdown-selected {
    color: var(--black1);
}
.custom-dropdown.error-input .dropdown-selected {
    border-color: var(--red1); 
}
.custom-dropdown.error-input .dropdown-selected:focus {
    border-color: var(--blue1);
}
.dropdown-options::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.dropdown-options li {
    padding: 13px 16px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.dropdown-options li:hover {
    background: var(--blue2);
}
.hidden {
    display: none;
}

.dropdown-options li {
    list-style-type: none !important;
}

/* checkout page */
.checkout-billing-fields {
    
    .dropdown-selected {
        border-radius: 6px;
        height: 50px;
    }
    .dropdown-search {
        height: 50px;
        border-radius: 6px;
    }
    .dropdown-options {
        border-radius: 6px;
    }
    .dropdown-search-input {
        /* height: 50px; */
        border-radius: 6px;
    }
}