/* ----------------------
/ File: assets/css/cart-checkout.css
/ Theme: Artender
/ Section: Minimal Cart + Multi-step Checkout
/ Reference: compact three-step cart UI
/ -------------------- */

.artender-cart-page,
.artender-checkout-flow,
.woocommerce-checkout .checkout.woocommerce-checkout {
    --artender-commerce-border: #e7e9ee;
    --artender-commerce-soft: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.035);
    --artender-commerce-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
    --artender-commerce-shadow-soft: 0 3px 12px rgba(15, 23, 42, 0.035);
    --artender-commerce-radius: 20px;
}

body.artender-commerce-page {
    background: #ffffff;
}


.artender-commerce-top-steps {
    width: min(100%, 760px);
    margin: 10px auto 0;
    padding: 0 8px;
    direction: rtl;
}

.artender-commerce-top-steps + .artender-page-content {
    margin-top: 0;
}

/* Keep the single page H1 for document structure, but visually start with the stepper. */
.artender-commerce-page .artender-page-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.artender-cart-page,
.artender-checkout-flow,
.woocommerce-checkout form.checkout {
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
    direction: rtl;
}

.artender-cart-page {
    margin-top: 16px;
    margin-bottom: 34px;
}

/* ----------------------
/ Stepper
/ -------------------- */
.artender-commerce-steps {
    position: relative;
    width: min(100%, 720px);
    margin: 0 auto 30px;
    padding: 4px 10px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    direction: ltr;
    isolation: isolate;
}

.artender-commerce-steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(12.5% + 10px);
    right: calc(12.5% + 10px);
    height: 2px;
    border-radius: 999px;
    background: #eceef2;
    z-index: 0;
}

.artender-commerce-step-line {
    display: none !important;
}

.artender-commerce-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    color: #737985;
    direction: rtl;
    text-decoration: none !important;
}

.artender-commerce-step-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #ffffff;
    color: #606672;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.035),
        inset 0 0 0 4px #ffffff;
}

.artender-commerce-step-label {
    max-width: 120px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
}

.artender-commerce-step.is-active,
.artender-commerce-step.is-done {
    color: var(--artender-primary-color, #f50000);
}

.artender-commerce-step.is-active .artender-commerce-step-number {
    border-color: var(--artender-primary-color, #f50000);
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    box-shadow:
        0 7px 18px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18),
        inset 0 0 0 4px var(--artender-primary-color, #f50000);
}

.artender-commerce-step.is-done .artender-commerce-step-number {
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.22);
    background: #ffffff;
    color: var(--artender-primary-color, #f50000);
}

.artender-commerce-step[aria-current="step"] .artender-commerce-step-label {
    font-weight: 800;
}

.artender-commerce-top-steps > .artender-commerce-steps {
    margin-top: 0;
}

.artender-cart-page,
.artender-checkout-flow {
    padding-top: 4px;
}

@media (max-width: 767px) {
    .artender-commerce-top-steps {
        width: 100%;
        margin-top: 8px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .artender-commerce-steps {
        width: 100%;
        margin-bottom: 24px;
        padding: 2px 2px 0;
    }

    .artender-commerce-steps::before {
        top: 23px;
        left: 12.5%;
        right: 12.5%;
        height: 1px;
    }

    .artender-commerce-step {
        gap: 7px;
    }

    .artender-commerce-step-number {
        width: 42px;
        height: 42px;
        font-size: 13px;
        box-shadow:
            0 2px 7px rgba(15, 23, 42, 0.03),
            inset 0 0 0 3px #ffffff;
    }

    .artender-commerce-step.is-active .artender-commerce-step-number {
        box-shadow:
            0 6px 16px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.16),
            inset 0 0 0 3px var(--artender-primary-color, #f50000);
    }

    .artender-commerce-step-label {
        max-width: 84px;
        font-size: 10.8px;
        line-height: 1.45;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    .artender-commerce-step-number {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .artender-commerce-steps::before {
        top: 21px;
    }

    .artender-commerce-step-label {
        font-size: 10px;
    }
}

/* ----------------------
/ Shared cards
/ -------------------- */
.artender-cart-item,
.artender-cart-coupon-card,
.artender-cart-summary-card,
.artender-cart-empty-card,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
    border: 1px solid var(--artender-commerce-border);
    border-radius: var(--artender-commerce-radius);
    background: #ffffff;
    box-shadow: var(--artender-commerce-shadow);
}

.artender-cart-form {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.artender-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ----------------------
/ Product card: image + qty on left, product data on right
/ -------------------- */
.artender-cart-item {
    min-height: 245px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    direction: ltr;
}

.artender-cart-item-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    direction: ltr;
}

.artender-cart-item-media {
    width: 100%;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

.artender-cart-item-media a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artender-cart-product-image,
.artender-cart-item-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
}

.artender-cart-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

.artender-cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.artender-cart-item-title {
    min-width: 0;
    color: #17191d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.9;
}

.artender-cart-item-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.artender-cart-remove {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--artender-primary-color, #f50000) !important;
    transition: background 160ms ease, transform 160ms ease;
}

.artender-cart-remove:hover {
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055);
}

.artender-cart-remove:active {
    transform: scale(0.96);
}

.artender-cart-remove svg {
    width: 22px;
    height: 22px;
}

.artender-cart-item .variation {
    margin: 10px 0 0;
    color: #737b87;
    font-size: 12px;
    line-height: 1.8;
}

.artender-cart-item-price {
    margin-top: auto;
    padding-top: 18px;
    color: #16181c;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.55;
    text-align: right;
}

.artender-cart-item-price .woocommerce-Price-currencySymbol {
    margin-right: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Quantity */
.artender-cart-quantity {
    width: 100%;
    height: 48px;
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.artender-cart-quantity .quantity {
    width: 100%;
    height: 46px;
    margin: 0 !important;
}

.artender-cart-quantity input.qty {
    width: 100% !important;
    height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #eef0f3 !important;
    border-left: 1px solid #eef0f3 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: center !important;
    -moz-appearance: textfield;
}

.artender-cart-quantity input.qty::-webkit-inner-spin-button,
.artender-cart-quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.artender-cart-qty-button {
    width: 100%;
    height: 46px;
    padding: 0;
    border: 0;
    background: #ffffff;
    color: #1f2937;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.artender-cart-qty-button:hover {
    color: var(--artender-primary-color, #f50000);
    background: var(--artender-commerce-soft);
}


/* ----------------------
/ WooCommerce Cart Block - product card
/ Stable layout for the active WooCommerce Cart Block.
/ Image: right | content: left | price: full-width bottom.
/ Quantity: right | remove: left.
/ -------------------- */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: transparent !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items thead {
    display: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items tbody {
    width: 100% !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 118px !important;
    grid-template-areas:
        "product image"
        "total total" !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    margin: 0 0 12px !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045) !important;
    direction: ltr !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row > td {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

/* Product image always stays on the physical right side. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
    grid-area: image !important;
    position: static !important;
    inset: auto !important;
    align-self: start !important;
    justify-self: end !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 118px !important;
    min-height: 118px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.15) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 6px !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Text/content area beside the image. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product {
    grid-area: product !important;
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
    direction: rtl !important;
    text-align: right !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 118px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #17191d !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.75 !important;
    text-align: right !important;
    text-decoration: none !important;
    white-space: normal !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-metadata,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details {
    position: static !important;
    width: 100% !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #7b8491 !important;
    font-size: 10.5px !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

/* Woo adds a small price next to the title. It is intentionally hidden here. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__prices,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product > .wc-block-components-product-price,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__wrap > .wc-block-components-product-price,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__wrap > .price {
    display: none !important;
}

/* Bottom controls inside the content area. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: auto 0 0 !important;
    padding: 8px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    direction: rtl !important;
}

/* Quantity selector: right. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    order: 1 !important;
    flex: 0 0 108px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 34px 40px 34px !important;
    align-items: center !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    direction: ltr !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector::after {
    display: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    position: static !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    text-align: center !important;
    box-shadow: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
    position: static !important;
    inset: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #333943 !important;
    box-shadow: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button:hover {
    color: var(--artender-primary-color, #f50000) !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.04) !important;
}

/* Remove button: left. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
    order: 2 !important;
    flex: 0 0 72px !important;
    min-width: 72px !important;
    width: 72px !important;
    max-width: 72px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.16) !important;
    border-radius: 9px !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.035) !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link::before {
    content: "حذف";
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.075) !important;
}

/* Final price: a clean full-width row at the bottom of the card. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
    grid-area: total !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 0 !important;
    border-top: 1px solid #edf0f3 !important;
    background: transparent !important;
    direction: rtl !important;
    text-align: right !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total::before {
    content: "قیمت" !important;
    flex: 0 0 auto;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    color: #6f7782 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    position: static !important;
    inset: auto !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 1px !important;
    direction: rtl !important;
    text-align: left !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    text-align: left !important;
    white-space: normal !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__regular,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total del {
    color: #9ba2ad !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items {
        border-spacing: 0 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 86px !important;
        grid-template-areas:
            "product image"
            "total total" !important;
        column-gap: 10px !important;
        row-gap: 10px !important;
        padding: 11px !important;
        border-radius: 15px !important;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035) !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 86px !important;
        min-height: 86px !important;
        border-radius: 11px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image img {
        padding: 4px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
        min-height: 86px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
        margin-bottom: 3px !important;
        font-size: 11.3px !important;
        line-height: 1.65 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-metadata,
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details {
        margin-bottom: 3px !important;
        font-size: 9.3px !important;
        line-height: 1.55 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
        padding-top: 6px !important;
        gap: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
        flex-basis: 92px !important;
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        height: 34px !important;
        grid-template-columns: 29px 34px 29px !important;
        border-radius: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 32px !important;
        min-height: 32px !important;
        line-height: 32px !important;
        font-size: 11px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
        width: 29px !important;
        min-width: 29px !important;
        max-width: 29px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
        flex-basis: 58px !important;
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        min-height: 32px !important;
        padding: 0 7px !important;
        border-radius: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link::before {
        font-size: 9.5px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
        min-height: 38px !important;
        padding-top: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total::before {
        font-size: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 12.8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__regular,
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total del {
        font-size: 9.5px !important;
    }
}

@media (max-width: 380px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 78px !important;
        column-gap: 8px !important;
        padding: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
        min-height: 78px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
        font-size: 10.5px !important;
        line-height: 1.6 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
        flex-basis: 86px !important;
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        grid-template-columns: 27px 32px 27px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
        width: 27px !important;
        min-width: 27px !important;
        max-width: 27px !important;
    }
}

/* ----------------------
/ Coupon
/ -------------------- */
.artender-cart-coupon-card {
    margin-top: 18px;
    padding: 20px 22px;
}

.artender-cart-coupon-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    direction: rtl;
}

.artender-cart-coupon-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #20242a;
}

.artender-cart-coupon-icon svg {
    width: 28px;
    height: 28px;
}

.artender-cart-coupon-title {
    color: #343941;
    font-size: 15px;
    font-weight: 700;
}

.artender-cart-coupon-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 10px;
    direction: rtl;
}

.artender-cart-coupon-fields input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    text-align: right;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.artender-cart-coupon-fields input::placeholder {
    color: #a0a6b0;
}

.artender-cart-coupon-fields input:focus {
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.42);
    box-shadow: 0 0 0 3px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055);
}

.artender-cart-coupon-button,
.artender-cart-next-button,
.artender-checkout-step-button {
    border: 1px solid var(--artender-primary-color, #f50000) !important;
    border-radius: 12px !important;
    background: var(--artender-primary-color, #f50000) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12) !important;
}

.artender-cart-coupon-button {
    height: 48px;
    padding: 0 18px !important;
}

.artender-cart-update-button {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

/* ----------------------
/ Summary
/ -------------------- */
.artender-cart-summary-card {
    margin-top: 18px;
    overflow: hidden;
}

.artender-cart-summary-row {
    min-height: 64px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef0f3;
    color: #3f4650;
    font-size: 14px;
}

.artender-cart-summary-row strong {
    color: #20242a;
    font-size: 15px;
    font-weight: 800;
}

.artender-cart-summary-row--discount strong {
    color: #159447;
}

.artender-cart-summary-bottom {
    min-height: 104px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 18px;
    direction: rtl;
}

.artender-cart-summary-total {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: right;
}

.artender-cart-summary-total > span {
    color: #303641;
    font-size: 14px;
    font-weight: 700;
}

.artender-cart-summary-total > strong {
    color: var(--artender-primary-color, #f50000);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
}

.artender-cart-summary-total > small {
    color: #969daa;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
}

.artender-cart-next-button {
    min-height: 50px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
}

.artender-cart-next-button svg,
.artender-checkout-step-button svg {
    width: 17px;
    height: 17px;
}

/* ----------------------
/ Empty cart
/ -------------------- */
.artender-cart-empty-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 20px;
    text-align: center;
}

.artender-cart-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--artender-commerce-soft);
    color: var(--artender-primary-color, #f50000);
}

.artender-cart-empty-icon svg {
    width: 34px;
    height: 34px;
}

.artender-cart-empty-title {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.artender-cart-empty-card p {
    margin: 8px 0 16px;
    color: #667085;
    font-size: 13px;
    line-height: 1.9;
}

.artender-cart-empty-card a {
    min-height: 44px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
}

/* ----------------------
/ Checkout: same visual language
/ -------------------- */
.artender-checkout-flow {
    margin-top: 16px;
    margin-bottom: 0;
}

.woocommerce-checkout form.checkout {
    margin-top: 0;
    margin-bottom: 36px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    width: 100%;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
    padding: 22px;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review[hidden],
.woocommerce-checkout #customer_details[hidden] {
    display: none !important;
}

body.artender-checkout-screen:not(.artender-checkout-step-payment) .woocommerce-checkout #order_review,
body.artender-checkout-screen:not(.artender-checkout-step-payment) .woocommerce-checkout #order_review_heading,
body.artender-checkout-step-payment .woocommerce-checkout #customer_details,
body.artender-checkout-step-payment .artender-checkout-step-actions--customer {
    display: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.woocommerce-checkout .form-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    color: #3e4652;
    font-size: 12px;
    font-weight: 700;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
    min-height: 46px !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 11px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.woocommerce-checkout .input-text {
    padding: 0 13px !important;
}

.woocommerce-checkout textarea.input-text {
    min-height: 100px !important;
    padding-top: 10px !important;
}

.woocommerce-checkout .woocommerce-invalid .input-text,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: var(--artender-primary-color, #f50000) !important;
    box-shadow: 0 0 0 3px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.05) !important;
}

.artender-checkout-step-actions {
    margin-top: 14px;
}

.artender-checkout-step-button {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
}

.artender-checkout-back-button {
    width: 100%;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.16);
    border-radius: 11px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.035);
    color: var(--artender-primary-color, #f50000);
    font-size: 12px;
    font-weight: 800;
}

.artender-checkout-back-button svg {
    width: 16px;
    height: 16px;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout-payment {
    border-radius: 13px !important;
    overflow: hidden;
}

.woocommerce-checkout #payment {
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.022) !important;
}

.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 50px;
    border-radius: 12px !important;
    background: var(--artender-primary-color, #f50000) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* Bottom mobile nav must stay fixed on commerce pages. */
@media (max-width: 768px) {
    body.artender-commerce-page {
        padding-bottom: 94px !important;
    }

    body.artender-commerce-page .artender-mobile-bottom-menu {
        position: fixed !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 8px !important;
        z-index: 999999 !important;
    }

    .artender-cart-page,
    .artender-checkout-flow,
    .woocommerce-checkout form.checkout {
        width: 100%;
        max-width: none;
    }

    .artender-cart-page,
    .artender-checkout-flow {
        margin-top: 10px;
    }

    .artender-commerce-steps {
        width: 100%;
        margin-bottom: 26px;
    }

    .artender-commerce-steps::before {
        top: 22px;
    }

    .artender-commerce-step {
        gap: 7px;
    }

    .artender-commerce-step-number {
        width: 44px;
        height: 44px;
        font-size: 13px;
    }

    .artender-commerce-step-label {
        font-size: 10.5px;
        line-height: 1.45;
    }

    .artender-cart-items {
        gap: 12px;
    }

    .artender-cart-item {
        min-height: 205px;
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px;
        padding: 15px;
        border-radius: 18px;
    }

    .artender-cart-item-left {
        gap: 9px;
    }

    .artender-cart-item-media {
        height: 128px;
        border-radius: 11px;
    }

    .artender-cart-item-title {
        font-size: 13px;
        line-height: 1.85;
    }

    .artender-cart-remove {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        border-radius: 8px;
    }

    .artender-cart-remove svg {
        width: 19px;
        height: 19px;
    }

    .artender-cart-item .variation {
        margin-top: 6px;
        font-size: 10.5px;
    }

    .artender-cart-item-price {
        padding-top: 12px;
        font-size: 14px;
    }

    .artender-cart-quantity {
        height: 40px;
        border-radius: 10px;
    }

    .artender-cart-quantity .quantity,
    .artender-cart-quantity input.qty,
    .artender-cart-qty-button {
        height: 38px !important;
    }

    .artender-cart-quantity input.qty {
        font-size: 13px !important;
    }

    .artender-cart-qty-button {
        font-size: 21px;
    }

    .artender-cart-coupon-card,
    .artender-cart-summary-card {
        margin-top: 12px;
        border-radius: 18px;
    }

    .artender-cart-coupon-card {
        padding: 15px;
    }

    .artender-cart-coupon-head {
        margin-bottom: 11px;
        gap: 7px;
    }

    .artender-cart-coupon-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .artender-cart-coupon-icon svg {
        width: 24px;
        height: 24px;
    }

    .artender-cart-coupon-title {
        font-size: 12.5px;
    }

    .artender-cart-coupon-fields {
        grid-template-columns: minmax(0, 1fr) 84px;
        gap: 7px;
    }

    .artender-cart-coupon-fields input,
    .artender-cart-coupon-button {
        height: 42px;
    }

    .artender-cart-coupon-fields input {
        padding: 0 11px;
        font-size: 11px;
        border-radius: 10px;
    }

    .artender-cart-coupon-button {
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }

    .artender-cart-summary-row {
        min-height: 56px;
        padding: 13px 16px;
        font-size: 12px;
    }

    .artender-cart-summary-row strong {
        font-size: 12.5px;
    }

    .artender-cart-summary-bottom {
        min-height: 92px;
        padding: 14px 16px;
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 11px;
    }

    .artender-cart-summary-total > span {
        font-size: 12.5px;
    }

    .artender-cart-summary-total > strong {
        font-size: 16px;
    }

    .artender-cart-summary-total > small {
        font-size: 8.5px;
    }

    .artender-cart-next-button {
        min-height: 46px;
        padding: 8px 10px;
        border-radius: 11px !important;
        font-size: 12.5px;
    }

    .woocommerce-checkout .col2-set,
    .woocommerce-checkout #order_review {
        padding: 14px;
        border-radius: 18px;
    }

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .woocommerce-checkout .input-text,
    .woocommerce-checkout select,
    .woocommerce-checkout .select2-selection {
        min-height: 43px !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 390px) {
    .artender-cart-item {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 11px;
        padding: 12px;
    }

    .artender-cart-item-media {
        height: 112px;
    }

    .artender-cart-item-title {
        font-size: 11.7px;
    }

    .artender-cart-item-price {
        font-size: 12.6px;
    }

    .artender-cart-summary-bottom {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }
}

/* ==========================================================
   WooCommerce Cart Block - Product Items v3
   Scope: cart product items only.
   ========================================================== */

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items-block {
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.12) !important;
    border-radius: 18px !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.018) !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items-block::before {
    content: "اقلام سبد خرید";
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 2px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items {
    border-spacing: 0 10px !important;
}

/* Main product card: image + title + price in one bordered white box */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    grid-template-areas:
        "product image"
        "total total" !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.34) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 104px !important;
    min-height: 104px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.22) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image img {
    padding: 5px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
    min-height: 104px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
    margin: 0 !important;
    color: #15171b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

/* Hide unwanted metadata such as camera type */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-metadata,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details__name,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details__value {
    display: none !important;
}

/* Hide WooCommerce sale/saving helper text */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-sale-badge,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-badge,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-price__regular,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total del {
    display: none !important;
}

/* Price: full width at the bottom of the product card */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
    min-height: 42px !important;
    padding: 9px 2px 0 !important;
    border-top: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.10) !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total::before {
    content: none !important;
    display: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    width: 100% !important;
    flex: 1 1 100% !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
    width: 100% !important;
    justify-content: flex-start !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

/* Compact controls box: quantity on the right, remove on the left */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
    width: fit-content !important;
    max-width: 100% !important;
    margin: auto 0 0 auto !important;
    padding: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14) !important;
    border-radius: 11px !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025) !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    order: 1 !important;
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 34px !important;
    grid-template-columns: 29px 36px 29px !important;
    border: 1px solid #e1e5ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 32px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 32px !important;
    min-height: 32px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
    order: 2 !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 34px !important;
    padding: 0 7px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.20) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: var(--artender-primary-color, #f50000) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link::before {
    content: "حذف";
    font-size: 10px !important;
    font-weight: 800 !important;
}

@media (max-width: 767px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items-block {
        margin-top: 10px !important;
        padding: 9px !important;
        border-radius: 16px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items-block::before {
        margin-bottom: 8px;
        font-size: 13.5px;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 82px !important;
        column-gap: 9px !important;
        row-gap: 7px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 82px !important;
        min-height: 82px !important;
        border-radius: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
        min-height: 82px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
        font-size: 11.2px !important;
        line-height: 1.7 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
        margin-top: 7px !important;
        padding: 3px !important;
        gap: 5px !important;
        border-radius: 9px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
        flex-basis: 88px !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 32px !important;
        grid-template-columns: 27px 34px 27px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 30px !important;
        min-height: 30px !important;
        line-height: 30px !important;
        font-size: 11px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
        width: 27px !important;
        min-width: 27px !important;
        max-width: 27px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
        flex-basis: 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        min-height: 32px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
        min-height: 36px !important;
        padding-top: 7px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 13.5px !important;
    }
}

@media (max-width: 380px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 76px !important;
        column-gap: 8px !important;
        padding: 9px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 76px !important;
        min-height: 76px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
        min-height: 76px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
        font-size: 10.6px !important;
    }
}

/* ==========================================================
   WooCommerce Cart Block - Product Items v4
   Layout:
   1) image + full title
   2) full-width price box
   3) full-width quantity/remove controls box
   ========================================================== */

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 104px !important;
    grid-template-areas:
        "product-title product-image"
        "product-price product-price"
        "product-controls product-controls" !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: start !important;
    padding: 12px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.34) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
}

/* Flatten WooCommerce inner wrappers so title / price / controls can be placed cleanly. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__wrap {
    display: contents !important;
}

/* Product image - right side */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
    grid-area: product-image !important;
    align-self: start !important;
    justify-self: end !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 104px !important;
    min-height: 104px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.30) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

/* Full title - beside the image */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
    grid-area: product-title !important;
    align-self: start !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.85 !important;
    text-align: right !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
}

/* Price directly below title/image, full width, inside its own bordered box. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
    grid-area: product-price !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14) !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.34) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* Quantity + delete - separate full-width compact box. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
    grid-area: product-controls !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 32%) !important;
    gap: 7px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14) !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    direction: rtl !important;
}

/* Quantity takes the larger right side. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    display: grid !important;
    grid-template-columns: 38px minmax(46px, 1fr) 38px !important;
    border: 1px solid #dfe4ea !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #111827 !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    text-align: center !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    color: var(--artender-primary-color, #f50000) !important;
    background: transparent !important;
}

/* Delete takes the smaller left side, but is no longer tiny. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.24) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* Keep metadata/helper texts hidden. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-metadata,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-details,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-price__regular,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total del,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-sale-badge,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-badge {
    display: none !important;
}

@media (max-width: 767px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 86px !important;
        column-gap: 9px !important;
        row-gap: 9px !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 86px !important;
        min-height: 86px !important;
        border-radius: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-product-name {
        margin-top: 0 !important;
        font-size: 11.3px !important;
        line-height: 1.75 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total {
        min-height: 46px !important;
        padding: 5px !important;
        border-radius: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
        min-height: 36px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 13.5px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
        min-height: 46px !important;
        grid-template-columns: minmax(0, 1fr) 86px !important;
        gap: 6px !important;
        padding: 5px !important;
        border-radius: 10px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
        height: 36px !important;
        grid-template-columns: 34px minmax(42px, 1fr) 34px !important;
        border-radius: 8px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
        height: 34px !important;
        min-height: 34px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 380px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: minmax(0, 1fr) 78px !important;
        column-gap: 8px !important;
        padding: 9px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__image {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
        grid-template-columns: minmax(0, 1fr) 78px !important;
    }
}


/* ==========================================================
   WooCommerce Cart Block - Coupon / Total / Next Step v1
   Scope: cart summary only.
   ========================================================== */

/* Static coupon box */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon {
    width: 100% !important;
    margin: 12px 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon::before {
    content: "کد تخفیف دارید؟";
    display: block;
    width: 100%;
    margin: 0 0 9px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
    display: none !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__content {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon form,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-totals-coupon__form {
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px !important;
    gap: 8px !important;
    align-items: center !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input input {
    width: 100% !important;
    min-width: 0 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input {
    margin: 0 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #dfe4ea !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: right !important;
    direction: rtl !important;
    opacity: 1 !important;
    cursor: default !important;
    -webkit-text-fill-color: #6b7280 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button {
    width: 88px !important;
    min-width: 88px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--artender-primary-color, #f50000) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Coupon is deliberately visual-only. */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon input:disabled,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon button:disabled {
    opacity: 1 !important;
}

/* Remove shipping row (including "Free shipping"). */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-shipping,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-shipping__change-address__link {
    display: none !important;
}

/* Order total card */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
    width: 100% !important;
    min-height: 58px !important;
    margin: 12px 0 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035) !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: right !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    margin: 0 !important;
    color: var(--artender-primary-color, #f50000) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    direction: rtl !important;
}

/* Next step button */
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit-container,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit-button {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--artender-primary-color, #f50000) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit-button:focus {
    color: #ffffff !important;
    opacity: 0.94;
}

@media (max-width: 767px) {
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon {
        margin-top: 10px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon::before {
        margin-bottom: 8px;
        font-size: 12.5px;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon form,
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-totals-coupon__form {
        grid-template-columns: minmax(0, 1fr) 76px !important;
        gap: 7px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon input,
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button {
        height: 40px !important;
        min-height: 40px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button {
        width: 76px !important;
        min-width: 76px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
        min-height: 54px !important;
        margin-top: 10px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
        font-size: 13px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 14px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart .wc-block-cart__submit-button {
        min-height: 46px !important;
        border-radius: 10px !important;
        font-size: 12.5px !important;
    }
}

/* ==========================================================
   Cart Summary v2
   - Fix coupon placeholder/label overlap.
   - Keep order total + next button fixed just above mobile bottom nav.
   ========================================================== */

/* WooCommerce floating label was overlapping our static placeholder. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon
.wc-block-components-text-input label,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon
.wc-block-components-text-input__label {
    display: none !important;
    visibility: hidden !important;
}

/* Normalize the disabled static input so its placeholder stays vertically centered. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon
.wc-block-components-text-input {
    position: relative !important;
    min-height: 42px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon input {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 0 13px !important;
    line-height: 40px !important;
}

.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon input::placeholder {
    color: #8b93a1 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-align: right !important;
    opacity: 1 !important;
}

/* Mobile sticky order summary sits immediately above the fixed bottom navigation. */
@media (max-width: 768px) {
    body.artender-commerce-page {
        padding-bottom: 214px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-components-totals-footer-item {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 142px !important;
        z-index: 999980 !important;
        width: auto !important;
        min-height: 54px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.16) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 7px 24px rgba(15, 23, 42, 0.09) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-cart__submit-container,
    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-cart__submit {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 88px !important;
        z-index: 999981 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-cart__submit-button {
        min-height: 46px !important;
        border-radius: 11px !important;
        box-shadow: 0 8px 22px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.18) !important;
    }
}

@media (max-width: 380px) {
    body.artender-commerce-page {
        padding-bottom: 208px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-components-totals-footer-item {
        right: 8px !important;
        left: 8px !important;
        bottom: 138px !important;
    }

    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-cart__submit-container,
    .artender-commerce-page .wp-block-woocommerce-cart
    .wc-block-cart__submit {
        right: 8px !important;
        left: 8px !important;
        bottom: 86px !important;
    }
}

/* ==========================================================
   Cart Summary v4
   Functional coupon + persistent validation message.
   ========================================================== */

/* Never hide the coupon wrapper after WooCommerce rerenders it. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon .wc-block-components-panel__content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

/* Hide only the unwanted WooCommerce rows instead of hiding generic wrappers. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-shipping,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-shipping__change-address__link,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-item__description {
    display: none !important;
}

/* Remove stray separator lines without removing the coupon itself. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-cart__totals,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-cart__totals .wc-block-components-totals-wrapper {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-wrapper:empty {
    display: none !important;
}

/* Working coupon field. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon input {
    cursor: text !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon input:focus {
    outline: none !important;
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.48) !important;
    box-shadow: 0 0 0 3px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.07) !important;
}

.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon button[type="submit"],
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon .wc-block-components-button {
    cursor: pointer !important;
}

/* Persistent Persian error below the coupon form. */
.artender-commerce-page .wp-block-woocommerce-cart
.artender-coupon-error {
    width: 100%;
    margin: 8px 0 0;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(var(--artender-primary-rgb, 245, 0, 0), 0.24);
    border-radius: 9px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055);
    color: var(--artender-primary-color, #f50000);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.75;
    text-align: right;
    direction: rtl;
}

.artender-commerce-page .wp-block-woocommerce-cart
.artender-coupon-error[hidden] {
    display: none !important;
}

/* Keep native Woo error available for JS, but don't duplicate it visually. */
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon.has-artender-coupon-error
.wc-block-components-validation-error,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon.has-artender-coupon-error
.wc-block-components-notice-banner.is-error,
.artender-commerce-page .wp-block-woocommerce-cart
.wc-block-components-totals-coupon.has-artender-coupon-error
.wc-block-components-error {
    display: none !important;
}

@media (max-width: 767px) {
    .artender-commerce-page .wp-block-woocommerce-cart
    .artender-coupon-error {
        margin-top: 7px;
        padding: 7px 9px;
        border-radius: 8px;
        font-size: 10.8px;
    }
}

/* ==========================================================
   Checkout customer information v1
   ========================================================== */
body.artender-checkout-screen {
    --artender-checkout-card-border: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.14);
    --artender-checkout-card-soft: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025);
}

/* Customer cards shared by Classic Checkout and Checkout Block. */
.artender-checkout-customer-card,
.woocommerce-checkout .woocommerce-billing-fields,
.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-card {
    width: 100%;
    margin: 0 0 12px;
    padding: 13px;
    box-sizing: border-box;
    border: 1px solid var(--artender-checkout-card-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.artender-checkout-group-title,
.artender-block-customer-title {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    padding: 0 1px 7px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
}

.artender-checkout-group-title::after,
.artender-block-customer-title::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 3px;
    margin-right: 7px;
    border-radius: 999px;
    vertical-align: middle;
    background: var(--artender-primary-color, #f50000);
}

/* ---------- Classic Checkout ---------- */
.woocommerce-checkout .woocommerce-billing-fields > div:first-child:not(.woocommerce-billing-fields__field-wrapper) {
    display: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.woocommerce-checkout #billing_first_name_field { order: 10; }
.woocommerce-checkout #billing_last_name_field  { order: 20; }
.woocommerce-checkout #billing_phone_field      { order: 30; }
.woocommerce-checkout #billing_email_field      { order: 40; }
.woocommerce-checkout .artender-checkout-shipping-title { order: 45; }
.woocommerce-checkout #billing_state_field      { order: 50; }
.woocommerce-checkout #billing_city_field       { order: 60; }
.woocommerce-checkout #billing_address_1_field  { order: 70; grid-column: 1 / -1; }
.woocommerce-checkout #billing_postcode_field   { order: 80; }
.woocommerce-checkout #billing_landline_field   { order: 90; }

.woocommerce-checkout .artender-checkout-personal-title {
    order: 1;
}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

.woocommerce-checkout .form-row label,
.artender-commerce-page .wp-block-woocommerce-checkout label {
    margin-bottom: 5px !important;
    color: #4b5563 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: right !important;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection,
.artender-commerce-page .wp-block-woocommerce-checkout input,
.artender-commerce-page .wp-block-woocommerce-checkout select,
.artender-commerce-page .wp-block-woocommerce-checkout .wc-block-components-combobox-control input {
    min-height: 43px !important;
    border: 1px solid #dde3ea !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 12px !important;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.artender-commerce-page .wp-block-woocommerce-checkout input:focus,
.artender-commerce-page .wp-block-woocommerce-checkout select:focus {
    outline: none !important;
    border-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.42) !important;
    box-shadow: 0 0 0 3px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055) !important;
}

/* ---------- WooCommerce Checkout Block ---------- */
.artender-commerce-page .wp-block-woocommerce-checkout {
    width: min(100%, 760px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    direction: rtl !important;
}

.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-layout {
    width: 100%;
    margin: 0 0 12px;
}

.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-field--full {
    grid-column: 1 / -1 !important;
}

.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-source-hidden {
    display: none !important;
}

.artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-grid > * {
    min-width: 0;
    margin: 0 !important;
}

/* Fixed continue bar immediately above the site's fixed bottom navigation. */
.artender-checkout-customer-continue {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 88px;
    z-index: 999982;
    width: auto;
    padding: 0;
    pointer-events: none;
}

.artender-checkout-customer-continue button {
    width: min(100%, 740px);
    min-height: 46px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: var(--artender-primary-color, #f50000);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.19);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
}

body.artender-checkout-screen.artender-checkout-customer-stage {
    padding-bottom: 152px !important;
}

/* Avoid duplicate classic bottom action; the fixed bar is the active CTA. */
body.artender-checkout-customer-stage .artender-checkout-step-actions--customer {
    display: none !important;
}

/* Customer stage: keep later Block checkout sections out of the way until Continue. */
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout .wc-block-checkout__shipping-option,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout .wc-block-checkout__payment-method,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout .wc-block-checkout__actions,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout .wc-block-checkout__order-notes,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout .wc-block-checkout__terms {
    display: none !important;
}

body.artender-checkout-step-shipping .artender-block-customer-layout,
body.artender-checkout-step-shipping .artender-checkout-customer-continue {
    display: none !important;
}

@media (max-width: 767px) {
    .artender-checkout-customer-card,
    .woocommerce-checkout .woocommerce-billing-fields,
    .artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-card {
        padding: 10px;
        border-radius: 13px;
    }

    .artender-checkout-group-title,
    .artender-block-customer-title {
        padding-bottom: 6px;
        font-size: 12.5px;
    }

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .woocommerce-checkout .form-row label,
    .artender-commerce-page .wp-block-woocommerce-checkout label {
        font-size: 10.5px !important;
    }

    .woocommerce-checkout .input-text,
    .woocommerce-checkout select,
    .woocommerce-checkout .select2-selection,
    .artender-commerce-page .wp-block-woocommerce-checkout input,
    .artender-commerce-page .wp-block-woocommerce-checkout select,
    .artender-commerce-page .wp-block-woocommerce-checkout .wc-block-components-combobox-control input {
        min-height: 40px !important;
        font-size: 11px !important;
    }

    .artender-checkout-customer-continue {
        right: 8px;
        left: 8px;
        bottom: 86px;
    }

    .artender-checkout-customer-continue button {
        min-height: 44px;
        border-radius: 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .artender-commerce-page .wp-block-woocommerce-checkout .artender-block-customer-grid {
        gap: 6px !important;
    }

    .artender-checkout-customer-continue {
        bottom: 84px;
    }
}

/* ==========================================================
   Checkout customer v2
   One clean label per field + no duplicate source sections.
   ========================================================== */

body.artender-checkout-customer-stage .artender-block-source-hidden,
body.artender-checkout-customer-stage .artender-customer-stage-hidden,
body.artender-checkout-customer-stage .wc-block-checkout__sidebar,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout-order-summary-block,
body.artender-checkout-customer-stage .wc-block-components-order-summary,
body.artender-checkout-customer-stage .wc-block-checkout__shipping-fields:not(.artender-block-customer-field),
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout-shipping-address-block,
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout-billing-address-block {
    display: none !important;
}

/* Remove old checkout block headings such as "آدرس حمل و نقل". */
body.artender-checkout-customer-stage
.wp-block-woocommerce-checkout-shipping-address-block > *,
body.artender-checkout-customer-stage
.wp-block-woocommerce-checkout-billing-address-block > * {
    display: none !important;
}

/* Keep the custom customer layout as the only visible form area. */
body.artender-checkout-customer-stage .artender-block-customer-layout {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Field boxes: one label, one value. */
body.artender-checkout-customer-stage .artender-block-customer-field {
    position: relative !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 7px 10px 6px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field label.artender-customer-field-label,
body.artender-checkout-customer-stage
.artender-block-customer-field > label:first-of-type {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    transform: none !important;
    color: #667085 !important;
    background: transparent !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: right !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* Hide duplicate labels generated inside block inputs/comboboxes. */
body.artender-checkout-customer-stage
.artender-block-customer-field label[hidden],
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-text-input__label[aria-hidden="true"] {
    display: none !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field input,
body.artender-checkout-customer-stage
.artender-block-customer-field textarea,
body.artender-checkout-customer-stage
.artender-block-customer-field select,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-select__select {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    text-align: right !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field input::placeholder,
body.artender-checkout-customer-stage
.artender-block-customer-field textarea::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Classic checkout gets the same one-label rule. */
body.artender-checkout-customer-stage
.woocommerce-checkout #customer_details .form-row label {
    margin: 0 0 5px !important;
    color: #667085 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
}

body.artender-checkout-customer-stage
.woocommerce-checkout #customer_details input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Prevent the hidden order summary from reserving a second column. */
body.artender-checkout-customer-stage .wp-block-woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.artender-checkout-customer-stage .wc-block-checkout__main {
    width: 100% !important;
    max-width: none !important;
}

/* The custom form is the only customer-information section. */
body.artender-checkout-customer-stage
.artender-block-customer-layout + .wc-block-checkout__contact-fields,
body.artender-checkout-customer-stage
.artender-block-customer-layout ~ .wc-block-checkout__shipping-fields,
body.artender-checkout-customer-stage
.artender-block-customer-layout ~ .wc-block-checkout__billing-fields {
    display: none !important;
}

@media (max-width: 767px) {
    body.artender-checkout-customer-stage .artender-block-customer-field {
        min-height: 54px !important;
        padding: 6px 9px 5px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field label.artender-customer-field-label,
    body.artender-checkout-customer-stage
    .artender-block-customer-field > label:first-of-type {
        margin-bottom: 3px !important;
        font-size: 9.8px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field textarea,
    body.artender-checkout-customer-stage
    .artender-block-customer-field select,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-combobox-control__input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-select__select {
        height: 29px !important;
        min-height: 29px !important;
        font-size: 11.5px !important;
        line-height: 29px !important;
    }
}

/* ==========================================================
   Checkout customer v3
   Compact viewport-fit form + validation states.
   ========================================================== */

/* Required / optional text next to each field label. */
body.artender-checkout-customer-stage
.artender-customer-field-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement {
    flex: 0 0 auto;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1;
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement.is-required {
    color: var(--artender-primary-color, #f50000);
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement.is-optional {
    color: #98a2b3;
}

/* Correctly completed field = green border. */
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid {
    border-color: #22a85a !important;
    box-shadow: 0 0 0 1px rgba(34, 168, 90, 0.08) !important;
    background: rgba(34, 168, 90, 0.018) !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid {
    border-color: var(--artender-primary-color, #f50000) !important;
    box-shadow: 0 0 0 1px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.08) !important;
}

/* Landline helper text. */
body.artender-checkout-customer-stage
.artender-customer-field-helper {
    display: block;
    width: 100%;
    margin-top: 2px;
    color: #8a93a1;
    font-size: 8.6px;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
    direction: rtl;
}

/* Large full-width fixed address field. */
body.artender-checkout-customer-stage
.artender-block-field--full {
    grid-column: 1 / -1 !important;
    min-height: 72px !important;
}

body.artender-checkout-customer-stage
.artender-address-textarea {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    resize: none !important;
    overflow-y: auto !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    line-height: 1.7 !important;
    text-align: right !important;
    direction: rtl !important;
}

body.artender-checkout-customer-stage
.artender-native-address-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* City select mirrors the province selector. */
body.artender-checkout-customer-stage
.artender-city-select {
    display: block;
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0 3px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #111827;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 30px;
    text-align: right;
    direction: rtl;
}

body.artender-checkout-customer-stage
.artender-native-city-input[hidden] {
    display: none !important;
}

body.artender-checkout-customer-stage
.artender-native-city-input.artender-other-city-active {
    display: block !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Compact stage so the entire customer form fits between stepper and Continue. */
@media (max-width: 767px) {
    html:has(body.artender-checkout-customer-stage),
    body.artender-checkout-customer-stage {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.artender-checkout-customer-stage .artender-main,
    body.artender-checkout-customer-stage .artender-page,
    body.artender-checkout-customer-stage .artender-page-content,
    body.artender-checkout-customer-stage .wc-block-checkout__main {
        overflow: visible !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-top-steps {
        margin-top: 3px !important;
        margin-bottom: 5px !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-steps {
        margin-bottom: 5px !important;
        padding-top: 0 !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-step {
        gap: 3px !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-step-number {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        font-size: 10.5px !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-steps::before {
        top: 18px !important;
    }

    body.artender-checkout-customer-stage
    .artender-commerce-step-label {
        font-size: 8.8px !important;
        line-height: 1.2 !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 8px 0 !important;
        box-sizing: border-box !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-card {
        padding: 7px !important;
        border-radius: 11px !important;
        box-shadow: none !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-title {
        margin-bottom: 5px !important;
        padding-bottom: 4px !important;
        font-size: 10.8px !important;
        line-height: 1.3 !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-grid {
        gap: 5px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field {
        min-height: 43px !important;
        padding: 4px 7px 3px !important;
        border-radius: 8px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-field--full {
        min-height: 66px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field label.artender-customer-field-label,
    body.artender-checkout-customer-stage
    .artender-block-customer-field > label:first-of-type {
        margin-bottom: 1px !important;
        font-size: 8.8px !important;
        line-height: 1.2 !important;
    }

    body.artender-checkout-customer-stage
    .artender-customer-field-requirement {
        font-size: 7.5px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field select,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-combobox-control__input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-select__select,
    body.artender-checkout-customer-stage
    .artender-city-select {
        height: 25px !important;
        min-height: 25px !important;
        font-size: 10px !important;
        line-height: 25px !important;
    }

    body.artender-checkout-customer-stage
    .artender-address-textarea {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 4px 5px !important;
        font-size: 10px !important;
        line-height: 1.55 !important;
    }

    body.artender-checkout-customer-stage
    .artender-customer-field-helper {
        margin-top: 0 !important;
        font-size: 7.3px !important;
        line-height: 1.15 !important;
    }

    body.artender-checkout-customer-stage
    .artender-checkout-customer-continue {
        right: 6px !important;
        left: 6px !important;
        bottom: 78px !important;
    }

    body.artender-checkout-customer-stage
    .artender-checkout-customer-continue button {
        min-height: 40px !important;
        padding: 6px 14px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }

    body.artender-checkout-customer-stage {
        padding-bottom: 126px !important;
    }
}

/* Let the browser scroll only when the software keyboard opens on very short viewports. */
@media (max-width: 767px) and (max-height: 560px) {
    html:has(body.artender-checkout-customer-stage),
    body.artender-checkout-customer-stage {
        overflow-y: auto !important;
    }
}

/* ==========================================================
   Checkout customer v4
   Labels above fields + clearer gray inputs + larger text.
   ========================================================== */

/*
 * The wrapper itself is no longer the visual field.
 * This keeps the guide/required text visibly ABOVE the gray input box.
 */
body.artender-checkout-customer-stage
.artender-block-customer-field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Label / guide row above each box. */
body.artender-checkout-customer-stage
.artender-block-customer-field label.artender-customer-field-label,
body.artender-checkout-customer-stage
.artender-block-customer-field > label:first-of-type {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 16px !important;
    margin: 0 0 4px !important;
    padding: 0 2px !important;
    transform: none !important;
    color: #344054 !important;
    background: transparent !important;
    font-size: 11.3px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

body.artender-checkout-customer-stage
.artender-customer-field-label-text {
    flex: 0 1 auto;
    min-width: 0;
}

/* Give required/optional text breathing room. */
body.artender-checkout-customer-stage
.artender-customer-field-requirement {
    flex: 0 0 auto !important;
    margin-inline-start: 9px !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    font-size: 8.3px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement.is-required {
    color: var(--artender-primary-color, #f50000) !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.055) !important;
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement.is-optional {
    color: #667085 !important;
    background: #f2f4f7 !important;
}

/* Helper text is part of the guide and stays above the input. */
body.artender-checkout-customer-stage
.artender-customer-field-helper {
    order: 2 !important;
    display: block !important;
    width: 100% !important;
    margin: -1px 0 4px !important;
    padding: 0 2px !important;
    color: #667085 !important;
    font-size: 9.2px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: right !important;
    direction: rtl !important;
}

/* All actual controls become clear neutral-gray boxes. */
body.artender-checkout-customer-stage
.artender-block-customer-field input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field textarea:not(.artender-native-address-input),
body.artender-checkout-customer-stage
.artender-block-customer-field select,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-city-select {
    order: 3 !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #f3f5f7 !important;
    color: #111827 !important;
    font-size: 12.4px !important;
    font-weight: 750 !important;
    line-height: 32px !important;
    text-align: right !important;
}

/* Make select/combobox wrappers visually neutral so only the gray control is seen. */
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-combobox,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-combobox-control,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-select {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Full-width address keeps its larger fixed box. */
body.artender-checkout-customer-stage
.artender-block-field--full {
    grid-column: 1 / -1 !important;
    min-height: 0 !important;
}

body.artender-checkout-customer-stage
.artender-address-textarea {
    order: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    resize: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #f3f5f7 !important;
    color: #111827 !important;
    font-size: 12.2px !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
    text-align: right !important;
    direction: rtl !important;
}

/* Green border is applied to the actual box, not the outer wrapper. */
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-city-select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-address-textarea {
    border-color: #22a85a !important;
    background: rgba(34, 168, 90, 0.035) !important;
    box-shadow: 0 0 0 1px rgba(34, 168, 90, 0.05) !important;
}

/* Invalid required field highlights the actual box. */
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.artender-city-select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.artender-address-textarea {
    border-color: var(--artender-primary-color, #f50000) !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025) !important;
}

/* Keep the layout compact enough for the fixed Continue bar. */
@media (max-width: 767px) {
    body.artender-checkout-customer-stage
    .artender-block-customer-grid {
        gap: 6px 7px !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field label.artender-customer-field-label,
    body.artender-checkout-customer-stage
    .artender-block-customer-field > label:first-of-type {
        min-height: 15px !important;
        margin-bottom: 3px !important;
        font-size: 10.6px !important;
        line-height: 1.3 !important;
    }

    body.artender-checkout-customer-stage
    .artender-customer-field-requirement {
        margin-inline-start: 8px !important;
        padding: 2px 4px !important;
        font-size: 7.8px !important;
    }

    body.artender-checkout-customer-stage
    .artender-customer-field-helper {
        margin: -1px 0 3px !important;
        font-size: 8.4px !important;
        line-height: 1.3 !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field input:not(.artender-native-address-input):not(.artender-native-city-input),
    body.artender-checkout-customer-stage
    .artender-block-customer-field select,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-combobox-control__input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-select__select,
    body.artender-checkout-customer-stage
    .artender-city-select {
        height: 31px !important;
        min-height: 31px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11.6px !important;
        line-height: 29px !important;
    }

    body.artender-checkout-customer-stage
    .artender-address-textarea {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
        font-size: 11.4px !important;
    }
}

/* ==========================================================
   Checkout customer v6
   Larger address / section titles / field typography
   ========================================================== */

body.artender-checkout-customer-stage
.artender-block-customer-title,
body.artender-checkout-customer-stage
.artender-checkout-group-title {
    font-size: 13.8px !important;
    line-height: 1.45 !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field label.artender-customer-field-label,
body.artender-checkout-customer-stage
.artender-block-customer-field > label:first-of-type {
    font-size: 11.8px !important;
    line-height: 1.4 !important;
}

body.artender-checkout-customer-stage
.artender-customer-field-requirement {
    font-size: 8.6px !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field select,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field .wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-city-select {
    font-size: 13px !important;
    font-weight: 750 !important;
}

body.artender-checkout-customer-stage
.artender-address-textarea {
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
}

@media (max-width: 767px) {
    body.artender-checkout-customer-stage
    .artender-block-customer-title,
    body.artender-checkout-customer-stage
    .artender-checkout-group-title {
        font-size: 13.8px !important;
        line-height: 1.4 !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field label.artender-customer-field-label,
    body.artender-checkout-customer-stage
    .artender-block-customer-field > label:first-of-type {
        font-size: 11.6px !important;
        line-height: 1.35 !important;
    }

    body.artender-checkout-customer-stage
    .artender-block-customer-field input:not(.artender-native-address-input):not(.artender-native-city-input),
    body.artender-checkout-customer-stage
    .artender-block-customer-field select,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-combobox-control__input,
    body.artender-checkout-customer-stage
    .artender-block-customer-field .wc-block-components-select__select,
    body.artender-checkout-customer-stage
    .artender-city-select {
        font-size: 12.6px !important;
    }

    body.artender-checkout-customer-stage
    .artender-address-textarea {
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        font-size: 12.6px !important;
        line-height: 1.7 !important;
    }
}

/* ==========================================================
   Checkout customer v7
   Hide coupon in customer stage + restore strong valid state
   ========================================================== */

/* Coupon belongs to cart stage only; never show it in customer information. */
body.artender-checkout-customer-stage
.wc-block-components-totals-coupon,
body.artender-checkout-customer-stage
.wc-block-components-totals-wrapper:has(.wc-block-components-totals-coupon),
body.artender-checkout-customer-stage
.wp-block-woocommerce-checkout-order-summary-coupon-form-block,
body.artender-checkout-customer-stage
[class*="checkout-order-summary-coupon"],
body.artender-checkout-customer-stage
[class*="totals-coupon"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Valid controls: force the actual visible control to green. */
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
textarea,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-city-select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-address-textarea {
    border: 1.5px solid #20a85a !important;
    background: rgba(32, 168, 90, 0.055) !important;
    box-shadow: 0 0 0 2px rgba(32, 168, 90, 0.065) !important;
}

body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-customer-field-label-text {
    color: #168a49 !important;
}

/* Keep invalid state above neutral but below valid state. */
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
input:not(.artender-native-address-input):not(.artender-native-city-input),
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
textarea,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.wc-block-components-combobox-control__input,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.wc-block-components-select__select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.artender-city-select,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-invalid
.artender-address-textarea {
    border-color: var(--artender-primary-color, #f50000) !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.028) !important;
    box-shadow: 0 0 0 1px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.06) !important;
}


body.artender-checkout-customer-stage .artender-customer-coupon-hidden {
    display: none !important;
}

/* ==========================================================
   Checkout customer v8
   Persian WooCommerce compatibility
   ========================================================== */

/* Classic WooCommerce / Persian WooCommerce coupon notice belongs only to cart. */
body.artender-checkout-customer-stage
.woocommerce-form-coupon-toggle,
body.artender-checkout-customer-stage
form.checkout_coupon,
body.artender-checkout-customer-stage
form.woocommerce-form-coupon,
body.artender-checkout-customer-stage
.checkout_coupon,
body.artender-checkout-customer-stage
.woocommerce-form-coupon,
body.artender-checkout-customer-stage
.woocommerce-coupon-form,
body.artender-checkout-customer-stage
[class*="coupon-toggle"],
body.artender-checkout-customer-stage
.artender-customer-coupon-hidden {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Persian WooCommerce/classic checkout: valid field must visibly turn green. */
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-valid,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-valid input:not([type="hidden"]),
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-valid select,
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-valid textarea,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid input:not([type="hidden"]),
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid select,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid textarea,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid .select2-selection,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid .select2-selection--single {
    border: 1.5px solid #20a85a !important;
    background-color: rgba(32, 168, 90, 0.055) !important;
    box-shadow: 0 0 0 2px rgba(32, 168, 90, 0.065) !important;
}

body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-valid label,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-valid label {
    color: #168a49 !important;
}

/* Invalid state stays red on the actual visible control. */
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-invalid input:not([type="hidden"]),
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-invalid select,
body.artender-checkout-customer-stage
.artender-classic-customer-field.artender-field-invalid textarea,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid input:not([type="hidden"]),
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid select,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid textarea,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid .select2-selection,
body.artender-checkout-customer-stage
.woocommerce-billing-fields .form-row.artender-field-invalid .select2-selection--single {
    border-color: var(--artender-primary-color, #f50000) !important;
    background-color: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025) !important;
}

/* ==========================================================
   Checkout customer v9
   Persian WooCommerce native province/city compatibility
   ========================================================== */

/* Old Artender city dropdown must never be used again. */
body.artender-checkout-customer-stage
.artender-city-select {
    display: none !important;
}

/* Native city/state controls stay visible and interactive. */
body.artender-checkout-customer-stage
#billing_state_field select,
body.artender-checkout-customer-stage
#billing_city_field select,
body.artender-checkout-customer-stage
#billing_city_field input,
body.artender-checkout-customer-stage
.artender-block-customer-field.wc-block-components-address-form__state select,
body.artender-checkout-customer-stage
.artender-block-customer-field.wc-block-components-address-form__city select,
body.artender-checkout-customer-stage
.artender-block-customer-field.wc-block-components-address-form__city input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Persian WooCommerce Select2 / SelectWoo wrapper. */
body.artender-checkout-customer-stage
#billing_state_field .select2-container,
body.artender-checkout-customer-stage
#billing_city_field .select2-container,
body.artender-checkout-customer-stage
.artender-native-location-ui.select2-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.artender-checkout-customer-stage
#billing_state_field .select2-selection--single,
body.artender-checkout-customer-stage
#billing_city_field .select2-selection--single,
body.artender-checkout-customer-stage
.artender-native-location-ui.select2-selection--single {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border: 1px solid #d9dee7 !important;
    border-radius: 9px !important;
    background: #f3f5f7 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.artender-checkout-customer-stage
#billing_state_field .select2-selection__rendered,
body.artender-checkout-customer-stage
#billing_city_field .select2-selection__rendered {
    width: 100% !important;
    padding: 0 0 0 22px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 32px !important;
    text-align: right !important;
    direction: rtl !important;
}

body.artender-checkout-customer-stage
#billing_state_field .select2-selection__arrow,
body.artender-checkout-customer-stage
#billing_city_field .select2-selection__arrow {
    top: 50% !important;
    right: auto !important;
    left: 7px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
}

/* Valid native state/city field -> same green border as other fields. */
body.artender-checkout-customer-stage
#billing_state_field.artender-field-valid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-valid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_state_field.artender-field-valid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-valid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-valid input,
body.artender-checkout-customer-stage
.artender-block-customer-field.artender-field-valid
.artender-native-location-ui.select2-selection--single {
    border-color: #22a85a !important;
    background: rgba(34, 168, 90, 0.035) !important;
    box-shadow: 0 0 0 1px rgba(34, 168, 90, 0.05) !important;
}

/* Invalid required native location field. */
body.artender-checkout-customer-stage
#billing_state_field.artender-field-invalid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_state_field.artender-field-invalid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid input {
    border-color: var(--artender-primary-color, #f50000) !important;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), 0.025) !important;
}

/* Select2 dropdown should appear above the fixed Continue / bottom navigation. */
.select2-container--open,
.select2-dropdown {
    z-index: 1000005 !important;
}

body.artender-checkout-customer-stage
.select2-dropdown {
    border-color: #d9dee7 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    direction: rtl !important;
}

body.artender-checkout-customer-stage
.select2-results__option {
    padding: 8px 10px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    body.artender-checkout-customer-stage
    #billing_state_field .select2-selection--single,
    body.artender-checkout-customer-stage
    #billing_city_field .select2-selection--single,
    body.artender-checkout-customer-stage
    .artender-native-location-ui.select2-selection--single {
        height: 31px !important;
        min-height: 31px !important;
        border-radius: 8px !important;
    }

    body.artender-checkout-customer-stage
    #billing_state_field .select2-selection__rendered,
    body.artender-checkout-customer-stage
    #billing_city_field .select2-selection__rendered {
        font-size: 12.6px !important;
        line-height: 29px !important;
    }
}

/* ==========================================================
   Checkout customer v10
   Continue-to-shipping compatibility with Persian WooCommerce
   ========================================================== */

/* Required native province/city fields get visible invalid state before Continue. */
body.artender-checkout-customer-stage
#billing_state_field.artender-field-invalid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid .select2-selection--single,
body.artender-checkout-customer-stage
#billing_state_field.artender-field-invalid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid select,
body.artender-checkout-customer-stage
#billing_city_field.artender-field-invalid input {
    border-color: var(--artender-primary-color, #f50000) !important;
    box-shadow: 0 0 0 2px rgba(var(--artender-primary-rgb, 245, 0, 0), 0.07) !important;
}

/* ==========================================================
   Empty Cart v1
   Compact cart-style empty state
   ========================================================== */

.artender-cart-page--empty {
    padding-bottom: 110px;
}

.artender-cart-page--empty .artender-commerce-steps {
    margin-bottom: 18px;
}

.artender-cart-empty-card {
    width: calc(100% - 16px);
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 18px 20px;
    border: 1px solid #dce7fb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    text-align: center;
}

.artender-cart-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: rgba(var(--artender-primary-rgb, 245, 0, 0), .07);
    color: var(--artender-primary-color, #f50000);
}

.artender-cart-empty-icon svg {
    width: 30px;
    height: 30px;
}

.artender-cart-empty-title {
    color: #111827;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.7;
}

.artender-cart-empty-text {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.8;
}

.artender-cart-empty-button {
    width: 100%;
    min-height: 42px;
    margin-top: 15px;
    padding: 8px 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--artender-primary-color, #f50000);
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(var(--artender-primary-rgb, 245, 0, 0), .13);
}

@media (max-width: 767px) {
    .artender-cart-page--empty {
        padding-bottom: 96px;
    }

    .artender-cart-page--empty .artender-commerce-steps {
        margin-bottom: 14px;
    }

    .artender-cart-empty-card {
        width: calc(100% - 16px);
        max-width: none;
        padding: 20px 14px 14px;
        border-radius: 15px;
    }

    .artender-cart-empty-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 9px;
        border-radius: 14px;
    }

    .artender-cart-empty-icon svg {
        width: 26px;
        height: 26px;
    }

    .artender-cart-empty-title {
        font-size: 14px;
    }

    .artender-cart-empty-text {
        margin-top: 3px;
        font-size: 9.8px;
    }

    .artender-cart-empty-button {
        min-height: 39px;
        margin-top: 11px;
        border-radius: 10px;
        font-size: 10px;
    }
}

/* ==========================================================
   Empty Cart v2
   Only Artender empty-cart card; no WooCommerce recommendations
   ========================================================== */

.artender-cart-page--empty ~ .wc-block-grid,
.artender-cart-page--empty ~ .wp-block-woocommerce-product-new,
.artender-cart-page--empty ~ .wp-block-woocommerce-product-collection,
.artender-cart-page--empty ~ .woocommerce-loop,
.artender-cart-page--empty ~ .products,
body.woocommerce-cart .artender-cart-page--empty .wc-block-grid,
body.woocommerce-cart .artender-cart-page--empty .products {
    display: none !important;
}

.artender-cart-page--empty .artender-cart-empty-card {
    margin-top: 0 !important;
}



/* ==========================================================
   Cart mobile UX v3
   ========================================================== */
.artender-cart-coupon-head {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.artender-cart-coupon-head-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.artender-cart-coupon-chevron {
    flex: 0 0 auto;
    color: #667085;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transition: transform .2s ease;
}

.artender-cart-coupon-head[aria-expanded="true"] .artender-cart-coupon-chevron {
    transform: rotate(180deg);
}

.artender-cart-coupon-fields[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .artender-mobile-bottom-card,
    body.woocommerce-cart .artender-mobile-search-box,
    body.woocommerce-cart .artender-mobile-buy-button {
        display: none !important;
    }

    body.woocommerce-cart .artender-cart-page {
        margin-top: 4px !important;
        padding-bottom: 0 !important;
    }

    body.woocommerce-cart .artender-cart-items {
        gap: 8px !important;
    }

    body.woocommerce-cart .artender-cart-item {
        margin-bottom: 0 !important;
    }

    body.woocommerce-cart .artender-cart-coupon-card {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        padding: 8px 12px !important;
    }

    body.woocommerce-cart .artender-cart-coupon-head {
        min-height: 36px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    body.woocommerce-cart .artender-cart-coupon-card:not(.is-open) .artender-cart-coupon-fields,
    body.woocommerce-cart .artender-cart-coupon-fields[hidden] {
        display: none !important;
    }

    body.woocommerce-cart .artender-cart-coupon-fields[aria-hidden="true"] input,
    body.woocommerce-cart .artender-cart-coupon-fields[aria-hidden="true"] button {
        pointer-events: none !important;
    }

    body.woocommerce-cart .artender-cart-coupon-card.is-open .artender-cart-coupon-fields {
        margin-top: 8px !important;
    }

    body.woocommerce-cart .artender-cart-page hr,
    body.woocommerce-cart .woocommerce-cart-form hr,
    body.woocommerce-cart .woocommerce-cart-form > p:empty,
    body.woocommerce-cart .artender-cart-page > p:empty {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.woocommerce-cart .artender-cart-form::before,
    body.woocommerce-cart .artender-cart-form::after,
    body.woocommerce-cart .artender-cart-page::before,
    body.woocommerce-cart .artender-cart-page::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-cart .artender-cart-summary-card {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    body.woocommerce-cart .artender-cart-summary-row {
        min-height: 52px !important;
        padding: 10px 16px !important;
    }

    body.woocommerce-cart .artender-cart-summary-bottom {
        min-height: 86px !important;
        padding: 10px 16px !important;
    }
}

/* ==========================================================
   Cart Block v8 - hard stable coupon/input + clean mobile totals
   ========================================================== */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon::before {
    content: "کد تخفیف دارید؟" !important;
    display: block !important;
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-align: right !important;
    direction: rtl !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
    display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__content,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__content[hidden],
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__content[aria-hidden="true"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon form,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-totals-coupon__form {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    direction: ltr !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input {
    min-width: 0 !important;
    margin: 0 !important;
    order: 2 !important;
    pointer-events: auto !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input label,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-text-input__label {
    display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon input,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon input:not(:disabled) {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #9ec5ff !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
    direction: rtl !important;
    cursor: text !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    touch-action: manipulation !important;
    opacity: 1 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon input::placeholder {
    color: #4b5563 !important;
    opacity: .8 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(.wc-block-components-panel__button) {
    order: 1 !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--artender-primary-color, #0b63f6) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .artender-hidden-summary-row {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals > *,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals .wc-block-components-totals-wrapper,
    body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block,
    body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block > * {
        border-top: 0 !important;
        border-bottom: 0 !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals::before,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__totals::after,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-wrapper::before,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-wrapper::after,
    body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block::before,
    body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block::after {
        content: none !important;
        display: none !important;
        border: 0 !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-wrapper:empty {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon {
        margin: 8px 0 !important;
        padding: 12px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon form,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-totals-coupon__form {
        grid-template-columns: 100px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon input,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(.wc-block-components-panel__button) {
        height: 46px !important;
        min-height: 46px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon button[type="submit"],
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button:not(.wc-block-components-panel__button) {
        width: 100px !important;
        min-width: 100px !important;
    }
}

/* Cart stage fixed CTA + compact mobile v10 */
@media (max-width: 767px) {
    body.artender-cart-screen .wc-block-cart__submit-container,
    body.woocommerce-cart .wc-block-cart__submit-container,
    body.artender-cart-screen .wc-block-cart__submit,
    body.woocommerce-cart .wc-block-cart__submit {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 2147483500 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        background: transparent !important;
    }

    body.artender-cart-screen .wc-block-cart__submit-button,
    body.woocommerce-cart .wc-block-cart__submit-button {
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        margin: 0 !important;
    }

    body.artender-cart-screen .wp-block-woocommerce-cart,
    body.woocommerce-cart .wp-block-woocommerce-cart {
        padding-bottom: 58px !important;
    }
}


/* Purchase flow final mobile dock v11 */
@media (max-width: 767px) {
    body.woocommerce-cart .artender-wa-wrap,
    body.artender-cart-screen .artender-wa-wrap {
        display: none !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item,
    body.artender-cart-screen .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 54px) !important;
        z-index: 2147483499 !important;
        width: auto !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        border: 1px solid #dce5f2 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(15,23,42,.09) !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.artender-cart-screen .wp-block-woocommerce-cart {
        padding-bottom: 118px !important;
    }
}


/* Artender cart mobile dock overlap + discount row fix v13 */
@media (max-width: 767px) {
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-discount,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item--discount,
    body.woocommerce-cart .wp-block-woocommerce-cart .artender-hidden-summary-row {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-container,
    body.artender-cart-screen .wp-block-woocommerce-cart .wc-block-cart__submit-container,
    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit,
    body.artender-cart-screen .wp-block-woocommerce-cart .wc-block-cart__submit {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 2147483500 !important;
        width: auto !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-button,
    body.artender-cart-screen .wp-block-woocommerce-cart .wc-block-cart__submit-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item,
    body.artender-cart-screen .wp-block-woocommerce-cart .wc-block-components-totals-footer-item {
        position: fixed !important;
        right: 10px !important;
        left: 10px !important;
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 62px) !important;
        z-index: 2147483499 !important;
        width: auto !important;
        min-height: 54px !important;
        height: 54px !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        border: 1px solid #dce5f2 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(15,23,42,.09) !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.artender-cart-screen .wp-block-woocommerce-cart {
        padding-bottom: 142px !important;
    }
}
