.serie-select {
    --input-padding-vertical: 0.8125rem;
    --input-padding-horizontal: 1.25rem;
    position: relative;
    overflow: visible;
    font-family: Arial, Helvetica, sans-serif;
    color: #262626;
}

.serie-select .serie-select-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #262626;
    padding-bottom: 8px;
    line-height: 20px;
}

.serie-select .serie-select-backdrop {
    display: none;
}

.serie-select .serie-select-container {
    background: #fff;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 10060;
    overflow: visible;
}

.serie-select .serie-select-container[hidden] {
    display: none;
}

.serie-select .serie-select-column {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    height: auto;
    overflow: visible;
}

.serie-select .serie-select-column[data-role="models"] {
    border-left: 1px solid #e6e6e6;
}

.serie-select .item,
.serie-select .sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.serie-select .item:hover,
.serie-select .sub-item:hover {
    background-color: #f2f2f2;
}

.serie-select .selected:not(:hover) {
    background-color: #262626;
    color: #fff;
}

.serie-select-button {
    background: none;
    color: #262626;
    border: none;
    font: inherit;
    outline: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0.8125rem 1.25rem;
    user-select: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 3px;
    text-align: left;
}

.serie-select-button > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 32px;
}

.serie-select-button .empty-placeholder {
    color: #8e8e8e;
}

.serie-select-button .dropdown-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.serie-select.is-open .serie-select-button .dropdown-arrow {
    margin-top: -2px;
    transform: rotate(225deg);
}

.serie-select-button.neo-tertiary-btn {
    background-color: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.serie-select-button.neo-tertiary-btn:hover {
    background-color: #f6f6f6;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45);
}

.serie-select-button.neo-tertiary-btn:focus {
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #262626;
    outline: 2px solid #1c69d4;
    outline-offset: 2px;
}

.serie-select.is-open .serie-select-button.neo-tertiary-btn:focus {
    outline: none;
}

.serie-select-container-helper,
.serie-select [data-role="accordion"] {
    display: none;
}

.serie-select-item-bottom-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 50px;
    padding: 14px 20px;
}

.serie-select-item-bottom-title.is-open {
    font-weight: 700;
}

.serie-select-item-bottom-options {
    margin-left: 1rem;
    border-left: 1px solid #e6e6e6;
}

.serie-select-item-bottom-options-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
}

.serie-select-item-bottom-options-option:hover {
    background-color: #f2f2f2;
}

.serie-select-container-helper {
    color: #fff;
    padding: 0 1rem;
    min-height: 48px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.serie-select-container-helper-close {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 12px 0;
}

@media (max-width: 991px) {
    .serie-select.is-open .serie-select-backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10050;
    }

    .serie-select.is-open .serie-select-container-wrapper {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10060;
    }

    .serie-select.is-open .serie-select-container-helper {
        display: flex;
    }

    .serie-select.is-open .serie-select-column {
        display: none;
    }

    .serie-select.is-open [data-role="accordion"] {
        display: block;
    }

    .serie-select.is-open .serie-select-container {
        position: relative;
        display: block;
        max-height: calc(100vh - 56px);
        overflow: auto;
        border-radius: 0;
        border-bottom: 0;
    }
}

body.serie-select-modal-open {
    overflow: hidden;
}
