/* Cart - Light Palette */
.mz-cart {
    --mz-panel: var(--mz-light-panel, #fff);
    --mz-text: var(--mz-light-text, #4f4f4f);
    --mz-line: var(--mz-light-line, #ebebeb);
    --mz-field: var(--mz-light-field, #fafafa);
    --mz-action: var(--mz-light-action, #2f8148);
    --mz-action-text: var(--mz-light-action-text, #fff);
    color: var(--mz-text);
}

/* Cart - Dark Palette */
html.dark-mode .mz-cart {
    --mz-panel: var(--mz-dark-panel, #121212);
    --mz-text: var(--mz-dark-text, #ebebeb);
    --mz-line: var(--mz-dark-line, #4f4f4f);
    --mz-field: var(--mz-dark-field, #383b3d);
    --mz-action: var(--mz-dark-action, #71d18f);
    --mz-action-text: var(--mz-dark-action-text, #121212);
    color-scheme: dark;
}

/* Cart - Responsive Layout */
.mz-cart > .woocommerce {
    display: grid;
    grid-template-columns: var(--mz-columns, minmax(0, 1fr));
    align-items: start;
    gap: var(--mz-row-gap, var(--mz-gap, 20px)) var(--mz-column-gap, var(--mz-gap, 20px));
}
.mz-cart > .woocommerce::before,
.mz-cart > .woocommerce::after { display: none; }
.mz-cart > .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
.mz-cart > .woocommerce > :is(.woocommerce-cart-form, .cart-collaterals) { grid-column: auto; }
.mz-cart .woocommerce-notices-wrapper:empty { display: none; }

/* Cart - Product Panel and Empty State */
.mz-cart .woocommerce :is(form.woocommerce-cart-form, .cart-empty) {
    background: var(--mz-panel);
    color: var(--mz-text);
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    padding: var(--mz-products-padding, var(--mz-padding, 16px));
    box-sizing: border-box;
}

/* Cart - Heading Inside Product Panel */
.mz-cart .woocommerce form.woocommerce-cart-form > .mz-cart-section-title {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    color: var(--mz-text);
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
}

/* Cart - Totals Card (Separate from Collaterals Wrapper) */
.mz-cart .woocommerce .cart-collaterals {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}
.mz-cart .woocommerce .cart-collaterals .cart_totals {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--mz-panel);
    color: var(--mz-text);
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    padding: var(--mz-totals-padding, var(--mz-padding, 16px));
    margin: 0;
}
/* Cart - Cross-sells Fallback for Theme-specific Markup */
.mz-cart .woocommerce .cart-collaterals .cross-sells { display: none; }

/* Cart - Table and Totals Text */
.mz-cart .woocommerce table.shop_table { margin: 0; border: 0; width: 100%; }
.mz-cart .woocommerce table.shop_table :is(td, th) { color: inherit; border-color: var(--mz-line); }
.mz-cart .woocommerce .cart_totals > h2 { color: inherit; }
.mz-cart .woocommerce table.cart .product-thumbnail img {
    width: var(--mz-image, 72px);
    height: var(--mz-image, 72px);
    max-width: none;
    object-fit: contain;
    border-radius: 10px;
}

/* Cart - Fields and Checkout */
.mz-cart .woocommerce form.woocommerce-cart-form .coupon input.input-text,
.mz-cart .woocommerce input.qty {
    background: var(--mz-field);
    color: var(--mz-text);
    border: 1px solid var(--mz-line);
    border-radius: 8px;
    font: inherit;
}
.mz-cart .woocommerce form.woocommerce-cart-form .coupon input.input-text {
    padding: 10px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}
.mz-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
    background: var(--mz-action);
    color: var(--mz-action-text);
    border-radius: 10px;
}
.mz-cart .checkout-button:hover { text-decoration: underline; }
.mz-cart :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Cart - Currency Symbol Placement and Responsive Spacing */
/* Native WooCommerce markup has the currency span and a text node inside bdi.
   Row-reverse in RTL places the number on the right and تومان on the left. */
.mz-cart .woocommerce .woocommerce-Price-amount > bdi {
    display: inline-flex;
    direction: rtl;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: 4px;
    vertical-align: baseline;
    white-space: nowrap;
    unicode-bidi: isolate;
}
.mz-cart .woocommerce .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    display: inline-block;
    white-space: nowrap;
}

/* Cart - WooCommerce Coupon Discount Value and Remove Icon */
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-discount-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    direction: rtl;
    column-gap: 10px;
    row-gap: 6px;
    max-width: 100%;
    vertical-align: middle;
}
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-discount-value {
    display: inline-flex;
    align-items: baseline;
    direction: rtl;
    white-space: nowrap;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.woocommerce-remove-coupon.mz-coupon-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: var(--mz-coupon-trash-size, 18px);
    height: auto;
    min-height: var(--mz-coupon-trash-size, 18px);
    padding: 2px;
    margin: 0;
    color: var(--mz-text);
    background: transparent;
    border: 0 solid var(--mz-line);
    border-radius: 6px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove > :is(svg,i),
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove .elementor-icon svg {
    width: var(--mz-coupon-trash-size, 18px);
    height: var(--mz-coupon-trash-size, 18px);
    font-size: var(--mz-coupon-trash-size, 18px);
    display: block;
    flex: 0 0 auto;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove svg {
    fill: currentColor;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove svg[fill="none"] {
    fill: none;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove:is(:hover, :focus-visible) {
    color: var(--mz-action);
    text-decoration: none;
}

/* Cart - Coupon Price Order for Both Markup Variants (bdi and direct amount) */
/* The visual minus sign is restored for real amount discounts.
   RTL flex row: minus + amount (right) → currency (left) → remove icon. */
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-discount-value .mz-coupon-money-formatted {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    align-items: baseline;
    column-gap: 4px;
    white-space: nowrap;
    unicode-bidi: isolate;
}
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-amount-number {
    display: inline-flex;
    direction: rtl;
    align-items: baseline;
    gap: 1px;
    unicode-bidi: isolate;
}
/* The DOM retains a conventional negative amount for assistive technologies.
   In an RTL flex row, place digits on the right and the sign on their LEFT. */
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-amount-digits {
    order: 1;
    direction: ltr;
    unicode-bidi: isolate;
}
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-amount-sign {
    order: 2;
    direction: ltr;
    unicode-bidi: isolate;
    flex: 0 0 auto;
}
.mz-cart .woocommerce .cart_totals .cart-discount .mz-coupon-discount-line {
    flex-direction: row;
    direction: rtl;
    flex-wrap: nowrap;
}
/* Works with an Elementor FontAwesome icon or a user-uploaded SVG. */
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove .mz-coupon-trash-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--mz-coupon-trash-size, 18px);
    height: var(--mz-coupon-trash-size, 18px);
    flex: none;
}
.mz-cart .woocommerce .cart_totals .cart-discount a.mz-coupon-remove .mz-coupon-trash-glyph :is(i, svg) {
    display: block;
    font-size: var(--mz-coupon-trash-size, 18px);
    width: var(--mz-coupon-trash-size, 18px);
    height: var(--mz-coupon-trash-size, 18px);
    max-width: 100%;
    max-height: 100%;
}

/* Cart - v0.8.3 Custom Empty Cart (Transparent PNG, Text and Panel) */
.mz-cart .woocommerce .mz-empty-cart-card {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: var(--mz-products-padding, var(--mz-padding, 16px));
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    background: var(--mz-panel);
    color: var(--mz-text);
    text-align: center;
}
.mz-cart .woocommerce .mz-empty-cart-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 0 var(--mz-empty-img-margin-right, auto) 16px var(--mz-empty-img-margin-left, auto);
    background: transparent;
    box-shadow: none;
}
.mz-cart .woocommerce .mz-empty-cart-title {
    margin: 0 0 10px;
    padding: 0;
    color: inherit;
    font-weight: 600;
    line-height: 1.6;
}
.mz-cart .woocommerce .mz-empty-cart-message {
    color: inherit;
    line-height: 1.8;
}
.mz-cart .woocommerce .mz-empty-cart-message :is(p, ul, ol) {
    margin: 0;
}
.mz-cart .woocommerce .mz-empty-cart-message :is(p, ul, ol) + :is(p, ul, ol) {
    margin-top: 8px;
}
.mz-cart .woocommerce .return-to-shop {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
}

/* Cart - Checkout Button Bottom Spacing Reset */
/* WooCommerce classic cart adds padding to wc-proceed and a bottom margin
   to checkout-button. Clear only the unwanted bottom spacing in this widget. */
.mz-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding-bottom: 0;
    margin-bottom: 0;
}
.mz-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout > a.checkout-button {
    margin-bottom: 0;
}

/* Cart - Optional Message Under the Checkout Button */
.mz-cart .woocommerce .cart_totals .wc-proceed-to-checkout .mz-checkout-note {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 0;
    padding: 0;
    background: transparent;
    color: var(--mz-text);
    line-height: 1.8;
    text-align: center;
    overflow-wrap: anywhere;
}
.mz-cart .woocommerce .cart_totals .mz-checkout-note > :first-child { margin-top: 0; }
.mz-cart .woocommerce .cart_totals .mz-checkout-note > :last-child { margin-bottom: 0; }

/* Cart - WooCommerce Inline Loading Overlay */
.mz-cart .blockUI.blockOverlay { background: var(--mz-loading-overlay-light, rgba(255,255,255,.65)) !important; }
html.dark-mode .mz-cart .blockUI.blockOverlay { background: var(--mz-loading-overlay-dark, rgba(18,18,18,.75)) !important; }

/* Cart - Product Cards */
.mz-cart-view-cards .mz-cart {
    --mz-card-bg: var(--mz-light-card, var(--mz-panel));
    --mz-card-edge: var(--mz-light-card-line, var(--mz-line));
}
html.dark-mode .mz-cart-view-cards .mz-cart {
    --mz-card-bg: var(--mz-dark-card, var(--mz-panel));
    --mz-card-edge: var(--mz-dark-card-line, var(--mz-line));
}
.mz-cart-view-cards .mz-cart .woocommerce-cart-form__contents { display: block; }
.mz-cart-view-cards .mz-cart .woocommerce-cart-form__contents > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.mz-cart-view-cards .mz-cart .woocommerce-cart-form__contents > tbody {
    display: grid;
    /* Prevent WooCommerce's action row from sizing the grid wider than the card. */
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: var(--mz-card-gap, 12px);
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "photo name remove" "photo price price" "photo quantity quantity" "photo subtotal subtotal";
    gap: 6px 12px;
    align-items: center;
    background: var(--mz-card-bg);
    border-width: var(--mz-card-border-width, var(--mz-card-border, 1px));
    border-style: var(--mz-card-border-style, solid);
    border-color: var(--mz-card-edge);
    border-radius: var(--mz-card-radius-dim, var(--mz-card-radius, 12px));
    padding: var(--mz-card-padding, 14px);
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > :is(td, th) {
    display: block;
    padding: var(--mz-item-inset, 0);
    min-width: 0;
    overflow-wrap: anywhere;
    background: transparent;
    border: 0;
}
.mz-cart-view-cards .cart_item > .product-thumbnail { grid-area: photo; }
.mz-cart-view-cards .cart_item > .product-name { grid-area: name; font-weight: 600; }
.mz-cart-view-cards .cart_item > .product-remove { grid-area: remove; }
.mz-cart-view-cards .cart_item > .product-price { grid-area: price; }
.mz-cart-view-cards .cart_item > .product-quantity { grid-area: quantity; }
.mz-cart-view-cards .cart_item > .product-subtotal { grid-area: subtotal; }
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > :is(.product-name, .product-thumbnail, .product-remove)::before { content: none; }
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > :is(.product-price, .product-quantity, .product-subtotal) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.mz-cart-view-cards .mz-cart .cart_item > :is(.product-price, .product-quantity, .product-subtotal)::before {
    content: attr(data-title);
    font-weight: normal;
}
.mz-cart-view-cards .mz-cart table.cart tbody > tr:not(.cart_item),
.mz-cart-view-cards .mz-cart table.cart tbody > tr > td.actions { display: block; }

/* Cart - Original and Discounted Unit Prices */
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-price-pair {
    display: inline-flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    direction: rtl;
    vertical-align: baseline;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-regular-price {
    display: inline-block;
    color: #959595;
    text-decoration: line-through;
    position: relative;
    opacity: 1;
    white-space: nowrap;
    font-weight: normal;
}
/* Cart - Restore Sale Price Strike-Through with Explicit Currency Wrappers
   The number/currency wrappers are inline-flex/inline-block atomic boxes;
   text-decoration on <del> does not paint across them. Draw the line over
   the full old price while retaining the correct RTL currency placement. */
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-regular-price::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 50%;
    border-top: 1px solid currentColor;
    pointer-events: none;
}
html.dark-mode .mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-regular-price {
    color: #bfbfbf;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-current-price {
    display: inline-block;
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-price-pair :is(del, ins) .woocommerce-Price-amount {
    color: inherit;
    font: inherit;
}

/* Cart - Sale Price Currency Order (With or Without WooCommerce BDI)
   PHP and the JS AJAX fallback create two explicit elements. RTL flex places
   number first (right), currency second (left), regardless of whether the
   original wc_price() has a <bdi> or a raw text node beside the symbol. */
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-price-components {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: 4px;
    vertical-align: baseline;
    white-space: nowrap;
    max-width: 100%;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-price-components > .mz-sale-price-number {
    display: inline-block;
    order: 0;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item > .product-price .mz-sale-price-components > .mz-sale-price-unit {
    display: inline-block;
    order: 1;
    direction: rtl;
    white-space: nowrap;
}

/* Cart - Product Name */
.mz-cart .woocommerce table.cart tr.cart_item > .product-name {
    /* WooCommerce responsive tables set an important text alignment. */
    text-align: start !important;
}
.mz-cart .product-name .mz-item-title { display: block; min-width: 0; }
.mz-cart-ellipsis-on .mz-cart .product-name .mz-item-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mz-cart-view-cards .mz-cart .cart_item > .product-name { justify-self: stretch; }

/* Cart - Product Photos in Responsive Tables */
.mz-cart .woocommerce table.cart tr.cart_item > .product-thumbnail img {
    display: block;
    visibility: visible;
}
@media (max-width: 768px), (orientation: landscape) and (max-height: 600px) and (max-width: 1024px) {
    /* WooCommerce and themes can hide thumbnail cells with ID or important selectors. */
    .elementor-widget-mz-cart-widget .mz-cart .woocommerce table.cart tr.cart_item > .product-thumbnail {
        display: block !important;
        visibility: visible;
    }
    .elementor-widget-mz-cart-widget:not(.mz-cart-photo-hide) .mz-cart .woocommerce table.cart .product-thumbnail :is(img, a) {
        display: block !important;
        visibility: visible;
    }
    .elementor-widget-mz-cart-widget .mz-cart .woocommerce table.cart .product-thumbnail::before { content: none; }
    .elementor-widget-mz-cart-widget.mz-cart-photo-hide .mz-cart .woocommerce table.cart tr.cart_item > .product-thumbnail {
        display: none !important;
    }
    .mz-cart-photo-hide .mz-cart-view-cards .mz-cart .woocommerce table.cart tr.cart_item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name remove" "price price" "quantity quantity" "subtotal subtotal";
    }
}

/* Cart - Integrated Quantity Controls */
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.mz-qty-ready > .product-remove { display: none; }
.mz-cart-view-cards .mz-cart .woocommerce table.cart tr.mz-qty-ready > .product-name { grid-column: name-start / -1; }
.mz-cart .mz-stepper {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    border: 1px solid var(--mz-line);
    border-radius: 9px;
    background: var(--mz-field);
    color: var(--mz-text);
    max-width: 100%;
}
.mz-cart .mz-stepper button {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    min-height: 36px;
    border: 0;
    padding: 4px;
    font: inherit;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.mz-cart .mz-stepper button:disabled { opacity: .45; cursor: default; }
.mz-cart .mz-stepper svg { width: 16px; height: 16px; }
.mz-cart .woocommerce .mz-stepper input.qty,
.mz-cart .mz-stepper output {
    font: inherit;
    width: 3em;
    text-align: center;
    border: 0;
    background: transparent;
    padding: 0;
    appearance: textfield;
}
.mz-cart .mz-stepper input::-webkit-inner-spin-button { appearance: none; }

/* Cart - Checkout Hover and Keyboard Focus */
.mz-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:is(:hover, :focus-visible) {
    background: var(--mz-light-action-hover, var(--mz-action));
    color: var(--mz-light-action-text-hover, var(--mz-action-text));
    text-decoration: none;
}
html.dark-mode .mz-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:is(:hover, :focus-visible) {
    background: var(--mz-dark-action-hover, var(--mz-action));
    color: var(--mz-dark-action-text-hover, var(--mz-action-text));
}

/* Cart - Optional Coupon Visibility */
/* When coupon is disabled, the original WooCommerce form and its quantity nonce
   remain in the DOM for updates; only the coupon UI is hidden. */
.mz-cart-view-cards[data-mz-show-coupon="no"] .mz-cart form.woocommerce-cart-form .coupon {
    display: none !important;
}
.mz-cart-view-cards[data-mz-show-coupon="no"] .mz-cart table.cart tr > td.actions {
    padding: 0 !important;
    border: 0 !important;
    min-height: 0;
}
.mz-cart-view-cards[data-mz-show-coupon="no"] .mz-cart table.cart tbody > tr:not(.cart_item) {
    display: none !important;
}
.mz-cart-view-cards[data-mz-show-coupon="no"] .mz-cart form.woocommerce-cart-form > .mz-cart-actions-panel {
    display: none !important;
}

/* Cart - Coupon Section Outside the Native Cart Table */
/* The coupon stays inside the same WooCommerce form, but its visible layout
   no longer depends on the desktop table/actions-cell styles. */
.mz-cart .woocommerce form.woocommerce-cart-form > .mz-cart-actions-panel {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: var(--mz-card-gap, 12px) 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    clear: both;
}
/* Keep the original table row only as a fallback before initialization. */
.mz-cart-view-cards .mz-cart .woocommerce table.cart tbody > tr.mz-cart-native-actions-row {
    display: none !important;
}
.mz-cart-view-cards .mz-cart .woocommerce table.cart tbody > tr:not(.cart_item) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.mz-cart .woocommerce table.cart tr > td.actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.mz-cart .woocommerce table.cart td.actions::after { display: none; }
/* The .coupon element is the ONE optional styled frame: do not frame its parent. */
.mz-cart .woocommerce form.woocommerce-cart-form .coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    float: none;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0 solid var(--mz-line);
    border-radius: var(--mz-coupon-radius, 12px);
    background-color: transparent;
}
.mz-cart .woocommerce form.woocommerce-cart-form .coupon input.input-text {
    flex: 1 1 var(--mz-coupon-field-basis, 8em);
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}
.mz-cart .woocommerce form.woocommerce-cart-form .coupon .button {
    float: none;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.mz-cart .woocommerce table.cart .product-thumbnail img {
    border: 0 solid var(--mz-line);
    box-sizing: border-box;
}

/* Cart - v0.7 Consistent Cart Totals Dividers */
.mz-cart .woocommerce .cart_totals table.shop_table tr:not(:last-child) :is(th,td) {
    border-bottom-style: solid;
}

/* Cart - Quantity Delete Icon (Elementor Library and Custom SVG) */
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--mz-stepper-trash-size, 16px);
    height: var(--mz-stepper-trash-size, 16px);
    font-size: var(--mz-stepper-trash-size, 16px);
    line-height: 1;
    /* The Elementor color control sets this variable on the delete button. */
    color: var(--mz-stepper-trash-color, inherit);
    pointer-events: none;
}
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > :is(svg, i, img) {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    font-size: inherit;
    line-height: 1;
    object-fit: contain;
}

/* Cart - Quantity Delete Icon: Honor Light/Dark Color for Elementor SVGs */
/* Elementor icon-font markup and SVG roots inherit the configured icon color. */
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > :is(svg, i) {
    color: inherit;
}
/* Filled SVG icons (including Elementor's Font Awesome SVGs) use fill, not CSS color. */
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > svg:not([fill="none"]),
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > svg:not([fill="none"]) :is(path, rect, circle, ellipse, polygon, polyline):not([fill="none"]) {
    fill: currentColor !important;
}
/* Keep outline SVG icons hollow while recoloring their actual strokes. */
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > svg[stroke]:not([stroke="none"]),
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > svg :is(path, rect, circle, ellipse, line, polygon, polyline)[stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}
/* Uploaded SVG icons rendered as IMG are converted to a monochrome mask by JS. */
.mz-cart .mz-stepper button[data-remove="yes"] .mz-stepper-trash-glyph > .mz-stepper-trash-mask {
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Cart - v0.7 Empty Cart and Notices */
.mz-cart .woocommerce :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) { box-sizing: border-box; }
.mz-cart .woocommerce .return-to-shop a.button { box-sizing: border-box; }

/* Cart - Hidden Native Update Button (Unified Coupon and Cart Action) */
/* Keep the WooCommerce submit control in the DOM for its native AJAX quantity updater. */
.elementor-widget-mz-cart-widget .mz-cart .woocommerce form.woocommerce-cart-form button[name="update_cart"],
.elementor-widget-mz-cart-widget .mz-cart .woocommerce form.woocommerce-cart-form input[name="update_cart"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* MZ Cart - Toast Host: non-modal fixed notification placement */
.elementor-widget-mz-cart-widget .mz-toast-host {
    position: fixed;
    inset: 0;
    z-index: 99999;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: var(--mz-toast-y, center);
    align-items: var(--mz-toast-x, center);
    padding: 24px;
    pointer-events: none;
    direction: rtl;
    isolation: isolate;
}

/* MZ Cart - Toast Card Light Palette */
.elementor-widget-mz-cart-widget .mz-toast {
    --mz-toast-surface: #ffffff;
    --mz-toast-ink: #4f4f4f;
    --mz-toast-edge: #ebebeb;
    --mz-toast-accent: #2f8148;
    width: 390px;
    max-width: min(100%, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    position: relative;
    box-sizing: border-box;
    padding: 16px;
    margin: 0;
    color: var(--mz-toast-ink);
    background-color: var(--mz-toast-surface);
    border: 1px solid var(--mz-toast-edge);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
    font-family: inherit;
}
html.dark-mode .elementor-widget-mz-cart-widget .mz-toast {
    --mz-toast-surface: #252728;
    --mz-toast-ink: #ebebeb;
    --mz-toast-edge: #4f4f4f;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

/* MZ Cart - Toast Types */
.elementor-widget-mz-cart-widget .mz-toast--success { --mz-toast-accent: #2f8148; }
.elementor-widget-mz-cart-widget .mz-toast--info { --mz-toast-accent: #24a1de; }
.elementor-widget-mz-cart-widget .mz-toast--warning { --mz-toast-accent: #daa746; }
.elementor-widget-mz-cart-widget .mz-toast--error { --mz-toast-accent: #dc4b4b; }
html.dark-mode .elementor-widget-mz-cart-widget .mz-toast--success { --mz-toast-accent: #71d18f; }

/* MZ Cart - Toast Icon and Content */
.elementor-widget-mz-cart-widget .mz-toast__icon-box {
    width: 40px;
    height: 40px;
    min-width: 0;
    display: grid;
    place-items: center;
    color: var(--mz-toast-accent);
    background-color: color-mix(in srgb, var(--mz-toast-accent) 13%, transparent);
    border-radius: 10px;
}
.elementor-widget-mz-cart-widget .mz-toast__icon {
    --mz-toast-icon-size: 22px;
    display: inline-flex;
    width: var(--mz-toast-icon-size);
    height: var(--mz-toast-icon-size);
}
.elementor-widget-mz-cart-widget .mz-toast__icon svg { width: 100%; height: 100%; }
.elementor-widget-mz-cart-widget .mz-toast__details { min-width: 0; align-self: center; max-height: calc(100dvh - 132px); overflow-y: auto; }
.elementor-widget-mz-cart-widget .mz-toast__title {
    margin: 0 0 5px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: inherit;
}
.elementor-widget-mz-cart-widget .mz-toast__content {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    color: inherit;
    min-width: 0;
}

/* MZ Cart - Native WooCommerce Notice Reset Only Inside a Toast */
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content :is(
    .woocommerce-message, .woocommerce-info, .woocommerce-error,
    .woocommerce-warning, .woocommerce-notice--warning
) {
    position: static;
    display: block;
    width: 100%;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    list-style: none;
    min-height: 0;
}
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content :is(
    .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-warning,
    .woocommerce-notice--warning
)::before,
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content :is(
    .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-warning,
    .woocommerce-notice--warning
)::after { content: none; display: none; }
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content li {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content li:last-child { margin-bottom: 0; }
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content a {
    color: var(--mz-toast-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content a:focus-visible,
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content :is(a.button,button.button) {
    display: inline-flex;
    float: none;
    margin: 4px 6px 0 0;
    max-width: 100%;
    padding: 5px 9px;
    font-size: inherit;
    white-space: normal;
}

/* MZ Cart - Toast Close Button */
.elementor-widget-mz-cart-widget .mz-toast__close {
    --mz-toast-close-size: 24px;
    display: grid;
    place-items: center;
    width: var(--mz-toast-close-size);
    height: var(--mz-toast-close-size);
    min-width: 0;
    min-height: 0;
    padding: 3px;
    margin: -3px -3px 0 0;
    border: 0;
    border-radius: 7px;
    color: var(--mz-toast-ink);
    background: transparent;
    opacity: .72;
    cursor: pointer;
    box-shadow: none;
}
.elementor-widget-mz-cart-widget .mz-toast__close:is(:hover,:focus-visible) {
    color: var(--mz-toast-accent);
    background-color: transparent;
    opacity: 1;
}
.elementor-widget-mz-cart-widget .mz-toast__close svg { width: 100%; height: 100%; }

/* MZ Cart - Toast Countdown Progress */
.elementor-widget-mz-cart-widget .mz-toast__progress {
    grid-column: 1 / -1;
    width: 100%;
    height: 3px;
    margin-top: 4px;
    border-radius: 99px;
    background: rgba(128, 128, 128, .12);
    overflow: hidden;
}
.elementor-widget-mz-cart-widget .mz-toast__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: var(--mz-toast-accent);
    transform-origin: var(--mz-toast-progress-origin, left center);
    animation: mz-toast-countdown var(--mz-toast-duration, 3000ms) linear both;
}
.elementor-widget-mz-cart-widget .mz-toast--paused .mz-toast__progress-bar { animation-play-state: paused; }
@keyframes mz-toast-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* MZ Cart - Progress Fill/Drain and Left/Right Motion */
/* Drain RTL: right edge moves left. Fill RTL: grows from the right edge. */
.elementor-widget-mz-cart-widget .mz-toast--progress-rtl.mz-toast--progress-drain {
    --mz-toast-progress-origin: left center;
}
.elementor-widget-mz-cart-widget .mz-toast--progress-ltr.mz-toast--progress-drain {
    --mz-toast-progress-origin: right center;
}
.elementor-widget-mz-cart-widget .mz-toast--progress-rtl.mz-toast--progress-fill {
    --mz-toast-progress-origin: right center;
}
.elementor-widget-mz-cart-widget .mz-toast--progress-ltr.mz-toast--progress-fill {
    --mz-toast-progress-origin: left center;
}
.elementor-widget-mz-cart-widget .mz-toast--progress-fill .mz-toast__progress-bar {
    animation-name: mz-toast-fill;
}
@keyframes mz-toast-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* MZ Cart - Toast Coupon Inline Error Reset */
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content .mz-toast__coupon-error {
    position: static;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
}
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content .mz-toast__coupon-error::before,
.elementor-widget-mz-cart-widget .mz-toast .mz-toast__content .mz-toast__coupon-error::after {
    content: none;
    display: none;
}

/* MZ Cart - Toast Enter and Exit Animations */
.elementor-widget-mz-cart-widget .mz-toast--scale:not(.mz-toast--leaving) { animation: mz-toast-scale-in 240ms ease-out both; }
.elementor-widget-mz-cart-widget .mz-toast--fade:not(.mz-toast--leaving) { animation: mz-toast-fade-in 200ms ease-out both; }
.elementor-widget-mz-cart-widget .mz-toast--slide:not(.mz-toast--leaving) { animation: mz-toast-slide-in 240ms ease-out both; }
.elementor-widget-mz-cart-widget .mz-toast--leaving { animation: mz-toast-out 200ms ease-in both; }
@keyframes mz-toast-scale-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes mz-toast-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mz-toast-slide-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mz-toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
    .elementor-widget-mz-cart-widget .mz-toast:not(.mz-toast--leaving),
    .elementor-widget-mz-cart-widget .mz-toast--leaving { animation: none; }
    .elementor-widget-mz-cart-widget .mz-toast__progress-bar { animation-duration: var(--mz-toast-duration, 3000ms); }
    .elementor-widget-mz-cart-widget .mz-toast--progress-fill .mz-toast__progress-bar { animation-name: mz-toast-fill; }
}
@media (max-width: 480px) {
    .elementor-widget-mz-cart-widget .mz-toast-host { padding: 16px; }
    .elementor-widget-mz-cart-widget .mz-toast { width: 100%; max-width: 100%; padding: 13px; gap: 10px; }
    .elementor-widget-mz-cart-widget .mz-toast__icon-box { width: 36px; height: 36px; }
}

/* ==========================================================
   MZ Cart v0.9.0 - Native Shipping Methods as Cards
   All rates, prices and radio interactions remain WooCommerce-owned.
   ========================================================== */
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 10px 0;
    padding: 0;
    list-style: none;
    text-align: right;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: 12px;
    background: var(--mz-panel, #fff);
    color: var(--mz-text, #4f4f4f);
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    list-style: none;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li::before {
    content: none;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li.mz-shipping-selected,
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li:has(> input:checked) {
    border-color: var(--mz-action, #2f8148);
    background-color: color-mix(in srgb, var(--mz-action, #2f8148) 8%, var(--mz-panel, #fff));
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li > input[type="radio"] {
    display: block;
    visibility: visible;
    position: static;
    float: none;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    padding: 0;
    margin: 0;
    accent-color: var(--mz-action, #2f8148);
    cursor: pointer;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li > input[type="hidden"] { display: none; }
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li > label {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
    cursor: pointer;
    color: inherit;
    line-height: 1.4;
    text-align: right;
}
/* The method name and icon share one row, even when the optional price wraps. */
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-heading {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    column-gap: var(--mz-shipping-icon-gap, 9px);
    min-width: 0;
    max-width: 100%;
    /* Center the icon and the typographic line box on the same cross-axis. */
    align-items: center;
    line-height: inherit;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: inherit;
    /* Persian font ink can sit away from the center of its line box.
       Let the merchant nudge the title without moving the icon or price. */
    vertical-align: middle;
    transform: translateY(var(--mz-shipping-name-vertical-offset, 0px));
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-meta {
    display: inline-flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    line-height: 1.4;
    /* Move the formatted amount (number + currency) independently in both
       axes; positive X moves it toward the method name on an RTL card. */
    transform: translate(
        var(--mz-shipping-price-horizontal-offset, 0px),
        var(--mz-shipping-price-vertical-offset, 0px)
    );
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li .woocommerce-Price-amount {
    display: inline-flex;
    margin-inline-start: auto;
    white-space: nowrap;
    color: inherit;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-icon {
    --mz-shipping-icon-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--mz-shipping-icon-size);
    width: var(--mz-shipping-icon-size);
    height: var(--mz-shipping-icon-size);
    color: inherit;
    line-height: 1;
    align-self: center;
    vertical-align: middle;
    /* Optical correction for Persian typefaces; adjustable from Elementor. */
    transform: translateY(var(--mz-shipping-icon-vertical-offset, 3px));
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-icon :is(svg, i) {
    width: 100%;
    height: 100%;
    font-size: var(--mz-shipping-icon-size);
    color: currentColor;
    fill: currentColor;
    display: block;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-icon svg[fill="none"] { fill: none; }
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals .mz-shipping-method-icon .mz-shipping-icon-mask {
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
}
.mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals :is(input[type="radio"],label):focus-visible {
    outline: 2px solid var(--mz-action, #2f8148);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals .woocommerce-shipping-totals ul.woocommerce-shipping-methods > li { transition: none; }
}
@media (max-width: 480px) {
    /* A normal WooCommerce table has a fixed column split. On small screens,
       let shipping cards occupy the complete totals width without overflow. */
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals table.shop_table,
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals table.shop_table tbody {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals table.shop_table tr:not(.woocommerce-shipping-totals) {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals table.shop_table tr:not(.woocommerce-shipping-totals) > :is(th,td) {
        max-width: 100%;
        width: auto;
        min-width: 0;
        flex: 0 1 auto;
        box-sizing: border-box;
    }
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals tr.woocommerce-shipping-totals,
    .mz-cart.mz-shipping-cards-enabled .woocommerce .cart_totals tr.woocommerce-shipping-totals > :is(th,td) {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: right;
    }
}


/* ===========================================================
   MZ Cart 0.9.5 - Native Shipping Calculator / Address Styling
   One WooCommerce form; do not duplicate, detach, or nest it.
   =========================================================== */
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-block: 12px 0;
    padding: 12px;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: 12px;
    background-color: var(--mz-panel, #ffffff);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    cursor: pointer;
    line-height: 1.6;
    text-decoration: none;
    color: var(--mz-action, #2f8148);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form {
    box-sizing: border-box;
    display: none;
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin: 12px 0 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    direction: rtl;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form.mz-calc-open {
    display: grid;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .mz-shipping-calculator-heading {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    color: var(--mz-text, #4f4f4f);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form > p {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
    text-align: right;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form > p:has(> button[name="calc_shipping"]) {
    grid-column: 1 / -1;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .form-row > span {
    display: block;
    width: 100%;
    min-width: 0;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .form-row > label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    font-weight: 500;
    line-height: 1.6;
    color: var(--mz-text, #4f4f4f);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form :is(input.input-text, select:not(.select2-hidden-accessible), .select2-container .select2-selection--single) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: 8px;
    background-color: var(--mz-field, #fafafa);
    color: var(--mz-text, #4f4f4f);
    line-height: 1.5;
    text-align: right;
    box-shadow: none;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form :is(input.input-text, select:not(.select2-hidden-accessible)):focus,
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .select2-container--focus .select2-selection--single {
    outline: 2px solid transparent;
    border-color: var(--mz-action, #2f8148);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mz-action, #2f8148) 20%, transparent);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .select2-container {
    display: block;
    max-width: 100%;
    min-width: 0;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form #calc_shipping_country_field.mz-shipping-country-auto-hidden {
    display: none !important; /* WooCommerce sometimes injects display:block inline. */
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form button[name="calc_shipping"] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 11px 20px;
    margin: 0;
    border: 1px solid var(--mz-action, #2f8148);
    border-radius: 9px;
    color: #fff;
    background-color: var(--mz-action, #2f8148);
    line-height: 1.5;
    cursor: pointer;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form button[name="calc_shipping"]:hover {
    filter: brightness(.96);
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator {
    border-color: #4f4f4f;
    background-color: #383b3d;
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form :is(input.input-text, select:not(.select2-hidden-accessible), .select2-container .select2-selection--single) {
    color: #ebebeb;
    background: #383b3d;
    border-color: #4f4f4f;
}
@media (max-width: 480px) {
    .mz-cart.mz-shipping-calculator-enhanced .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-calculator,
    .mz-cart.mz-shipping-calculator-enhanced .cart_totals tr.woocommerce-shipping-totals .shipping-calculator-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* Select2 is sometimes supplied by Iranian city plugins; match native fields. */
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .select2-selection--single .select2-selection__rendered {
    color: inherit;
    text-align: right;
    line-height: inherit;
    padding-inline: 0;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    inset-inline-end: 5px;
}

/* ===========================================================
   MZ Cart 0.9.7 - Unified SelectWoo Inputs and Floating Menus
   The floating dropdown lives under <body> (not inside a grid row).
   =========================================================== */
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form select:not(.select2-hidden-accessible) {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23777777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px 13px;
    background-position: left 12px center;
    padding-left: 32px;
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select {
    display: block;
    width: 100%;
    min-width: 0;
    vertical-align: middle;
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select .select2-selection--single {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 40px;
    height: auto;
    width: 100%;
    padding: 9px 12px;
    line-height: 1.5;
    text-align: right;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: 8px;
    background-color: var(--mz-field, #fafafa);
    color: var(--mz-text, #4f4f4f);
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select .select2-selection__rendered {
    flex: 1;
    min-width: 0;
    color: inherit;
    line-height: 1.5;
    text-align: right;
    padding: 0 0 0 26px;
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select .select2-selection__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 20px;
    height: 100%;
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select .select2-selection__arrow b {
    border: none;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    height: 7px;
    width: 7px;
    transform: translateY(-65%) rotate(45deg);
    left: 6px;
    top: 50%;
    margin: 0;
}
/* The popup is now attached directly to body: scope by the JS marker. */
.select2-container--open.mz-cart-shipping-dropdown {
    z-index: 99999;
    direction: rtl;
}
.select2-container--open.mz-cart-shipping-dropdown .select2-dropdown {
    box-sizing: border-box;
    border: 1px solid var(--mz-shipping-popup-border, #ebebeb);
    border-radius: 9px;
    overflow: hidden;
    background-color: var(--mz-shipping-popup-background, #ffffff);
    color: var(--mz-shipping-popup-color, #4f4f4f);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.select2-container--open.mz-cart-shipping-dropdown .select2-search--dropdown {
    padding: 8px;
}
.select2-container--open.mz-cart-shipping-dropdown .select2-search__field {
    box-sizing: border-box;
    min-height: 36px;
    max-width: 100%;
    text-align: right;
    direction: rtl;
    padding: 7px 10px;
    border: 1px solid var(--mz-shipping-popup-border, #ebebeb);
    border-radius: 7px;
    color: var(--mz-shipping-popup-color, #4f4f4f);
    background-color: var(--mz-shipping-popup-field, #fafafa);
    box-shadow: none;
}
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option {
    text-align: right;
    padding: 9px 12px;
}
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #2f8148;
    color: #ffffff;
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .shipping-calculator-form .select2-container.mz-cart-shipping-select .select2-selection--single {
    color: #ebebeb;
    background-color: #383b3d;
    border-color: #4f4f4f;
}
html.dark-mode .select2-container--open.mz-cart-shipping-dropdown {
    --mz-shipping-popup-border: #4f4f4f;
    --mz-shipping-popup-background: #383b3d;
    --mz-shipping-popup-color: #ebebeb;
    --mz-shipping-popup-field: #121212;
}


/* ===========================================================
   MZ Cart 0.9.8 - Shipping Calculator Open/Closed and Dropdown
   Independent popup styling: SelectWoo appends its menu to body.
   Elementor settings are relayed from each widget instance by JS.
   =========================================================== */
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator {
    position: relative;
}
.mz-cart.mz-shipping-calculator-enhanced .woocommerce-shipping-calculator .mz-shipping-dropdown-style-probe {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    width: 0;
    height: 0;
    white-space: nowrap;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form #calc_shipping_state_field > label.mz-shipping-state-label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    font-weight: 500;
    line-height: 1.6;
    color: var(--mz-text, #4f4f4f);
}
.select2-container--open.mz-cart-shipping-dropdown .select2-dropdown {
    border-color: var(--mz-shipping-dropdown-border, var(--mz-shipping-popup-border, #ebebeb));
    border-radius: var(--mz-shipping-dropdown-radius, 9px);
    background-color: var(--mz-shipping-dropdown-background, var(--mz-shipping-popup-background, #ffffff));
    color: var(--mz-shipping-dropdown-color, var(--mz-shipping-popup-color, #4f4f4f));
}
.select2-container--open.mz-cart-shipping-dropdown .select2-search__field {
    font-family: var(--mz-shipping-dropdown-search-font-family, inherit);
    font-size: var(--mz-shipping-dropdown-search-font-size, inherit);
    font-weight: var(--mz-shipping-dropdown-search-font-weight, inherit);
    font-style: var(--mz-shipping-dropdown-search-font-style, normal);
    line-height: var(--mz-shipping-dropdown-search-line-height, normal);
    letter-spacing: var(--mz-shipping-dropdown-search-letter-spacing, normal);
    word-spacing: var(--mz-shipping-dropdown-search-word-spacing, normal);
    text-transform: var(--mz-shipping-dropdown-search-text-transform, none);
    text-decoration: var(--mz-shipping-dropdown-search-text-decoration, none);
    padding: var(--mz-shipping-dropdown-search-padding, 7px 10px);
    border-radius: var(--mz-shipping-dropdown-search-radius, 7px);
    border-color: var(--mz-shipping-dropdown-search-border, var(--mz-shipping-popup-border, #ebebeb));
    background-color: var(--mz-shipping-dropdown-search-background, var(--mz-shipping-popup-field, #fafafa));
    color: var(--mz-shipping-dropdown-search-color, var(--mz-shipping-popup-color, #4f4f4f));
}
.select2-container--open.mz-cart-shipping-dropdown .select2-search__field::placeholder {
    color: var(--mz-shipping-dropdown-search-placeholder, currentColor);
    opacity: .75;
}
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option {
    font-family: var(--mz-shipping-dropdown-options-font-family, inherit);
    font-size: var(--mz-shipping-dropdown-options-font-size, inherit);
    font-weight: var(--mz-shipping-dropdown-options-font-weight, inherit);
    font-style: var(--mz-shipping-dropdown-options-font-style, normal);
    line-height: var(--mz-shipping-dropdown-options-line-height, normal);
    letter-spacing: var(--mz-shipping-dropdown-options-letter-spacing, normal);
    word-spacing: var(--mz-shipping-dropdown-options-word-spacing, normal);
    text-transform: var(--mz-shipping-dropdown-options-text-transform, none);
    text-decoration: var(--mz-shipping-dropdown-options-text-decoration, none);
    padding: var(--mz-shipping-dropdown-option-padding, 9px 12px);
    color: var(--mz-shipping-dropdown-option-color, var(--mz-shipping-dropdown-color, var(--mz-shipping-popup-color, #4f4f4f)));
    background-color: var(--mz-shipping-dropdown-option-background, transparent);
}
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option:is([aria-selected="true"], .select2-results__option--selected):not(.select2-results__option--highlighted) {
    background-color: var(--mz-shipping-dropdown-option-selected-background, rgba(47,129,72,.12));
    color: var(--mz-shipping-dropdown-option-selected-color, var(--mz-shipping-dropdown-option-color, var(--mz-shipping-popup-color, #4f4f4f)));
}
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option--highlighted,
.select2-container--open.mz-cart-shipping-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: var(--mz-shipping-dropdown-option-hover-background, #2f8148);
    color: var(--mz-shipping-dropdown-option-hover-color, #ffffff);
}


/* ===========================================================
   MZ Cart 0.9.9 - Shipping Address Accordion / Accessible Modal
   The native WooCommerce calculator form is never duplicated.
   =========================================================== */
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator.mz-calc-clickable:not(.mz-calc-expanded) {
    cursor: pointer;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator.mz-calc-clickable:not(.mz-calc-expanded):focus-visible {
    outline: 2px solid var(--mz-action, #2f8148);
    outline-offset: 3px;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-button::after {
    content: '';
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
    font-family: inherit;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator.mz-calc-expanded .shipping-calculator-button::after,
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator.mz-calc-popup-open .shipping-calculator-button::after {
    transform: rotate(225deg);
}
.mz-cart.mz-shipping-calculator-enhanced[data-mz-calc-toggle-icon="no"] .cart_totals .woocommerce-shipping-calculator .shipping-calculator-button::after {
    display: none;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator.mz-calc-expanded .shipping-calculator-form {
    width: 100%;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator .shipping-calculator-form > p:has(> button[name="calc_shipping"]) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    direction: rtl;
}
/* Native <dialog> enters the browser top layer, escaping Elementor overflow and stacking contexts. */
html:has(dialog.mz-shipping-calc-dialog:modal) { overflow: hidden; }
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog {
    box-sizing: border-box;
    position: fixed;
    display: flex;
    flex-direction: column;
    inset-block-start: var(--mz-calc-popup-top, 0);
    inset-block-end: var(--mz-calc-popup-bottom, 0);
    inset-inline-start: var(--mz-calc-popup-istart, 0);
    inset-inline-end: var(--mz-calc-popup-iend, 0);
    width: var(--mz-calc-popup-width, min(520px, calc(100vw - 28px)));
    height: var(--mz-calc-popup-height, fit-content);
    max-width: calc(100vw - 28px);
    max-height: var(--mz-calc-popup-max-height, calc(100dvh - 36px));
    margin-block-start: var(--mz-calc-popup-mtop, auto);
    margin-block-end: var(--mz-calc-popup-mbottom, auto);
    margin-inline-start: var(--mz-calc-popup-mistart, auto);
    margin-inline-end: var(--mz-calc-popup-miend, auto);
    padding: 24px;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: var(--mz-calc-popup-radius, 16px);
    background: var(--mz-panel, #ffffff);
    color: var(--mz-text, #4f4f4f);
    box-shadow: var(--mz-calc-popup-shadow, none);
    direction: rtl;
    overflow: visible;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog:not([open]) {
    display: none;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .shipping-calculator-form {
    display: grid;
    width: 100%;
    min-width: 0;
    max-height: calc(100dvh - 105px);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .mz-shipping-calc-dialog-close {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--mz-text, #4f4f4f);
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .mz-shipping-calc-dialog-close:hover {
    background: rgb(127 127 127 / 12%);
}
.mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .mz-shipping-calculator-heading {
    padding-inline-end: 36px;
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog {
    border-color: #4f4f4f;
    background: #383b3d;
    color: #ebebeb;
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .mz-shipping-calc-dialog-close {
    color: #ebebeb;
}
html.dark-mode .mz-cart.mz-shipping-calculator-enhanced .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog .shipping-calculator-form .form-row > label {
    color: var(--mz-text, #ebebeb);
}
@media (max-width: 767px) {
    .mz-cart.mz-shipping-calculator-enhanced[data-mz-calc-bottom-sheet="yes"] .cart_totals .woocommerce-shipping-calculator > dialog.mz-shipping-calc-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
        inset-inline: 0;
        inset-block-start: auto;
        inset-block-end: 0;
        border-radius: 18px 18px 0 0;
        border-block-end: 0;
        padding-block-end: max(20px, env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce) {
    .mz-cart.mz-shipping-calculator-enhanced .shipping-calculator-button::after {
        transition: none;
    }
}


/* ===========================================================
   MZ Cart 0.9.9.1 - Native Dialog Dropdown & Search Radius Fix
   =========================================================== */
/* The shipping dropdown stays inside the native dialog's top layer; JS
   anchors it to the field using viewport coordinates, not page offsets. */
dialog.mz-shipping-calc-dialog > .select2-container--open.mz-cart-shipping-dropdown {
    position: fixed;
    box-sizing: border-box;
    max-width: 100vw;
    margin: 0;
    z-index: 10;
}
/* Increase specificity against WooCommerce/SelectWoo and Elementor input
   defaults. Both province and city menus share the exact same radius value. */
.select2-container--open.mz-cart-shipping-dropdown .select2-dropdown .select2-search--dropdown input.select2-search__field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--mz-shipping-dropdown-search-radius, 7px);
    -webkit-appearance: none;
    appearance: none;
}
/* Keep the results list scrollable when the dialog is near a viewport edge. */
dialog.mz-shipping-calc-dialog > .mz-cart-shipping-dropdown .select2-results__options {
    overscroll-behavior: contain;
}

/* ===========================================================
   MZ Cart 0.9.9.2 - Stable Search Menu Inside Native Dialog
   SelectWoo rewrites inline offsets while the user searches. Use our
   viewport anchor variables to override those offsets ONLY in the dialog.
   =========================================================== */
dialog.mz-shipping-calc-dialog > .select2-container--open.mz-cart-shipping-dropdown {
    position: fixed !important;
    top: var(--mz-shipping-modal-y, 0px) !important;
    left: var(--mz-shipping-modal-x, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--mz-shipping-modal-width, 100%) !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
}
dialog.mz-shipping-calc-dialog > .select2-container--open.mz-cart-shipping-dropdown .select2-dropdown {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
dialog.mz-shipping-calc-dialog > .select2-container--open.mz-cart-shipping-dropdown .select2-search--dropdown {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
dialog.mz-shipping-calc-dialog > .select2-container--open.mz-cart-shipping-dropdown .select2-search__field {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}


/* ==================================================
   MZ Cart - Product Sale Badges (v0.10.0)
   ================================================== */
.mz-cart-view-cards .mz-cart.mz-sale-badges-enabled .woocommerce table.cart tr.cart_item {
    position: relative;
}
.mz-cart-view-cards .mz-cart.mz-sale-badges-enabled .woocommerce table.cart tr.cart_item > .product-thumbnail {
    position: relative;
}
:where(.mz-cart-view-cards .mz-cart.mz-sale-badges-enabled .woocommerce table.cart tr.cart_item) .mz-sale-badge {
    position: absolute;
    top: var(--mz-sale-y, 8px);
    right: var(--mz-sale-x, 8px);
    bottom: auto;
    left: auto;
    z-index: 3;
    box-sizing: border-box;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: min(260px, 85vw);
    min-width: 0;
    padding: 4px 9px;
    border: 0 solid transparent;
    border-radius: 8px;
    background-color: #2f8148;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
    pointer-events: none;
}
.mz-cart-view-cards .mz-cart .mz-sale-badge :is(.woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi) {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.mz-cart-view-cards .mz-cart .mz-sale-badge .mz-sale-badge-text {
    display: inline-block;
}
.mz-cart-view-cards .mz-cart .mz-sale-badge .mz-sale-badge-percent {
    white-space: nowrap;
}
/* Keep long monetary badges within the thumbnail instead of covering prices. */
:where(.mz-cart.mz-sale-place-photo .cart_item > .product-thumbnail) > .mz-sale-badge {
    max-width: 100%;
}
:where(.mz-cart .mz-sale-badge) .woocommerce-Price-amount > bdi {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
}

html.dark-mode :where(.mz-cart-view-cards .mz-cart) .mz-sale-badge {
    color: #121212;
    background-color: #71d18f;
}

/* ==================================================
   MZ Cart - WooCommerce Free Shipping Progress (v0.11.0)
   ================================================== */
.mz-cart .mz-free-shipping-progress {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    row-gap: 9px;
    border: 1px solid var(--mz-line, #ebebeb);
    border-radius: 12px;
    background: #f5faf6;
    color: var(--mz-text, #4f4f4f);
    direction: rtl;
}
.mz-cart .mz-free-shipping-progress[hidden] { display: none; }
.mz-cart .mz-free-shipping-title {
    font-weight: 650;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mz-text);
}
.mz-cart .mz-free-shipping-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.mz-cart .mz-free-shipping-message {
    min-width: 0;
    flex: 1 1 190px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--mz-text);
}
.mz-cart .mz-free-shipping-percent {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    color: #2f8148;
}
.mz-cart .mz-free-shipping-percent[hidden],
.mz-cart .mz-free-shipping-track[hidden] { display: none; }
.mz-cart .mz-free-shipping-track {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 10px;
    border-radius: 99px;
    background: #dceade;
    overflow: hidden;
    direction: rtl;
}
.mz-cart .mz-free-shipping-fill {
    display: block;
    height: 100%;
    width: 0;
    max-width: 100%;
    border-radius: inherit;
    background-color: #2f8148;
    transition: width 280ms ease;
}
.mz-cart .mz-free-shipping-progress[data-mz-fs-state="ready"] .mz-free-shipping-message {
    color: #2f8148;
}
.mz-cart .mz-free-shipping-progress[data-mz-fs-state="ready"] .mz-free-shipping-fill {
    background-color: #71d18f;
}
.mz-cart .mz-free-shipping-money {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    unicode-bidi: isolate;
}
.mz-cart .mz-free-shipping-money-number { direction: ltr; unicode-bidi: isolate; }
.mz-cart .mz-free-shipping-money-unit { direction: rtl; }
html.dark-mode .mz-cart .mz-free-shipping-progress {
    background: #242927;
    border-color: #4f4f4f;
    color: #ebebeb;
}
html.dark-mode .mz-cart .mz-free-shipping-track { background: #383b3d; }
html.dark-mode .mz-cart .mz-free-shipping-fill { background-color: #71d18f; }
html.dark-mode .mz-cart .mz-free-shipping-percent,
html.dark-mode .mz-cart .mz-free-shipping-progress[data-mz-fs-state="ready"] .mz-free-shipping-message {
    color: #71d18f;
}
@media (prefers-reduced-motion: reduce) {
    .mz-cart .mz-free-shipping-fill { transition: none; }
}
