/*#region popup */
.sun-filter-popup-background {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    justify-content: center;
    z-index: 1001;
    background-color: rgba(230,230,230,.75);
}

.sun-filter-popup-background > div {
    width: 90%;
    position: absolute;
    margin-top: 3%;
    background-color: #fff;
    border-radius: var(--sunBorderRadius);
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
    z-index: 1002;
}
/*#endregion */

/*#region popup nav */
.sun-filter-popup-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #f4f4f4;
    padding: 15px 10px;
}

.sun-filter-popup-nav-title {
    width: 100%;
    font-size: 17px;
    font-weight: 500;
}

.sun-filter-popup-nav > span {
    width: 100%;
    text-align: end;
}
/*#endregion */

/*#region popup actions */
.sun-filter-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 2px 5px #e8e8e8;
    gap: 10px;
}

.sun-filter-actions > button {
    width: 30%;
    padding: 5px;
    border-radius: var(--sunBorderRadius);
}

.sun-filter-actions > select {
    width: 30%;
    text-align: center;
    border-radius: var(--sunBorderRadius);
    color: #333;
    border: 1px solid #ddd;
    box-shadow: none;
}

.search-field-wrap {
    width: 100%;
}

.search-field-wrap i {
    position: absolute;
}
/*#endregion */

/*#region popup footer */
.sun-filter-popup-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}
/*#endregion */

/*#region popup terms */
.sun-term-name {
    padding: 5%;
    font-size: 12px;
    word-break: break-word;
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
}

.sun-filter-popup-option {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--sunBorderRadius);
    border: 1px solid var(--sunLightGrey2);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.sun-filter-popup-option > div:hover {
    cursor: pointer;
}

.sun-filter-popup-option:hover {
    background: var(--sunLightShadow);
    cursor: pointer;
}

.sun-filter-popup-subtitles {
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0 10px;
    gap: 20px;
}

.sun-filter-popup-subtitles > div {
    width: 50%;
    height: 100%;
    display: flex;
    text-transform: uppercase;
    color: var(--sunDefault);
    font-size: 15px;
    align-items: center;
    justify-content: flex-start;
}

.sun-filter-option-seleted {
    background: #ececec66;
    box-shadow: 0 -1px 2px #ffffff;
}

.sun-filter-popup-selection {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 60vh;
    min-height: 400px;
    margin: 0 10px;
    gap: 20px;
}

.sun-filter-popup-selection > div {
    width: 100%;
    border: 1px solid #ebebeb;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-gap: 10px;
    grid-auto-rows: 120px;
    padding: 10px;
    border-radius: var(--sunBorderRadius);
}

.sun-filter-popup-selected::-webkit-scrollbar, .sun-filter-popup-options::-webkit-scrollbar, .sun-term-name::-webkit-scrollbar {
    width: 5px;
}

.sun-filter-popup-selected::-webkit-scrollbar-track, .sun-filter-popup-options::-webkit-scrollbar-track, .sun-term-name::-webkit-scrollbar-track {
    background: #fff;
}

.sun-filter-popup-selected::-webkit-scrollbar-thumb, .sun-filter-popup-options::-webkit-scrollbar-thumb, .sun-term-name::-webkit-scrollbar-thumb {
    background: var(--sunDefault);;
}

.sun-filter-popup-selected::-webkit-scrollbar-thumb:hover, .sun-filter-popup-options::-webkit-scrollbar-thumb:hover, .sun-term-name::-webkit-scrollbar-thumb:hover {
    border-radius: 5px;
    transition: width 2s;
}
/*#endregion */