.wrapper .page-wrapper {
    background-color: #fff;
}

.header-container {
    background: #fff;
}

.dgwt-wcas-search-wrapp {
    width: 100%;
    max-width: unset !important;
}

.dgwt-wcas-search-input,
.dgwt-wcas-sf-wrapp {
    height: 48px !important;
}

.dgwt-wcas-search-wrapp {
    margin-bottom: 5px;
}

.categories-menu-wrapper .categories-menu .categories>.menu_holder .menu_inner>ul>li.default_dropdown ul.mega_dropdown li a.item_link .link_text,
.categories-menu-wrapper .categories-menu .categories>.menu_holder .menu_inner>ul>li.default_dropdown ul.mega_dropdown li:hover>a.item_link .link_text,
.header-sticky .wishlist-count,
.header-sticky .cart-quantity {
    color: #000!important;
}

.main-container #order_review #payment #place_order,
.main-container .product-view .summary.single-product-info .cart .button:hover,
.atc-notice-wrapper .buttons .button {
    color: #fff !important;
}

.categories-menu-wrapper .categories-menu .categories>.menu_holder .menu_inner>ul>li.default_dropdown ul.mega_dropdown li a.item_link {
    padding: 15px !important;
}

.categories-menu-wrapper .categories-menu.show .catemenu {
    padding: 0 !important
}

.categories-menu-wrapper .categories-menu .categories>.menu_holder .menu_inner>ul>li.default_dropdown ul.mega_dropdown li:hover {
    border-left: 3px solid #286c43;
}

.cat-images .vc_single_image-img {
    height: 230px !important;
    object-fit: cover;
}

.header-container .widget_shopping_cart_content .mini_cart_content .mini_cart_inner {
    background: #fff;
}

.categories-menu-wrapper .categories-menu .catemenu-toggler {
    background: #286c43;
}

.top_bar p {
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    line-height: 48px;
}

.vc_custom_1647958118802 p,
.footer_columns {
    line-height: 30px;
}

.margin_top {
    margin-top: -100px;
}

.line_off {
    display: none !important;
}

/* WooCommerce category: ACF range filters (length/width) */
.toolbar .autima-acf-range-filters {
    clear: both;
    width: 100%;
    margin: 10px 0 15px;
}
.toolbar .autima-acf-range-filters__title {
    font-weight: 600;
    margin-bottom: 8px;
}
.toolbar .autima-acf-range-filters__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}
.toolbar .autima-acf-range-filter {
    min-width: 240px;
    flex: 1 1 240px;
}
.toolbar .autima-acf-range-filter__label {
    font-weight: 600;
    margin-bottom: 6px;
}
.toolbar .autima-acf-range-filter__minmax {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 6px;
}
.toolbar .autima-acf-range-filter__slider {
    position: relative;
    height: 6px;
    background: rgba(0,0,0,0.12);
    border-radius: 999px;
}

/* noUiSlider theme overrides (keep colors consistent with site) */
.toolbar .autima-acf-range-filter__slider.noUi-target {
    background: rgba(0,0,0,0.12);
    border: 0;
    box-shadow: none;
    height: 6px;
    border-radius: 999px;
}
.toolbar .autima-acf-range-filter__slider .noUi-connect {
    background: rgba(40,108,67,0.75);
}
.toolbar .autima-acf-range-filter__slider .noUi-handle {
    width: 18px;
    height: 18px;
    right: -9px; /* center on value */
    top: -6px;
    border-radius: 50%;
    background: #286c43;
    border: 2px solid #fff;
    box-shadow: none;
}
.toolbar .autima-acf-range-filter__slider .noUi-handle:before,
.toolbar .autima-acf-range-filter__slider .noUi-handle:after {
    display: none;
}
.toolbar .autima-acf-range-filter__slider .noUi-tooltip {
    background: rgba(0,0,0,0.8);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    padding: 4px 8px;
}
.toolbar .autima-acf-range-filters__actions .button {
    height: 38px;
    line-height: 38px;
}

/* AJAX preloader overlay (product grid) */
.autima-acf-range-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
    z-index: 50;
}
.autima-acf-range-spinner {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: rgba(40,108,67,0.9);
    border-radius: 50%;
    animation: autimaAcfRangeSpin 0.8s linear infinite;
}
@keyframes autimaAcfRangeSpin {
    to { transform: rotate(360deg); }
}

/* Mobile: bigger tooltips + handles for easier dragging */
@media (max-width: 768px) {
    .toolbar .autima-acf-range-filter__slider .noUi-handle {
        width: 24px;
        height: 24px;
        right: -12px;
        top: -9px;
        border-width: 3px;
    }
    .toolbar .autima-acf-range-filter__slider .noUi-tooltip {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Desktop: increase spacing between the two sliders so tooltips don't overlap across columns */
@media (min-width: 769px) {
    .toolbar .autima-acf-range-filters__grid {
        gap: 48px;
    }
}

.stock.in-stock,
.yith-wcwl-add-to-wishlist,
.compare.button {
    display: none !important;
}


/*Naujas funkcionalumas darbuotojai perka klientams*/

.company-name {
    display: inline-block;
    position: relative;
}

.info-icon {
    color: #555;
    margin-left: 8px;
    cursor: pointer;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1004;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    color: #fff;
    z-index: 1001;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    overflow: auto;
    max-height: 80vh;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}


/* Mygtuko stilius */

.fixed-confirm-button {
    position: fixed;
    bottom: 20px;
    width: 90%;
    background-color: #286c43;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    text-decoration: none;
    border: unset;
    left: 50%;
    transform: translateX(-50%);
}

.workers_home {
    position: fixed;
    right: 0;
    bottom: 20px;
    width: 90%;
    background-color: #286c43;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    text-decoration: none;
    left: 50%;
    transform: translateX(-50%);
}

.workers_home:hover {
    background-color: #163a24;
    color: #fff
}

.company-name {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4f4f4;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
}


/* Cart items block styling */

.cart-items-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 150px !important;
}

.cart-item-header,
.cart-item {
    display: grid;
    grid-template-columns: 8fr 2fr 2fr 2fr 2fr 1fr;
    gap: 10px;
    align-items: center;
    text-align: left;
}

.cart-item-header {
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.cart-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.cart-item-header span,
.cart-item span {
    text-align: left;
}

.cart-item-title-header,
.cart-item-title {
    /* grid-column: 1; */
    font-weight: bold;
    color: #666;
}

.cart-item-quantity-header,
.cart-item-quantity {
    /* grid-column: 2; */
    text-align: center;
}

.cart-item-price-header,
.cart-item-price {
    /* grid-column: 3; */
    text-align: center;
}

.cart-item-quantity-vnt-header,
.cart-item-quantity-vnt {
    /* grid-column: 4; */
    text-align: center;
}

.cart-item-total-header,
.cart-item-total {
    /* grid-column: 5; */
    text-align: right;
    font-weight: 700;
}


/* Responsyvus dizainas */

@media (max-width: 768px) {
    .cart-item-header,
    .cart-item {
        /* grid-template-columns: 2fr 2fr 2fr 2fr 1fr 1fr; */
        grid-template-columns: 4fr 3fr 3fr 3fr 1fr;
    }
    .cart-item :first-child,
    .cart-item-header :first-child {
        grid-column: 1 / -1;
    }
    .cart-item-price-header,
    .cart-item-quantity-vnt-header,
    .cart-item-price,
    .cart-items-container {
        max-width: 100%;
    }
    .cart-items-container h4 {
        text-align: center;
        margin-bottom: 30px;
    }
    .mobile_cart {
        display: grid;
    }
    .desktop_cart {
        display: none;
    }
    .desktop {
        display: none;
    }
    .cart-item {
        margin-bottom: 25px;
    }
    #company_name_display {
        width: 90%
    }
}

@media (min-width: 768px) {
    .mobile_cart {
        display: none;
    }
    .desktop_cart {
        display: grid;
    }
    .desktop {}
    .mobile {
        display: none;
    }
}

.popup-content h3,
.popup-content .close-popup {
    color: #fff;
    font-weight: 600;
}

#client-type-selection {
    display: flex;
    justify-content: space-between;
}

.workers_btn {
    border: unset;
    border-radius: 6px;
    padding: 7px 20px;
    font-weight: 600;
    font-size: 20px;
    width: 45%;
}

.workers_btn:nth-child(2) {
    margin-left: 10px;
}

.btn-not-active {
    color: #777777;
}

.btn-active {
    color: #fff;
    background-color: #286c43;
}

#seaarch_company {
    border: unset;
    padding: 5px 15px;
    border-radius: 6px;
    background-color: #286c43;
    color: #fff;
    font-weight: 600;
}

#juridinis-input #company_code {
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #808080;
}

button#search_company {
    color: #fff;
    background-color: #286c43;
    padding: 5px 15px;
    border: unset;
    border-radius: 6px;
    font-weight: 600;
}

.container-workers {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.container-workers .row {
    margin-top: 50px;
}

#edit-button {
    background: #286c43;
    width: 100%;
    display: block;
    padding: 5px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.page-id-80796 #company_name_display {
    display: block;
}

#search_company_button {
    width: 100%;
    font-size: 20px;
    border: unset;
    padding: 8px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    background: #286c43;
}

.aws-search-form {
    height: 60px !important;
}

.aws-wrapper .aws-search-field {
    font-size: 20px;
    padding: 20px;
}

.aws_result_link .aws_result_title {
    font-size: 18px;
    padding: 8px;
}

.cart-item-price span bdi,
.cart-item-total span bdi {
    color: #007bff !important;
    cursor: pointer;
    font-weight: 700;
}

.cart-item-price:hover span bdi,
.cart-item-total:hover span bdi {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

#buyer-info p,
#order-summary p {
    font-size: 20px
}

#order-summary ul li small {
    font-size: 18px
}


/* @media screen and (max-width:576px) {
    .payment-type-container {
        display: block !important;
    }
    #payment_type {
        width: 100%;
        height: 40px;
    }
    .checkbox-wrapper-10 {
        align-items: flex-start !important;
        flex-direction: column;
    }
    .checkbox-wrapper-10 .tgl-btn {
        margin: 20px 0 !important;
        width: 100% !important;
        height: 40px !important;
    }
    .checkbox-wrapper-10 .tgl-flip + .tgl-btn:before {
        line-height: 2.4em;
    }
} */