@font-face {
    font-family: "Vazirmatn";
    src: url("https://zhevansa.ir/wp-content/fonts/vazirmatn/Vazirmatn-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html:has(.zv-commerce-page),
body:has(.zv-commerce-page) {
    overflow-x: clip;
}

.elementor-widget-shortcode:has(.zv-commerce-page),
.elementor-widget-shortcode:has(.zv-commerce-page) > .elementor-widget-container {
    overflow: visible;
}

.zv-commerce-page {
    --zv-red: #f51423;
    --zv-red-dark: #d90f1d;
    --zv-black: #111113;
    --zv-text: #26272b;
    --zv-muted: #777c85;
    --zv-border: #e4e6ea;
    --zv-soft: #f5f6f8;
    --zv-white: #fff;
    position: relative;
    right: auto;
    left: auto;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc((100% - 100vw) / 2);
    margin-left: calc((100% - 100vw) / 2);
    padding: 30px 22px 70px;
    overflow: clip;
    direction: rtl;
    background: #f6f7f9;
    color: var(--zv-text);
    font-family: "Vazirmatn", sans-serif;
    transform: none;
}

.zv-commerce-page,
.zv-commerce-page * {
    box-sizing: border-box;
}

.zv-commerce-page :where(button, input, select, textarea) {
    font: inherit;
}

.zv-shop-shell {
    width: min(100%, 1280px);
    margin-inline: auto;
}

/* Header */
.zv-commerce-header {
    position: relative;
    display: flex;
    min-height: 205px;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 24px;
    padding: 32px 36px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 15%, rgba(245, 20, 35, .24), transparent 27%),
        linear-gradient(125deg, #0d0d0f, #18181b 58%, #0b0b0d);
    box-shadow: 0 10px 28px rgba(17, 17, 17, .12);
    isolation: isolate;
}

.zv-commerce-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.zv-commerce-heading {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.zv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    padding: 6px 11px;
    border: 1px solid rgba(245, 20, 35, .35);
    border-radius: 999px;
    background: rgba(245, 20, 35, .1);
    color: #ff5965;
    font-size: 11px;
    font-weight: 800;
}

.zv-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(245, 20, 35, .12);
}

.zv-commerce-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(31px, 3.2vw, 43px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -1px;
}

.zv-commerce-heading p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    line-height: 1.9;
}

/* Steps */
.zv-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .065);
    backdrop-filter: blur(10px);
}

.zv-step > :where(span, a) {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none !important;
    white-space: nowrap;
}

.zv-step b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 850;
}

.zv-step strong {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    font-weight: 700;
}

.zv-step:is(.is-active, .is-done) b {
    border-color: var(--zv-red);
    background: var(--zv-red);
    color: #fff;
}

.zv-step:is(.is-active, .is-done) strong {
    color: #fff;
}

.zv-steps > i {
    width: 26px;
    height: 1px;
    margin-inline: 8px;
    background: rgba(255, 255, 255, .17);
}

.zv-steps > i.is-done {
    background: var(--zv-red);
}

/* General WooCommerce */
.zv-commerce-page .woocommerce {
    color: var(--zv-text);
}

.zv-commerce-page .woocommerce::before,
.zv-commerce-page .woocommerce::after,
.zv-commerce-page form.checkout::before,
.zv-commerce-page form.checkout::after {
    display: none;
}

.zv-commerce-page .woocommerce a {
    color: var(--zv-black);
    text-decoration: none;
}

.zv-commerce-page .woocommerce a:hover {
    color: var(--zv-red);
}

.zv-commerce-page :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
    width: 100%;
    margin: 0 0 17px;
    padding: 14px 16px;
    border: 1px solid var(--zv-border);
    border-top: 1px solid var(--zv-border);
    border-right: 3px solid #3b82f6;
    border-radius: 11px;
    background: #fff;
    color: var(--zv-text);
    font-size: 12px;
    line-height: 1.9;
    box-shadow: none;
}

.zv-commerce-page .woocommerce-message {
    border-right-color: #20a464;
}

.zv-commerce-page .woocommerce-error {
    border-right-color: var(--zv-red);
}

.zv-commerce-page :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
    display: none;
}

/* Forms */
.zv-commerce-page :where(
    input[type="text"], input[type="tel"], input[type="email"],
    input[type="number"], input[type="password"], select, textarea,
    .select2-container .select2-selection--single
) {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #dfe2e7;
    border-radius: 9px;
    background: #f8f9fa;
    color: var(--zv-black);
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.zv-commerce-page textarea {
    min-height: 105px;
    resize: vertical;
}

.zv-commerce-page :where(input, select, textarea):focus,
.zv-commerce-page .select2-container--focus .select2-selection--single {
    border-color: var(--zv-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 20, 35, .07);
}

.zv-commerce-page .select2-container {
    width: 100% !important;
}

.zv-commerce-page .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.zv-commerce-page .select2-selection__rendered {
    padding: 0 !important;
    color: var(--zv-black) !important;
}

.zv-commerce-page .select2-selection__arrow {
    top: 10px !important;
    right: auto !important;
    left: 10px !important;
}

.zv-commerce-page .form-row {
    margin: 0 0 15px;
    padding: 0;
}

.zv-commerce-page .form-row label {
    display: block;
    margin-bottom: 6px;
    color: #4a4d53;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.7;
}

.zv-commerce-page .required {
    color: var(--zv-red);
}

/* Buttons */
.zv-commerce-page .woocommerce :where(a.button, button.button, input.button),
.zv-commerce-page #place_order {
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid var(--zv-red);
    border-radius: 9px;
    background: var(--zv-red);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.6;
    text-align: center;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease;
}

.zv-commerce-page .woocommerce :where(a.button, button.button, input.button):hover,
.zv-commerce-page #place_order:hover {
    border-color: var(--zv-red-dark);
    background: var(--zv-red-dark);
    color: #fff;
}

.zv-commerce-page .woocommerce button.button:disabled,
.zv-commerce-page .woocommerce button.button:disabled[disabled] {
    opacity: 1;
}

/* Cart desktop layout */
.zv-cart-content > .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
    gap: 24px;
    align-items: start;
}

.zv-cart-content :where(
    .woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info,
    .woocommerce-error, .cart-empty, .return-to-shop
) {
    grid-column: 1 / -1;
}

.zv-cart-content form.woocommerce-cart-form {
    min-width: 0;
    grid-column: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--zv-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.zv-cart-content form.woocommerce-cart-form::before {
    content: "محصولات سبد خرید";
    display: flex;
    min-height: 64px;
    align-items: center;
    padding: 17px 22px;
    border-bottom: 1px solid var(--zv-border);
    background: #fff;
    color: var(--zv-black);
    font-size: 17px;
    font-weight: 900;
}

.zv-cart-content table.shop_table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.zv-cart-content table.cart thead th {
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid var(--zv-border);
    background: #f8f9fa;
    color: #888d96;
    font-size: 10px;
    font-weight: 750;
    text-align: right;
}

.zv-cart-content table.cart tr.cart_item,
.zv-cart-content table.cart tr.cart_item td {
    background: #fff;
    box-shadow: none;
}

.zv-cart-content table.cart td {
    padding: 18px 10px;
    border: 0;
    border-bottom: 1px solid var(--zv-border);
    color: var(--zv-text);
    font-size: 12px;
    text-align: right;
    vertical-align: middle;
}

.zv-cart-content td.product-thumbnail {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
}

.zv-cart-content td.product-thumbnail img {
    display: block;
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    height: 84px;
    min-height: 84px;
    max-height: 84px;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--zv-border);
    border-radius: 11px;
    background: #fff;
    object-fit: contain;
    box-shadow: none;
}

.zv-cart-content td.product-name {
    min-width: 220px;
}

.zv-cart-content td.product-name > a {
    color: var(--zv-black);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.8;
}

.zv-cart-content td.product-name :where(dl, dt, dd, p) {
    box-shadow: none !important;
}

.zv-cart-content dl.variation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 6px;
    margin: 5px 0 0;
    padding: 0;
    background: transparent !important;
}

.zv-cart-content .variation :where(dt, dd, p) {
    display: inline;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: var(--zv-muted);
    font-size: 10px;
    line-height: 1.7;
}

.zv-cart-content :where(td.product-price, td.product-subtotal) {
    color: var(--zv-black);
    font-weight: 850;
    white-space: nowrap;
}

.zv-cart-content td.product-subtotal {
    color: var(--zv-red);
}

.zv-cart-content td.product-remove {
    width: 38px;
}

.zv-cart-content td.product-remove a.remove {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    margin: 0;
    border: 1px solid #f2ced1;
    border-radius: 8px;
    background: #fff7f7;
    color: var(--zv-red) !important;
    font-size: 17px;
    line-height: 1;
    box-shadow: none;
}

.zv-cart-content td.product-remove a.remove:hover {
    border-color: var(--zv-red);
    background: var(--zv-red);
    color: #fff !important;
}

/* Quantity */
.zv-cart-content .quantity {
    display: inline-grid;
    grid-template-columns: 29px 38px 29px;
    align-items: center;
    width: auto;
    overflow: hidden;
    border: 1px solid var(--zv-border);
    border-radius: 9px;
    background: #fff;
}

.zv-cart-content .quantity .qty {
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--zv-border);
    border-left: 1px solid var(--zv-border);
    border-radius: 0;
    background: #fff;
    color: var(--zv-black);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: none;
    appearance: textfield;
}

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

.zv-qty-btn {
    display: grid;
    width: 29px;
    height: 38px;
    min-height: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--zv-black) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.zv-qty-btn:hover {
    background: var(--zv-soft) !important;
    color: var(--zv-red) !important;
}

/* Cart coupon and actions */
.zv-cart-content table.cart td.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px;
    border-bottom: 0;
    background: #f8f9fa;
}

.zv-cart-content table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(180px, 225px) 110px;
    align-items: center;
    gap: 7px;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.zv-cart-content table.cart td.actions .coupon::before,
.zv-cart-content table.cart td.actions .coupon::after {
    display: none;
}

.zv-cart-content table.cart td.actions .coupon input.input-text {
    float: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dfe2e7;
    border-radius: 9px;
    background: #fff;
}

.zv-cart-content table.cart td.actions .coupon button {
    float: none;
    width: 110px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    white-space: nowrap;
}

.zv-cart-content table.cart td.actions > button[name="update_cart"] {
    float: none;
    min-height: 44px;
    margin: 0;
    border-color: #dfe2e7;
    background: #fff;
    color: #555a63;
}

.zv-cart-content table.cart td.actions > button[name="update_cart"]:disabled {
    border-color: #eceef1;
    background: #f1f2f4;
    color: #a7abb2;
}

/* Cart totals */
.zv-cart-content .cart-collaterals {
    width: 100%;
    grid-column: 2;
    margin: 0;
}

.zv-cart-content .cart-collaterals .cross-sells {
    display: none;
}

.zv-cart-content .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0 22px 22px;
    overflow: hidden;
    border: 1px solid var(--zv-border);
    border-top: 4px solid var(--zv-red);
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.zv-cart-content .cart_totals h2 {
    display: flex;
    min-height: 64px;
    align-items: center;
    margin: 0 -22px 3px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--zv-border);
    background: var(--zv-black);
    color: #fff;
    font-size: 17px;
    font-weight: 850;
}

.zv-cart-content .cart_totals h2::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 9px;
    border-radius: 50%;
    background: var(--zv-red);
}

.zv-cart-content .cart_totals table {
    width: 100%;
    margin: 0 0 16px;
    border: 0;
    border-collapse: collapse;
}

.zv-cart-content .cart_totals table :where(th, td) {
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--zv-border);
    background: transparent;
    font-size: 12px;
    text-align: right;
    vertical-align: top;
}

.zv-cart-content .cart_totals table th {
    color: var(--zv-muted);
    font-weight: 700;
}

.zv-cart-content .cart_totals table td {
    color: var(--zv-black);
    font-weight: 800;
    text-align: left;
}

.zv-cart-content .cart_totals .order-total :where(th, td) {
    padding-top: 16px;
    border-bottom: 0;
    color: var(--zv-black);
    font-size: 16px;
    font-weight: 900;
}

.zv-cart-content .cart_totals .order-total td {
    color: var(--zv-red);
}

.zv-commerce-page .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zv-commerce-page .woocommerce-shipping-methods li {
    margin-bottom: 6px;
}

.zv-commerce-page .woocommerce-shipping-methods :where(label, strong),
.zv-commerce-page .shipping-calculator-button {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.zv-cart-content .wc-proceed-to-checkout {
    margin: 0;
    padding: 0;
}

.zv-cart-content .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    width: 100%;
    min-height: 53px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-color: var(--zv-red) !important;
    border-radius: 10px;
    background: var(--zv-red) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 14px;
}

.zv-cart-content .wc-proceed-to-checkout a.checkout-button:hover {
    border-color: var(--zv-red-dark) !important;
    background: var(--zv-red-dark) !important;
    color: #fff !important;
}

/* Checkout coupon */
.zv-checkout-content .woocommerce-form-coupon-toggle {
    margin: 0 0 15px;
}

.zv-checkout-content .woocommerce-form-coupon-toggle .woocommerce-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 14px 16px;
    border-right: 3px solid var(--zv-red);
    color: #5f636b;
}

.zv-checkout-content .woocommerce-form-coupon-toggle .showcoupon {
    color: var(--zv-red) !important;
    font-weight: 850;
}

.zv-checkout-content form.checkout_coupon {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    margin: 0 0 18px;
    padding: 9px;
    border: 1px solid var(--zv-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.zv-checkout-content form.checkout_coupon.zv-coupon-open {
    display: grid !important;
}

.zv-checkout-content form.checkout_coupon > p:first-child {
    display: none !important;
}

.zv-checkout-content form.checkout_coupon .form-row {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.zv-checkout-content form.checkout_coupon input.input-text {
    height: 46px;
    min-height: 46px;
    margin: 0;
}

.zv-checkout-content form.checkout_coupon button {
    width: 118px;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding-inline: 8px;
    white-space: nowrap;
}

.zv-cart-content table.cart td.actions .coupon button,
.zv-checkout-content form.checkout_coupon button {
    border-color: var(--zv-red) !important;
    background: var(--zv-red) !important;
    background-image: none !important;
    color: #fff !important;
}

.zv-cart-content table.cart td.actions .coupon button:hover,
.zv-checkout-content form.checkout_coupon button:hover {
    border-color: var(--zv-red-dark) !important;
    background: var(--zv-red-dark) !important;
    color: #fff !important;
}

/* Checkout layout */
.zv-checkout-content form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
    grid-template-rows: 64px auto;
    gap: 0 24px;
    align-items: start;
}

.zv-checkout-content #customer_details {
    width: 100%;
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
}

.zv-checkout-content #customer_details :where(.col-1, .col-2) {
    float: none;
    width: 100%;
    margin: 0 0 19px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--zv-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.zv-checkout-content #customer_details .col-2:empty {
    display: none;
}

.zv-checkout-content :where(
    .woocommerce-billing-fields > h3,
    .woocommerce-additional-fields > h3
) {
    margin: 0 0 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--zv-border);
    color: var(--zv-black);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.6;
}

.zv-checkout-content #ship-to-different-address {
    margin: 0 0 17px;
    font-size: 14px;
}

.zv-checkout-content #order_review_heading {
    min-height: 64px;
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    padding: 18px 22px 14px;
    border: 1px solid var(--zv-border);
    border-top: 4px solid var(--zv-red);
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
    background: var(--zv-black);
    color: #fff;
    font-size: 17px;
    font-weight: 850;
}

.zv-checkout-content #order_review {
    float: none !important;
    width: 100% !important;
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0 !important;
    padding: 7px 22px 22px;
    border: 1px solid var(--zv-border);
    border-top: 0;
    border-radius: 0 0 15px 15px;
    background: #fff;
    box-shadow: none;
}

.zv-checkout-content table.woocommerce-checkout-review-order-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.zv-checkout-content table.woocommerce-checkout-review-order-table :where(th, td) {
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--zv-border);
    background: transparent;
    color: var(--zv-text);
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
    vertical-align: top;
}

.zv-checkout-content table.woocommerce-checkout-review-order-table :where(th, td):last-child {
    text-align: left;
}

.zv-checkout-content table .product-name {
    color: var(--zv-black);
    font-weight: 750;
}

.zv-checkout-content table .product-quantity {
    color: var(--zv-muted);
    font-size: 10px;
}

.zv-checkout-content table .order-total :where(th, td) {
    padding-top: 16px;
    border-bottom: 0;
    color: var(--zv-black);
    font-size: 16px;
    font-weight: 900;
}

.zv-checkout-content table .order-total td {
    color: var(--zv-red);
}

/* Payment */
.zv-checkout-content #payment {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--zv-border);
    border-radius: 0;
    background: transparent;
}

.zv-checkout-content #payment ul.payment_methods {
    margin: 0 0 15px;
    padding: 0;
    border: 0;
    list-style: none;
}

.zv-checkout-content #payment ul.payment_methods li {
    margin: 0 0 8px;
    padding: 13px;
    border: 1px solid var(--zv-border);
    border-radius: 10px;
    background: #f8f9fa;
    line-height: 1.7;
}

.zv-checkout-content #payment ul.payment_methods li:has(input:checked) {
    border-color: rgba(245, 20, 35, .5);
    background: #fff8f8;
}

.zv-checkout-content #payment ul.payment_methods li > label {
    color: var(--zv-black);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.zv-checkout-content :where(input[type="radio"], input[type="checkbox"]) {
    width: 17px;
    height: 17px;
    margin: 0 0 0 6px;
    accent-color: var(--zv-red);
    vertical-align: middle;
}

.zv-checkout-content #payment div.payment_box {
    margin: 10px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: #f0f1f3;
    color: var(--zv-muted);
    font-size: 11px;
    line-height: 1.9;
}

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

.zv-checkout-content #payment .place-order {
    margin: 0;
    padding: 0;
}

.zv-checkout-content #place_order {
    float: none;
    width: 100%;
    min-height: 53px;
    margin-top: 10px;
    border-color: var(--zv-red) !important;
    background: var(--zv-red) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 14px;
}

.zv-checkout-content #place_order:hover {
    border-color: var(--zv-red-dark) !important;
    background: var(--zv-red-dark) !important;
    color: #fff !important;
}

/* Deterministic desktop cart grid; avoids RTL table width redistribution. */
@media (min-width: 768px) {
    .zv-cart-content table.cart,
    .zv-cart-content table.cart thead,
    .zv-cart-content table.cart tbody {
        display: block !important;
        width: 100% !important;
    }

    .zv-cart-content table.cart thead tr,
    .zv-cart-content table.cart tr.cart_item {
        display: grid !important;
        grid-template-columns: 88px minmax(170px, 1fr) 105px 108px 110px 38px;
        grid-template-areas: "thumbnail name price quantity subtotal remove";
        width: 100% !important;
        direction: rtl;
    }

    .zv-cart-content table.cart thead tr {
        min-height: 38px;
        align-items: center;
        border-bottom: 1px solid var(--zv-border);
        background: #f8f9fa;
    }

    .zv-cart-content table.cart tr.cart_item {
        min-height: 108px;
        align-items: stretch;
        border-bottom: 1px solid var(--zv-border);
        background: #fff;
    }

    .zv-cart-content table.cart thead th,
    .zv-cart-content table.cart tr.cart_item td {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        align-items: center;
        margin: 0 !important;
        padding: 13px 8px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .zv-cart-content table.cart :where(th.product-thumbnail, td.product-thumbnail) {
        grid-area: thumbnail;
    }

    .zv-cart-content table.cart :where(th.product-name, td.product-name) {
        grid-area: name;
    }

    .zv-cart-content table.cart :where(th.product-price, td.product-price) {
        grid-area: price;
    }

    .zv-cart-content table.cart :where(th.product-quantity, td.product-quantity) {
        grid-area: quantity;
    }

    .zv-cart-content table.cart :where(th.product-subtotal, td.product-subtotal) {
        grid-area: subtotal;
    }

    .zv-cart-content table.cart :where(th.product-remove, td.product-remove) {
        grid-area: remove;
    }

    .zv-cart-content table.cart thead th {
        justify-content: center;
        color: #858a93;
        font-size: 10px;
        text-align: center;
    }

    .zv-cart-content table.cart thead :where(th.product-name) {
        justify-content: flex-start;
        text-align: right;
    }

    .zv-cart-content table.cart thead :where(th.product-thumbnail, th.product-remove) {
        overflow: hidden;
        color: transparent;
        font-size: 0;
    }

    .zv-cart-content table.cart td.product-thumbnail {
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .zv-cart-content table.cart td.product-thumbnail > a {
        display: block !important;
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .zv-cart-content table.cart td.product-thumbnail img {
        display: block !important;
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        margin: 0 !important;
        padding: 5px !important;
        visibility: visible !important;
        opacity: 1 !important;
        object-fit: contain !important;
    }

    .zv-cart-content table.cart td.product-name {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: right !important;
    }

    .zv-cart-content table.cart td.product-name > a {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.8;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .zv-cart-content table.cart :where(
        td.product-price, td.product-quantity, td.product-subtotal, td.product-remove
    ) {
        justify-content: center;
        text-align: center !important;
    }

    .zv-cart-content table.cart :where(td.product-price, td.product-subtotal) {
        font-size: 11px;
        white-space: nowrap;
    }

    .zv-cart-content table.cart tbody > tr:not(.cart_item) {
        display: block !important;
        width: 100% !important;
    }

    .zv-cart-content table.cart tbody > tr:not(.cart_item) > td.actions {
        display: flex !important;
        width: 100% !important;
    }
}

.zv-checkout-content :where(
    .woocommerce-privacy-policy-text,
    .woocommerce-terms-and-conditions-wrapper
) {
    color: var(--zv-muted);
    font-size: 10px;
    line-height: 1.9;
}

/* Trust row */
.zv-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.zv-trust-row > div {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--zv-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.zv-trust-row > div > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--zv-black);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.zv-trust-row :where(p, strong, small) {
    display: block;
    margin: 0;
}

.zv-trust-row strong {
    color: var(--zv-black);
    font-size: 12px;
    font-weight: 800;
}

.zv-trust-row small {
    margin-top: 2px;
    color: var(--zv-muted);
    font-size: 10px;
}

/* Empty cart and order received */
.zv-commerce-page :where(.cart-empty, .woocommerce-thankyou-order-received) {
    padding: 28px 22px;
    border: 1px solid var(--zv-border);
    border-radius: 14px;
    background: #fff;
    color: var(--zv-black);
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    box-shadow: none;
}

.zv-commerce-page .return-to-shop {
    text-align: center;
}

.zv-order-complete .zv-checkout-content > .woocommerce {
    padding: 22px;
    border: 1px solid var(--zv-border);
    border-radius: 14px;
    background: #fff;
}

.zv-order-complete .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 18px 0;
    padding: 0;
}

.zv-order-complete .woocommerce-order-overview li {
    float: none;
    margin: 0;
    padding: 13px;
    border: 1px solid var(--zv-border);
    border-radius: 9px;
    background: var(--zv-soft);
}

@media (min-width: 1025px) {
    .zv-cart-content .cart-collaterals,
    .zv-checkout-content #order_review {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

@media (max-width: 1024px) {
    .zv-commerce-page {
        padding: 24px 17px 58px;
    }

    .zv-commerce-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 27px;
    }

    .zv-steps {
        width: fit-content;
    }

    .zv-cart-content > .woocommerce {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .zv-cart-content form.woocommerce-cart-form,
    .zv-cart-content .cart-collaterals {
        grid-column: 1;
    }

    .zv-cart-content .cart-collaterals {
        max-width: 420px;
        margin-inline: auto;
    }

    .zv-checkout-content form.checkout {
        grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr);
        gap: 18px;
    }
}

@media (max-width: 767px) {
    .zv-commerce-page {
        padding: 10px 9px 44px;
    }

    .zv-commerce-header {
        gap: 22px;
        margin-bottom: 15px;
        padding: 23px 16px 16px;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(17, 17, 17, .1);
    }

    .zv-commerce-header::before {
        background-size: 30px 30px;
        mask-image: linear-gradient(180deg, #000, transparent 65%);
    }

    .zv-commerce-heading h1 {
        font-size: 27px;
        letter-spacing: -.6px;
    }

    .zv-commerce-heading p {
        max-width: 95%;
        font-size: 12px;
    }

    .zv-eyebrow {
        font-size: 10px;
    }

    .zv-steps {
        width: 100%;
        justify-content: space-between;
        padding: 11px 8px 9px;
        overflow: hidden;
        border-radius: 12px;
    }

    .zv-step > :where(span, a) {
        flex-direction: column;
        gap: 4px;
        min-width: 52px;
        text-align: center;
    }

    .zv-step b {
        width: 27px;
        height: 27px;
        font-size: 11px;
    }

    .zv-step strong {
        font-size: 9px;
    }

    .zv-steps > i {
        flex: 1;
        width: auto;
        min-width: 7px;
        margin: 0 3px 17px;
    }

    .zv-cart-content > .woocommerce,
    .zv-checkout-content form.checkout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .zv-cart-content :where(
        form.woocommerce-cart-form, .cart-collaterals
    ),
    .zv-checkout-content :where(
        #customer_details, #order_review_heading, #order_review
    ) {
        width: 100%;
    }

    .zv-cart-content form.woocommerce-cart-form::before {
        min-height: 56px;
        padding: 14px;
        font-size: 15px;
    }

    /* Clean mobile product card */
    .zv-cart-content table.cart thead {
        display: none;
    }

    .zv-cart-content table.cart,
    .zv-cart-content table.cart tbody {
        display: block;
        width: 100%;
    }

    .zv-cart-content table.cart tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr) 30px;
        grid-template-areas:
            "image name remove"
            "image total remove"
            "image quantity remove";
        min-height: 140px;
        column-gap: 11px;
        row-gap: 7px;
        padding: 14px;
        border: 0;
        border-bottom: 1px solid var(--zv-border);
        background: #fff !important;
        box-shadow: none !important;
    }

    .zv-cart-content table.cart tr.cart_item td {
        display: block;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0 !important;
        background: transparent !important;
        text-align: right !important;
        box-shadow: none !important;
    }

    .zv-cart-content table.cart tr.cart_item td::before,
    .zv-cart-content table.cart tr.cart_item td::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .zv-cart-content td.product-thumbnail {
        display: block !important;
        grid-area: image;
        align-self: start;
        width: 82px !important;
    }

    .zv-cart-content td.product-thumbnail img {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
        height: 94px;
        min-height: 94px;
        max-height: 94px;
        padding: 5px;
        border-radius: 10px;
    }

    .zv-cart-content td.product-name {
        grid-area: name;
        align-self: start;
        min-width: 0;
        padding-top: 1px !important;
    }

    .zv-cart-content td.product-name > a {
        display: -webkit-box;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: transparent !important;
        font-size: 13px;
        line-height: 1.75;
        box-shadow: none !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .zv-cart-content td.product-name :where(dl, dt, dd, p) {
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    .zv-cart-content td.product-name dl.variation {
        display: flex;
        gap: 3px 6px;
        margin-top: 3px;
    }

    .zv-cart-content td.product-price {
        display: none !important;
    }

    .zv-cart-content td.product-subtotal {
        grid-area: total;
        align-self: center;
        color: var(--zv-red);
        font-size: 13px;
        line-height: 1.4;
    }

    .zv-cart-content td.product-quantity {
        grid-area: quantity;
        align-self: end;
    }

    .zv-cart-content td.product-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
        width: 30px;
    }

    /* Mobile cart coupon */
    .zv-cart-content table.cart td.actions {
        display: block !important;
        width: 100%;
        padding: 12px !important;
        border: 0;
        background: #f8f9fa;
    }

    .zv-cart-content table.cart td.actions .coupon {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 7px;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .zv-cart-content table.cart td.actions .coupon input.input-text {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 9px 11px;
        border: 1px solid #dfe2e7;
        border-radius: 9px;
        background: #fff;
    }

    .zv-cart-content table.cart td.actions .coupon button {
        width: 104px;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 7px 5px;
        font-size: 12px;
    }

    .zv-cart-content table.cart td.actions > button[name="update_cart"] {
        display: none !important;
    }

    .zv-cart-content .cart-collaterals .cart_totals {
        padding: 0 17px 17px;
    }

    .zv-cart-content .cart_totals h2 {
        min-height: 59px;
        margin: 0 -17px 3px;
        padding: 15px 17px;
        font-size: 16px;
    }

    /* Mobile checkout coupon */
    .zv-checkout-content .woocommerce-form-coupon-toggle .woocommerce-info {
        display: block;
        padding: 13px 14px;
        font-size: 11px;
    }

    .zv-checkout-content form.checkout_coupon.zv-coupon-open {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 7px;
        padding: 8px;
    }

    .zv-checkout-content form.checkout_coupon button {
        width: 104px;
        min-width: 0;
        padding-inline: 5px;
        font-size: 12px;
    }

    .zv-checkout-content #customer_details :where(.col-1, .col-2) {
        padding: 19px 16px;
        border-radius: 13px;
    }

    .zv-checkout-content #order_review_heading {
        min-height: 59px;
        margin-bottom: -14px;
        padding: 17px 17px 13px;
        border-radius: 13px 13px 0 0;
    }

    .zv-checkout-content #order_review {
        padding: 7px 17px 17px;
        border-radius: 0 0 13px 13px;
    }

    .zv-commerce-page :where(.form-row-first, .form-row-last) {
        float: none !important;
        width: 100% !important;
    }

    .zv-trust-row {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 14px;
    }

    .zv-trust-row > div {
        min-height: 62px;
        padding-inline: 15px;
    }

    .zv-order-complete .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 380px) {
    .zv-step strong {
        font-size: 8px;
    }

    .zv-cart-content table.cart tr.cart_item {
        grid-template-columns: 72px minmax(0, 1fr) 28px;
        min-height: 130px;
        column-gap: 8px;
        padding: 12px 9px;
    }

    .zv-cart-content td.product-thumbnail,
    .zv-cart-content td.product-thumbnail img {
        width: 72px !important;
    }

    .zv-cart-content td.product-thumbnail img {
        height: 86px;
        min-width: 72px;
        max-width: 72px;
        min-height: 86px;
        max-height: 86px;
    }

    .zv-cart-content table.cart td.actions .coupon,
    .zv-checkout-content form.checkout_coupon.zv-coupon-open {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .zv-cart-content table.cart td.actions .coupon button,
    .zv-checkout-content form.checkout_coupon button {
        width: 92px;
        font-size: 11px;
    }

    .zv-order-complete .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }
}
