/* Native WoodMart shopping controls, matched to the tea site's palette. */
.variations_form .wd-swatches-single {
    gap: 8px;
}
.variations_form .wd-swatches-single > .wd-swatch.wd-text {
    min-width: 60px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--zl-line, #dedfd4);
    border-radius: 4px;
    background: var(--zl-cream, #f7f4ed);
    color: var(--zl-ink, #173e32);
    font: 500 14px/1.4 Arial, sans-serif;
}
.variations_form .wd-swatches-single > .wd-swatch.wd-text.wd-active {
    border-color: var(--zl-ink, #173e32);
    background: var(--zl-ink, #173e32);
    color: #fff;
}
.variations_form .wd-swatches-single > .wd-swatch.wd-text .wd-swatch-text {
    color: inherit;
}
.variations_form .wd-swatches-single > .wd-swatch:focus-visible,
.zl-sticky-purchase .wd-sticky-add-to-cart:focus-visible {
    outline: 2px solid var(--zl-gold, #a77d45);
    outline-offset: 3px;
}
.zl-sticky-purchase {
    border-top: 1px solid var(--zl-line, #dedfd4);
    background: #fff;
    visibility: hidden;
    pointer-events: none;
}
.zl-sticky-purchase.wd-sticky-btn-shown {
    visibility: visible;
    pointer-events: auto;
}
.zl-sticky-purchase .wd-sticky-btn-info {
    min-width: 0;
}
.zl-sticky-selection {
    margin-top: 4px;
    color: var(--zl-muted, #6b746c);
    font: 13px/1.4 Arial, sans-serif;
}
.zl-sticky-purchase .wd-sticky-add-to-cart {
    min-height: 44px;
    border-radius: 4px;
    background: var(--zl-ink, #173e32);
    color: #fff;
}
.zl-sticky-purchase .wd-sticky-add-to-cart:hover {
    background: #2c5846;
}
/* Follow the measured bar height, including the mobile toolbar beneath it. */
body:has(.zl-sticky-purchase) .scrollToTop.wd-sticky-btn-shown {
    bottom: calc(12px + var(--zl-sticky-height, var(--wd-sticky-btn-height, 90px)) + var(--zl-toolbar-height, 0px));
}
/* The side-cart overlay keeps precedence over the purchase bar. */
body:has(.cart-widget-side.wd-opened) .zl-sticky-purchase {
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 1024px) {
    .zl-sticky-purchase {
        bottom: var(--zl-toolbar-height, 0px);
    }
    body.wd-sticky-btn-on:has(.zl-sticky-purchase) {
        padding-bottom: calc(var(--zl-sticky-height, 90px) + var(--zl-toolbar-height, 0px));
    }
}
@media (max-width: 768.98px) {
    body.wd-sticky-btn-on-mb:has(.zl-sticky-purchase) {
        padding-bottom: calc(var(--zl-sticky-height, 90px) + var(--zl-toolbar-height, 0px));
    }
    .wd-sticky-btn.zl-sticky-purchase {
        height: auto;
        min-height: 88px;
        padding-block: 0;
        background: #fff;
        box-shadow: 0 -3px 14px rgb(23 62 50 / 8%);
    }
    .wd-sticky-btn.zl-sticky-purchase > .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 10px 16px;
        width: 100%;
    }
    .wd-sticky-btn.zl-sticky-purchase .wd-sticky-btn-content {
        display: block;
        min-width: 0;
    }
    .zl-sticky-purchase .wd-sticky-btn-thumbnail,
    .zl-sticky-purchase .star-rating,
    .zl-sticky-purchase .wd-sticky-btn-actions {
        display: none;
    }
    .zl-sticky-purchase .wd-sticky-btn-info .wd-entities-title {
        display: block;
        margin: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }
    .zl-sticky-purchase .zl-sticky-selection {
        font-size: 12px;
    }
    .wd-sticky-btn.zl-sticky-purchase .wd-sticky-btn-cart {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        margin: 0;
        max-width: 180px;
    }
    .wd-sticky-btn.zl-sticky-purchase .wd-sticky-btn-cart > .price {
        display: block;
        margin: 0;
        text-align: center;
        font-size: 14px;
        line-height: 1.3;
    }
    .wd-sticky-btn.zl-sticky-purchase .wd-sticky-btn-cart .price .price {
        display: inline;
    }
    .wd-sticky-btn.zl-sticky-purchase .wd-sticky-add-to-cart {
        width: 100%;
        height: auto;
        min-height: 44px;
        margin: 0;
        padding: 10px 12px;
        border-radius: 4px !important;
        font-size: 12px;
    }
}

/* Keep the native filter widgets and their AJAX links, with calmer typography. */
.filters-area .filters-inner-area {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--zl-line, #dedfd4);
    border-radius: 5px;
    background: var(--zl-cream, #f7f4ed);
}
.filters-area .filter-widget {
    min-width: 0;
    margin-bottom: 0;
}
.filters-area .widget-title,
.filters-area .widgettitle {
    margin-bottom: 12px;
    color: var(--zl-ink, #173e32);
    font: 400 19px/1.3 Georgia, serif;
    text-transform: none;
    letter-spacing: 0;
}
.filters-area .filter-widget li > a {
    min-height: 28px;
    padding-block: 4px;
    line-height: 1.5;
    color: var(--zl-ink, #173e32);
}
.filters-area .filter-widget li > a:focus-visible,
.zl-filter-summary a:focus-visible {
    outline: 2px solid var(--zl-gold, #a77d45);
    outline-offset: 3px;
}
.filters-area .price_slider_amount button {
    min-height: 40px;
    border-radius: 4px;
}
.zl-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 8px 16px;
    border: 1px solid var(--zl-line, #dedfd4);
    border-radius: 4px;
    background: var(--zl-cream, #f7f4ed);
    color: var(--zl-muted, #6b746c);
    font-size: 14px;
}
.zl-filter-summary a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--zl-ink, #173e32);
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 1024px) {
    .filters-area .filters-inner-area {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        padding: 20px;
    }
}
@media (max-width: 768.98px) {
    .filters-area .filters-inner-area {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
        padding: 16px;
    }
}
@media (max-width: 480px) {
    .filters-area .filters-inner-area {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Native details is closed before scripts load, including during AJAX swaps. */
.zl-catalog-filters {
    margin: 0 0 28px;
    border: 1px solid #dce3d8;
    border-radius: 14px;
    background: #faf9f5;
    color: #234b36;
    overflow: clip;
}
.zl-filters-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    transition: background .18s ease;
}
.zl-filters-toggle::-webkit-details-marker { display: none; }
.zl-filters-toggle::marker { content: ''; }
.zl-filters-toggle:hover { background: #f0f3eb; }
.zl-filters-toggle:focus-visible,
.zl-filters-done:focus-visible {
    outline: 2px solid #98783e;
    outline-offset: -4px;
}
.zl-filters-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e7ede1;
}
.zl-filters-icon svg { width: 24px; height: 24px; }
.zl-filters-heading { display: grid; gap: 3px; flex: 1; min-width: 0; }
.zl-filters-title { font: 22px/1.2 Georgia, serif; color: #234b36; }
.zl-filters-hint { font-size: 12px; line-height: 1.5; color: #70786a; }
.zl-filters-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border: 1px solid #dce3d8;
    border-radius: 50%;
    background: #fff;
}
.zl-filters-chevron svg { width: 20px; height: 20px; transition: transform .2s ease; }
.zl-catalog-filters[open] .zl-filters-chevron svg { transform: rotate(180deg); }
.zl-filters-count {
    padding: 5px 10px;
    border-radius: 30px;
    background: #234b36;
    color: #fff;
    white-space: nowrap;
    font-size: 12px;
}
.zl-filters-body { border-top: 1px solid #dce3d8; }
.zl-catalog-filters .filters-area {
    display: block !important;
    margin: 0;
    padding: 0;
    max-height: min(560px, 60vh);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bbc7b6 transparent;
}
.zl-catalog-filters .filters-inner-area {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    margin: 0;
    padding: 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.zl-catalog-filters .widget-title { margin-bottom: 12px; font-size: 18px; }
.zl-catalog-filters .filter-widget li > a { min-height: 36px; font-size: 13px; }
.zl-catalog-filters .filter-widget li { margin-bottom: 2px; }
.zl-filters-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid #e2e7de;
    background: #f0f3eb;
    font-size: 12px;
    color: #70786a;
}
.zl-filters-done {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 8px;
    background: #234b36;
    color: #fff;
    box-shadow: none;
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
}
.zl-catalog-filters.is-ready .zl-filters-done { display: inline-flex; }
.zl-filters-done:hover { background: #183c29; color: #fff; }
.zl-catalog-filters + .wd-active-filters { margin-top: -10px; }
@media (max-width: 1100px) {
    .zl-catalog-filters .filters-inner-area { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .zl-catalog-filters .filters-inner-area { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding: 20px; }
}
@media (max-width: 480px) {
    .zl-catalog-filters { border-radius: 12px; margin-bottom: 22px; }
    .zl-filters-toggle { display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; min-height: 78px; padding: 15px; gap: 10px; }
    .zl-filters-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .zl-filters-heading { grid-column: 2; grid-row: 1; }
    .zl-filters-chevron { grid-column: 3; grid-row: 1; }
    .zl-filters-title { font-size: 20px; }
    .zl-filters-hint { font-size: 11px; max-width: 200px; }
    .zl-filters-count { grid-column: 2; grid-row: 2; justify-self: start; }
    .zl-catalog-filters .filters-inner-area { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
    .zl-catalog-filters .wd-scroll-content { max-height: none !important; overflow: visible; }
    .zl-catalog-filters .filter-widget:not(:last-child) { padding-bottom: 16px; border-bottom: 1px solid #e2e7de; }
    .zl-catalog-filters .filter-widget li > a { min-height: 42px; }
    .zl-filters-footer { padding: 12px 15px; }
    .zl-filters-footer > span { display: none; }
    .zl-filters-done { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .zl-filters-toggle, .zl-filters-chevron svg { transition: none; }
}
