.content:not(:has(.main > .faq:last-child)) + .footer {
    padding-top: 40px;
}

@media (min-width: 768px) and (max-width: 1464px) {
    .content:not(:has(.main > .faq:last-child)) + .footer {
        padding-top: 2.73vw;
    }
}

@media (max-width: 767.98px) {
    .content:not(:has(.main > .faq:last-child)) + .footer {
        padding-top: 8.53vw;
    }
}

.site-menu-group {
    position: relative;
}

.site-menu-group summary {
    cursor: pointer;
    list-style: none;
}

.site-menu-group summary::-webkit-details-marker {
    display: none;
}

.site-menu-group > details > ul {
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
    min-width: 180px;
    padding: 12px;
    position: absolute;
    z-index: 30;
}

.mobile__menu .site-menu-group > details > ul {
    box-shadow: none;
    position: static;
}

.js-site-action {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.site-menu-button {
    border: 1px solid currentColor;
    border-radius: 4px;
    display: inline-block;
    padding: 8px 14px;
}

/* Picture sources retain the dimensions of the original banner image wrapper. */
.site-banner-block picture {display: block; width: 100%; height: 100%;}
@media (max-width: 767.98px) {
    .bigBanner.gray.site-banner-block {
        padding-bottom: 4.27vw;
    }

    /* Legacy compact cards hide artwork; image-only promotions need the full image. */
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper {
        margin-top: 8px;
    }
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerCard-withoutText {
        height: auto;
        align-self: start;
    }
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerCard-withoutText img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerCard-withoutText img:not(.img-desktop) {
        display: block;
    }
}
/* Keep navigation absolute, with each circle halfway over the banner edge. */
@media (min-width: 768px) {
    .bannerSlider-wrapper {
        --banner-arrow-size: clamp(32px, 3.28vw, 48px);
    }
    .bannerSlider-wrapper:has(.slider-btn:not(.swiper-button-lock)) {
        padding-inline: calc(var(--banner-arrow-size) / 2);
    }
    .bannerSlider-wrapper .slider-btns {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
    }
    .bannerSlider-wrapper .slider-btns .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: var(--banner-arrow-size);
        height: var(--banner-arrow-size);
    }
    .bannerSlider-wrapper .slider-btns .slider-btn.slider-btn-prev {left: 0;}
    .bannerSlider-wrapper .slider-btns .slider-btn.slider-btn-next {right: 0;}

    /* Keep the caption within the left portion of the original bottom circle. */
    .site-banner-block .bannerSmallSlider .cardBottomCircle .content-wrapper {
        width: 60%;
        padding-right: 0;
    }
    .site-banner-block .bannerSmallSlider .cardBottomCircle .content-title {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .site-banner-block .bannerSmallSlider .cardBottomCircle .content-text {
        font-size: clamp(12px, 1.1vw, 16px);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
}
/* Promotions can be published without a linked image banner. */
#PromotionsDirectory .promotion-card .img-wrapper {width: 100%; height: 100%;}
#PromotionsDirectory .promotion-card .img-wrapper img {width: 100%; margin-left: 0;}
#PromotionsDirectory .promotion-card:not(.promotion-card-without-image) .bannerCard-content {display: none;}
#PromotionsDirectory .promotion-card-without-image {background: #f2f6f9; color: #111; border: 1px solid #e8eff3;}
#PromotionsDirectory .promotion-card::before {display: none;}
#PromotionsDirectory .promotion-card-without-image .bannerCard-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    position: static;
    transform: none;
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 28px;
}
#PromotionsDirectory .promotion-card-without-image .bannerCard-title {
    font-size: clamp(20px, 2.1vw, 32px);
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}
#PromotionsDirectory .promotion-card-without-image .bannerCard-subtitle {font-size: 16px; line-height: 1.4; margin: 0;}
#PromotionsDirectory .promotion-card-link {font-size: 14px; line-height: 1.35; color: #427a26; text-decoration: underline; text-underline-offset: 3px;}
@media (max-width: 767.98px) {
    #PromotionsDirectory .promotion-card-without-image .bannerCard-content {padding: 12px; gap: 10px;}
    #PromotionsDirectory .promotion-card-without-image .bannerCard-title {font-size: clamp(14px, 3.6vw, 18px);}
    #PromotionsDirectory .promotion-card-link {font-size: 12px;}
}

/* Keep banner text readable while its optional background image is not filled. */
@media (max-width: 767.98px) {
    .longBanner .longBanner-wrapper.no-background-image .circle-content {
        display: block;
    }
}

.cart .cart-promo .cart-promo-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
}

.cart .cart-promo-form .input-wrapper {
    flex: 1;
    min-width: 0;
    width: auto;
}

.cart .cart-promo-form .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
    padding-inline: 24px;
}

.cart .cart-promo .input-field[aria-invalid="true"] {
    border-color: #d92d20;
}

.cart .cart-promo-error {
    margin-top: 10px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cart .cart-promo-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.cart .cart-promo-applied {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #427526;
    font-size: inherit;
}

.cart .cart-promo-applied svg {
    flex-shrink: 0;
}

.cart .cart-promo-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 4px 3px 10px;
    border: 1px solid #d9eacb;
    border-radius: 6px;
    background: #f2f8ed;
    color: #365d22;
}

.cart .cart-promo-code span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.cart .cart-promo-remove,
.notifications-container .notification-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cart .cart-promo-remove:hover {
    background: #e2efd6;
}

.cart .cart-promo-remove:disabled {
    opacity: .5;
    cursor: wait;
}

.cart .cart-promo-remove:focus-visible,
.notifications-container .notification-close:focus-visible {
    outline: 2px solid #427526;
    outline-offset: 2px;
}

.notifications-container {
    right: 16px;
    width: min(360px, calc(100vw - 32px));
    max-width: none;
    pointer-events: none;
}

.notifications-container .notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px 14px 16px;
    border: 1px solid #e8eff3;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
}

.notifications-container .notification-text {
    flex: 1;
    min-width: 0;
    align-self: center;
    margin: 0;
    font-size: inherit;
    overflow-wrap: anywhere;
}

.notifications-container .notification-close {
    color: #66757c;
}

.notifications-container .notification-close:hover {
    background: #f3f6f8;
    color: #000;
}

.notifications-container .notification--error::before {
    background: #d92d20;
}

@media (max-width: 767.98px) {
    .cart .cart-promo-form .btn {
        min-width: 80px;
        padding-inline: 16px;
    }
}
/* Order address context and shipment details reuse the account/modal layout. */
.order-address-filter{margin:0 0 24px;padding:20px 24px;border:1px solid #e4edf1;border-radius:12px;background:#f4f9fb}
.order-address-filter label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.order-address-filter select{width:100%;height:auto;min-height:48px;border:1px solid #dbe5e8;background:#fff;border-radius:6px;padding:12px;color:#222;font:inherit;font-size:15px}
.order-address-context{font-size:14px;line-height:1.5;margin-top:12px;color:#65757d}.order-address-context strong{color:#222}.order-address-context span{display:block;margin-top:2px}
.order-summary-address{padding:14px 0;border-top:1px solid #e4edf1;margin:12px 0}.order-summary-address p{font-size:15px;line-height:1.5;margin-top:8px}.order-summary-address small,.modal-summary li small{font-size:12px;color:#65757d}
.order-tracking-content{font-size:15px;line-height:1.5;display:flex;flex-direction:column;gap:12px}.order-tracking-status{font-size:20px;font-weight:600;color:#56992c}.order-tracking-note{font-size:13px;color:#65757d}
.order-tracking-timeline{list-style:none;margin:8px 0 0;padding-left:18px;border-left:2px solid #79c442}.order-tracking-timeline li{position:relative;padding:0 0 20px 8px}.order-tracking-timeline li:before{content:'';position:absolute;left:-24px;top:6px;width:10px;height:10px;border-radius:50%;background:#79c442}.order-tracking-timeline small{font-size:12px;color:#65757d}
@media(max-width:600px){.order-address-filter{padding:16px}.order-address-filter select{font-size:14px}}

/* The business address list and balance share one selected location. */
.account .business-address-choice {width: 100%; min-width: 0; min-height: 50px; padding: 12px; gap: 12px; font-size: 16px; line-height: 1.4; border-radius: 5px;}
.account .business-address-choice .radio-content {min-width: 0; overflow-wrap: anywhere;}
.account .business-address-choice .checkmark {width: 20px; height: 20px; border-radius: 50%;}
.account .business-address-choice input:checked ~ .checkmark::after {width: 10px; height: 10px;}
.account .business-address-choice:has(input:focus-visible) {outline: 2px solid #559b2d; outline-offset: 3px;}
@media (max-width: 767.98px) {.account .business-address-choice {font-size: 14px;}}
/* Account controls keep the original colors and card styling. */
.order-address-filter .choices, .business-balance .choices {margin-bottom: 0; min-width: 0;}
.business-balance .choices {margin-bottom: 16px;}
.order-address-filter .choices__inner, .business-balance .choices__inner {min-height: 48px; padding: 10px 36px 10px 14px; border: 1px solid #dbe5e8; border-radius: 6px; background: #fff; font-size: 14px;}
.order-address-filter .choices__list--dropdown, .business-balance .choices__list--dropdown {z-index: 10;}
.order-address-filter .choices__item, .business-balance .choices__item {white-space: normal; overflow-wrap: anywhere;}
.account .account-sidebar .business-balance {width: 100%; min-width: 0; margin-top: 0; padding: 20px;}
.business-balance label {display: block; font-size: 14px; margin-bottom: 8px;}
.business-balance-address {font-size: 13px; color: #65757d; overflow-wrap: anywhere; margin: 12px 0;}
.business-balance-label {font-weight: 500; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid #dee5ea;}
.business-balance > strong {display: block; color: #77c34a; font-size: 32px; line-height: 1.2;}
.business-balance > strong.business-balance-debt {color: #f53152;}
.business-balance small, .business-balance-unavailable {display: block; margin-top: 8px; font-size: 12px; color: #65757d;}
.order-summary-modal .modal-summary li {gap: 16px; align-items: flex-start;}
.order-summary-modal .modal-summary li > span {min-width: 0; flex: 1; overflow-wrap: anywhere;}
.order-summary-modal .modal-summary li .order-summary-quantity {flex: 0 0 auto; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 1.6;}

@media (max-width: 767.98px) {
    .account .account-sidebar.has-business-balance {flex-direction: column;}
    .account .account-sidebar.has-business-balance .sidebar-menu {width: 100%; flex: auto;}
    .account .account-sidebar .business-balance {padding: 16px;}
}

.business-balance .account-select-label {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;}

.portal-redirect-content {display: flex; flex-direction: column; gap: 20px;}
.portal-redirect-content p {margin: 0; font-size: 16px; line-height: 1.5;}
.portal-redirect-content .btn {width: 100%;}

/* A continuous perforated paper edge replaces the detached circles. */
.cart .cart-total {
    border-bottom: 0;
    padding-bottom: 24px;
}
.cart .cart-total::after {
    height: 10px;
    bottom: -9px;
    left: -1px;
    width: calc(100% + 2px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 0h16L8 9z' fill='white'/%3E%3Cpath d='M0 .5L8 9.5 16 .5' fill='none' stroke='%23e8eff3'/%3E%3C/svg%3E") repeat-x left top / 16px 10px;
    -webkit-mask: none;
    mask: none;
}
.cart .cart-total .total-wrapper:last-child {
    border-top: 1px dashed #dbe5e8;
    padding-top: 16px;
    font-weight: 600;
}

.cart-order-note { margin-top: 28px; }
.cart-order-note textarea { min-height: 96px; resize: vertical; }

/* Order history status tabs share the current address/location scope. */
.order-status-tabs {display:flex; gap:10px; margin:0 0 24px;}
.order-status-tab {min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 18px; border:1px solid #e4edf1; border-radius:8px; background:#fff; font-size:15px; font-weight:500;}
.order-status-tab:hover {border-color:#77c34a;}
.order-status-tab.active {border-color:#77c34a; background:#edf7e6;}
.order-status-tab:focus-visible {outline:2px solid #77c34a; outline-offset:3px;}
.order-status-count {min-width:24px; padding:3px 7px; border-radius:12px; background:#f0f4f6; color:#667780; font-size:12px; line-height:1.2;}
.order-status-tab.active .order-status-count {background:#dceecf; color:#38631f;}
/* Status tabs on the left, period filter on the right of the same row; the row wraps on narrow screens. */
.order-filters-row {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin:0 0 24px;}
.order-filters-row .order-status-tabs {margin:0;}
.order-period-tabs {margin-left:auto;}
@media(max-width:600px) {.order-filters-row {flex-direction:column; align-items:stretch;} .order-filters-row .order-period-tabs {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-left:0;} .order-filters-row .order-period-tabs .order-status-tab {padding:10px 4px; font-size:12px;}}
@media(max-width:600px) {.order-status-tabs {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px;} .order-status-tab {padding:10px 6px; gap:5px; font-size:12px;} .order-status-count {min-width:20px; padding:3px 5px;}}

/* Storefront skeletons: shapes match records; no controls or artificial loading delays. */
.sk-status {position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;}
.store-skeleton {box-sizing:border-box; min-width:0; pointer-events:none; user-select:none;}
.sk-bone {display:block; flex-shrink:0; max-width:100%; border-radius:5px; background:linear-gradient(100deg,#edf1f2 20%,#f7f9fa 45%,#edf1f2 70%); background-size:220% 100%; animation:store-skeleton-shimmer 1.6s ease-in-out infinite;}
.sk-text {height:1em; width:100%; margin:12px 0;}
.sk-title {height:1.35em; width:100%; margin:12px 0 18px;}
.sk-caption {height:.7em; width:100%; margin:10px 0;}
.sk-wide {width:85%;} .sk-medium {width:65%;} .sk-short {width:35%;}
.sk-price {height:1.3em; width:100px; margin:10px 0 16px;}
.sk-button {height:46px; width:100%; border-radius:5px;} .sk-square {height:46px; width:46px;}
.sk-circle {height:48px; width:48px; border-radius:50%;}
.sk-product {display:flex; flex-direction:column;}
.sk-product .card-top {width:100%; height:170px; padding-bottom:30px;} .sk-product .img-wrapper {width:100%; height:100%;}
.sk-image {width:100%; height:100%; min-height:0; border-radius:8px;}
.sk-product-info {padding-top:12px; flex:1;}
.sk-product .sk-text {margin-top:10px; margin-bottom:10px;}
.sk-actions {display:flex; gap:12px; width:100%; margin-top:16px;} .sk-actions .sk-button {flex:1;}
.sk-directory {display:flex; flex-direction:column; align-items:center; justify-content:center;}
.sk-directory-image {width:75%; height:140px; border-radius:8px;}
.sk-recipe {overflow:hidden;} .sk-promotion {overflow:hidden; padding:0;}
.sk-recipe-image {width:100%; height:100%; border-radius:10px;}
.sk-content {padding:20px;}
.sk-promotion {position:relative; min-height:220px; background:#f5f8f9!important;}
.sk-promotion-image {width:100%; height:140px; border-radius:0;}
.sk-promotion .sk-content {position:relative;}
.sk-order {display:grid; grid-template-columns:minmax(0,1.4fr) minmax(100px,.6fr) minmax(220px,1fr); align-items:center; gap:24px; padding:24px; border:1px solid #e4edf1; border-radius:12px; margin-bottom:16px; background:#fff;}
.sk-order-main {min-width:0;} .sk-order-details {display:flex; align-items:center; gap:16px; margin-top:24px;}
.sk-order-details > div {flex:1; min-width:0;} .sk-order-total {height:54px; width:130px; border-radius:30px; justify-self:end;}
.sk-order-actions {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
.sk-address {padding:24px; border:1px solid #e4edf1; border-radius:12px; background:#fff; margin-bottom:16px;}
.sk-balance {margin-top:20px;} .sk-balance .sk-balance {height:42px; width:75%; margin:22px 0;}
.sk-tracking {min-height:320px;} .sk-tracking .sk-button {margin:24px 0;}
.sk-timeline {padding-left:24px; border-left:2px solid #e4edf1; margin-top:28px;} .sk-timeline > div {position:relative; margin-bottom:24px;}
.sk-timeline > div::before {content:''; position:absolute; left:-30px; top:0; width:10px; height:10px; border-radius:50%; background:#e4edf1;}
.sk-cart {display:grid; grid-template-columns:90px minmax(0,2fr) minmax(60px,1fr) minmax(90px,1fr) minmax(60px,1fr); align-items:center; gap:16px; padding:24px; border:1px solid #e4edf1; border-radius:12px; margin-bottom:16px;}
.sk-cart-image {width:90px; height:90px;} .sk-cart-quantity {width:100%; height:42px;}
.sk-cart-description {min-width:0;}
.sk-shipping {display:flex; align-items:center; gap:14px; padding:16px 0;} .sk-shipping .sk-circle {height:20px; width:20px;} .sk-shipping > div {flex:1; min-width:0;} .sk-shipping .sk-price {width:60px; margin:0;}
.sk-inline {display:inline-block; width:90px; height:1em; vertical-align:middle;}
@keyframes store-skeleton-shimmer {from {background-position:150% 0;} to {background-position:-100% 0;}}
@media(min-width:768px) and (max-width:1464px) {
    .sk-product .card-top {height:11.61vw; padding-bottom:2.05vw;}
    .sk-product-info {padding-top:0;} .sk-product .sk-price {width:40%; margin:0 0 1.02vw;}
    .sk-product .sk-text {margin:.68vw 0;} .sk-product .sk-caption {margin:.68vw 0;}
    .sk-product .sk-actions {margin-top:0; gap:.68vw;} .sk-product .sk-button,.sk-product .sk-square {height:3.14vw;} .sk-product .sk-square {width:3.14vw;}
}
@media(min-width:768px) and (max-width:1100px) {.sk-order {grid-template-columns:minmax(0,1fr) 110px; gap:16px; padding:20px;} .sk-order-actions {grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px) {
    .sk-product .card-top {height:40vw; padding-bottom:6.4vw;} .sk-product-info {padding-top:8px;} .sk-product .sk-price {width:65%; margin:8px 0 12px;}
    .sk-actions {gap:8px; margin-top:12px;} .sk-button, .sk-square {height:42px;} .sk-square {width:42px;}
    .sk-directory-image {height:17.07vw;}
    .sk-content {padding:16px;} .sk-promotion {min-height:180px;}
    .sk-order {grid-template-columns:minmax(0,1fr) 90px; gap:16px; padding:18px;}
    .sk-order-details {gap:10px; margin-top:16px;} .sk-order-details .sk-circle {width:32px; height:32px;} .sk-order-details > .sk-circle:last-child {display:none;}
    .sk-order-total {width:90px; height:42px;} .sk-order-actions {grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr));}
    .sk-address {padding:18px;}
    .sk-cart {grid-template-columns:70px minmax(0,1fr); gap:12px; padding:16px;} .sk-cart-image {width:70px; height:70px;}
    .sk-cart > .sk-price {width:70px; margin:4px 0;} .sk-cart-quantity {grid-column:2; grid-row:2;} .sk-cart > .sk-price:last-child {grid-column:2;}
}
@media(prefers-reduced-motion:reduce) {.sk-bone {animation:none; background:#edf1f2;}}

/* Order actions reuse the account dialog and button styles. */
.modal .modal-body.order-case-dialog {width: min(610px, calc(100vw - 32px)); max-width: 610px; min-width: 0; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px;}
.order-case-form {display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.5;}
.order-case-number {color: #6c7d86; font-size: 14px;}
.order-case-note {color: #6c7d86; font-size: 13px; line-height: 1.5;}
.order-case-actions {display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;}
.order-case-actions .btn {width: 100%; font-size: 16px;}
@media (max-width: 600px) {.order-case-actions {grid-template-columns: 1fr;} .modal .modal-body.order-case-dialog {padding: 20px; max-height: calc(100dvh - 32px);} }

/* Report forms keep the original modal, upload and input styling. */
.order-report-modal .modal-body {max-height: calc(100dvh - 32px); overflow-y: auto;}
.order-report-dialog .file-info {min-width: 0; flex: 1; margin-right: 12px;}
.order-report-dialog .file-img, .order-report-dialog .file-remove {flex-shrink: 0;}
.order-report-dialog .file-text {min-width: 0;}
.order-report-dialog .file-name {overflow-wrap: anywhere;}
.order-report-dialog .upload-area:focus-visible {outline: 2px solid #79c442; outline-offset: 3px;}
@media (max-width: 767.98px) {.order-report-modal .modal-body {width: calc(100vw - 32px); max-width: calc(100vw - 32px);}}


/* Subtle, one-time entrances keep the existing storefront layout. */
@keyframes storefront-enter {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

.store-enter {
    animation: storefront-enter 850ms cubic-bezier(.25, .65, .3, 1) var(--store-enter-delay, 0ms) backwards;
}

.main .product-card, .main .brand-item, .main .catagories-items > .item,
.main .recepies-item, .main .stores-item, .main .promotions-items > .bannerCard {
    transition: box-shadow 320ms ease, border-color 320ms ease, translate 320ms ease;
}

.btn, .card-btn-like, .modal-close, .pagination-more {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .main .product-card:not(.store-skeleton):hover, .main .brand-item:not(.store-skeleton):hover,
    .main .recepies-item:not(.store-skeleton):hover,
    .main .stores-item:hover, .main .promotions-items > .bannerCard:hover {
        translate: 0 -3px;
        box-shadow: 0 8px 24px rgb(32 58 22 / 7%);
    }
}

/* Category artwork is rounded; keep hover feedback inside that shape. */
.main .catagories-items > .item .item-top {
    transition: background-color 320ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .main .catagories-items > .item:hover .item-top {background-color: #edf4e9;}
}
.main .catagories-items > .item:focus-visible {outline: 2px solid #77c34a; outline-offset: 4px; border-radius: 10px;}

@media (prefers-reduced-motion: reduce) {
    .store-enter { animation: none; }
    .main .catagories-items > .item .item-top {transition: none;}
    .main .product-card, .main .brand-item, .main .catagories-items > .item,
    .main .recepies-item, .main .stores-item, .main .promotions-items > .bannerCard,
    .btn, .card-btn-like, .modal-close, .pagination-more { transition: none; translate: none; }
}

@media print {
    .store-enter { animation: none; opacity: 1; translate: none; }
}


/* Keep checkout alongside the cart on desktop without changing the mobile cards. */
.cart .cart-main, .cart .cart-sidebar {min-width: 0;}
.cart .cart-main {grid-column: 1 / -1;}
@media (min-width: 1024px) {
    .cart .cart-wrapper {grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start;}
    .cart .cart-main {grid-column: auto;}
    .cart .cart-sidebar {position: sticky; top: 100px;}
    .cart .cart-details {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; align-items: start;}
    .cart .cart-details > .page-title {grid-column: 1 / -1; margin: 0;}
    .cart .cart-details > .cart-block {margin: 0; padding: 18px; min-width: 0;}
    .cart .cart-details > .cart-contact, .cart[data-client-type="b2b"] .cart-details > .cart-delivery {grid-column: 1 / -1;}
    .cart .cart-details > .cart-shipping {grid-column: auto;}
    .cart .cart-details .block-inputs {gap: 12px;}
    .cart .cart-details .block-title, .cart .cart-sidebar .block-title {font-size: 18px; line-height: 1.3;}
    .cart .cart-details .input-field {font-size: 14px; min-width: 0;}
    .cart .cart-items-wrapper {max-height: none; overflow: visible; padding-right: 0; margin-bottom: 24px;}
    .cart .cart-items-wrapper .items-header {grid-template-columns: 58px minmax(0, 1fr) 75px 144px 95px 28px;}
    .cart .cart-items-wrapper .item-row {grid-template-columns: minmax(0, 1fr) 75px 144px 95px 28px; padding: 16px 10px;}
    .cart .cart-items-wrapper .items-header, .cart .cart-items-wrapper .item-row {column-gap: 12px;}
    .cart .cart-items-wrapper .item-wrapper {gap: 12px; min-width: 0;}
    .cart .cart-items-wrapper .item-info {min-width: 0; gap: 10px;}
    .cart .cart-items-wrapper .item-info .item-img {width: 64px; height: 72px;}
    .cart .cart-items-wrapper .item-info .item-title {font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;}
    .cart .cart-items-wrapper .item-info .item-upc {font-size: 11px;}
    .cart .cart-items-wrapper .item-price, .cart .cart-items-wrapper .item-total {font-size: 18px; white-space: nowrap;}
    .cart .cart-items-wrapper .product-actions-btns {width: 144px;}
    .cart .cart-items-wrapper .item-remove {width: 28px; height: 32px;}
    .cart .cart-details > .cart-block:not(.cart-shipping) .block-inputs {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));}
    .cart .cart-delivery .block-inputs > div:empty {display: none;}
    .cart .cart-delivery .input-wrapper:has(.radio-list), .cart .cart-delivery .input-wrapper:has(#cart-delivery-address) {grid-column: 1 / -1;}
    .cart .cart-details .cart-shipping .block-inputs.block-inputs-ship > .col {width: 100%;}
    .cart .cart-details .cart-shipping .block-inputs {grid-template-columns: minmax(0, 1fr);}
    .cart .cart-details .cart-shipping .block-inputs > .btn {width: 100%;}
    .cart .cart-sidebar .cart-order-note textarea {height: 96px; min-height: 96px;}
    .cart .cart-details .input-wrapper {width: 100%;}
    .cart .cart-details .block-inputs-ship {max-height: none; overflow: visible;}
    .cart .cart-sidebar .cart-promo-form {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;}
    .cart .cart-sidebar .cart-promo-form .btn {padding: 10px 16px;}
    .cart .cart-sidebar .cart-total {padding: 20px; margin-bottom: 24px;}
    .cart .cart-sidebar .total-wrapper {gap: 12px; font-size: 16px;}
    .cart .cart-sidebar .total-title {font-size: 22px;}
    .cart .cart-sidebar .cart-order-note {margin-top: 24px;}
}
@media (max-width: 1023px) {
    .cart .cart-wrapper {grid-template-columns: minmax(0, 1fr);}
    .cart .cart-sidebar {grid-column: 1 / -1;}
}


/* Cart quantity controls must not shrink around the input's legacy fixed width. */
.cart .cart-items-wrapper .product-actions-btns {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 144px;
    min-width: 144px;
    height: 44px;
    overflow: hidden;
    border-radius: 5px;
}
.cart .cart-items-wrapper .product-actions-btns .action-btn {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.cart .cart-items-wrapper .product-actions-btns .action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.cart .cart-items-wrapper .product-actions-btns .action-count {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    border: 0;
    border-radius: 0;
    -moz-appearance: textfield;
}
.cart .cart-items-wrapper .action-count::-webkit-inner-spin-button,
.cart .cart-items-wrapper .action-count::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart .cart-items-wrapper .product-actions-btns .action-btn:focus-visible {
    outline: none;
    background: rgb(255 255 255 / 18%);
}
.cart .cart-items-wrapper .product-actions-btns:has(:focus-visible) {
    outline: 2px solid #559b2d;
    outline-offset: 3px;
}
/* The wider control needs the same column width before the desktop sidebar appears. */
@media (min-width: 768px) and (max-width: 1023px) {
    .cart .cart-items-wrapper .items-header {grid-template-columns: 58px minmax(0, 1fr) 75px 144px 95px 28px;}
    .cart .cart-items-wrapper .item-row {grid-template-columns: minmax(0, 1fr) 75px 144px 95px 28px;}
    .cart .cart-items-wrapper .items-header, .cart .cart-items-wrapper .item-row {column-gap: 12px;}
}

/* Keep the original caption and green action side by side on desktop. */
@media (min-width: 768px) {
    .steps .steps-btns .steps-btn {text-align: center;}
    .steps .steps-btns .steps-btn > p {flex: 1; min-width: 0; max-width: 50%;}
    .steps .steps-btns .steps-btn > .btn {display: flex; flex-shrink: 0;}
}

/* Reserve the same columns before Swiper's deferred initialization. */
.site-banner-block .swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    margin-right: 10px;
}
@media (min-width: 768px) {
    .site-banner-block .bannerSlider:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        width: calc((100% - 10px) / 2);
    }
    .site-banner-block .bannerSmallSlider:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
        width: calc((100% - 40px) / 5);
    }
}
@media (max-width: 767.98px) {
    /* This pair uses the wide promotion artwork slot; loading images cannot collapse it. */
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerCard-withoutText {
        aspect-ratio: 1546 / 1017;
        position: relative;
    }
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerCard-withoutText img {
        position: absolute;
        inset: 0;
        height: 100%;
        object-fit: contain;
    }
}

/* Fractional viewport widths (browser zoom) must not fall between 767px and 768px. */
@media (max-width: 767.98px) {
    .site-banner-block .bannerSmallSlider > .swiper-wrapper,
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerSlider > .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        transform: none !important;
    }
    .site-banner-block .bannerSmallSlider .swiper-slide,
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .site-banner-block .bannerSmallSlider,
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .bannerSlider {
        height: auto;
        padding-bottom: 0;
    }
    .site-banner-block .bannerSmallSlider .bannerSmallCard {height: 53.33vw;}
    .site-banner-block .bannerSmallSlider-wrapper .swiper-pagination,
    .site-banner-block .bannerSmallSlider-wrapper .slider-btns,
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .swiper-pagination,
    .site-banner-block .bannerSmallSlider-wrapper + .bannerSlider-wrapper .slider-btns {display: none;}
}

/* Preserve card/gallery geometry without loading Swiper for a single image. */
.chooseSlider.is-single-image > .swiper-wrapper,
.productSlider.is-single-image > .swiper-wrapper {transform: none !important;}
.chooseSlider.is-single-image > .swiper-wrapper > .swiper-slide,
.productSlider.is-single-image > .swiper-wrapper > .swiper-slide {width: 100% !important; margin-right: 0 !important;}
.chooseSlider.is-single-image > .swiper-pagination,
.productSlider.is-single-image > .swiper-pagination {display: none;}

/* Keep banner dots small while giving each its own non-overlapping hit box.
   Product-gallery bar pagination intentionally retains its separate layout. */
.bannerSlider-wrapper .swiper-pagination-bullet,
.brands .swiper-pagination-bullet,
.longSlider .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    margin: 0 4px !important;
    background: transparent;
    border-radius: 4px;
    position: relative;
    vertical-align: middle;
}
.bannerSlider-wrapper .swiper-pagination-bullet::before,
.brands .swiper-pagination-bullet::before,
.longSlider .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d1a23;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.swiper-pagination-bullet:focus-visible {
    outline: 2px solid #37651f;
    outline-offset: 2px;
}

/* These controls sit in their own field/photo/title areas, not over neighbours. */
:is(#Modals, main.modal) .input-wrapper:has(> .input-password-btn) > .input-field {
    min-height: 44px;
    padding-right: 64px;
}
:is(#Modals, main.modal) .input-password-btn {
    width: 44px;
    height: 44px;
    right: 4px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
:is(#Modals, main.modal) .input-password-btn svg {flex-shrink: 0;}
@media (max-width: 767.98px) {
    .product-card .card-bottom .card-btn-like {
        width: 44px;
        height: 44px;
    }
    .product .product-wrapper .col:last-child .product-top .product-link,
    .recipe-main .recipe-info .recipe-title-wrapper .recipe-link {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

/* Intrinsic width attributes reserve space; height-constrained artwork keeps its ratio. */
.benefits .benefits-wrapper .item .item-img > img,
.categories .catagories-items .item .item-top > img {
    width: auto;
}

/* Keep compact banner text inside its colored half at every desktop width. */
@media (min-width: 768px) {
    .banner .bannerCard-clean .bannerCard-content {
        width: calc(50% - clamp(32px, 5.46vw, 80px));
        max-width: calc(50% - clamp(32px, 5.46vw, 80px));
        overflow-wrap: anywhere;
    }
}
.banner .bannerCard-clean.bannerCard-withoutText img {width: 100%;}
