/* Sepahan 2.3.1.3 · dark UI and price alignment. Loaded last through palette.php. */
/* All colors below are variables from the separate Elementor/shop-cart dark palette controls. */
html.dark body.sepahan-commerce-meydan.woocommerce-checkout,
body.dark.sepahan-commerce-meydan.woocommerce-checkout,
html.dark body.sepahan-commerce-meydan.woocommerce-checkout #primary,
body.dark.sepahan-commerce-meydan.woocommerce-checkout #primary,
html.dark body.sepahan-commerce-meydan.woocommerce-checkout main.site-main,
body.dark.sepahan-commerce-meydan.woocommerce-checkout main.site-main,
html.dark body.sepahan-commerce-meydan.woocommerce-checkout .meydan-checkout-page,
body.dark.sepahan-commerce-meydan.woocommerce-checkout .meydan-checkout-page {
  background:var(--mcc-page)!important;color:var(--mcc-text)!important;
}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-card,.meydan-checkout-summary,.meydan-checkout-payment-card,
 .meydan-checkout-receiver,.meydan-checkout-address,.meydan-checkout-dialog__panel,
 .meydan-shipping-option,.meydan-checkout-coupon,.meydan-checkout-coupon__form,
 .meydan-checkout-address-choice,.meydan-checkout-shipping,
 .meydan-payment-methods,.meydan-checkout-address-list
){background-color:var(--mcc-card)!important;color:var(--mcc-text)!important;border-color:var(--mcc-border)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-card,.meydan-checkout-summary,.meydan-checkout-dialog__panel,
 .meydan-checkout-receiver,.meydan-checkout-sidebar,#payment,.payment_methods,
 .meydan-checkout-coupon,.meydan-shipping-option,.meydan-checkout-address-choice
){border-color:var(--mcc-border)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 h1,h2,h3,h4,strong,b,.meydan-checkout-card>header,.meydan-checkout-summary__body,
 .meydan-checkout-address strong,.meydan-checkout-address-choice strong,
 .meydan-shipping-option strong,.meydan-checkout-payment-card label,
 .payment_method_bacs label,.payment_method_cod label,
 .meydan-checkout-summary,.meydan-checkout-dialog__panel>header
){color:var(--mcc-text)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 small,.meydan-checkout-address p,.meydan-checkout-address-choice small,
 .meydan-checkout-dialog label>span:first-child,
 .meydan-checkout-summary small,.meydan-shipping-option small,
 .meydan-checkout-receiver__body p,.meydan-checkout-card p,
 .meydan-checkout-summary__body .label
){color:var(--mcc-muted)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-card>header,.meydan-checkout-dialog__panel>header,
 .meydan-checkout-dialog__panel>footer,.meydan-checkout-summary header,
 .meydan-checkout-payment-card>header
){background:var(--mcc-card)!important;border-color:var(--mcc-border)!important;color:var(--mcc-text)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog input,.meydan-checkout-dialog select,
 .meydan-checkout-dialog textarea,.meydan-checkout-coupon input,
 .meydan-checkout-coupon__form input,.meydan-checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
 .meydan-checkout-form select,.meydan-checkout-form textarea
){background:var(--mcc-card)!important;border-color:var(--mcc-border)!important;color:var(--mcc-text)!important;box-shadow:none}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 input,textarea
)::placeholder{color:var(--mcc-muted)!important;opacity:.95}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog input,.meydan-checkout-dialog select,
 .meydan-checkout-dialog textarea,.meydan-checkout-coupon input
):focus-visible{outline:2px solid var(--mcc-accent)!important;outline-offset:2px!important;border-color:var(--mcc-accent)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog__panel>footer button:not(.is-primary),
 .meydan-checkout-dialog__panel>header button,
 .meydan-checkout-address__top button,.meydan-checkout-receiver button:not(.is-primary),
 .meydan-checkout-new-address
){background:transparent!important;color:var(--mcc-text)!important;border-color:var(--mcc-border)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog__panel>footer button.is-primary,
 .meydan-checkout-form .meydan-place-order,.meydan-place-order,
 .meydan-checkout-coupon button.is-primary
){background:var(--mcc-accent)!important;background-color:var(--mcc-accent)!important;border-color:var(--mcc-accent)!important;color:var(--mcc-accent-text)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout .meydan-place-order:disabled{opacity:.55!important;cursor:not-allowed}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog__panel>footer button.is-primary,
 .meydan-checkout-form .meydan-place-order,.meydan-place-order
):not(:disabled):hover{filter:brightness(1.09)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-dialog__panel>footer button:not(.is-primary),
 .meydan-checkout-address-choice,.meydan-shipping-option
):hover{background:var(--mcc-selected)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-address-choice:has(input:checked),
 .meydan-shipping-option:has(input:checked),
 .meydan-payment-methods .wc_payment_method:has(input:checked)
){background:var(--mcc-selected)!important;border-color:var(--mcc-accent)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 .meydan-checkout-address-choice__radio,.meydan-payment-methods .wc_payment_method,
 .meydan-checkout-shipping input[type=radio],.meydan-checkout-form input[type=radio]
){background:var(--mcc-card)!important;border-color:var(--mcc-border)!important;accent-color:var(--mcc-accent)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout .meydan-checkout-address-choice input:checked+.meydan-checkout-address-choice__radio{border-color:var(--mcc-accent)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 #payment .payment_box,#payment .payment_box::before,.woocommerce-info,
 .woocommerce-message,.woocommerce-error,.woocommerce-notices-wrapper>*
){background:var(--mcc-selected)!important;color:var(--mcc-text)!important;border-color:var(--mcc-border)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout :is(
 a,.meydan-checkout-new-address,.meydan-checkout-coupon__toggle
){color:var(--mcc-accent)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout .meydan-checkout-dialog label>span:first-child{background:var(--mcc-card)!important}
:is(html.dark body,body.dark).sepahan-commerce-meydan.woocommerce-checkout .meydan-checkout-dialog::backdrop{background:color-mix(in srgb,var(--mcc-overlay) 82%,transparent)!important}
/* Model-2 review form: no white inputs, panels or pale-on-white text when dark. */
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form{
  background:var(--mp-card-bg)!important;color:var(--mp-text)!important;border-color:var(--mp-border)!important;
}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(
 .meydan-review-form__heading strong,.meydan-review-form__title,.meydan-review-field label,
 .comment-reply-title,.comment-form label,.meydan-review-form__head strong
){color:var(--mp-text)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(
 small,p,.comment-notes,.meydan-review-field>small,.meydan-review-form__heading small
){color:var(--mp-muted)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(
 input:not([type=radio]):not([type=checkbox]),textarea,select
){background:var(--mp-page-bg)!important;border-color:var(--mp-border)!important;color:var(--mp-text)!important;box-shadow:none!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(
 input:not([type=radio]):not([type=checkbox]),textarea,select
):is(:hover,:focus,:focus-visible){background:var(--mp-page-bg)!important;border-color:var(--mp-accent)!important;color:var(--mp-text)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(input,textarea)::placeholder{color:var(--mp-muted)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan #meydan-product-review-form :is(
 .meydan-review-form__close,.meydan-review-form__badge
){background:var(--mp-accent-soft)!important;border-color:var(--mp-border)!important;color:var(--mp-accent)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(.meydan-review-card,.meydan-product-reviews,.meydan-review-card--staff){background:var(--mp-card-bg)!important;border-color:var(--mp-border)!important;color:var(--mp-text)!important}
/* Product-2 quantity control has a light-specific white background in Meydan's CSS. */
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(
 .meydan-cart-quantity,.meydan-cart-quantity__step,.meydan-cart-quantity__value,
 .meydan-cart-quantity__value input
){background:var(--mp-card-bg)!important;color:var(--mp-text)!important;border-color:var(--mp-border)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan .meydan-cart-quantity__step:is(:hover,:focus-visible){background:var(--mp-accent-soft)!important;color:var(--mp-accent)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan .meydan-cart-quantity__value input:focus-visible{outline:2px solid var(--mp-accent)!important;outline-offset:-2px!important}
/* Favorite button: keep icon legible before and after selection. */
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(
 .meydan-product-gallery__favorite,.meydan-product-gallery__actions .meydan-product-gallery__favorite
){background:var(--mp-card-bg)!important;color:var(--mp-text)!important;border-color:var(--mp-border)!important;box-shadow:none!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(
 .meydan-product-gallery__favorite,.meydan-product-gallery__actions .meydan-product-gallery__favorite
):is(:hover,:focus-visible,.is-active){background:var(--mp-accent-soft)!important;color:var(--mp-accent)!important;border-color:var(--mp-accent)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan .meydan-product-gallery__favorite .meydan-icon{stroke:currentColor!important;opacity:1!important}
/* Both existing Sepahan-normalized price wrappers and new Meydan prices align to the parent's left. */
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,
 .meydan-purchase-price__html .price,.meydan-purchase-price__html>span.price,
 .meydan-product-navigation__price){text-align:left!important;justify-content:flex-start!important}
body.sepahan-product-model-meydan .meydan-purchase-price__html .price{
 display:flex!important;direction:ltr!important;align-items:baseline!important;
 justify-content:flex-start!important;gap:8px!important;flex-wrap:wrap!important;
}
body.sepahan-product-model-meydan .meydan-purchase-price__html{direction:ltr!important;text-align:left!important}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap){
 display:flex!important;flex-direction:row!important;direction:ltr!important;align-items:baseline!important;
 gap:8px!important;flex-wrap:wrap!important;width:100%!important;
}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,
 .meydan-purchase-price__html .price) >del{order:0!important;align-self:baseline!important;margin:0!important}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,
 .meydan-purchase-price__html .price) >ins{order:1!important;align-self:baseline!important;margin:0!important;text-decoration:none!important}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,
 .meydan-purchase-price__html .price) > :is(del,ins){text-align:left!important;direction:ltr!important}
/* In Woo's bdi markup, the currency can occur before OR after the number; force the currency visually left. */
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.meydan-purchase-price__html,
 .meydan-product-navigation__price,.meydan-related-card__price) .woocommerce-Price-amount.amount bdi{
 display:inline-flex!important;direction:ltr!important;flex-direction:row!important;align-items:baseline!important;
 gap:5px!important;unicode-bidi:isolate!important;white-space:nowrap!important;
}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.meydan-purchase-price__html,
 .meydan-product-navigation__price,.meydan-related-card__price) .woocommerce-Price-amount.amount :is(
 .woocommerce-Price-currencySymbol,.meydan-wc-price__currency
){order:-1!important;direction:rtl!important;white-space:nowrap!important}
body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.meydan-purchase-price__html,
 .meydan-product-navigation__price,.meydan-related-card__price) .woocommerce-Price-amount.amount .meydan-wc-price__number{
 order:0!important;direction:ltr!important;white-space:nowrap!important;
}
/* No light-only force-black price text in the dark palette. */
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(.sepahan-price-normalized,.meydan-purchase-price__html) .woocommerce-Price-amount.amount{color:var(--mp-text)!important}
:is(html.dark body,body.dark).sepahan-product-model-meydan :is(.sepahan-price-normalized,.meydan-purchase-price__html) del .woocommerce-Price-amount.amount{color:var(--mp-muted)!important}
/* Desktop-specific current/previous price order; leave mobile ordering intact. */
@media (min-width:768px){
 body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,.meydan-purchase-price__html .price)>ins{order:0!important}
 body.sepahan-product-model-meydan :is(.sepahan-price-normalized,.sepahan-price-normalized .sepahan-price-wrap,.meydan-purchase-price__html .price)>del{order:1!important}
}
