.special-color__wrapper {
    margin-top: 50px;
}
.special-color__right-sidebar {
    position: sticky;
    top: 100px;
}
.accordion {
    /*border-radius: 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);*/
    padding: 5px;
    height: 100%;
}
.acc-active.acc-container {
    max-height: 100%;
    overflow-y: hidden;
}
.acc-container {
    display: grid;
    /*grid-template-columns: 1fr 490px;*/
    grid-template-columns: 555px auto;
    /*grid-template-columns: 775px auto;*/
    /*grid-template-rows: minmax(0, 1fr);*/
    /*grid-template-rows: minmax(450px, auto) auto;*/
    gap: 5px;

    /*width: 100%;
    height: auto;*/
    overflow: hidden;
    max-height: 130px;
    border-radius: 6px;
    transition: max-height 0.2s ease-in-out;
    /*position: relative;*/
}
.acc-container::after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg,hsla(0,0%,100%,0),#fff);
    content: "";
    opacity: .5;
}
.acc-header {
    grid-column: 1;
    grid-row: 1;
    /*max-width: 100%;
    width: 775px;*/
    height: 44px;
    background: #565656;
    color: #FFF;
    border-radius: 6px 6px 0 0;
    padding: 13px;
    font-weight: normal;
    opacity: .5;
    position: relative;
    /*left: 0;*/
    transition: background .3s ease-in-out;
    z-index: 1;
}
.acc-active .acc-header,
.acc-header:hover {
    background: #222;
    cursor: pointer;
}
.acc-header:after {
    font-family: "Font Awesome 6 Pro";
    content: "\f322";
    position: absolute;
    right: 50%;
    /*top: 50%;
    margin-top: -12.5px;*/
    /*width: 25px;
    height: 25px;*/
    display: inline-block;
    font-size: 20px;
}
.acc-active .acc-header:after {
    font-family: "Font Awesome 6 Pro";
    content: "\f325";
}
.acc-active.acc-container::after {
    display: none;
}
/*.acc-main {
    grid-column: 1;
    grid-row: 1;
}*/
.acc-content {
    /*overflow: hidden;
    position: relative;*/
    grid-column: 1;
    grid-row: 1;
}
.acc-active .prod-special-color-thumb {
    padding-top: 44px;
    /*height: 557px;*/
}
.prod-special-color-thumb {
    border-radius: 6px;
    /*margin-left: -10px;*/
    height: 100%;
    transition: all 0.2s ease-in-out;
    /*opacity: 0;*/
}
.prod-special-color-thumb .color__picture_big {
    border-radius: 0 0 6px 6px !important;
    width: 100% !important;
}
.acc-sidebar {
    grid-column: 2;
    grid-row: 1 / 2;
}
.acc-sidebar .tabs-wrap {
    margin: 0 5px 10px 5px;
}
.acc-active .prod-special-color-info {
    padding-top: 55px;
}
.prod-special-color-info {
    background: white;
    border-radius: 6px;
    /*padding: 10px;*/
    height: 100%;
    transition: all 0.2s ease-in-out;
    margin-top: -55px;
    font-size: 15px;
}
.prod-special-color-info .table-params>tbody>tr>td {
    line-height: 2.0em;
}
.color-detail-buy {
    margin: 0 5px;
}
.color-detail-buy .button-ui_brand, .notice-modal .modal-dialog .button-ui_brand {
    min-width: 100% !important;
    margin-top: 0;
    height: 50px;
    line-height: 47px;
}
.color-detail-buy .button-ui_brand:hover, .color-detail-buy .button-ui_brand:focus {
    color: white;
}
.prod-special-color-info .tab-content {
    padding: 0;
}
.special-color-cars {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 10px;
}
.prod-special-color-value {
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    height: 200px;
    box-sizing: border-box;
}
.prod-special-color-value.show {
    height: auto;
    display: flex !important;
}
.prod-special-color-value:not(.show)::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100px;
    background: linear-gradient(rgba(255, 255, 255, 0) 3.07%, rgb(255, 255, 255) 100%);
}
.prod-special-color-btn {
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    width: 100%;
    background-color: transparent;
    border: none;
}
.custom-tabs {
    display: flex;
    align-items: center;
    -webkit-box-pack: justify;
    white-space: nowrap;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
    gap: 10px;
    margin: 0 5px 10px 5px;
}
.Button_color_gray.active {
    background-color: #0810211a;
}

.table-params > thead > tr > th {
    width: 50%;
    line-height: 1.5em;
    padding: 0.2em 0.5em;
}
.options-example-link {
    margin: 16px 5px 5px 5px;
}
.car-thumb {
    height: 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.car-thumb .car_photo {
    width: 100px;
}
.ellipsis {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    display: block;
    font-size: 14px;
    line-height: 1;
    color: #4e4e4e;
    /*text-align: center;
    vertical-align: baseline;*/
}
.color__picture {
    cursor: pointer;
}

.loader-container {
    text-align: center;
    font-size: 2em;
}
#cars tbody td:last-child a{
    color: #4e4e4e;
}
.special-color__wrapper .gallery-list__wrapper {
    padding: 0 5px;
}
/*-----------------------max-width: 1540px---------------------------*/
@media (min-width: 1540px) {
    .acc-container {
        grid-template-columns: 797px auto;
    }
    /*.acc-header {
        width: 100%;

    }*/
    .color__picture_big {
        width: 100% !important;
    }
}
/*-----------------------max-width: 1199px---------------------------*/
@media only screen and (max-width: 1199px) {
    .special-color__right-sidebar .advertising {
        display: none;
    }
    /*.special-color__wrapper .col-md-9, .special-color__wrapper .col-md-3 {
        width: 100%;
    }*/
    .acc-container {
        grid-template-columns: 650px auto;
    }
    /*.acc-header {
        width: 620px;
    }
    .color__picture_big {
        width: 620px !important;
    }*/
}
/*-----------------------max-width: 991px---------------------------*/
@media only screen and (max-width: 991px) {
    .acc-container {
        grid-template-columns: 100%;
    }
    .acc-sidebar {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
    }
    .special-color__wrapper {
        margin-top: 0;
    }
    .acc-active .prod-special-color-info {
        margin-top: 0;
        padding-top: 0;
        -webkit-transition: none !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
    /*.acc-header {
        width: 958px;
    }
    .color__picture_big {
        width: 958px !important;
    }*/
    /*.special-color-cars {
        position: unset !important;
    }*/
    .color-detail-buy {
        margin-top: 20px;
    }
}
/*-----------------------max-width: 567px---------------------------*/
@media only screen and (max-width: 567px) {
    /*.acc-container {
        grid-template-rows: auto;
    }*/
    #car-example-gallery .f-carousel__viewport, .prod-special-color-thumb .color__picture_big {
        height: 250px !important;
        /*background-size: cover;*/
    }
    .prod-special-color-thumb .color__picture_big:not([data-url])
    {
        background-size: cover;
    }
    /*#car-example-gallery .color__picture_big {
        height: 100% !important;
        background-size: cover;
    }*/
    .prod-special-color-thumb .f-thumbs.is-classic {
        --f-thumb-width: 110px !important;
        --f-thumb-height: 80px !important;
    }
    /*.car-thumb {
        width: 85px;
    }
    .car-thumb .car_photo {
        height: 30px;
    }
    .car-thumb .ellipsis {
        font-size: 10px;
        padding: 0;
    }*/
    .acc-header:after {
        right: 10px;
    }
    /*:not(#mainCarousel).f-carousel > .f-carousel__nav .f-button {
        opacity: 1 !important;
        transform: translateX(0) translateY(-50%) !important;
    }*/
    .custom-tabs {
        flex-direction: column;
    }
}