* {
    font-family: Arial, Helvetica, sans-serif;
    color: #202020;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"],
select.form-control {
    border-radius: 0;
    border: 2px solid #949494;
}

input.invalid,
.form-control.invalid {
    border-color: #fda9ab;
    color: #fda9ab;
}

.form-control:focus {
    border-color: #b4b2b2;
}

.form-control:focus.invalid {
    border-color: #e29597;
}

label.required::after {
    color: #ed3227;
    content: "*";
    margin-left: 5px;
}

select.form-control {
    background-color: #fff;
    border: 2px solid #8C8C8C;
    padding: 5px 10px;
    background-image: url(../img/ico_select_arrow.png);
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn {
    border-radius: 0;
}

ul.unstyled,
ol.unstyled {
    margin-left: 0;
    list-style: none;
}

.choose-block ul {
    padding-left: 0;
}

.choose-block ul li {
    padding-left: 0;
}

main h1 {
    padding-bottom: 10px;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 2px solid #ed3227;
}

main h2 {
    border-bottom: 2px solid #cecece;
    margin: 40px 0 25px 0;
    font-weight: bold;
    padding-bottom: 10px;
}

main h3 {
    /* border-bottom: 2px solid #cecece; */
    padding-bottom: 8px;
    margin: 35px 0 25px;
}

main p {
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.8rem;
}

main ol,
main ul {
    margin-bottom: 25px;
}

main a {
    color: #ed3237;
}

main a:hover {
    color: #202020;
}

main ol li::before,
.main ol li::before {
    /* content: counter(li); */
    content: counters(section, ".") " ";
    color: #ed3237;
    /*display: inline-block;*/
    width: 1em;
    margin-left: -1.55em;
    margin-right: 0.5em;
    text-align: right;
    direction: rtl;
}

main ol li,
.main ol li {
    counter-increment: section;
}

main ol li,
.main ol li {
    color: #202020;
    list-style: none;
}

main ol,
.main ol {
    counter-reset: section;
}

main ul {
    list-style-image: url(../img/content-bullet.png);
}

/* Main navigation */
.top_navigation_holder {
    border-bottom: 1px solid #2f2f2f;
}

#main_nav {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 4px 50px -10px #dd1f24;
}

#main_nav .nav-item,
nav .navbar-brand {
    border-right: 1px solid #272727;
}

#main_nav .nav-item:last-child {
    border-right: none;
}

#main_nav .nav-item:last-child a {
    padding-right: 0;
}

#main_nav .nav_link {
    padding-left: 35px;
    position: relative;
}

#main_nav .nav_link.active,
#main_nav .nav_link:hover {
    background-color: #202020;
}

#main_nav .nav_link::before {
    background-position: left center;
    background-repeat: no-repeat;
    position: absolute;
    height: 100%;
    content: ' ';
    width: 100%;
    left: 0;
    top: 0;
}

#main_nav .nav_link.icon_home {
    height: 46px;
    line-height: 46px;
}

.icon_home::before {
    background-image: url(../img/ico_home.png);
}

.icon_parts::before {
    background-image: url(../img/ico_parts.png);
}

.icon_login::before {
    background-image: url(../img/ico_account.png);
}

.icon_logout::before {
    background-image: url(../img/ico_logout.png);
}

.icon_dashboard::before {
    background-image: url(../img/ico_user_gauge.png);
}

.icon_basket::before {
    background-image: url(../img/ico_cart.png);
}

.icon_currency::before {
    background-image: url(../img/ico_home.png);
}

nav .navbar-brand {
    padding: 0 10px 0 0;
}

#main_nav a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    line-height: 30px;
    font-family: Arial, sans-serif;
    padding-right: 15px;
    padding-left: 15px;
}

#main_nav .dropdown-menu {
    background-color: #171717;
    color: #fff;
    min-width: 55px;
    border-radius: 0;
    border-bottom: 1px solid #2f2f2f;
    border-top: 1px solid #2f2f2f;
    margin: 0;
    padding: 0;
}

#main_nav .dropdown-menu .dropdown-item:hover {
    background-color: #2f2f2f;
}

/* / Main navigation */


/* Dynamic search */
.search_bg {
    background-image: url(../img/header_bg.jpg);
    background-repeat: no-repeat;
    background-position: center -48px;
    /* height: 175px; */
}

.dynamic_search_container a.navbar-brand {
    padding: 32px 0;
}

.dynamic_search_container .container {
    box-shadow: 0 4px 50px -10px #000000;
}

.dynamic_search_container .dd_container {
    width: 100%;
    height: 46px;
    margin: 5px 0;
    padding-left: 45px;
    border: 2px solid #ed3227;
    padding-top: 10px;
    padding-right: 10px;
    background-color: rgba(0, 0, 0, 0.50);
    background-repeat: no-repeat;
    background-position: 6px center;
}

.dynamic_search_container .dd_container.dd_year {
    background-image: url(../img/ico_calendar.png);
}

.dynamic_search_container .dd_container.dd_make {
    background-image: url(../img/ico_make.png);
}

.dynamic_search_container .dd_container.dd_model {
    background-image: url(../img/ico_model.png);
}

.dynamic_search_container .dd_container.dd_modification {
    background-image: url(../img/ico_modification.png);
}

.dynamic_search_container .dd_container.dd_fuel {
    background-image: url(../img/ico_engine.png);
}

.dynamic_search_container .dd_container.dd_body {
    background-image: url(../img/ico_body.png);
}

.dynamic_search_container .dd_container .wide_select {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(../img/dd_select_bg.png);
    background-repeat: no-repeat;
    background-position: right;
}

.dynamic_search_container .dd_container .wide_select option {
    color: #202020;
}

.top_search {
    position: relative;
}

.top_search input {
    /* min-width: 50%; */
    /* width: 570px; */
    border-radius: 0;
    color: #ED3237;
    height: 50px;
    border: none;
    font-style: italic;
}

.top_search input:focus {
    color: #ED3237;
}

.top_search button {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0;
    height: 50px;
    background-color: #fff;
    border: none;
    color: red;
}

.top_search img {
    padding: 3px 3px 3px 10px;
    border-left: 2px solid #ed3237;
}

.top_decoration {
    border-bottom: 2px solid #ed3237;
}

::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #ED3237;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #ED3237;
    opacity: 1;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #ED3237;
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #ED3237;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #ED3237;
}

::placeholder {
    /* Most modern browsers support this now. */
    color: #ED3237;
}

.dynamic_search_control {
    width: 100%;
    text-align: center;
}

.toggle_dynamic_search:after,
.toggle_dynamic_search:before {
    content: "";
    background-color: #fff;
    width: 10px;
    position: absolute;
    top: calc(50% - 1px);
    height: 2px;
}

.toggle_dynamic_search:before {
    background-position: left center;
    left: 0;
}

.toggle_dynamic_search:after {
    background-position: right center;
    right: 0;
}

.toggle_dynamic_search:hover {
    color: #f1f1f1;
}

.toggle_dynamic_search {
    background-color: #ed3237;
    border-radius: 0;
    color: #fff;
    text-transform: uppercase;
    margin-top: -28px;
    height: 42px;
    line-height: 42px;
    border: 0;
    padding: 0 49px 0 30px;
    font-size: 14px;
    font-weight: bold;
    background-image: url(../img/ico_arrow_down.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    position: relative;
}

.toggle_dynamic_search:not(.collapsed) {
    background-image: url(../img/ico_search_white.png);
}

/* /Dynamic search */

/* Main part of the page */
main {
    padding-top: 30px;
}


/* Breadcrumb */
.breadcrumb {
    background: none;
    border-radius: 0;
    font-size: 0.8em;
    text-transform: uppercase;
    margin: -25px 0 25px 0;
    padding: 0;
}

.breadcrumb a {
    color: #202020;
    padding: 0 12px 0 0;
    position: relative;
}

.breadcrumb a:after {
    content: "/";
    right: 5px;
    position: absolute;
}

.breadcrumb a:hover:after {
    text-decoration: none;
}

/* /breadcrumb */


/* Alerts */
.alert {
    border-radius: 0;
}

.alert .close {
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 0 0 0 2px;
    line-height: 32px;
    margin: 7px;
}

.alert:hover .close {
    opacity: 1;
}

.alert a:not(.close) {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    text-transform: uppercase;
}

.alert_custom {
    border: 2px solid #ffffff;
    box-shadow: 0 0 11px 0px #2f2f2f;
    font-size: 0.9em;
}

.alert_custom * {
    color: #fff;
}

.alert_info {
    border: 2px solid #cfcfcf;
    background-color: #f1f1f1;
}

.alert-secondary *,
.alert.alert-secondary a {
    color: #202020;
}

.alert_custom.alert-error,
.alert_custom.alert-error span {
    background-color: #ed3227;
    /*text-align: center;*/
    color: #fff;
}

.alert_custom.alert-success {
    background-color: #02a12d;
    /*text-align: center;*/
    color: #fff;
}

.alert_custom.alert-info,
.alert_custom.alert-info span {
    background-color: #157dba;
    color: #fff;
    /*text-align: center;*/
}

.alert_custom.alert-success .close {
    color: #02a12d;
}

.alert_custom.alert-error .close {
    color: #ed3227;
}

.alert_custom.alert-info .close {
    color: #157dba;
}

/* / Alerts */


/* Special offer block */
.special_offer {
    min-height: 48px;
    background-color: #ED3237;
    color: #ffffff;
    margin: 40px 0 0 0;
}

.special_offer .clock {
    position: absolute;
    top: -20px;
}

.special_offer p {
    padding: 5px 0px 5px 90px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.special_offer .time {
    color: #202020;
}

/* /Special offer block */


/* Trust block */
.trust {
    position: relative;
    padding: 27px 0 0 0;
}

.trust .decoration_grey {
    position: absolute;
    top: 0;
    background-color: #F1F1F1;
    height: calc(50% + (27px / 2));
    z-index: -1;
    width: 100%;
}

/* / Trus block */


/* Mega menu */
.mega-menu {
    display: none;
    padding: 18px;
    padding-top: 2px;
    border: 2px solid #CECECE;
    position: absolute;
    left: 251px;
    top: -2px;
    width: 850px;
    z-index: 999999;
    background-color: #f1f1f1;
    min-height: 610px
}

.mega-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu .mega-submenu-list {
    padding-left: 15px !important;
}

.mega-menu ul li {
    float: left;
    padding-bottom: 2px;
}

.mega-menu .mega-submenu {
    display: none;
    padding: 2px;
    padding-top: 2px;
    border: 2px solid #CECECE;
    position: absolute;
    z-index: 1000000;
    left: 50px;
    top: 25px;
    background-color: #f1f1f1;
}





/* Product list */
.product_listing {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product_listing li {
    float: left;
    padding-bottom: 45px;
}

.product_listing .product_container {
    min-height: 300px;
    box-shadow: 0 0 17px 0px #8f8f8f;
    list-style: none;
    position: relative;
    background-image: url(../img/price_bg_decoration.png);
    background-position: right bottom;
    background-repeat: no-repeat;
}

.product_listing .product_container:hover {
    box-shadow: 0 0 17px 0px #ED3237;
}

.product_listing .product_container a:hover {
    text-decoration: none;
}

.product_listing .product_photo {
    padding: 2px 2px 15px 2px;
    position: relative;
}

.product_listing .product_photo:before {
    background-image: url(../img/products/ico_quick_view.png);
    width: 38px;
    height: 38px;
    position: absolute;
    left: 0;
    top: 0;
    content: " ";
}

.product_listing .product_photo img {
    width: 100%;
    height: 230px;
}

.type_a .product_photo img,
.type_b .product_photo img {
    height: 230px;
}

.type_b .product_container,
.type_c .product_container {
    min-height: 200px;
}

.product_listing .product_title a {
    font-size: 0.9rem;
    font-weight: bold;
    color: #202020;
    padding: 5px 12px;
    border-left: 2px solid #ED3237;
    display: inline;
    padding: 0 10px;
}

.product_listing .product_price a {
    border-bottom: 2px solid #ED3237;
    height: 33px;
    display: inline-block;
    color: #202020;
    font-weight: bold;
    font-size: 18px;
}

.product_listing .product_by_now {
    position: absolute;
    bottom: -14px;
    left: 12px;
    background-color: #202020;
    color: #ED3237;
    border: none;
    line-height: 30px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    padding: 0 20px;
    letter-spacing: -1px;
    cursor: pointer;
}

.product_listing .product_by_now::before,
.product_listing .product_by_now::after {
    content: " ";
    height: 2px;
    width: 10px;
    background-color: #ED3237;
    position: absolute;
    top: calc(50% - 1px);
}

.product_listing .product_by_now::before {
    left: 0;
}

.product_listing .product_by_now::after {
    right: 0;
}

.product_listing .product_container:hover .product_by_now {
    color: #F1F1F1;
}

/* /Product list */

/* Testimonials block */
.testimonials .carousel-control-next,
.testimonials .carousel-control-prev {
    align-items: flex-start;
    padding-top: 67px;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    /* filter: drop-shadow(0px 0px 2px black); */
    width: 16px;
    height: 25px;
}

.testimonials .carousel-control-prev-icon {
    background-image: url(../img/ico_slide_left.png);
}

.testimonials .carousel-control-next-icon {
    background-image: url(../img/ico_slide_right.png);
}

.testimonials .testimonial_head {
    border-radius: 50%;
    background-color: brown;
    width: 135px;
    height: 135px;
    box-shadow: 1px 1px 7px #a9a9a9;
}

.testimonials .testimonial_head img {
    width: 135px;
    height: 135px;
}

.testimonials .testimonial_head:before {
    content: "";
    background-color: #F1F1F1;
    height: 2px;
    width: 90%;
    position: absolute;
    left: calc((100% - 90%) / 2);
    top: 25%;
    z-index: -1;
    border-radius: 50%;
}

.testimonials .testimonial_rating {
    padding-bottom: 25px;
}

.testimonials .testimonial_qoute {
    min-height: 100px;
}

/* score */
.testimonials .score input {
    position: absolute;
    top: -2em;
    clip: rect(0, 0, 0, 0);
}

.testimonials .score {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: center;
    border: 0;
    font-size: 0;
}

.testimonials .score legend {
    overflow: hidden;
    height: 0;
}

.testimonials .score label {
    font-size: 32px;
    font-size: 2rem;
    line-height: 32px;
    line-height: 2rem;
    display: inline-block;
    position: relative;
    text-align: center;
    width: 1.2em;
    height: 1em;
    overflow: hidden;
    text-indent: 100%;
}

.testimonials .score label:before {
    content: "☆";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-indent: 0;
    line-height: 1em;
    color: #aaa;
}

.testimonials .score:not(.disabled) label:hover:before,
.testimonials .score:not(.disabled) label:hover~label:before,
.testimonials .score input:checked~label:before {
    content: "★";
    color: #F48D1C;
}

.testimonials .score label:active {
    position: relative;
    top: 1px;
}

/* /Testimonials block */


/* Footer block */
footer {
    margin-top: 25px;
}

footer .footer_top {
    border-bottom: 2px solid #2f2f2f;
}

footer .footer_bottom {
    border-bottom: 2px solid #ed3237;
}

footer .footer_nav {
    margin: 0 0 27px 0;
    padding: 0;
}

footer .footer_logo {
    padding: 50px 0 0 0;
    margin: 0;
}

footer .footer_nav li {
    float: left;
    list-style: none;
}

footer .footer_nav li a {
    padding: 0px 14px;
    line-height: 14px;
    color: #fff;
    font-size: 14px;
    margin: 0;
    position: relative;
}

footer .footer_nav li a:after {
    content: "|";
    font-size: 11px;
    font-weight: bold;
    padding-left: 12px;
    top: 1px;
    position: absolute;
}

footer .footer_nav li:first-child a {
    padding-left: 0;
}

footer .footer_nav li:last-child a {
    border-right: none;
    padding-right: 0;
}

footer .footer_nav li:last-child a:after {
    content: none;
}

footer .footer_nav li.active a {
    text-decoration: underline;
}

footer .paded {
    padding-left: 65px;
    color: #fff;
    padding-bottom: 20px;
}

footer .copyright {
    padding-top: 27px;
    font-size: 14px;
    margin: 0;
}

footer .footer_payments {
    padding: 25px 0 35px 78px;
}

/* /Footer block */


/* Product page */
.product_page .carousel .carousel-inner {
    box-shadow: 0 0 6px 2px #afadad;
    margin-bottom: 15px;
    /* height: 278px; */
    /* width: 370px; */
}

.product_page .carousel-item {
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px 29px #2f2f2f;
    background-color: #fff;
    padding: 2px;
}

.product_page .product_item_title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
}

.product_page .price {
    border-top: 2px solid #Ee3137;
    /* margin-bottom: 20px; */
}

.product_page .price input {
    width: 58px;
    height: 46px;
    font-size: 2em;
    padding: 0 0 0 5px;
    border: none;
    border-right: 2px solid #cfcfcf;
    border-bottom: 2px solid #cfcfcf;
    outline-offset: unset;
}

.product_page .price_display {
    border-bottom: 2px solid #Ee3137;
    border-left: 2px solid #Ee3137;
    border-right: 2px solid #Ee3137;
    padding: 0 15px;
    float: left;
    font-size: 2em;
    font-weight: bold;
    height: 46px;
    line-height: 46px;
}

.product_page .item_condition:before {
    content: "";
    background-image: url(../img/ico_info.png);
    position: absolute;
    height: 24px;
    width: 23px;
    left: 0;
    background-repeat: no-repeat;
    top: 10px;
}

.product_page .qty_input {
    float: left;
    position: relative;
}

.product_page .qty_controls {
    width: 20px;
    position: absolute;
    top: 0;
    right: 5px;
    height: 46px;
}

.product_page .qty_increase,
.product_page .qty_decrease {
    background-color: #F1F1F1;
    height: 18px;
    width: 18px;
    margin: 2px;
    float: left;
    position: relative;
}

.product_page .qty_increase:hover,
.product_page .qty_decrease:hover {
    background-color: #cecece;
    cursor: pointer;
}

.product_page .qty_increase:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid black;
    top: 6px;
    position: absolute;
    left: 3px;
}

.product_page .qty_decrease:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid black;
    top: 6px;
    position: absolute;
    left: 3px;
}

.product_page .item_condition {
    color: #333333;
    position: relative;
    padding: 12px 0 0px 30px;
    float: left;
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: bold;
}

.product_page .buy_item_container {
    position: relative;
}

.product_page .buy_item_container:before {
    content: '';
    background-image: url(../img/ico_cart.png);
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    position: absolute;
    background-position: -2px 4px;
    background-repeat: no-repeat;
    top: 20px;
    left: 25px;
}

.product_page .buy_item {
    height: 70px;
    background-color: #Ee3137;
    color: #fff;
    border: 2px solid #d31a1f;
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 40px 0 75px;
    cursor: pointer;
    text-shadow: 1px 2px 4px #333;
}

.product_page .order_faster>p {
    background-color: #f1f1f1;
    padding: 15px 15px 15px 60px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #f2f2f2;
    margin: 0;
}

.product_page .order_faster img {
    position: absolute;
    left: 30px;
    top: 18px;
}

.action_block {
    margin-bottom: 25px;
}

.side_block .filter-form-group ul {
    padding: 5px 20px;
    margin: 0px;
    max-height: 320px;
    overflow: hidden;

}

.side_block .filter-form-group .show-more {
    position: relative;
    bottom: 0px;
    left: 20px;
}


.side_block .filter-form-group>label {
    margin: 20px 0 0 10px;
    font-weight: bold;
}

.side_block .filter-form-group:last-child {
    margin-bottom: 20px;
}

/* .product_page .side_block { */
.side_block {
    border: 2px solid #CECECE;
    /* padding-bottom: 15px; */
    min-height: 255px;
    position: relative;
    margin-bottom: 25px;
}

/* .product_page .side_block h3 { */
.side_block h3 {
    padding: 10px 0 10px 20px;
    /* border-bottom: 0; */
    margin-right: 20px;
    font-size: 1.2em;
    margin: 0 20px 20px 0;
    font-weight: bold;
}

.side_block ul {
    list-style-image: none;
    list-style: none;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.side_block .side_block_list,
.side_block .side_block_list li a {
    color: #373435;
    font-size: 0.9rem;
    display: block;
    padding: 2px 0;
    /*margin-left: -2px;*/
}

.side_block .side_block_list tr a {
    color: #373435;
    font-size: 0.9rem;
    padding: 2px 0;
    margin-left: -2px;
}

/*.side_block_list li {
    position: relative;
}*/

.side_block .side_block_list li.multilevel {
    padding-left: 25px;
}

.side_block_list li.multilevel::before {
    content: "+";
    background-color: #202020;
    color: #f1f1f1;
    font-weight: bold;
    position: absolute;
    padding: 0 3px;
    left: 7px;
    border-radius: 0;
    width: 13px;
    text-align: center;
    height: 18px;
    line-height: 19px;
}

.side_block_list .custom-treegrid-expander-expanded::before {
    content: "-";
    background-color: #202020;
    color: #f1f1f1;
    font-weight: bold;
    position: absolute;
    padding: 0 3px;
    border-radius: 0;
    width: 13px;
    text-align: center;
    height: 18px;
    line-height: 19px;
}

.side_block_list li.multilevel.active::before {
    content: "-";
}

.side_block_list .custom-treegrid-expander-collapsed::before {
    content: "+";
    background-color: #202020;
    color: #f1f1f1;
    font-weight: bold;
    position: absolute;
    padding: 0 3px;
    border-radius: 0;
    width: 13px;
    text-align: center;
    height: 18px;
    line-height: 19px;
}

.side_block_list .selected {
    background-color: #f1f1f1;
}


.side_block_list li.active {
    background-color: #f1f1f1;
}

/*.side_block_list li > ul {
    display: none;
}*/

/*.side_block_list li.active > ul {
    display: block;
    padding: 3px 0;
    margin: 0;
    background-color: #f1f1f1;
}*/

.side_block .side_block_list li {
    padding-left: 10px;
}

.side_block .side_block_list li:hover {
    background-color: #f1f1f1;
}


.side_block .side_block_list td {
    padding-left: 10px;
    border-left: 2px solid #cecece;
}

.side_block .side_block_list td:hover {
    border-left: 2px solid #ed3237;
}

.side_block p {
    position: relative;
}

.side_block p img {
    padding: 2px;
}

.side_block select,
.action_block select {
    background-color: #fff;
    border: 2px solid #8C8C8C;
    width: calc(100% - 20px);
    margin: 0 10px;
    height: 50px;
    padding: 10px;
    background-image: url(../img/ico_select_arrow.png);
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.action_block select {
    margin: 0px;
}

.side_block .side_block_list ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0 10px 15px 0;
    margin-left: -2px;
}

.side_block li label {
    cursor: pointer;
    width: 100%;
    margin-bottom: 2px;
    font-size: 0.9em;
    position: relative;
    padding-left: 20px;
}

.side_block li input {
    margin-right: 5px;
    background-color: #fff;
    left: 0;
    position: absolute;
    top: 4px;
}

.side_block .shipping_cost {
    padding: 0 20px;
    font-size: 1em;
    display: block;
}

.side_block .main_part {
    padding: 0 0 0 20px;
    margin-right: 20px;
}

.main_part .shipping_small_description {
    position: absolute;
    left: 0;
    width: 100%;
    top: 60%;
    font-size: 0.75rem;
    font-weight: bold;
}

.product_page .trust_block {
    background-color: #F1F1F1;
    border: 2px solid #CECECE;
    padding: 25px 0 0 20px;
    list-style: none;
    margin: 0;
    min-height: 255px;
}

.product_page .trust_block li {
    padding-bottom: 20px;
}

.product_page .trust_block li:first-child img {
    margin-left: -6px;
    padding-right: 15px;
}

.product_page .trust_block li img {
    padding: 0 22px 0 10px;
}

.product_page .carousel-indicators {
    position: relative;
    margin: 0;
    padding: 0;
    bottom: 0;
    justify-content: flex-start;
    -webkit-box-pack: start;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 5px;
}

/*.product_page .carousel-control-next, 
.product_page .carousel-control-prev {
    bottom: 100px;
}*/

.product_page .carousel-thumbnail-controls {
    overflow: hidden;
}

.product_page .carousel-indicators li {
    width: 100px;
    margin-right: 5px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.1);
    text-indent: 0;
    cursor: pointer;
}

.product_page .carousel-indicators li.active {
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.8);
}

.product_page .carousel-indicators li img {
    width: 100px;
    height: 100px;
    border: 2px solid #fff;
}

.product_page .product_notice p:before {
    content: "";
    background-image: url(../img/ico_info_black.png);
    background-repeat: no-repeat;
    position: absolute;
    height: 16px;
    width: 16px;
    left: 15px;
    top: 15px;
}

.product_page .product_notice p {
    background-color: #f1f1f1;
    border: 2px solid #cecece;
    margin: 0;
    padding: 12px 12px 12px 40px;
    position: relative;
    font-size: 0.8em;
}

.content_tabs ul.nav {
    padding-left: 10px;
}

.content_tabs .nav li {
    margin-bottom: -3px;
    z-index: 1;
}

.content_tabs .nav li a {
    border-radius: 0;
    border-width: 2px;
    border-color: #cecece;
    margin: 0 10px;
    text-transform: uppercase;
    color: #202020;
    font-size: 0.9em;
    font-weight: bold;
}

.content_tabs .nav li a.active {
    border-color: #cecece #cecece #fff;
    color: #Ee3137;
}

.content_tabs .tab-content {
    border: 2px solid #cecece;
    padding: 20px;
}

.content_tabs .tab-content .row>div p:first-child {
    border-top: 2px solid #cecece;
}

.content_tabs .tab-content p {
    border-bottom: 2px solid #cecece;
    font-size: 0.9rem;
    padding: 10px 0;
    margin-bottom: 0;
}

.content_tabs p.product_notice {
    border-bottom: 2px solid #cecece;
    font-size: 0.9rem;
    background-color: #f1f1f1;
    border: 2px solid #cecece;
    margin: 0;
    padding: 12px 12px 12px 40px;
    position: relative;
    font-size: 0.8em;
}

.content_tabs p.product_notice:before {
    content: "";
    background-image: url(../img/ico_info_black.png);
    background-repeat: no-repeat;
    position: absolute;
    height: 16px;
    width: 16px;
    left: 15px;
    top: 15px;
}

/* /Product page */

/* basket page */
.basket_container {
    border: 2px solid #cecece;
}

.basket_container .basket_wrapper {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 60px 85px 60px;
    /* minmax(90px, 1fr) 65px 85px 65px; */
    border-bottom: 1px solid #f1f1f1;
    color: #444;
    grid-template-areas: "product price qty total"
        "description description description description";
    padding: 3px 0;
}

.box.a {
    grid-area: product;
}

.box.b {
    grid-area: price;
}

.box.c {
    grid-area: qty;
}

.box.d {
    grid-area: total;
}

.box.e {
    grid-area: description;
}

.basket_container .box {
    border-radius: 0;
    padding: 5px;
    color: #202020;
    background-color: #fff;
}

.basket_container .box.heading {
    font-weight: bold;
}

.basket_container .img_container {
    max-height: 100%;
    float: left;
}

.basket_container .img_link {
    display: inline-block;
    /* float: left; */
    padding: 2px;
    box-shadow: 0 0 10px -2px #202020;
    /*margin-right: 10px;*/
}

.basket_container .remove_link:before {
    background-image: url(../img/ico_close.png);
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 16px;
    width: 16px;
}

.basket_container .item_name {
    color: #202020;
    font-size: 0.9rem;
    /* position: absolute; */
    /* clear: both; */
}

.basket_container .stock_status {
    line-height: 2rem;
}

.basket_container .stock_status.instock {
    color: #02a02c;
}

.basket_container .stock_status.out_of_stock {
    color: #ed3227;
}

.basket_container .remove_link {
    color: #ed3227;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

.basket_container .qty_container {
    position: relative;
    margin-top: -3px;
}

.basket_container .qty {
    width: 35px;
    margin-left: 20px;
}

.basket_container .qty_controll {
    width: 16px;
    height: 16px;
    display: block;
    text-align: center;
    position: absolute;
    color: rgba(255, 255, 255, 0);
}

.basket_container .qty_controll.plus {
    background-image: url(../img/ico_increase.png);
    right: 0;
    top: 7px;
}

.basket_container .qty_controll.minus {
    background-image: url(../img/ico_decrease.png);
    left: 0;
    top: 7px;
}

/* /basket page */

/* list page */
.list_type_controls {
    position: absolute;
    right: 15px;
    top: 15px;
}

.list_type_controls .list_type {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.list_type_controls .list_type:after {
    content: "";
    background-position: center;
    background-repeat: no-repeat;
}

.list_type_controls .list_grid {
    background-image: url(../img/ico_list_a.png);
}

.list_type_controls .list_grid.active,
.list_type_controls .list_grid:hover {
    background-image: url(../img/ico_list_a_active.png);
}

.list_type_controls .list_table {
    background-image: url(../img/ico_list_b.png);
}

.list_type_controls .list_table.active,
.list_type_controls .list_table:hover {
    background-image: url(../img/ico_list_b_active.png);
}

.list_type_controls .list_text {
    background-image: url(../img/ico_list_c.png);
}

.list_type_controls .list_text.active,
.list_type_controls .list_text:hover {
    background-image: url(../img/ico_list_c_active.png);
}

.product_listing.type_b .col-sm-4,
.product_listing.type_c .col-sm-4 {
    width: 100%;
    flex: 100%;
    max-width: 100%;
}

.product_listing.type_b .product_photo {
    padding-bottom: 2px;
    margin-right: 15px;
}

.product_listing.type_b .product_price,
.product_listing.type_c .product_price {
    text-align: left !important;
}

.product_listing.type_a .product_more_info {
    display: none;
}

.product_listing.type_b .product_more_info,
.product_listing.type_c .product_more_info {
    font-size: 0.8rem;
    padding-top: 15px;
    padding-bottom: 30px;
    padding-left: 15px;
    text-align: justify;
    padding-right: 15px;
}

.product_listing.type_b .product_by_now,
.product_listing.type_c .product_by_now {
    left: calc(100% - 120px);
}

.product_listing.type_b .product_photo img {
    width: auto;
    margin-bottom: 0;
}

.product_listing.type_c .product_photo img {
    display: none;
}

.product_listing.type_c .product_photo:before {
    background-image: none;
}

/* /list page */

/* checkout page */
ul.payment_methods {
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul.payment_methods li {
    /* float: left; */
    min-width: 90px;
    /* background-color: #80808024; */
    text-align: center;
}

ul.payment_methods li label.payment_method_item {
    margin-bottom: 8px;
    font-size: 1rem;
    position: static;
    padding-left: 0;
    /* background-color: lightcoral; */
}

ul.payment_methods li input {
    margin: 0;
    left: auto;
    position: static;
    top: auto;
}

.payment_logo {
    background-image: url(../img/payment_bg.png);
    background-position: right top;
    background-repeat: no-repeat;
    border: 2px solid #f1f1f1;
    padding: 2px 5px;
    height: 67px;
    position: relative;
}

.payment_method_item.checked .payment_logo {
    border-color: #ed3237;
}

.payment_logo img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* /checkout page */


/* category page */
ul.category_nav {
    position: relative;
    margin: 0 0 0 10px;
    padding: 0;
}

ul.category_nav li a::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff;
    position: absolute;
    left: 0;
    top: 0;
}

ul.category_nav li a {
    color: #202020;
    background-color: #f1f1f1;
    margin-right: 1px;
    padding: 8px 25px;
    font-weight: bold;
    position: relative;
}

ul.category_nav li a.active {
    color: #ffffff;
    background-color: #ed3237;
}

ul.category_nav::after {
    content: " ";
    background-color: #ed3227;
    height: 2px;
    width: calc(100% - 20px);
    position: absolute;
    bottom: 0;
}

ul.category_list {
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-flow: wrap;
}

ul.category_list li {
    text-align: center;
    list-style: none;
    /* min-height: 220px; */
    margin-bottom: 15px;
    padding: 0 10px;
}

ul.category_list li label.category_item {
    margin-bottom: 8px;
    font-size: 1rem;
    position: static;
    padding-left: 0;
    width: 100%;
    height: 100%;
}

ul.category_list li input {
    margin: 0;
    left: auto;
    position: static;
    top: auto;
}

.category_logo {
    background-image: url(../img/cat_bg.png);
    background-position: right top;
    background-repeat: no-repeat;
    border: 2px solid #f1f1f1;
    padding: 2px 5px;
    height: 170px;
    background-size: contain;
    position: relative;
}

.category_logo::after {
    content: " ";
    background-color: #ed3227;
    width: 40%;
    height: 2px;
    position: absolute;
    bottom: -2px;
    left: 30%;
}

.category_item.checked .category_logo {
    border-color: #ed3237;
}

.category_logo img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* width: 100%; */
}

.category_item:hover .category_logo {
    box-shadow: 0 0 17px 0px #ED3237;
}

a .category_label {
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: capitalize;
    padding: 5px 0 0 0;
    margin: 0;
}

/* /category page */


/* Utility calsses */
.partan_btn.basket_back {
    position: absolute;
    left: 20px;
    bottom: -22px;
    padding: 8px;
}

.partan_btn.basket_continue {
    position: absolute;
    right: 20px;
    bottom: -22px;
}

.basket_note>label {
    margin-bottom: 0px;
    color: #202020;
    font-size: 0.9rem;
}

.basket_note>textarea {
    width: 100%;
    border: 2px solid #8c8c8c;
    min-height: 100px;
}

.no_minheight {
    min-height: auto;
}

.bg-black {
    background-color: #000000;
}

.bg_lightgrey {
    background-color: #F1F1F1;
}

.group_h3 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin: 60px 0 20px 0;
    padding: 0;
    color: #202020;
}

.nofocus:focus {
    outline: none;
    box-shadow: none;
}

.partan_red {
    color: #ed3237;
}

a[data-toggle="tooltip"]:hover .tooltip {
    opacity: 1;
}

.tooltip {
    bottom: calc(100% + 5px);
    left: -10px;
}

.tooltip .arrow {
    bottom: -14px;
    left: 7px;
    width: 28px;
    height: 16px;
    background-image: url(../img/tooltip_arrow.png);
}

.tooltip-inner {
    width: 300px;
    padding: 15px;
    color: #202020;
    background-color: #f1f1f1;
    border-radius: 0;
    font-size: 0.75rem;
    border: 2px solid #cecece;
    max-width: 600px;
    text-align: left;
}

.border_bottom_red {
    border-bottom: 2px solid #ed3227;
}

.partan_btn {
    border-radius: 0;
    position: relative;
    height: 42px;
    border: none;
    padding: 7px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.partan_btn.btn_overline::before,
.partan_btn.btn_overline::after {
    content: " ";
    height: 2px;
    width: 10px;
    background-color: #ED3237;
    position: absolute;
    top: calc(50% - 1px);
}

.partan_btn.btn_overline::before {
    left: -2px;
}

.partan_btn.btn_overline::after {
    right: -2px;
}

.partan_btn.btn_continue {
    background-color: #000000;
    color: #ed3237;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 35px;
    border: 2px solid #202020;
}

.partan_btn.btn_continue.btn_overline::before,
.partan_btn.btn_continue.btn_overline::after {
    width: 20px;
}

.partan_btn.btn_continue:hover {
    color: #fff;
}

.partan_btn.btn_back {
    border: 2px solid #cecece;
}

.partan_btn.btn_back:hover {
    background-color: #cecece;
}

.btn_partan_container {
    position: relative;
}

.with_bottom_border {
    border-bottom: 2px solid #cecece;
}

form .with_bottom_border {
    border-bottom: 2px solid #8c8c8c;
    margin-bottom: 10px;
}

.h-0 {
    height: 0;
}

.mt--10 {
    top: -10px;
}

/* Extra */
.product-quick-view {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    border: 2px solid #eeeeee;
    z-index: 10000;
    width: 465px;
    height: 475px;
    /*background-color: #ffffff*/
    ;
    background-image: url(../img/footer_bg.jpg);
    background-repeat: repeat;
    box-shadow: 0 0 4px 0 #EE3137;
    padding: 10px;
    text-align: center;
    overflow: hidden;
}

.product-quick-view .head {
    width: 500px;
    height: 50px;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-quick-view .body {
    width: 500px;
    height: 390px;
    overflow: hidden;
}

.review-rate {
    margin: auto;
}

.cash-on-delivery {
    display: none;
    float: right;
}

.product-sold-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 266px;
    /*text-align: center;*/
    background: rgba(255, 255, 255, .5);
}

.product-sold-container .product-sold {
    font-size: 24px;
    font-weight: bold;
    color: #cc4f3d;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
}

#fancybox-close {
    right: -50px;
}

.ui-autocomplete {
    max-height: 300px;
    max-width: 700px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

.btn-secondary {
    color: #202020;
    background-color: #f3f3f3;
}

.btn-secondary:hover {
    color: #202020;
}

.btn-success {
    color: #202020;
    background-color: #f3f3f3;
    border: 2px solid #cecece;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-success:hover {
    color: #202020;
    background-color: #cecece;
    border: 2px solid #cecece;
}

.btn-success:focus,
.btn-success.focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

.btn-success.disabled,
.btn-success:disabled {
    color: #202020;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show>.btn-success.dropdown-toggle {
    color: #202020;
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-success:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled).active:focus,
.show>.btn-success.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

.btn-primary {
    color: #202020;
    background-color: #f3f3f3;
    border: 2px solid #cecece;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-primary:hover {
    color: #202020;
    background-color: #cecece;
    border: 2px solid #cecece;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #202020;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    color: #202020;
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

.card {
    border-radius: 0;
    border: 2px solid #cecece;
}

.card-block {
    padding: 10px;
}

.ajax-loader {
    position: fixed;
    z-index: 1001;
    height: 75px;
    width: 75px;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: url(../img/spinner.gif);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group.error .control-label,
.form-group.error .help-block,
.form-group.error .help-inline {
    color: #b94a48;
}

#ac_container {
    display: block;
    position: relative;
}

.ui-autocompelete {
    position: absolute;
}

.ui-corner-all {
    border-radius: 0px;
}

/*.search-results .product_container {
    min-height: 370px;
}*/

.contacts {
    background-image: url("../img/glyphicons.png");
    background-position: 24px 24px;
    background-repeat: no-repeat;
    display: inline-block;
    height: 28px;
    line-height: 28px;
    vertical-align: text-top;
    width: 28px;
    /* float: left; */
    opacity: 0.5;
}

.contacts.skype {
    background-position: -276px -952px;
    padding-right: 20px;
    padding-left: 20px;
}

.contacts.google-mapsai {
    background-position: -138px -1909px;
    padding-right: 20px;
    padding-left: 20px;
}

.contacts.icon-user {
    background-position: 0 -104px;
    padding-right: 20px;
    padding-left: 20px;
}

.contacts.icon-phone {
    background-position: -92px -1456px;
    padding-right: 20px;
    padding-left: 20px;
}

.contacts.icon-mail {
    background-position: 0 -330px;
    padding-right: 20px;
    padding-left: 20px;
}

.shipping-delay {
    display: block;
    font-style: italic !important;
    font-size: 0.8em !important;
    font-weight: bold;
    margin: 5px;
}

.shipping_cost .shipping-delay {
    display: inline;
}

.notify-container {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.notify-bubble {
    position: absolute;
    top: -16px;
    right: -20px;
    padding: 2px 5px 2px 6px;
    background-color: red;
    color: white;
    font-size: 0.75em;
    border-radius: 50%;
    box-shadow: 1px 1px 1px gray;

}

.selected-filters {
    margin-bottom: 25px;
}

.selected-filters .selected-filter-label {
    display: inline-block;
    background-color: #e8e8e8;
    padding: 5px;
    margin-top: 5px;
    margin-right: 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.selected-filters .selected-filter-value {
    display: inline-block;
    background-color: #bebebe;
    padding: 8px;
    margin-right: 4px;
    border-radius: 5px;
    white-space: nowrap;
    cursor: pointer;
}

/*.selected-filters .remove-selected-filter {
    position: relative;
    top: -10px;
    right: -2px;
}*/

@media (max-width: 992px) {
    .list_type_controls {
        right: 16px;
        top: -8px;
    }
}


@media (min-width: 576px) {
    footer .footer_trust {
        padding-top: 65px;
    }

    .product_listing .product_title {
        min-height: 60px;
    }

    .product_listing .product_photo img {
        height: 180px;
    }

    .type_a .product_photo img,
    .type_b .product_photo img {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .top_search_form {
        padding: 54px 15% 0;
    }

    .special_offer p {
        font-size: 1.5rem;
    }

    .product_listing.type_b .product_photo {
        float: left;
    }

    .basket_container .basket_wrapper {
        grid-template-columns: minmax(90px, 1fr) auto 65px 85px 65px;
        grid-template-areas: "product description price qty total";
    }

    .basket_container .img_container {
        min-height: 90px;
        padding: 5px;
    }

    .side_block_container {
        display: flex;
        column-gap: 25px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .side_block_container .side_block {
        max-width: 48%;
    }

    .partan_btn.basket_back {
        left: 10px;
    }

    .partan_btn.basket_continue {
        right: 10px;
    }

    .partan_btn {
        padding: 0 10px;
    }

    .partan_btn.btn_continue {
        padding: 0px 20px;
    }

    .partan_btn.btn_continue.btn_overline::before,
    .partan_btn.btn_continue.btn_overline::after {
        width: 15px;
    }
}

@media (min-width: 992px) {
    .side_block_container .side_block {
        max-width: 100%;
    }
}


@media (min-width: 1028px) {
    .special_offer p {
        font-size: 1.5rem;
        padding-left: 80px;
    }
}

@media (min-width: 1200px) {
    .partan_btn.basket_back {
        left: 20px;
    }

    .partan_btn.basket_continue {
        right: 20px;
    }

    .partan_btn {
        padding: 0 20px;
    }

    .partan_btn.btn_continue {
        padding: 0px 35px;
    }

    .partan_btn.btn_continue.btn_overline::before,
    .partan_btn.btn_continue.btn_overline::after {
        width: 20px;
    }
}

/* Fix for vehicle part list tables on older iOS devices (iPhone 7/8) */
/* These devices have issues with table-layout: fixed and JavaScript-based column width syncing */
/* This CSS will be applied when JavaScript adds 'old-ios-safari' class to html element */
.old-ios-safari .js-vp-header-scroll table,
.old-ios-safari .js-vp-body-scroll table,
.old-ios-safari .js-resv-header-scroll table,
.old-ios-safari .js-resv-body-scroll table {
    table-layout: auto !important;
    min-width: 100% !important;
}

/* Allow natural column widths */
.old-ios-safari .js-vp-header-scroll table colgroup,
.old-ios-safari .js-vp-body-scroll table colgroup,
.old-ios-safari .js-resv-header-scroll table colgroup,
.old-ios-safari .js-resv-body-scroll table colgroup {
    display: none !important;
}

/* Ensure proper scrolling */
.old-ios-safari .js-vp-header-scroll,
.old-ios-safari .js-vp-body-scroll,
.old-ios-safari .js-resv-header-scroll,
.old-ios-safari .js-resv-body-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Remove fixed widths from table cells */
.old-ios-safari .js-vp-header-scroll table th,
.old-ios-safari .js-vp-body-scroll table td,
.old-ios-safari .js-resv-header-scroll table th,
.old-ios-safari .js-resv-header-scroll table td,
.old-ios-safari .js-resv-body-scroll table td {
    width: auto !important;
    min-width: 80px !important;
    white-space: nowrap !important;
}

/* Specific adjustments for certain columns */
.old-ios-safari .js-vp-header-scroll table th:first-child,
.old-ios-safari .js-vp-body-scroll table td:first-child,
.old-ios-safari .js-resv-header-scroll table th:first-child,
.old-ios-safari .js-resv-header-scroll table td:first-child,
.old-ios-safari .js-resv-body-scroll table td:first-child {
    min-width: 60px !important; /* ID column */
}

/* Actions column should be wider */
.old-ios-safari .js-vp-header-scroll table th:last-child,
.old-ios-safari .js-vp-body-scroll table td:last-child,
.old-ios-safari .js-resv-header-scroll table th:last-child,
.old-ios-safari .js-resv-header-scroll table td:last-child,
.old-ios-safari .js-resv-body-scroll table td:last-child {
    min-width: 200px !important;
    white-space: normal !important;
}

/* Image columns */
.old-ios-safari .js-vp-body-scroll table td img,
.old-ios-safari .js-resv-body-scroll table td img {
    max-width: 80px !important;
    max-height: 80px !important;
}

/* Fix for form fields in modals */
.old-ios-safari .modal-body .form-control,
.old-ios-safari .modal-body select,
.old-ios-safari .modal-body input[type="text"],
.old-ios-safari .modal-body input[type="number"],
.old-ios-safari .modal-body textarea {
    width: 100% !important;
    max-width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Fix for buttons in modals */
.old-ios-safari .modal-footer .btn,
.old-ios-safari .modal-body .btn {
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem !important;
}

/* Additional fixes for older Safari browsers (iOS 10-11) */
@supports (-webkit-overflow-scrolling: touch) {
    /* Fix for table rendering issues in old Safari */
    .table-responsive {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Prevent table layout issues */
    .table-responsive table {
        border-collapse: collapse !important;
    }

    /* Fix for sticky positioning issues in old Safari */
    .table-header-form {
        position: relative !important;
    }
}