/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700&display=swap");

/* Particle Button Styles */
.wd-particle-button {
    background-color: #233E2A !important;
    color: #ffffff !important;
    border-color: #233E2A !important;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wd-particle-button:hover {
    background-color: #233E2A !important;
    border-color: #233E2A !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 70, 47, 0.3);
}

.whb-row.whb-header-bottom.whb-sticky-row.whb-with-bg.whb-border-fullwidth.whb-color-dark.whb-hidden-mobile.whb-with-shadow.whb-flex-flex-middle {
    border-top: 1px solid rgba(40, 70, 47, 1) !important;
}


.wd-particle-button:active,
.wd-particle-button.wd-button-clicked {
    transform: scale(0.95);
}

.wd-particle-button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Success state - Green */
.wd-particle-button.wd-cart-success,
.wd-particle-button.added.wd-cart-success {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #ffffff !important;
    animation: wd-success-pulse 0.5s ease;
}

.wd-particle-button.wd-cart-success:hover {
    background-color: #45a049 !important;
    border-color: #45a049 !important;
}

@keyframes wd-success-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Particle container */
#wd-particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Success notification */
.wd-cart-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

/* Ensure Armenian font rendering */
.wd-particle-button,
.wd-cart-success-notification {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Armenian", sans-serif;
}

/* Select Options button styling */
.wd-particle-button.product_type_variable,
.wd-particle-button.product_type_grouped {
    background-color: #233E2A !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wd-cart-success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 13px;
        padding: 12px 20px;
    }
}

/* Force hide variations table by default - added to main style.css for higher priority */
.wd-product .wd-product-variations-hover-table {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* =========================
 * Header typography (Armenian + slightly bigger)
 * ========================= */
.whb-header,
.whb-header .wd-nav,
.whb-header .wd-nav a,
.whb-header .wd-tools-text,
.whb-header .nav-link-text,
.whb-header .wd-tools-element a {
    font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

@media (min-width: 1025px) {

    /* Main menu links */
    .whb-header-bottom .wd-nav-main>li>a .nav-link-text {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.1px;
    }

    /* "All Categories" + header tools text */
    .whb-header-bottom .wd-tools-text {
        font-size: 14.5px;
        font-weight: 600;
    }

    /* Make "Բոլոր կատեգորիաները" a bit bigger */
    .whb-header-bottom .wd-header-sticky-nav .wd-tools-text {
        font-size: 15.5px;
    }
}

/* ============================================
   LEGAL POPUP STYLES (Fallback)
   ============================================ */
.legal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.legal-popup-container {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.3s ease;
}

.legal-popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.legal-popup-title {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.legal-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.legal-popup-body {
    padding: 30px;
    overflow-y: auto;
    color: #444;
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.legal-popup-body h1,
.legal-popup-body h2,
.legal-popup-body h3 {
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.legal-popup-body h1:first-child,
.legal-popup-body h2:first-child {
    margin-top: 0;
}

.legal-popup-body p {
    margin-bottom: 1em;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Scrollbar for popup */
.legal-popup-body::-webkit-scrollbar {
    width: 8px;
}

.legal-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.legal-popup-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.legal-popup-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ============================================
   COMPACT PRODUCT GRID STYLES
   ============================================ */

/* Limit swatch wrapper height to 1 row and center */
.wd-product .wd-swatches-grid.wd-swatches-product {
    max-height: 24px;
    overflow: hidden;
    justify-content: center;
    margin-bottom: 5px;
}

/* Decrease margins for product info to keep cards highly compact */
.wd-product .wd-entities-title {
    font-size: 13px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.wd-product .price {
    margin-bottom: 4px !important;
}

.wd-product .wd-product-cats {
    margin-bottom: 2px !important;
    font-size: 11px !important;
}

.wd-product .product-element-bottom {
    padding-top: 8px !important;
}

.wd-product .star-rating {
    margin-bottom: 2px !important;
}

.wd-product .wd-product-stock {
    margin-bottom: 2px !important;
    font-size: 11px !important;
}

/* Force aggressive compact height for product images */
.wd-product.product-grid-item .product-element-top {
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wd-product.product-grid-item .product-image-link {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wd-product.product-grid-item .product-image-link img {
    max-height: 220px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.wd-product.product-grid-item .wd-product-grid-slide {
    background-size: contain !important;
    background-position: center !important;
}

/* Make hover stock table stand out properly */
.wd-product .hover-stock-table {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid #eee;
    z-index: 100000 !important;
    padding: 0 !important;
    overflow: hidden;
}

.wd-product .hover-stock-table table {
    margin: 0 !important;
    border-collapse: collapse;
    width: 100%;
}

.wd-product .hover-stock-table td,
.wd-product .hover-stock-table th {
    padding: 6px 12px;
}

/* ============================================
   NEW MODERN LIGHT FOOTER REDESIGN (AGGRESSIVE)
   ============================================ */

/* 1. Force light background on all footer structural elements */
.site-footer,
.footer-container,
.footer-wrapper,
.elementor-location-footer,
.site-footer .elementor-section,
.site-footer .elementor-column,
.site-footer .elementor-widget-wrap,
footer.footer-container {
    background-color: #f7f9fa !important;
    background-image: none !important;
}

/* Add top border and spacing */
.site-footer,
footer.footer-container {
    border-top: 1px solid #eaeaea !important;
    padding-top: 40px !important;
    margin-top: 40px !important;
}

/* 2. Force text colors to be dark/grey instead of white */
.site-footer *,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .title,
.site-footer .widget-title,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer .elementor-heading-title,
.site-footer .elementor-icon-list-text {
    color: #444 !important;
    text-shadow: none !important;
}

/* Headings specifically darker */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .title,
.site-footer .widget-title,
.site-footer .elementor-heading-title {
    color: #111 !important;
    font-weight: 600 !important;
}

/* 3. Links and hover states */
.site-footer a,
.site-footer a span {
    color: #555 !important;
    transition: color 0.3s ease !important;
}

.site-footer a:hover,
.site-footer a:hover span,
.site-footer .elementor-icon-list-item:hover .elementor-icon-list-text {
    color: #233E2A !important;
}

/* 4. Hide the giant UNIFORMS1 decorative background text/image */
/* Target specific Elementor classes and inline styles that create the large transparent text */
.site-footer [style*="font-size: 10"],
.site-footer [style*="font-size: 11"],
.site-footer [style*="font-size: 12"],
.site-footer [style*="font-size: 13"],
.site-footer [style*="font-size: 14"],
.site-footer [style*="font-size: 15"],
.site-footer [class*="elementor-widget-heading"] .elementor-heading-title[style*="-webkit-text-stroke"],
.site-footer img[src*="UNIFORMS1"],
.site-footer img[alt*="UNIFORMS1"],
.site-footer .elementor-heading-title:contains("UNIFORMS1") {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sometimes the decorative text is a background watermark */
.site-footer .elementor-background-overlay {
    background-image: none !important;
    display: none !important;
}

/* 5. Copyright Bar at the very bottom */
.copyrights-wrapper,
.site-footer .copyrights-wrapper,
.site-footer .elementor-section:last-child {
    background-color: #ffffff !important;
    border-top: 1px solid #eaeaea !important;
    padding: 15px 0 !important;
}

.copyrights-wrapper *,
.site-footer .elementor-section:last-child * {
    color: #666 !important;
}

/* ============================================
   CHECKOUT PAGE FIXES
   ============================================ */
/* Prevent product total price from wrapping onto two lines */
.wd-checkout-prod-total .woocommerce-Price-amount {
    white-space: nowrap !important;
}



/* ========================================================
 * ARMENIAN, RUSSIAN, ENGLISH COMPARE PAGE FONTS
 * ======================================================== */
html[lang^="hy"] .wd-empty-compare,
html[lang^="hy"] .wd-empty-compare * {
    font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html[lang^="ru"] .wd-empty-compare,
html[lang^="ru"] .wd-empty-compare * {
    font-family: "Roboto", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

html[lang^="en"] .wd-empty-compare,
html[lang^="en"] .wd-empty-compare * {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
}

/* ============================================
   STICKY NAV ICON & ADD-TO-CART BUTTON COLORS
   ============================================ */

/* Sticky nav title block background — red */
.wd-sticky-nav-title {
    background: #233E2A !important;
}

/* Burger icon (:before) and text inside — white */
.wd-sticky-nav-title:before,
.wd-sticky-nav-title span {
    color: #ffffff !important;
}

/* Burger icon lines inside sticky nav — white (extra safety) */
.wd-sticky-nav-title .woodmart-burger,
.wd-sticky-nav-title .woodmart-burger span,
.wd-sticky-nav-title .woodmart-burger:before,
.wd-sticky-nav-title .woodmart-burger:after,
.wd-sticky-nav .wd-tools-icon:before,
.wd-sticky-nav .wd-burger-icon,
.wd-sticky-nav-title i,
.wd-sticky-nav-title svg,
.wd-sticky-nav-title svg path,
.wd-sticky-nav .wd-burger span {
    color: #ffffff !important;
    background-color: #ffffff !important;
    fill: #ffffff !important;
    border-color: #ffffff !important;
}



/* All "Add to cart" / "Select options" buttons site-wide */
.wd-add-btn .button,
.wd-add-btn a.button,
.wd-add-btn>a,
.button.product_type_variable,
.button.product_type_simple,
.button.product_type_grouped,
.button.add_to_cart_button,
.single_add_to_cart_button {
    background-color: #233E2A !important;
    border-color: #233E2A !important;
    color: #ffffff !important;
    text-transform: none !important;
    font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0px !important;
}

.wd-add-btn .button:hover,
.wd-add-btn a.button:hover,
.wd-add-btn>a:hover,
.button.product_type_variable:hover,
.button.product_type_simple:hover,
.button.product_type_grouped:hover,
.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: #233E2A !important;
    border-color: #233E2A !important;
    color: #ffffff !important;
}

/* ============================================
   HIDE STICKY NAV LEFT TRIGGER BUTTON
   ============================================ */
/* Remove the 60px shift from the body */
body.wd-sticky-nav-enabled {
    --wd-sticky-nav-w: 0px !important;
}

/* Hide the 60px collapsed trigger button of the sticky nav */
.wd-sticky-nav {
    pointer-events: none !important;
    /* Prevent hover triggering from the edge */
}

.wd-sticky-nav .wd-sticky-nav-title {
    display: none !important;
}

/* Allow clicking inside the menu when it's opened via the header categories button */
.wd-sticky-nav.wd-opened {
    pointer-events: auto !important;
}

/* Ensure it is fully shifted out when closed to avoid overlapping content on the left edge */
.wd-sticky-nav:not(.wd-opened) {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
}

/* ============================================
   MOBILE BUTTON TEXT OVERFLOW FIX
   ============================================ */
@media (max-width: 768px) {

    .wd-button-wrapper .btn,
    .btn,
    .wd-add-btn .button,
    .wd-add-btn a.button,
    .button.product_type_variable,
    .button.product_type_simple {
        white-space: normal !important;
        word-break: break-word !important;
        height: auto !important;
        min-height: 38px !important;
        padding: 10px 10px 8px 10px !important;
        /* Extra top padding to center Armenian font visually */
        display: inline-block !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .wd-button-wrapper .btn .wd-btn-text,
    .btn .wd-btn-text,
    .wd-add-btn .button span {
        white-space: normal !important;
        display: inline-block !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        vertical-align: middle !important;
        transform: none !important;
        /* Prevent slide-up transform on mobile */
        position: static !important;
        margin: 0 !important;
    }

    /* Prevent variation price from wrapping to two lines */
    .wd-product .wrap-price .price {
        white-space: nowrap !important;
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Optionally shrink the price font so it fits better */
    .wd-product .wrap-price .price .amount {
        font-size: 13px !important;
    }

    /* Limit product title to 1 line with ellipsis on mobile */
    .wd-product .wd-entities-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Prevent titles from exceeding 2 lines via normal block layout */
    .wd-product .wd-entities-title a {
        white-space: normal !important;
    }

    /* Hide product categories on product cards for mobile */
    .wd-product .wd-product-cats {
        display: none !important;
    }
}

/* ============================================
   UNF COLOR VARIATION THUMBNAIL STRIP
   ============================================ */

/* Container */
.unf-color-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin: 6px 0 4px;
}

/* Individual thumbnail */
.unf-color-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.unf-color-thumb:hover {
    border-color: #233E2A;
    transform: scale(1.1);
}

.unf-color-thumb.unf-thumb-active {
    border-color: #233E2A;
    box-shadow: 0 0 0 1px #233E2A;
}

/* "+N more" link */
.unf-color-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    font-size: 11px;
    font-weight: 700;
    color: #233E2A !important;
    text-decoration: none !important;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.unf-color-more:hover {
    background: #233E2A;
    border-color: #233E2A;
    color: #fff !important;
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {

    .unf-color-thumb,
    .unf-color-more {
        width: 26px;
        height: 26px;
    }

    .unf-color-more {
        font-size: 10px;
    }
}

/* ============================================
   MOBILE HEADER LOGO FIX
   ============================================ */
@media (max-width: 1024px) {
    .whb-general-header-inner {
        position: relative;
    }

    .whb-mobile-center {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .whb-mobile-center .site-logo {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .whb-mobile-center .site-logo a.wd-logo img,
    .whb-mobile-center .site-logo img {
        max-width: 58px !important;
        width: 58px !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
}

/* Custom Mobile Live Search Overlay */
@media (max-width: 1024px) {
    body.unf-search-opened {
        overflow: hidden !important;
    }

    body.unf-search-opened .whb-column_mobile5 {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 100000;
        padding: 80px 20px 20px;
        animation: unfFadeIn 0.3s ease;
    }

    .unf-search-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        color: #333;
        z-index: 100001;
        display: none;
    }

    body.unf-search-opened .unf-search-close {
        display: block;
    }

    body:not(.unf-search-opened) .whb-column_mobile5 {
        display: none !important;
    }

    .whb-mobile-right {
        display: flex;
        align-items: center;
    }

    .whb-mobile-right .wd-header-search.wd-style-icon,
    .whb-mobile-right .unf-custom-search-opener-wrapper {
        margin-right: 5px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whb-mobile-right .unf-custom-search-opener {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 5px;
    }

    .whb-mobile-right .unf-custom-search-opener .wd-tools-icon {
        font-size: 22px;
        /* Match standard size */
        color: #333;
        /* Ensure it is not white on white */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@keyframes unfFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SINGLE PRODUCT CUSTOM TEXT
   ============================================ */
.unf-single-product-custom-text {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f7f9fa;
    border: 1px solid #eaeaea;
    border-left: 3px solid #233E2A;
    border-radius: 6px;
    font-family: "Noto Sans Armenian", -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.unf-single-product-custom-text p:last-child {
    margin-bottom: 0;
}

.unf-single-product-custom-text p:first-child {
    margin-top: 0;
}

/* Force the parent flex containers to wrap so the text takes full width above */
form.cart,
.woocommerce-variation-add-to-cart {
    flex-wrap: wrap !important;
}

/* ============================================
   WOODMART PRODUCT NAV DROPDOWN BEAUTIFICATION
   ============================================ */
.wd-products-nav .wd-dropdown {
    padding: 15px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #fff !important;
    width: 280px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    box-sizing: border-box !important;
}

.wd-products-nav .wd-product-nav-thumb {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fdfdfd !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.wd-products-nav .wd-product-nav-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wd-products-nav .wd-product-nav-desc {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 0 !important;
    text-align: left !important;
    flex: 1 !important;
    min-width: 0 !important;
    /* prevent flex blowout */
}

.wd-products-nav .wd-entities-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-decoration: none !important;
}

.wd-products-nav .wd-entities-title:hover {
    color: #233E2A !important;
}

.wd-products-nav .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #233E2A !important;
    /* using the theme's red color */
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.wd-products-nav .price .amount,
.wd-products-nav .price .amount bdi {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #233E2A !important;
}

/* ============================================
   MOBILE PRODUCT ATTRIBUTES — CARD LAYOUT
   ============================================ */
@media (max-width: 768px) {

    /* Accordion header */
    .wd-accordion-title.tab-title-additional_information {
        background: linear-gradient(135deg, #233E2A, #1a3020) !important;
        border-radius: 12px !important;
        padding: 15px 18px !important;
        border: none !important;
    }

    .wd-accordion-title.tab-title-additional_information .wd-accordion-title-text span {
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
    }

    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::before,
    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::after {
        background-color: #fff !important;
    }

    /* Fix accordion arrow — proper white chevron */
    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        font-size: 0 !important;
        /* Suppress any Woodmart font icon */
    }

    /* Remove any inherited icon content */
    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::before,
    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::after {
        content: '' !important;
        display: block !important;
        font-size: 0 !important;
        font-family: none !important;
        position: absolute !important;
        width: 10px !important;
        height: 2px !important;
        background: #ffffff !important;
        top: 50% !important;
        border-radius: 2px !important;
        transition: transform 0.25s ease !important;
        box-shadow: none !important;
    }

    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::before {
        left: 2px !important;
        transform: translateY(-50%) rotate(-40deg) !important;
    }

    .wd-accordion-title.tab-title-additional_information .wd-accordion-opener::after {
        right: 2px !important;
        transform: translateY(-50%) rotate(40deg) !important;
    }

    /* Open state — chevron flips up */
    .wd-accordion-title.tab-title-additional_information.wd-active .wd-accordion-opener::before {
        transform: translateY(-50%) rotate(40deg) !important;
    }

    .wd-accordion-title.tab-title-additional_information.wd-active .wd-accordion-opener::after {
        transform: translateY(-50%) rotate(-40deg) !important;
    }

    /* Hide desktop tab nav on mobile */
    .wd-nav-tabs-wrapper {
        display: none !important;
    }

    /* Panel */
    .woocommerce-Tabs-panel--additional_information.wd-accordion-content {
        background: transparent !important;
        border: none !important;
        padding: 10px 0 0 !important;
    }

    .woocommerce-Tabs-panel--additional_information .wc-tab-inner {
        padding: 0 !important;
    }

    /* Table → block */
    table.woocommerce-product-attributes.shop_attributes {
        display: block !important;
        border: none !important;
        background: transparent !important;
    }

    table.woocommerce-product-attributes.shop_attributes tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Each row → card */
    table.woocommerce-product-attributes.shop_attributes tr.woocommerce-product-attributes-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #fff !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
        border: 1px solid rgba(35, 62, 42, 0.1) !important;
        border-bottom: 1px solid rgba(35, 62, 42, 0.1) !important;
        box-sizing: border-box !important;
    }

    /* TH → label pill */
    table.woocommerce-product-attributes.shop_attributes th.woocommerce-product-attributes-item__label {
        display: block !important;
        width: 100% !important;
        padding: 0 0 10px 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
    }

    table.woocommerce-product-attributes.shop_attributes th .wd-attr-name {
        display: inline-block !important;
        background: rgba(35, 62, 42, 0.1) !important;
        color: #233E2A !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
    }

    /* TD → values */
    table.woocommerce-product-attributes.shop_attributes td.woocommerce-product-attributes-item__value {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
        color: #333 !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    /* Terms as pill chips */
    .woocommerce-product-attributes-item__value .wd-term {
        display: inline-block !important;
    }

    .woocommerce-product-attributes-item__value .wd-term-name {
        display: inline-block !important;
        background: #f0f0f0 !important;
        color: #222 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 3px 10px !important;
        border-radius: 20px !important;
        margin: 3px 2px !important;
        border: 1px solid #ddd !important;
    }

    /* Hide comma separators */
    .woocommerce-product-attributes-item__value .wd-term-sep {
        display: none !important;
    }

    /* Composition — full text, no clipping */
    .woocommerce-product-attributes-item--composition td.woocommerce-product-attributes-item__value {
        font-weight: 500 !important;
        overflow: visible !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
    }

    /* Icons before label */
    .woocommerce-product-attributes-item--attribute_pa_color th .wd-attr-name::before {
        content: '🎨 ';
    }

    .woocommerce-product-attributes-item--attribute_pa_size th .wd-attr-name::before {
        content: '📏 ';
    }

    .woocommerce-product-attributes-item--composition th .wd-attr-name::before {
        content: '🧵 ';
    }
}

span.nav-link-text {
    color: #233E2A !important;
}

/* Fix Woodmart Cart Remove Button overlapping */
.woocommerce-mini-cart-item .remove.remove_from_cart_button {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.cart-item-link {
    z-index: 1 !important;
}

/* ============================================
   MY ACCOUNT PAGE — brand green overrides
   ============================================ */

/* Sidebar navigation links */
.woocommerce-MyAccount-navigation ul li a,
.woocommerce-MyAccount-navigation ul li a:visited {
    color: #333 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: #28462F !important;
}

/* Sidebar nav icons */
.woocommerce-MyAccount-navigation ul li.is-active a::before,
.woocommerce-MyAccount-navigation ul li a:hover::before {
    color: #28462F !important;
}

/* Order number links */
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a,
.woocommerce-orders-table__cell-order-number a {
    color: #28462F !important;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover,
.woocommerce-orders-table__cell-order-number a:hover {
    color: #1c3322 !important;
}

/* View / Action buttons */
.woocommerce-orders-table .woocommerce-button,
.woocommerce-orders-table .button,
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .button:not(.alt) {
    color: #28462F !important;
    border-color: #28462F !important;
    background-color: transparent !important;
}

.woocommerce-orders-table .woocommerce-button:hover,
.woocommerce-orders-table .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content .button:not(.alt):hover {
    background-color: #28462F !important;
    color: #fff !important;
    border-color: #28462F !important;
}

/* Primary / alt buttons (Save, Login, etc.) */
.woocommerce-MyAccount-content .button.alt,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    background-color: #28462F !important;
    border-color: #28462F !important;
    color: #fff !important;
}

.woocommerce-MyAccount-content .button.alt:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background-color: #1c3322 !important;
    border-color: #1c3322 !important;
}

/* Any remaining red links inside My Account */
.woocommerce-MyAccount-content a {
    color: #28462F !important;
}

.woocommerce-MyAccount-content a:hover {
    color: #1c3322 !important;
}

/* B2B order action buttons — white text on green */
.woocommerce-MyAccount-content a.b2b-btn-small,
.woocommerce-MyAccount-content a.b2b-btn-small:visited,
.woocommerce-MyAccount-content a.b2b-order-view,
.woocommerce-MyAccount-content a.b2b-order-view:visited {
    color: #ffffff !important;
}

.woocommerce-MyAccount-content a.b2b-btn-small:hover,
.woocommerce-MyAccount-content a.b2b-order-view:hover {
    color: #ffffff !important;
}

/* Woodmart dashboard style overrides */
.wd-my-account-links li a:hover,
.wd-my-account-links li.wd-active a {
    color: #28462F !important;
    border-color: #28462F !important;
}

.wd-my-account-links li a:hover .wd-icon,
.wd-my-account-links li.wd-active a .wd-icon {
    color: #28462F !important;
}

/* Login / Register form links */
.woocommerce-form-login a,
.woocommerce-form-register a,
.woocommerce-ResetPassword a {
    color: #28462F !important;
}

.woocommerce-form-login a:hover,
.woocommerce-form-register a:hover,
.woocommerce-ResetPassword a:hover {
    color: #1c3322 !important;
}

/* ============================================
   GALLERY DOTS ON ARCHIVE PRODUCT CARDS
   ============================================ */
.product-element-top {
    position: relative;
}

.product-element-top .unf-hover-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.product-wrapper:hover .product-element-top .unf-hover-gallery-dots,
.wd-product:hover .product-element-top .unf-hover-gallery-dots {
    opacity: 1;
    pointer-events: auto;
}

.product-element-top .unf-hover-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-element-top .unf-hover-dot.active {
    background: #28462F;
    transform: scale(1.2);
}

.product-element-top .unf-hover-dot:hover {
    background: #2b6a4b;
}

@media (max-width: 768px) {
    .product-element-top .unf-hover-gallery-dots {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================
   CATEGORY SIDEBAR FILTERS – ARMENIAN + BRANDING
   ============================================ */

/* Armenian font for all sidebar widgets */
.sidebar-widget,
.sidebar-widget *,
.wd-widget *,
.widget_product_categories *,
.widget_price_filter *,
.woodmart-woocommerce-layered-nav * {
    font-family: "Noto Sans Armenian", "DejaVu Sans", Arial, sans-serif !important;
}

/* Widget titles - Fixed alignment */
.sidebar-widget .widget-title,
.wd-widget .widget-title {
    color: #1a2b1d !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: none !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

/* We must NOT hide ::after here, because Woodmart uses it for the collapsible arrow icon */
.wd-widget-collapse .widget-title {
    cursor: pointer !important;
    padding-right: 30px !important;
    /* Ensure space for the arrow */
}

.wd-widget-collapse .widget-title::after {
    display: inline-block !important;
    /* Restore arrow */
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-80%) !important;
    color: #4a5568 !important;
}

/* Add a green accent line on top of the gray border using a span if needed, but simple border is cleaner */
/* Let's just make the whole border a thin sleek gray, and on hover of the widget it can light up or stay simple. */

/* Price filter modern layout */
.widget_price_filter .price_slider_wrapper {
    padding-top: 10px !important;
}

.widget_price_filter .ui-slider {
    background-color: #e2e8f0 !important;
    border: none !important;
    height: 4px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    position: relative !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: #28462F !important;
    height: 100% !important;
    border-radius: 4px !important;
    position: absolute !important;
    top: 0 !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background: #ffffff !important;
    background-image: none !important;
    /* Clear any UI slider default background */
    border: 3px solid #28462F !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    top: 50% !important;
    /* perfectly vertical center */
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    margin-left: -9px !important;
    cursor: grab !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    position: absolute !important;
    z-index: 2 !important;
    outline: none !important;
}

/* Hide any inner icon lines in slider handles */
.widget_price_filter .ui-slider .ui-slider-handle::before,
.widget_price_filter .ui-slider .ui-slider-handle::after {
    display: none !important;
    content: none !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover {
    transform: translateY(-50%) scale(1.15) !important;
    background: #f0fdf4 !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
    background: #28462F !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(40, 70, 47, 0.3) !important;
}

/* Price label and button layout */
.widget_price_filter .price_slider_amount {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
}

.widget_price_filter .price_label {
    color: #4a5568 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    order: 1 !important;
}

.widget_price_filter .price_label span {
    font-weight: 700 !important;
    color: #28462F !important;
}

.widget_price_filter .button,
.widget_price_filter button[type="submit"] {
    background-color: #28462F !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    order: 2 !important;
    box-shadow: 0 2px 4px rgba(40, 70, 47, 0.2) !important;
}

.widget_price_filter .button:hover,
.widget_price_filter button[type="submit"]:hover {
    background-color: #1a2b1d !important;
    box-shadow: 0 4px 8px rgba(40, 70, 47, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Select2 category dropdown - Premium look */
.widget_product_categories .select2-container--default .select2-selection--single {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 44px !important;
    background-color: #f8fafc !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
}

.widget_product_categories .select2-container--default.select2-container--open .select2-selection--single,
.widget_product_categories .select2-container--default .select2-selection--single:hover {
    border-color: #28462F !important;
    box-shadow: 0 0 0 3px rgba(40, 70, 47, 0.1) !important;
}

.widget_product_categories .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 42px !important;
    padding-left: 14px !important;
}

/* Fixed Dropdown Arrow */
.widget_product_categories .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 100% !important;
    width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.widget_product_categories .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    margin: 0 !important;
    border-style: solid !important;
    border-color: #718096 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    display: block !important;
}

.widget_product_categories .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #28462F transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* Size / Color filter labels - Modern pills */
.wd-swatches-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.wd-swatches-filter .wc-layered-nav-term {
    margin: 0 !important;
    padding: 0 !important;
}

.wd-swatches-filter .layered-nav-link {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.wd-swatches-filter .layered-nav-link:hover {
    border-color: #28462F !important;
    background-color: #f0fdf4 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.wd-swatches-filter .wc-layered-nav-term.chosen .layered-nav-link {
    border-color: #28462F !important;
    background-color: #28462F !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(40, 70, 47, 0.2) !important;
}

.wd-swatches-filter .wd-filter-lable {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    transition: color 0.2s ease !important;
}

.wd-swatches-filter .layered-nav-link:hover .wd-filter-lable {
    color: #28462F !important;
}

.wd-swatches-filter .wc-layered-nav-term.chosen .layered-nav-link .wd-filter-lable {
    color: #ffffff !important;
}

.wd-swatches-filter .count {
    background: #edf2f7 !important;
    color: #718096 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.wd-swatches-filter .wc-layered-nav-term.chosen .count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ============================================
   GLOBAL WOOCOMMERCE MESSAGES OVERRIDE
   ============================================ */
body .woocommerce-message {
    background: #28462F !important;
    color: #fff !important;
    border-color: #1c3322 !important;
}

body .woocommerce-message a {
    color: #fff !important;
    text-decoration: underline !important;
}

body .woocommerce-message::before {
    color: #fff !important;
}

/* ============================================
   PRICE FILTER WIDGET TRANSLATION (CSS HACK)
   ============================================ */
.widget_price_filter .price_slider_amount .button {
    font-size: 0 !important;
}

.widget_price_filter .price_slider_amount .button::after {
    content: "Զտել" !important;
    font-size: 13px !important;
    font-weight: 700;
}

.widget_price_filter .price_label {
    font-size: 0 !important;
}

.widget_price_filter .price_label span.from,
.widget_price_filter .price_label span.to {
    font-size: 15px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.widget_price_filter .price_label::before {
    content: "Գինը՝ " !important;
    font-size: 15px !important;
    display: inline-block !important;
    margin-right: 4px;
    vertical-align: middle !important;
}

.widget_price_filter .price_label span.from::after {
    content: " — " !important;
    font-size: 15px !important;
    display: inline-block !important;
    margin: 0 4px;
    vertical-align: middle !important;
}

/* ============================================
   MY ACCOUNT MOBILE & TABLET LAYOUT FIX
   ============================================ */
@media (max-width: 1024px) {

    /* Main wrapper should have some padding so the inner white box shadow and right indicators don't get cut off */
    .b2b-account-wrapper {
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Force the my-account wrapper to stack vertically instead of overflowing horizontally */
    body .site-content .b2b-account-wrapper,
    body .woocommerce-account .b2b-account-wrapper,
    .b2b-account-wrapper,
    .woocommerce-account .woocommerce,
    .woocommerce-account .woocommerce-my-account-wrapper,
    .woocommerce-account .wd-my-account-wrapper,
    .b2b-account-wrapper .wd-my-account-wrapper,
    .woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Make navigation take full width but add padding for the shadow & right-side indicators */
    .woocommerce-account .wd-my-account-sidebar,
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .b2b-account-wrapper .wd-my-account-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 10px !important;
        /* Space for shadow and right-edge active indicator to be fully visible */
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    /* Ensure the white navigation container itself doesn't overflow */
    .b2b-custom-navigation {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Make B2B navigation items wrap correctly */
    .b2b-custom-navigation .b2b-nav-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .b2b-custom-navigation .b2b-nav-list .b2b-nav-item {
        width: 100% !important;
        margin-bottom: 5px !important;
        box-sizing: border-box !important;
    }

    .b2b-custom-navigation .b2b-nav-link {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        padding-right: 20px !important;
        /* ensure right indicator isn't cut off inside the link */
    }

    /* Make the active indicator completely visible */
    .b2b-custom-navigation .b2b-nav-indicator {
        right: 15px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Make content area take full width and wrap it nicely */
    .woocommerce-account .woocommerce-MyAccount-content,
    .b2b-account-wrapper .b2b-account-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* If Woodmart elements use flex grid that breaks, fix them here */
    .woocommerce-account .wd-grid-col[style*="--wd-col-sm:12"],
    .b2b-account-wrapper .wd-grid-col {
        min-width: 100% !important;
    }

    /* Prevent internal tables from forcing the content horizontally */
    .woocommerce-account .woocommerce-MyAccount-content table,
    .b2b-account-wrapper .b2b-account-content table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    /* General fix to prevent body level horizontal scroll */
    body.woocommerce-account,
    body.page-template-default.woocommerce-account {
        overflow-x: hidden !important;
        width: 100% !important;
    }
}
