/* 
 * Override fixes for original site CSS
 * Handles edge cases where extracted CSS needs local adjustments
 */

/* ========================================
   HEADER FIXES
   ======================================== */

/* Hide mobile-only header columns on desktop */
@media (min-width: 1025px) {
    .whb-hidden-lg {
        display: none !important;
    }
}

/* Hide desktop columns on mobile */
@media (max-width: 1024px) {
    .whb-visible-lg {
        display: none !important;
    }
}

/* Force hide the search clear X button */
.searchform .wd-clear-search {
    display: none !important;
}

/* WoodMart Mobile Menu Width Override */
@media (max-width: 1024px) {
    .wd-side-hidden {
        width: 85vw !important;
        max-width: 380px !important;
    }
}

/* ---- Header colors from original site ---- */

/* Top bar: light gray bg + bottom border + proper height */
.whb-top-bar {
    background-color: rgba(244, 244, 244, 1) !important;
    border-color: rgba(0, 0, 0, 0.11);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding: 8px 0;
}

/* General header: light gray bg */
.whb-general-header {
    background-color: rgba(244, 244, 244, 1) !important;
}

/* Account icon (whb-hosuzxov): white bg, dark text */
.whb-row .whb-hosuzxov4z23g3c9t54a.wd-tools-element>a>.wd-tools-icon {
    color: rgba(36, 36, 36, 1) !important;
    background-color: rgba(255, 255, 255, 1) !important;
}

/* Cart icon (whb-9mmuvgjq): dark bg, white text */
.whb-row .whb-9mmuvgjq1yhc2chuf6fm.wd-tools-element>a>.wd-tools-icon {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(36, 36, 36, 1) !important;
}

/* Sticky header: when whb-sticked is added by JS, fix the header */
.whb-header.whb-sticked .whb-general-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Reserve space when header becomes fixed */
.whb-header.whb-sticked {
    padding-bottom: var(--header-h, 70px);
}

/* Navigation dropdown arrows - hide on desktop main nav */
.wd-nav-header>.menu-item-has-children>a::after {
    display: none;
}

/* Hide off-canvas panels by default (search overlay, mobile nav, cart sidebar) */
.wd-search-full-screen,
.wd-close-side,
.mobile-nav.wd-side-hidden,
.cart-widget-side.wd-side-hidden {
    display: none !important;
}

/* Show them only when activated */
.wd-search-full-screen.wd-opened,
.wd-close-side.wd-opened,
.mobile-nav.wd-side-hidden.wd-opened,
.cart-widget-side.wd-side-hidden.wd-opened {
    display: block !important;
}

/* Fix Elementor accordion SVG icons - prevent them from being giant */
.e-n-accordion-item-title-icon svg {
    width: 12px !important;
    height: 12px !important;
    fill: currentColor;
}

.e-n-accordion-item-title-icon .e-opened {
    display: none;
}

.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened {
    display: inline-flex;
}

.e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-closed {
    display: none;
}

/* Fix Elementor accordion toggle styling */
.e-n-accordion-item summary {
    cursor: pointer;
    list-style: none;
}

.e-n-accordion-item summary::-webkit-details-marker {
    display: none;
}

/* Ensure images from CDN display properly with lazy load placeholders */
img[data-src] {
    min-height: 50px;
}

/* Fix footer styling to match original */
.wd-footer {
    background-color: #f4f4f4 !important;
    color: #333;
}

/* CRITICAL: Footer toggle content is opacity:0 by default.
   The CSS requires .elementor-element ancestor which we don't have.
   Force it visible. */
.wd-el-toggle-content-inner {
    opacity: 1 !important;
}

/* Desktop: always show everything, hide toggle icons */
@media (min-width: 769px) {
    .wd-footer .wd-el-toggle-icon {
        display: none !important;
    }
    .wd-footer .wd-el-toggle-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Mobile: accordion behavior - collapsed by default */
@media (max-width: 768px) {
    .wd-footer .wd-el-toggle-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
    }
    .wd-footer .wd-el-toggle.wd-opened .wd-el-toggle-icon svg {
        transform: rotate(180deg);
    }
    .wd-footer .wd-el-toggle-head {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .wd-footer .wd-el-toggle-content {
        display: none !important;
    }
    .wd-footer .wd-el-toggle.wd-opened .wd-el-toggle-content {
        display: block !important;
    }
}

/* Footer links should match original (dark text, no underline) */
.wd-footer a {
    color: #333;
    text-decoration: none !important;
}

.wd-footer a:hover {
    color: var(--wd-primary-color, #C8A96E);
}

/* Footer column titles */
.wd-footer .wd-el-toggle-title,
.wd-footer .widget-title,
.wd-footer h5 {
    color: var(--wd-primary-color, #C8A96E);
}

/* Trusted Dealer logos - horizontal layout */
.wd-footer .trusted-logos img,
.wd-footer img[alt="RWI Reviews"],
.wd-footer img[alt="Reddit"],
.wd-footer img[alt="Quora"],
.wd-footer img[alt="Trustpilot"],
.wd-footer img[alt="Google Reviews"] {
    max-height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    filter: grayscale(0);
}

/* Copyright bar at bottom */
.copyrights-wrapper,
.wd-copyrights {
    background: #262626 !important;
    color: rgba(255, 255, 255, 0.65);
}

.copyrights-wrapper a,
.wd-copyrights a {
    color: rgba(255, 255, 255, 0.65);
}

/* Copyright bar: text left + payment icons right (max 290px) */
.elementor-element-10667f8>.e-con-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.elementor-element-10667f8>.e-con-inner>.elementor-widget {
    width: auto;
    flex-shrink: 0;
}

/* Payment icons widget: cap width like original */
.elementor-element-54b041f {
    max-width: 290px !important;
    width: 290px !important;
}

.elementor-element-54b041f img {
    max-width: 100%;
    height: auto;
}

/* Fix articles section - ensure proper side-by-side layout with FAQ */
.e-n-accordion-item-title {
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 0;
}

.e-n-accordion-item-title-icon {
    display: inline-flex;
    align-items: center;
}

/* Blog post date badge - overlay on image */
.wd-post-date.wd-style-with-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.wd-post-date .post-date-day {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.wd-post-date .post-date-month {
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    color: #999;
}

/* Blog post image container needs relative positioning */
.wd-post .wd-post-thumb,
.wd-post .post-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* Blog grid list design - image + text side by side */
.wd-blog-holder.wd-grid-g .wd-post {
    margin-bottom: 20px;
}

/* ========================================
   Elementor Layout System
   NOTE: All section/column/widget-wrap/e-con layout rules
   are handled by custom-frontend.min.css (53KB from original site).
   DO NOT re-declare .elementor-section, .elementor-column,
   .elementor-widget-wrap, .e-con rules here.
   ======================================== */

/* Override Elementor default 1140px → original site uses 1540px */
.elementor-section.elementor-section-boxed>.elementor-container {
    max-width: var(--wd-container-w, 1540px);
}

/* Target ONLY the articles+FAQ section (element 35fd21a) for 50/50 layout on desktop */
@media (min-width: 1025px) {
    .elementor-element-35fd21a>.elementor-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: var(--wd-container-w, 1540px);
        margin: 0 auto;
    }

    .elementor-element-35fd21a>.elementor-container>.elementor-col-50 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Force stacked layout on mobile for articles+FAQ */
@media (max-width: 1024px) {
    .elementor-element-35fd21a>.elementor-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .elementor-element-35fd21a>.elementor-container>.elementor-col-50 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
    }
}

/* ========================================
   SIDEBAR / ARCHIVE PAGE FIXES
   ======================================== */

/* Sidebar widget styling */
.wd-widget.sidebar-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wd-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: none;
    color: #333;
}

/* Product categories list */
.wd-widget .product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wd-widget .product-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.wd-widget .product-categories li:last-child {
    border-bottom: none;
}

.wd-widget .product-categories li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.wd-widget .product-categories li a:hover {
    color: #C8A96E;
}

.wd-widget .product-categories li .count {
    background: #f5f5f5;
    color: #999;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    min-width: 28px;
    text-align: center;
}

/* Price filter */
.wd-widget .price_slider_wrapper {
    padding: 5px 0;
}

.wd-widget .price_slider input[type="range"] {
    width: 100%;
    accent-color: #C8A96E;
}

.wd-widget .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.wd-widget .price_slider_amount .button {
    background: #C8A96E;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.wd-widget .price_slider_amount .button:hover {
    background: #b8964e;
}

/* Archive page breadcrumb */
.wd-page-content .woocommerce-breadcrumb {
    font-size: 13px;
    color: #999;
    padding: 10px 0;
}

.wd-page-content .woocommerce-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.wd-page-content .woocommerce-breadcrumb a:hover {
    color: #C8A96E;
}

/* Product grid on archive page */
.wd-product .product-element-top {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 4px;
}

.wd-product .product-element-top img {
    transition: transform 0.3s ease;
}

.wd-product:hover .product-element-top img {
    transform: scale(1.05);
}

.wd-product .product-element-bottom h3 a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.wd-product .product-element-bottom h3 a:hover {
    color: #C8A96E;
}

/* Star rating display */
.wd-product .star-rating {
    font-size: 12px;
    color: #C8A96E;
    margin: 4px 0;
}

/* Sale badge */
.wd-product .product-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.wd-product .onsale.product-label {
    background: #C8A96E;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Price styling on archive */
.wd-product .price del {
    color: #999;
    font-size: 13px;
}

.wd-product .price ins {
    color: #C8A96E;
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Elementor CSS Variable Supplement
   custom-frontend.min.css handles most layout.
   Below: ONLY variables NOT in custom-frontend.min.css
   that post-XXXX.css files depend on.
   ======================================== */

/* NOTE: Do NOT add gap shorthand here.
   custom-frontend.min.css uses row-gap/column-gap separately.
   Adding gap shorthand causes conflicts (e.g. hero gets gap:30px instead of normal). */

/* NOTE: Do NOT bind widget flex-grow/width/height to CSS variables here.
   custom-frontend.min.css only sets min-width:0 and max-width:100% on widgets.
   Binding to --container-widget-flex-grow causes incorrect stretch behavior
   when post templates set it to 1. Browser default flex-grow:0 is correct. */
.e-con>.elementor-widget,
.e-con-inner>.elementor-widget {
    min-width: 0;
    max-width: 100%;
}

/* ── Link colors ── */
.elementor-element a {
    color: var(--wd-link-color, inherit);
    text-decoration: var(--wd-link-decor, none);
}

.elementor-element a:hover {
    color: var(--wd-link-color-hover, var(--wd-primary-color, #C8A96E));
    text-decoration: var(--wd-link-decor-hover, none);
}

/* ── Form (WPForms shortcode fallback) ── */
.elementor-widget-form .elementor-form {
    --e-form-steps-indicators-spacing: 20px;
    --e-form-steps-indicator-padding: 30px;
}

/* ── Share buttons ── */
.elementor-widget-share-buttons {
    --e-share-buttons-icon-size: var(--e-share-buttons-icon-size, 18px);
}

/* ── Sticky offset ── */
.elementor-sticky--effects {
    top: var(--wd-sticky-offset, 0) !important;
}

/* ── Negative gap helper ── */
/* NOTE: Do NOT add overflow:hidden here.
   The original site does not set overflow on .wd-negative-gap.
   It only adjusts margins via int-elem-base.min.css. */

/* ── Elementor global colors fallback ── */
:root {
    --e-global-color-primary: #6EC1E4;
    --e-global-color-secondary: #54595F;
    --e-global-color-text: #7A7A7A;
    --e-global-color-accent: #61CE70;
}

/* ========================================
   BLOG POST LAYOUT
   Styles for .blog-hero / .blog-body in post_content
   (replaces Elementor Single Post Template post-1570)
   ======================================== */

/* Hero Card */
.blog-hero {
    display: flex;
    gap: 30px;
    background: #F4F4F4;
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0 60px;
    overflow: hidden;
}

.blog-hero-text {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-image {
    flex: 0 0 58%;
    border-radius: 16px;
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.blog-category {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
}

.blog-title {
    font-size: 38px;
    font-weight: 700;
    color: #333;
    line-height: 1.25;
    margin: 0 0 20px;
    font-family: 'Lato', 'Helvetica Neue', sans-serif;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #888;
    flex-wrap: wrap;
}

.blog-author {
    font-weight: 500;
}

.blog-date {
    color: #aaa;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.blog-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

/* Body Content */
.blog-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-body h2 {
    font-size: 26px;
    color: #333;
    margin: 36px 0 16px;
    font-weight: 600;
    line-height: 1.3;
}

.blog-body h3 {
    font-size: 21px;
    color: #333;
    margin: 28px 0 12px;
    font-weight: 600;
}

.blog-body h4 {
    font-size: 18px;
    color: #333;
    margin: 24px 0 10px;
    font-weight: 600;
}

.blog-body p {
    margin-bottom: 16px;
}

.blog-body a {
    color: #C8A96E;
    text-decoration: none;
}

.blog-body a:hover {
    text-decoration: underline;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.blog-body ul,
.blog-body ol {
    padding-left: 28px;
    margin-bottom: 16px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body blockquote {
    border-left: 4px solid #C8A96E;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.blog-body th,
.blog-body td {
    padding: 12px 16px;
    border: 1px solid #eee;
    text-align: left;
}

.blog-body th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.blog-body strong {
    color: #333;
}

/* Table of Contents */
.blog-body .lwptoc,
.lwptoc {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.lwptoc_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.lwptoc_items a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.2;
}

.lwptoc_items a:hover {
    color: #C8A96E;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        flex-direction: column-reverse;
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .blog-hero-text,
    .blog-hero-image {
        flex: none;
        width: 100%;
    }

    .blog-title {
        font-size: 24px;
    }
}

/* ========================================
   HOMEPAGE LAYOUT FIXES 
   ======================================== */

/* Footer 'Shop By Brand' columns fix (restore desktop row layout) */
@media (min-width: 768px) {
    .elementor-element-f544d66 {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .elementor-element-f544d66>.e-con-child {
        width: 25% !important;
    }
}

/* Guarantee Banner alignment fix */
.elementor-element-0bf4001,
.elementor-element-0bf4001>.e-con-inner,
div[data-id="0bf4001"] {
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Generic container fix for background cutoffs */
.e-con-full {
    background-size: cover;
    background-position: center;
}
/* Fix 'Shop By Brand' list alignment (missing <ul> wrapper in Elementor text editor) */
.elementor-element-16b3913 .wd-text-block li {
    margin-left: 15px;
}

/* ── Mobile Layout & Overflow Fixes ── */
/* Prevent horizontal scroll bugs that cause the entire page to look shifted left 
   with a blank space on the right edge. */
html, body, .website-wrapper {
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    /* wd-section-stretch uses 100vw which often causes horizontal scroll bugs on mobile.
       Reset it to stay within the normal 100% bounds to prevent leftward shifting. */
    [class*="wd-section-stretch"] {
        min-width: 0 !important;
        width: 100% !important;
        left: 0 !important;
        padding-inline: 0 !important;
    }
}

/* ========================================
   PRODUCT TABS - Active state fix
   ======================================== */
/* Force non-active tabs to have default (transparent) background */
.wd-products-tabs .wd-nav-tabs > li:not(.wd-active) > a {
    background-color: transparent !important;
    color: var(--wd-text-color, #333) !important;
    border-color: currentColor !important;
    box-shadow: none !important;
}

/* ========================================
   MOBILE SIDE NAV - Slide animation & backdrop
   ======================================== */
.mobile-nav.wd-side-hidden {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    z-index: 99999;
    background: #fff;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.mobile-nav.wd-side-hidden.wd-opened {
    right: 0;
}

/* Backdrop overlay */
.wd-close-side {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: pointer;
}
.wd-close-side.wd-close-side-opened {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when nav is open */
html.mobile-nav-opened {
    overflow: hidden;
}
html.mobile-nav-opened body {
    overflow: hidden;
}

/* ========================================
   HOMEPAGE RECOMMENDED CAROUSEL & HEADER DEDUPLICATION (#12)
   ======================================== */

/* Mobile header: Force-hide the desktop cart + suppress Woodmart font-icon on our SVG mobile cart */
@media (max-width: 1024px) {
    /* Hide the entire desktop-only right column and its cart on mobile */
    .whb-9mmuvgjq1yhc2chuf6fm,
    .whb-col-right.whb-visible-lg,
    .whb-column10.whb-visible-lg {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }
}
/* Kill Woodmart's injected :before bag icon on our custom SVG mobile cart */
.ul-mobile-cart .wd-tools-icon:before,
.ul-mobile-cart .wd-tools-icon:after {
    content: none !important;
    display: none !important;
}
/* Remove gold circle background from mobile cart (wd-design-7 override) */
.ul-mobile-cart.wd-design-7 > a > .wd-tools-icon,
.ul-mobile-cart > a > .wd-tools-icon {
    background-color: transparent !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    color: #333 !important;
}
/* Ensure the SVG cart icon is dark-colored after removing gold bg */
.ul-mobile-cart > a {
    color: #333 !important;
}
.ul-mobile-cart .wd-tools-icon svg {
    stroke: #333 !important;
}
.ul-mobile-cart .wd-cart-number {
    background-color: #c6a96e !important;
    color: #fff !important;
}

/* Homepage Recommended Products - Force horizontal scroll on mobile */
@media (max-width: 768px) {
    .wd-products-tabs .products.elements-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
    }
    
    .wd-products-tabs .products.elements-grid::-webkit-scrollbar {
        height: 4px;
    }
    .wd-products-tabs .products.elements-grid::-webkit-scrollbar-thumb {
        background: #c6a96e;
        border-radius: 10px;
    }
    .wd-products-tabs .products.elements-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .wd-products-tabs .products.elements-grid .wd-col {
        flex: 0 0 65% !important; /* 65% width so the next item peeks out */
        max-width: 65% !important;
        scroll-snap-align: center;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ========================================
   QUANTITY BUTTON RESTORATION (#12)
   ======================================== */
.quantity {
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
    border-radius: 40px !important;
    border: 1px solid #e1e1e1 !important;
    background: #fff !important;
    overflow: hidden !important;
    width: 120px !important;
    min-width: 120px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.quantity input[type="button"],
.quantity button.qty-sym {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    font-size: 0 !important;
    width: 36px !important;
    height: 100% !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
/* Draw minus: single horizontal bar */
.quantity button.qty-sym.minus::after,
.quantity input[type="button"].minus::after {
    content: '' !important;
    display: block !important;
    width: 12px !important;
    height: 1.5px !important;
    background: #333 !important;
    border-radius: 1px !important;
}
/* Draw plus: horizontal bar + vertical bar */
.quantity button.qty-sym.plus::after,
.quantity input[type="button"].plus::after {
    content: '' !important;
    display: block !important;
    width: 12px !important;
    height: 1.5px !important;
    background: #333 !important;
    border-radius: 1px !important;
}
.quantity button.qty-sym.plus::before,
.quantity input[type="button"].plus::before {
    content: '' !important;
    display: block !important;
    width: 1.5px !important;
    height: 12px !important;
    background: #333 !important;
    border-radius: 1px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.quantity input[type="button"]:hover {
    color: #c6a96e !important;
    background: #f9f9f9 !important;
}

.quantity input[type="number"] {
    background: transparent !important;
    border: none !important;
    width: 50px !important;
    height: 100% !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    color: #333 !important;
    -moz-appearance: textfield !important;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ========================================
   MOBILE MENU INTERACTION FIXES
   ======================================== */
@media (max-width: 1024px) {
    .wd-close-side.wd-close-side-opened {
        display: block !important;
    }

    .mobile-nav.wd-side-hidden.wd-opened {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .ul-mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin: 12px 16px 6px auto;
        border: 1px solid #e7e2d6;
        border-radius: 999px;
        background: #fff;
        color: #242424;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children {
        position: relative;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children > .wd-nav-opener {
        position: absolute;
        top: 0;
        right: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border: 0;
        border-left: 1px solid #ececec;
        background: transparent;
        color: #242424;
        cursor: pointer;
        z-index: 2;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children > .wd-nav-opener::before {
        content: '+';
        font-size: 22px;
        line-height: 1;
        font-weight: 400;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children.wd-opened > .wd-nav-opener::before {
        content: '-';
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children > a {
        padding-right: 62px !important;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children > .wd-sub-menu,
    .mobile-nav .wd-nav-mobile li.menu-item-has-children > .sub-sub-menu {
        display: none !important;
    }

    .mobile-nav .wd-nav-mobile li.menu-item-has-children.wd-opened > .wd-sub-menu,
    .mobile-nav .wd-nav-mobile li.menu-item-has-children.wd-opened > .sub-sub-menu {
        display: block !important;
    }
}

/* ========================================
   EMPTY CART CLEANUP
   ======================================== */
.woocommerce-cart .wc-block-cart__empty-cart__title ~ .wp-block-separator,
.woocommerce-cart .wc-block-cart__empty-cart__title ~ .wp-block-heading,
.woocommerce-cart .wc-block-cart__empty-cart__title ~ .wp-block-product-new {
    display: none !important;
}

.woocommerce-cart .wc-block-cart__empty-cart__title {
    margin-bottom: 24px !important;
}

/* ========================================
   SHOPIFY-STYLE CHECKOUT
   ======================================== */
body.woocommerce-checkout {
    background: #fff;
}

body.woocommerce-checkout .whb-header,
body.woocommerce-checkout .wd-footer {
    display: none !important;
}

body.woocommerce-checkout .website-wrapper {
    background: #fff;
}

.ul-checkout-page {
    --ul-checkout-accent: #c8a96e;
    --ul-checkout-ink: #1f1f1f;
    --ul-checkout-muted: rgba(31, 31, 31, .62);
    --ul-checkout-line: rgba(31, 31, 31, .12);
    --ul-checkout-panel: #f7f5f0;
    color: var(--ul-checkout-ink);
    min-height: 100vh;
}

.ul-checkout-topbar {
    border-bottom: 1px solid var(--ul-checkout-line);
    background: #fff;
}

.ul-checkout-topbar__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ul-checkout-topbar__logo img {
    display: block;
    width: 212px;
    height: auto;
}

.ul-checkout-topbar__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ul-checkout-muted);
    font-size: 13px;
    font-weight: 600;
}

.ul-checkout-topbar__trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ul-checkout-topbar__trust span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ul-checkout-accent);
}

.ul-checkout-page__content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 22px;
}

.ul-checkout-page .woocommerce {
    max-width: none;
    padding: 0;
}

.ul-checkout-page .woocommerce-form-coupon-toggle,
.ul-checkout-page .woocommerce .woocommerce-notices-wrapper .woocommerce-info,
.ul-checkout-page .woocommerce .woocommerce-notices-wrapper .woocommerce-message {
    display: none;
}

.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .72fr);
    gap: 34px;
    align-items: start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.woocommerce-checkout .ul-checkout-customer {
    min-width: 0;
}

.woocommerce-checkout #customer_details {
    display: block !important;
    width: 100%;
    margin: 0;
}

.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout #customer_details .col-2 {
    margin-top: 18px;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields > h3,
.woocommerce-checkout #customer_details .woocommerce-additional-fields > h3,
.woocommerce-checkout #order_review_heading {
    display: none;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3.ul-checkout-heading {
    display: block;
}

.ul-checkout-heading {
    margin: 0 0 14px;
    color: var(--ul-checkout-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ul-checkout-heading--delivery,
.ul-checkout-heading--shipping {
    margin-top: 26px;
}

.woocommerce-checkout .form-row {
    position: relative;
    margin: 0 0 11px !important;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout .form-row > label,
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label,
.woocommerce-checkout .woocommerce-additional-fields label {
    display: none !important;
}

.woocommerce-checkout .form-row input[type="checkbox"] + label,
.woocommerce-checkout .form-row input[type="radio"] + label,
.woocommerce-checkout label.checkbox,
.woocommerce-checkout label.woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
}

.woocommerce-checkout .woocommerce-input-wrapper {
    display: block;
}

.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text,
.woocommerce-checkout .woocommerce form.checkout .form-row select,
.woocommerce-checkout .woocommerce form.checkout .form-row textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--ul-checkout-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ul-checkout-ink);
    font-size: 14px;
    line-height: 1.3;
    box-shadow: none;
}

.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text,
.woocommerce-checkout .woocommerce form.checkout .form-row select,
.woocommerce-checkout .woocommerce form.checkout .form-row textarea {
    padding: 15px 14px;
}

.woocommerce-checkout .woocommerce form.checkout .form-row textarea {
    min-height: 112px;
}

.woocommerce-checkout .woocommerce form.checkout .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce form.checkout .form-row select:focus,
.woocommerce-checkout .woocommerce form.checkout .form-row textarea:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
    border-color: var(--ul-checkout-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, .16);
    outline: none;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 36px 0 14px;
    color: var(--ul-checkout-ink);
    line-height: 1.3;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.woocommerce-checkout .select2-search--dropdown {
    display: none !important;
}

.ul-checkout-email-offers {
    margin: -2px 0 22px;
}

.ul-checkout-email-offers label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ul-checkout-muted);
    font-size: 14px;
    line-height: 1.35;
}

.ul-checkout-email-offers input {
    width: 18px;
    height: 18px;
    accent-color: var(--ul-checkout-accent);
}

.ul-checkout-shipping-method {
    margin: 26px 0 0;
}

.ul-checkout-shipping-method__body,
.ul-checkout-shipping-method__options {
    border: 1px solid var(--ul-checkout-line);
    border-radius: 10px;
    background: var(--ul-checkout-panel);
}

.ul-checkout-shipping-method__body {
    padding: 18px;
}

.ul-checkout-shipping-method__body p {
    margin: 0;
    color: var(--ul-checkout-muted);
    font-size: 14px;
}

.ul-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 14px 16px;
    color: var(--ul-checkout-ink);
    font-size: 14px;
    cursor: pointer;
}

.ul-shipping-option + .ul-shipping-option {
    border-top: 1px solid var(--ul-checkout-line);
}

.ul-shipping-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ul-shipping-option__dot {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(31, 31, 31, .32);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
}

.ul-shipping-option.is-active .ul-shipping-option__dot {
    border-color: var(--ul-checkout-accent);
    background: var(--ul-checkout-accent);
}

.ul-order-summary {
    background: #fff;
}

.ul-order-summary--top {
    border-bottom: 1px solid var(--ul-checkout-line);
}

.ul-order-summary--top .ul-order-summary__inner {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
}

.ul-order-summary--side {
    border: 1px solid var(--ul-checkout-line);
    border-radius: 12px;
    background: #fff;
}

.ul-order-summary__details {
    border: 0;
}

.ul-order-summary__details summary::-webkit-details-marker,
.ul-order-summary__details summary::marker {
    display: none;
    content: "";
}

.ul-order-summary__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 0 18px;
    cursor: pointer;
    list-style: none;
}

.ul-order-summary--side .ul-order-summary__toggle {
    display: none;
}

.ul-order-summary__toggle-left,
.ul-order-summary__toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ul-order-summary__label {
    color: var(--ul-checkout-ink);
    font-size: 15px;
    font-weight: 700;
}

.ul-order-summary__chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.ul-order-summary__details[open] .ul-order-summary__chevron {
    transform: rotate(225deg) translateY(-2px);
}

.ul-order-summary__orig {
    color: rgba(31, 31, 31, .46);
    font-size: 13px;
    text-decoration: line-through;
}

.ul-order-summary__total {
    color: var(--ul-checkout-ink);
    font-size: 18px;
    font-weight: 800;
}

.ul-order-summary__body {
    padding: 0 18px 18px;
}

.ul-order-summary--side .ul-order-summary__body {
    padding-top: 18px;
}

.ul-order-summary__items {
    display: grid;
    gap: 14px;
    padding-bottom: 15px;
}

.ul-order-summary__item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.ul-order-summary__thumb {
    position: relative;
    width: 58px;
    height: 58px;
    border: 1px solid var(--ul-checkout-line);
    border-radius: 8px;
    background: #f8f8f8;
}

.ul-order-summary__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ul-order-summary__qty {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2f2f2f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.ul-order-summary__item-info {
    min-width: 0;
}

.ul-order-summary__item-name {
    display: block;
    color: var(--ul-checkout-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.ul-order-summary__item-meta {
    display: block;
    margin-top: 4px;
    color: var(--ul-checkout-muted);
    font-size: 12px;
}

.ul-order-summary__item-price {
    color: var(--ul-checkout-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.ul-order-summary__coupon {
    padding: 15px 0;
    border-top: 1px solid var(--ul-checkout-line);
    border-bottom: 1px solid var(--ul-checkout-line);
}

.ul-order-summary__coupon-form {
    display: flex;
    gap: 8px;
}

.ul-order-summary__coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--ul-checkout-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ul-checkout-ink);
    font-size: 14px;
}

.ul-order-summary__coupon-input:focus {
    border-color: var(--ul-checkout-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, .16);
    outline: none;
}

.ul-order-summary__coupon-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #242424;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ul-order-summary__coupon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ul-order-summary__coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(200, 169, 110, .14);
    color: var(--ul-checkout-ink);
    font-size: 12px;
    font-weight: 800;
}

.ul-order-summary__coupon-discount {
    color: var(--ul-checkout-muted);
    font-weight: 700;
}

.ul-order-summary__coupon-remove {
    border: 0;
    background: transparent;
    color: var(--ul-checkout-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ul-order-summary__totals {
    display: grid;
    gap: 11px;
    padding-top: 15px;
}

.ul-order-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--ul-checkout-muted);
    font-size: 14px;
    line-height: 1.35;
}

.ul-order-summary__row--total {
    padding-top: 11px;
    border-top: 1px solid var(--ul-checkout-line);
    color: var(--ul-checkout-ink);
    font-size: 18px;
    font-weight: 800;
}

.ul-order-summary__row--total small {
    color: var(--ul-checkout-muted);
    font-size: 11px;
    font-weight: 700;
}

.ul-order-summary__row--savings {
    justify-content: flex-start;
    color: #2f7a45;
    font-weight: 800;
}

.ul-checkout-summary {
    position: sticky;
    top: 18px;
}

.ul-order-summary__wc-table {
    display: none !important;
}

.woocommerce-checkout #order_review {
    min-width: 0;
}

.woocommerce-checkout #payment {
    margin-top: 18px;
    border: 1px solid var(--ul-checkout-line);
    border-radius: 12px;
    background: #fff;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 16px;
    border-bottom: 1px solid var(--ul-checkout-line);
    margin: 0;
    list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce-checkout #payment ul.payment_methods li + li {
    margin-top: 12px;
}

.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0 10px 0 0;
    accent-color: var(--ul-checkout-accent);
}

.woocommerce-checkout #payment ul.payment_methods li > label {
    flex: 1 1 auto;
    margin: 0;
    font-weight: 700;
}

.woocommerce-checkout #payment div.payment_box {
    flex: 0 0 100%;
    margin: 10px 0 0;
    padding: 13px 14px;
    border-radius: 10px;
    background: var(--ul-checkout-panel);
    color: var(--ul-checkout-muted);
    font-size: 13px;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

.woocommerce-checkout #payment .place-order {
    padding: 16px;
}

.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 54px;
    border-radius: 8px;
    background: #242424;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.woocommerce-checkout #place_order:hover {
    background: #111;
}

.ul-checkout-trust {
    display: grid;
    gap: 13px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ul-checkout-line);
}

.ul-checkout-trust h4 {
    margin: 0;
    color: var(--ul-checkout-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.ul-checkout-trust__item {
    display: grid;
    gap: 3px;
}

.ul-checkout-trust__item strong {
    color: var(--ul-checkout-ink);
    font-size: 14px;
}

.ul-checkout-trust__item span {
    color: var(--ul-checkout-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ul-checkout-policies {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ul-checkout-policies__link {
    border: 0;
    background: transparent;
    color: var(--ul-checkout-muted);
    font-size: 13px;
    cursor: pointer;
}

.ul-checkout-policies__link:hover {
    color: var(--ul-checkout-accent);
}

.ul-policy-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.ul-policy-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.ul-policy-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .36);
    opacity: 0;
    transition: opacity .2s ease;
}

.ul-policy-sheet.is-open .ul-policy-sheet__backdrop {
    opacity: 1;
}

.ul-policy-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -18px 54px rgba(0, 0, 0, .18);
    transform: translateY(18px);
    transition: transform .2s ease;
}

.ul-policy-sheet.is-open .ul-policy-sheet__panel {
    transform: translateY(0);
}

.ul-policy-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ul-checkout-line);
}

.ul-policy-sheet__header h3 {
    margin: 0;
    font-size: 18px;
}

.ul-policy-sheet__close {
    border: 0;
    background: transparent;
    color: var(--ul-checkout-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ul-policy-sheet__body {
    overflow-y: auto;
    padding: 20px;
    color: var(--ul-checkout-muted);
    font-size: 14px;
    line-height: 1.6;
}

.ul-policy-sheet__body h1,
.ul-policy-sheet__body h2,
.ul-policy-sheet__body h3,
.ul-policy-sheet__body h4 {
    color: var(--ul-checkout-ink);
}

.ul-policy-sheet__body img,
.ul-policy-sheet__body iframe {
    max-width: 100%;
    height: auto;
}

.ul-policy-sheet__loading {
    padding: 36px 0;
    text-align: center;
}

html.ul-policy-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .ul-policy-sheet {
        align-items: center;
        padding: 24px;
    }

    .ul-policy-sheet__panel {
        border-radius: 16px;
        transform: translateY(10px);
    }
}

@media (min-width: 980px) {
    .ul-order-summary--top {
        display: none;
    }
}

@media (max-width: 979px) {
    .ul-checkout-topbar__inner {
        min-height: 72px;
    }

    .ul-checkout-topbar__logo img {
        width: 176px;
    }

    .ul-checkout-topbar__trust {
        display: none;
    }

    .ul-checkout-page__content {
        padding-top: 22px;
    }

    .woocommerce-checkout form.checkout {
        display: block !important;
    }

    .ul-checkout-summary {
        position: static;
        margin-top: 22px;
    }

    .ul-order-summary--side .ul-order-summary__toggle {
        display: flex;
    }

    .ul-order-summary--side .ul-order-summary__details:not([open]) .ul-order-summary__body {
        display: none;
    }

    .woocommerce-checkout #payment {
        margin-top: 16px;
    }
}

@media (max-width: 520px) {
    .ul-checkout-topbar__inner,
    .ul-checkout-page__content,
    .ul-checkout-policies,
    .ul-order-summary--top .ul-order-summary__inner {
        width: min(100% - 22px, 1180px);
    }

    .ul-order-summary__item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .ul-order-summary__item-price {
        grid-column: 2;
    }

    .ul-order-summary__coupon-form {
        display: grid;
    }

    .ul-order-summary__coupon-btn {
        width: 100%;
    }
}
