.number-frames {
    width: 100%;
    display: grid!important;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}
.number-frames__label {
    width: 100%;
    /*padding: 177px 10px 10px 10px;*/
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    outline: 1px solid rgba(238, 242, 247, 1);
    cursor: pointer;
    transition: all .3s linear;

    &:has(input:checked), &:hover {
        outline: 1px solid #1565C0;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
     }
    input, input.hidden {
        visibility: hidden;
        width: 0!important;
        height: 0!important;
        line-height: 0;
        border: unset!important;
        margin: unset!important;
        padding: unset!important;
    }
    img {
        width: 100%;
        height: fit-content;
        max-height: 177px;
        /*position: absolute;*/
        /*top: 50%;*/
        /*left: 0;*/
        /*transform: translateY(-50%);*/
        display: block;
        object-fit: contain;
    }
    span {
        font-size: 15px;
        font-weight: 500;
        line-height: 15px;
        letter-spacing: -0.01em;
        text-align: left;
    }
}


.home-filter-selection-container {
    margin-top: 20px;
}
.numbers-filter-selection-container {
    width: fit-content;
    max-width: min-content!important;
    position: relative;
    .product__number_plate {
        width: 100%;
        max-width: fit-content;
        padding: 15px 25px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(180deg, #FEFEFF 49.69%, rgba(235, 235, 235, 0.76) 82.5%);
        border-radius: 10px;
        border: 3px solid rgba(0, 0, 0, 1);
        z-index: 101!important;
        .product__number_plate__country {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            .product__number_plate__country__flag {
                width: 36px;
                img {
                    width: 100%;
                    display: block;
                }
            }
            .product__number_plate__country__name {
                position: relative;
                font-size: 22px;
                line-height: 22px;
                padding: 2px;
                border: 0.3px solid rgba(128, 128, 128, 1);
                border-radius: 3px;
                box-shadow: 1px .5px 1px rgba(0, 0, 0, 0.3);
                &:before {
                    content: "";
                    width: calc(100% + 7px);
                    height: calc(100% + 7px);
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    border-radius: 4px;
                    border: 0.3px solid rgba(128, 128, 128, 1);
                }
            }
        }
        .product__number_plate__series {
            flex: 1;
            display: flex;
            //grid-template-columns: repeat(3, 1fr);
            align-items: center;
            gap: 30px;
            padding-left: 18px;
            .product__number_plate__series__item {
                width: min-content;
                transform: scale(1, 1.4);
                font-family: Barlow, sans-serif;
                font-weight: 600;
                margin-top: -2px;
                text-shadow: 2px 1.5px 2px rgba(0, 0, 0, 0.3);
                position: relative;
                text-align: center;
                font-size: 54px;
                color: rgba(0, 0, 0, 1);
                /*color: rgba(47, 47, 47, 0.13);*/
                line-height: 100%;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                span {
                    letter-spacing: 4px;
                    color: #eee;
                    position: relative;
                    text-decoration: unset!important;
                    /*border-bottom: 1px solid rgb(0,0,0);*/
                    /*text-decoration: underline;*/
                    /*text-decoration-color: #0008;*/
                    /*text-decoration-style: solid;*/
                    /*text-decoration-thickness: 1.5px;*/

                    /*span:before {*/
                    /*    content: attr(data-selected);*/
                    /*    color: #000;*/
                    /*    text-decoration: unset;*/
                    /* }*/
                    span:after {
                        content: "";
                        position: absolute;
                        width: 100%;
                        height: 1.5px;
                         background-color: #000;
                        bottom: 5px;
                        left: 0;
                        display: block;

                     }
                    &.active {
                        color: #000;
                        text-decoration: unset;
                        span {
                            color: #000;
                            text-decoration: unset;
                        }
                        span:after {
                            content: unset;
                        }
                    }
                    span.active {
                        color: #768A9E;
                        color: #aaa;
                        font-weight: 700;
                        text-decoration: unset;
                    }
                }
                &:after {
                    content: "";
                    width: 16px;
                    height: 6px;
                    border-radius: 2px;
                    background: #000;
                    position: absolute;
                    top: 50%;
                    right: -23px;
                    transform: translate(-50, -50%);
                    box-shadow: 2px 1.5px 1px rgba(0, 0, 0, 0.3);
                }
                &:last-child:after {
                    content: unset;
                }
            }
        }
    }
}

/* Dropdown */
.number-dropdowns {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    .number-dropdown {
        padding-right: calc(var(--bs-gutter-x)* .5);
        padding-left: calc(var(--bs-gutter-x)* .5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
}
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.dropdown-content {
    display: none!important;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(46, 107, 146, 0.12);
    padding: 10px 0;
    z-index: 2;
    &.active {
         display: block!important;
    }
    .dropdown-reset {
        width: 100%;
        padding-bottom: 8px;
        border-bottom: 1px solid rgb(238, 242, 247);
        button {
            width: 100%;
            border-radius: 4px;
            font-size: 13px;
            background: none;
            border: 1px solid rgb(238, 242, 247);
            padding: 10px;
            color: rgb(118, 138, 158);
            transition: .3s;
            &:hover {
                 box-shadow: 0 2px 5px rgba(46, 107, 146, 0.12);
                 background: rgba(226, 41, 41, .4);
                 color: rgb(226, 41, 41);
            }

        }
    }
    &::-webkit-scrollbar {
         width: 4px;
    }
    &::-webkit-scrollbar-thumb {
         width: 3px;
         border-radius: 2px;
         background-color: #8395A7;
    }
    label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 14px;
        color: #000;
        cursor: pointer;
        padding: 6px 10px;
        input {
            visibility: hidden;
        }
        &:hover {
            color: rgb(118, 138, 158);
            background: #f6f7fa;
        }
         &:has(input:checked) {
              color: #000;
              background-color: #ddd;
          }
    }
    .dropdown-group {
    }
}

@media screen and (max-width: 992px) {
    .number-frames {
        grid-template-columns: repeat(2, 1fr);
    }

    .numbers-filter-selection-container {
        width: 100%;
        margin: 0 auto;
        .product__number_plate {
            width: 100%;
            max-width: fit-content;
            padding: 10px 15px;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(180deg, #FEFEFF 49.69%, rgba(235, 235, 235, 0.76) 82.5%);
            border-radius: 10px;
            border: 3px solid rgba(0, 0, 0, 1);
            z-index: 10;
            .product__number_plate__country {
                 display: flex;
                 flex-direction: column;
                 align-items: center;
                 gap: 6px;
                .product__number_plate__country__flag {
                     width: 28px;
                    img {
                        width: 100%;
                        display: block;
                    }
                }
                .product__number_plate__country__name {
                     position: relative;
                     font-size: 16px;
                     line-height: 16px;
                     padding: 2px;
                     border: 0.3px solid rgba(128, 128, 128, 1);
                     border-radius: 3px;
                     box-shadow: 1px .5px 1px rgba(0, 0, 0, 0.3);
                    &:before {
                         content: "";
                         width: calc(100% + 7px);
                         height: calc(100% + 7px);
                         position: absolute;
                         top: 50%;
                         left: 50%;
                         transform: translate(-50%, -50%);
                         border-radius: 4px;
                         border: 0.3px solid rgba(128, 128, 128, 1);
                    }
                }
            }
            .product__number_plate__series {
                 flex: 1;
                 display: flex;
                 //grid-template-columns: repeat(3, 1fr);
                 align-items: center;
                 gap: 24px;
                 padding-left: 14px;
                .product__number_plate__series__item {
                     width: min-content;
                     transform: scale(1, 1.4);
                     font-family: Barlow, sans-serif;
                     font-weight: 600;
                     margin-top: -2px;
                     text-shadow: 2px 1.5px 2px rgba(0, 0, 0, 0.3);
                     position: relative;
                     text-align: center;
                     font-size: 46px;
                     color: rgba(0, 0, 0, 1);
                     //color: rgba(47, 47, 47, 0.13);
                     line-height: 100%;
                     display: inline-flex;
                     align-items: center;
                     gap: 2px;
                    span {
                        /*//border-bottom: 1px solid rgb(0,0,0);*/
                        /*text-decoration: underline;*/
                        /*text-decoration-color: #0008;*/
                        /*text-decoration-style: solid;*/
                        /*text-decoration-thickness: 1.5px;*/
                    }
                    &:after {
                         content: "";
                         width: 12px;
                         height: 6px;
                         border-radius: 2px;
                         background: #000;
                         position: absolute;
                         top: 50%;
                         right: -18px;
                         transform: translate(-50, -50%);
                         box-shadow: 2px 1.5px 1px rgba(0, 0, 0, 0.3);
                    }
                    &:last-child:after {
                         content: unset;
                    }
                }
            }
        }
    }
}
