.nice-select {
    --list-color: #002F5E;
    
    --list-left: 0;
    --list-right: 0;
    --list-p-y: 0;
    --list-p-x: 0;

    --list-bd-width: 0;
    --list-bd-radius: 4px;
    --list-bd-color: transparent;

    --list-bg: #fff;

    --list-item-bg: transparent;
    --list-item-hover-bg: #DBEAF8;
    --list-item-focus-bg: #DBEAF8;
    --list-item-selected-bg: #DBEAF8;
    --list-item-selected-focus-bg: #DBEAF8;

    --list-box-shadow: 0 8px 35px 0 rgba(0, 0, 0, 0.16);

    --list-ul-p-y: 8px;
    --list-ul-p-x: 8px;

    --arrow-icon-right: 4px;
    --arrow-icon-width: 32px;
    --arrow-icon-height: 32px;

    width: auto;
    cursor: pointer;
    display: block;
    outline: none;
    display: flex;
    align-items: center;
    line-height: 1;
    position: relative;
    text-align: left !important;
    overflow: visible !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.nice-select:has(.dropdown-scroll-up){
    --list-p-y: 34px;
    --list-ul-p-y: 0;
}
.nice-select:has(.dropdown-scroll-up) .list-wrap .list{
    max-height: 248px;
}
@media (width > 768px) {
    .nice-select{
        --carret-right: 12px;
    }
}
@media (width > 992px) {
    .nice-select.wide{
        --list-left: -12px; 
        --list-right: -12px; 
    }
}

.nice-select-icon{
    position: absolute;
    top: 50%;
    z-index: 10;
    right: var(--arrow-icon-right);
    height: var(--arrow-icon-width);
    width: var(--arrow-icon-height);
    margin-top: calc(var(--arrow-icon-height) / 2 * -1);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}

.nice-select.open .nice-select-icon {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

.nice-select.open .list-wrap {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0);
    -ms-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

.nice-select.wide {
    width: 100%;
}

.nice-select.right {
    float: right;
}

.nice-select.right .list-wrap {
    left: auto;
    right: 0;
}

.nice-select.small {
    font-size: 12px;
    height: 36px;
    line-height: 34px;
}

.nice-select.small:after {
    height: 4px;
    width: 4px;
}

.nice-select.small .option {
    line-height: 34px;
    min-height: 34px;
}

.nice-select > .current{
    display: block;
    overflow: hidden;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: calc(var(--arrow-icon-right) + var(--arrow-icon-width));
}

.nice-select .list-wrap {
    position: absolute;
    top: 100%;
    left: var(--list-left, 0px);
    opacity: 0;
    display: flex;
    row-gap: 2px;
    flex-direction: column;
    justify-content: stretch;

    padding: var(--list-p-y) var(--list-p-x);
    border-radius: var(--list-bd-radius);
    color: var(--list-color);
    background-color: var(--list-bg);
    border: var(--list-bd-width) solid var(--list-bd-color);
    box-shadow: var(--list-box-shadow);
    margin-top: 10px;
    white-space: normal;
    pointer-events: none;
    -webkit-transform-origin: 50% 0;
    -ms-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
    -ms-transform: scale(0.75) translateY(-21px);
    transform: scale(0.75) translateY(-21px);
    -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 1059;
}

.nice-select.wide .list-wrap {
    left: var(--list-left); 
    right: var(--list-right); 
}

.nice-select .list-wrap > a{
    position: absolute;
    top: 8px;
    left: var(--list-ul-p-x, 8px);
    right: var(--list-ul-p-x, 8px);
    z-index: 20;
    background: #fff;

    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    justify-content: center;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.nice-select .list-wrap > a.dropdown-scroll-down{
    top: auto;
    bottom: 8px;
}

.nice-select .list-wrap > a:hover{
    background: #DBEAF8;
}

.nice-select .list-wrap .list {
    overflow: auto;
    max-height: 500px;
    padding: var(--list-ul-p-y) var(--list-ul-p-x);
    margin: 0;
    list-style: none;
    display: flex;
    row-gap: 2px;
    flex-direction: column;
    justify-content: stretch;
}

.nice-select .list:hover .option:not(:hover) {
    background-color: transparent !important;
}

.nice-select .option {
    cursor: pointer;
    color: currentColor;
    line-height: 1;
    list-style: none;
    font-weight: 600;
    outline: none;
    text-align: left;
    padding: 12px 8px;
    border-radius: 3px;
    font-size: clamp(18px, 2.4193548387vw, 24px);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
@media (width > 992px) {
    .nice-select .option {
        padding: 12px 15px;
    }
}

.nice-select .option:hover{
    background: var(--list-item-hover-bg);
}
.nice-select .option.focus{
    background: var(--list-item-focus-bg);
}
.nice-select .option.selected {
    background: var(--list-item-selected-bg);
}
.nice-select .option.selected.focus {
    background: var(--list-item-selected-focus-bg);
}

.nice-select .option.disabled {
    background-color: transparent;
    color: #999;
    cursor: default;
}

.no-csspointerevents .nice-select .list-wrap {
    display: none;
}

.no-csspointerevents .nice-select.open .list-wrap {
    display: block;
}
