/*
 * WEAUTY WXP-04 — Cart + Checkout experience layer.
 * Presentation only. No pricing, stock, shipping, payment or order business logic.
 */

body.weauty-wxp04-cart,
body.weauty-wxp04-checkout{
  --wx04-ink:var(--wx-ink,#171717);
  --wx04-text:var(--wx-text,#242424);
  --wx04-secondary:var(--wx-secondary,#687279);
  --wx04-muted:var(--wx-muted,#7a7a7a);
  --wx04-canvas:var(--wx-canvas,#fff);
  --wx04-subtle:var(--wx-subtle,#fafafa);
  --wx04-soft:var(--wx-soft,#f5f5f5);
  --wx04-border:var(--wx-border,rgba(17,17,17,.09));
  --wx04-border-strong:var(--wx-border-strong,rgba(17,17,17,.18));
  --wx04-success:var(--wx-success,#1f7a4d);
  --wx04-error:var(--wx-error,#b42318);
  --wx04-shadow:var(--wx-shadow-low,0 8px 24px rgba(17,17,17,.045));
  --wx04-r:var(--wx-r-lg,16px);
  background:#fff;
}

body.weauty-wxp04-cart .site-main,
body.weauty-wxp04-checkout .site-main{
  padding-bottom:clamp(48px,7vw,92px);
}

body.weauty-wxp04-cart .entry-header,
body.weauty-wxp04-checkout .entry-header{
  margin-bottom:20px;
}

body.weauty-wxp04-cart .entry-title,
body.weauty-wxp04-checkout .entry-title{
  color:var(--wx04-ink);
  font-size:clamp(28px,3.2vw,42px);
  font-weight:750;
  letter-spacing:-.025em;
  line-height:1.45;
}

/* Shared commerce surfaces */
body.weauty-wxp04-cart :where(.wc-block-components-button,.wp-element-button),
body.weauty-wxp04-checkout :where(.wc-block-components-button,.wp-element-button){
  border-radius:12px!important;
  font-weight:700!important;
}

body.weauty-wxp04-cart :where(button,input,select,textarea,a),
body.weauty-wxp04-checkout :where(button,input,select,textarea,a){
  -webkit-tap-highlight-color:transparent;
}

body.weauty-wxp04-cart .wc-block-components-notice-banner,
body.weauty-wxp04-checkout .wc-block-components-notice-banner{
  border:1px solid var(--wx04-border)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  font-size:13px;
  line-height:1.85;
}

body.weauty-wxp04-cart .wc-block-components-notice-banner.is-error,
body.weauty-wxp04-checkout .wc-block-components-notice-banner.is-error{
  border-color:rgba(180,35,24,.24)!important;
  background:rgba(180,35,24,.055)!important;
  color:var(--wx04-error)!important;
}

body.weauty-wxp04-cart .wc-block-components-notice-banner.is-success,
body.weauty-wxp04-checkout .wc-block-components-notice-banner.is-success{
  border-color:rgba(31,122,77,.22)!important;
  background:rgba(31,122,77,.055)!important;
  color:var(--wx04-success)!important;
}

/* ---------------- CART ---------------- */
body.weauty-wxp04-cart .wp-block-woocommerce-cart{
  color:var(--wx04-text);
}

.wxp04-cart-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid var(--wx04-border);
}

.wxp04-cart-intro__copy{
  min-width:0;
}

.wxp04-cart-intro__eyebrow,
.wxp04-checkout-kicker{
  display:block;
  margin:0 0 4px;
  color:var(--wx04-secondary);
  font-size:11px;
  font-weight:750;
  letter-spacing:.02em;
}

.wxp04-cart-intro strong{
  display:block;
  color:var(--wx04-ink);
  font-size:18px;
  line-height:1.6;
}

.wxp04-cart-intro p{
  margin:3px 0 0;
  color:var(--wx04-secondary);
  font-size:12px;
  line-height:1.8;
}

.wxp04-continue-shopping{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  padding:8px 14px;
  border:1px solid var(--wx04-border-strong);
  border-radius:12px;
  color:var(--wx04-ink)!important;
  background:#fff;
  text-decoration:none!important;
  font-size:12px;
  font-weight:700;
}

.wxp04-continue-shopping:hover{
  background:var(--wx04-soft);
}

body.weauty-wxp04-cart .wc-block-cart-items{
  border-top:0!important;
}

body.weauty-wxp04-cart .wc-block-cart-items__row{
  margin-bottom:12px!important;
  padding:16px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:16px!important;
  background:#fff;
  box-shadow:none;
}

body.weauty-wxp04-cart .wc-block-cart-item__image{
  width:116px!important;
  min-width:116px!important;
  padding:0 0 0 16px!important;
  vertical-align:top!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__image a{
  width:100px!important;
  display:block!important;
  margin:0 auto!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__image img{
  width:100px!important;
  max-width:100px!important;
  height:132px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  margin:0!important;
  border-radius:12px!important;
  background:var(--wx04-soft);
}

body.weauty-wxp04-cart .wc-block-components-product-name{
  color:var(--wx04-ink)!important;
  font-size:15px!important;
  font-weight:750!important;
  line-height:1.7!important;
  text-decoration:none!important;
}

body.weauty-wxp04-cart .wc-block-components-product-details{
  margin-top:6px!important;
  color:var(--wx04-secondary)!important;
  font-size:12px!important;
  line-height:1.8!important;
}

body.weauty-wxp04-cart .wc-block-components-product-details__name{
  font-weight:600!important;
}

body.weauty-wxp04-cart .wc-block-components-product-price{
  color:var(--wx04-ink)!important;
  font-weight:750!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector{
  width:132px!important;
  min-width:132px!important;
  height:44px!important;
  min-height:44px!important;
  display:grid!important;
  grid-template-columns:40px 52px 40px!important;
  align-items:stretch!important;
  direction:ltr!important;
  border:1px solid var(--wx04-border-strong)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector input{
  grid-column:2!important;
  width:52px!important;
  min-width:0!important;
  height:42px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-inline:1px solid var(--wx04-border)!important;
  border-radius:0!important;
  appearance:textfield!important;
  -moz-appearance:textfield!important;
  text-align:center!important;
  color:var(--wx04-ink)!important;
  background:#fff!important;
  box-shadow:none!important;
  font-weight:700!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector input::-webkit-outer-spin-button,
body.weauty-wxp04-cart .wc-block-components-quantity-selector input::-webkit-inner-spin-button{
  margin:0!important;
  -webkit-appearance:none!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector__button{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:40px!important;
  min-width:40px!important;
  height:42px!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  color:var(--wx04-ink)!important;
  background:#fff!important;
  opacity:1!important;
  font-size:18px!important;
  line-height:1!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector__button--minus{
  grid-column:1!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector__button--plus{
  grid-column:3!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector__button:hover:not(:disabled){
  background:var(--wx04-soft)!important;
}

body.weauty-wxp04-cart .wc-block-components-quantity-selector__button:disabled{
  color:#b8b8b8!important;
  background:#fafafa!important;
}

body.weauty-wxp04-cart button[aria-label^="حذف"],
body.weauty-wxp04-cart button[aria-label*="از سبد خرید"],
body.weauty-wxp04-cart a[aria-label^="حذف"],
body.weauty-wxp04-cart a[aria-label*="از سبد خرید"],
body.weauty-wxp04-cart .wc-block-cart-item__remove-link{
  min-height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:0 10px!important;
  margin-top:5px!important;
  border:0!important;
  border-radius:10px!important;
  color:var(--wx04-secondary)!important;
  background:transparent!important;
  font-size:11px!important;
  font-weight:650!important;
  text-decoration:none!important;
}

body.weauty-wxp04-cart button[aria-label^="حذف"]:hover,
body.weauty-wxp04-cart button[aria-label*="از سبد خرید"]:hover,
body.weauty-wxp04-cart a[aria-label^="حذف"]:hover,
body.weauty-wxp04-cart a[aria-label*="از سبد خرید"]:hover,
body.weauty-wxp04-cart .wc-block-cart-item__remove-link:hover{
  background:var(--wx04-soft)!important;
  color:var(--wx04-error)!important;
}

body.weauty-wxp04-cart .wc-block-cart__sidebar{
  align-self:start;
}

body.weauty-wxp04-cart .wc-block-cart__totals-title{
  margin:0!important;
  padding:0 0 14px!important;
  color:var(--wx04-ink)!important;
  font-size:17px!important;
  font-weight:750!important;
  line-height:1.6!important;
}

body.weauty-wxp04-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
body.weauty-wxp04-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
body.weauty-wxp04-checkout .wc-block-checkout__sidebar{
  border-color:var(--wx04-border)!important;
}

body.weauty-wxp04-cart .wc-block-cart__sidebar{
  padding:18px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:18px!important;
  background:var(--wx04-subtle)!important;
  box-shadow:var(--wx04-shadow);
}

body.weauty-wxp04-cart .wc-block-components-totals-wrapper{
  padding:13px 0!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-item{
  color:var(--wx04-secondary);
  font-size:13px;
}

body.weauty-wxp04-cart .wc-block-components-totals-item__value{
  color:var(--wx04-ink)!important;
  font-weight:700!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-footer-item{
  border-top:1px solid var(--wx04-border)!important;
  padding-top:16px!important;
  margin-top:4px!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.weauty-wxp04-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:var(--wx04-ink)!important;
  font-size:16px!important;
  font-weight:800!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-coupon{
  margin:4px 0!important;
  border-top:1px solid var(--wx04-border);
  border-bottom:1px solid var(--wx04-border);
}

body.weauty-wxp04-cart .wc-block-components-totals-coupon__button{
  min-height:44px!important;
  color:var(--wx04-secondary)!important;
  font-size:12px!important;
  font-weight:650!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-coupon__content{
  padding-bottom:12px!important;
}

body.weauty-wxp04-cart .wc-block-components-totals-coupon__content input{
  min-height:46px!important;
  border-radius:10px!important;
  border-color:var(--wx04-border-strong)!important;
}

body.weauty-wxp04-cart .wc-block-cart__submit-container{
  margin-top:10px!important;
}

body.weauty-wxp04-cart .wc-block-cart__submit-button{
  min-height:54px!important;
  width:100%!important;
  border:1px solid var(--wx04-ink)!important;
  background:var(--wx04-ink)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:14px!important;
}

body.weauty-wxp04-cart .wc-block-cart__submit-button:hover{
  background:#000!important;
}

.wxp04-cart-trust{
  margin:14px 0 0;
  padding:12px 12px 0;
  border-top:1px solid var(--wx04-border);
  color:var(--wx04-secondary);
  font-size:11px;
  line-height:1.9;
}

.wxp04-cart-trust a{
  color:var(--wx04-ink)!important;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Empty cart: keep Phase11 height reservation intact; simplify the hydrated content. */
body.weauty-wxp04-cart .wp-block-woocommerce-empty-cart-block{
  max-width:760px;
  margin-inline:auto!important;
  padding:clamp(30px,6vw,70px) 18px!important;
  text-align:center;
}

body.weauty-wxp04-cart .wc-block-cart__empty-cart__title{
  margin:0!important;
  color:var(--wx04-ink)!important;
  font-size:clamp(24px,4vw,34px)!important;
  font-weight:800!important;
  line-height:1.55!important;
}

body.weauty-wxp04-cart .wc-block-cart__empty-cart__title::before{
  display:none!important;
}

body.weauty-wxp04-cart .wxp04-default-empty-discovery{
  display:none!important;
}

.wxp04-empty-recovery{
  width:min(620px,100%);
  margin:14px auto 0;
}

.wxp04-empty-recovery p{
  margin:0 auto 20px;
  max-width:520px;
  color:var(--wx04-secondary);
  font-size:13px;
  line-height:2;
}

.wxp04-empty-primary{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 24px;
  border-radius:12px;
  background:var(--wx04-ink);
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:750;
}

.wxp04-empty-primary:hover{
  background:#000;
}

.wxp04-empty-paths{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}

.wxp04-empty-paths a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border:1px solid var(--wx04-border);
  border-radius:999px;
  background:#fff;
  color:var(--wx04-text)!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:650;
}

.wxp04-empty-paths a:hover{
  border-color:var(--wx04-border-strong);
  background:var(--wx04-soft);
}

.wxp04-mobile-cart-bar{
  display:none;
}

/* ---------------- CHECKOUT ---------------- */
.wxp04-checkout-progress{
  width:min(1200px,calc(100% - 32px));
  margin:0 auto clamp(18px,3vw,32px);
  padding:12px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  border:1px solid var(--wx04-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--wx04-shadow);
  direction:rtl;
}

.wxp04-checkout-progress__step{
  min-width:0;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 10px;
  border-radius:11px;
  color:var(--wx04-secondary);
  background:var(--wx04-subtle);
}

.wxp04-checkout-progress__step b{
  width:25px;
  height:25px;
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--wx04-border-strong);
  color:var(--wx04-ink);
  font-size:11px;
}

.wxp04-checkout-progress__step span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:700;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout{
  color:var(--wx04-text);
}

body.weauty-wxp04-checkout .wc-block-checkout__main{
  min-width:0;
}

body.weauty-wxp04-checkout :where(
  .wp-block-woocommerce-checkout-contact-information-block,
  .wp-block-woocommerce-checkout-shipping-address-block,
  .wp-block-woocommerce-checkout-billing-address-block,
  .wp-block-woocommerce-checkout-shipping-methods-block,
  .wp-block-woocommerce-checkout-payment-block,
  .wp-block-woocommerce-checkout-additional-information-block,
  .wp-block-woocommerce-checkout-order-note-block,
  .wp-block-woocommerce-checkout-terms-block,
  .wp-block-woocommerce-checkout-actions-block
){
  margin-bottom:12px!important;
  padding:18px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:16px!important;
  background:#fff!important;
}

body.weauty-wxp04-checkout .wc-block-components-title,
body.weauty-wxp04-checkout h2.wc-block-components-title,
body.weauty-wxp04-checkout h3.wc-block-components-title{
  margin:0 0 13px!important;
  color:var(--wx04-ink)!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:1.65!important;
}

.wxp04-checkout-section-label{
  margin:0 0 4px;
  color:var(--wx04-secondary);
  font-size:10px;
  font-weight:750;
}

.wxp04-section-help{
  margin:-5px 0 13px;
  color:var(--wx04-secondary);
  font-size:11px;
  line-height:1.85;
}

body.weauty-wxp04-checkout .wc-block-components-text-input,
body.weauty-wxp04-checkout .wc-block-components-combobox{
  margin-bottom:10px!important;
}

body.weauty-wxp04-checkout .wc-block-components-text-input input,
body.weauty-wxp04-checkout .wc-block-components-combobox-control input,
body.weauty-wxp04-checkout .wc-block-components-address-form select,
body.weauty-wxp04-checkout textarea{
  min-height:50px!important;
  border:1px solid var(--wx04-border-strong)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--wx04-ink)!important;
  box-shadow:none!important;
  font-size:14px!important;
}

body.weauty-wxp04-checkout textarea{
  padding:12px!important;
}

body.weauty-wxp04-checkout .wc-block-components-text-input label,
body.weauty-wxp04-checkout .wc-block-components-combobox-control label{
  color:var(--wx04-secondary)!important;
  font-size:12px!important;
}

body.weauty-wxp04-checkout :where(
  .wc-block-components-text-input input,
  .wc-block-components-combobox-control input,
  .wc-block-components-address-form select,
  textarea
):focus{
  border-color:var(--wx04-ink)!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.065)!important;
  outline:0!important;
}

body.weauty-wxp04-checkout #shipping-company{
  background:var(--wx04-subtle)!important;
}

body.weauty-wxp04-checkout label[for="shipping-company"]{
  color:var(--wx04-muted)!important;
}

body.weauty-wxp04-checkout .wc-block-components-validation-error{
  margin-top:5px!important;
  color:var(--wx04-error)!important;
  font-size:11px!important;
  line-height:1.7!important;
}

body.weauty-wxp04-checkout :where(
  .wc-block-components-text-input.has-error input,
  .wc-block-components-combobox.has-error input,
  input[aria-invalid="true"]
){
  border-color:var(--wx04-error)!important;
  box-shadow:0 0 0 3px rgba(180,35,24,.055)!important;
}

body.weauty-wxp04-checkout .wc-block-components-checkbox{
  min-height:44px;
  display:flex;
  align-items:center;
}

body.weauty-wxp04-checkout .wc-block-components-checkbox input[type="checkbox"],
body.weauty-wxp04-checkout input[type="radio"]{
  accent-color:var(--wx04-ink);
}

body.weauty-wxp04-checkout .wc-block-components-radio-control{
  border:0!important;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-radio-control__option{
  min-height:58px!important;
  margin:0 0 8px!important;
  padding:13px 14px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option{
  min-height:58px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-radio-control__option:hover,
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option:hover{
  border-color:var(--wx04-border-strong)!important;
  background:var(--wx04-subtle)!important;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-radio-control__option:has(input:checked),
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option:has(input:checked),
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  border-color:var(--wx04-ink)!important;
  background:var(--wx04-subtle)!important;
  box-shadow:0 0 0 1px var(--wx04-ink)!important;
}

/* Payment accordion owns the card border; its inner radio row is layout-only. */
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option{
  min-height:58px!important;
  margin:0!important;
  padding:13px 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option:hover,
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option:has(input:checked){
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Desktop/tablet payment split: cash on the right, installments on the left.
   JS only marks existing Woo-owned nodes; it never moves or wraps them. */
@media(min-width:700px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-auto-rows:auto!important;
    gap:10px 12px!important;
    direction:ltr!important;
    align-items:start!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-grid > .wxp04-payment-installment{
    grid-column:1!important;
    grid-row:var(--wxp04-payment-row)!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-grid > .wxp04-payment-cash{
    grid-column:2!important;
    grid-row:var(--wxp04-payment-row)!important;
  }
}

@media(max-width:699px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-grid{
    display:block!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-grid > .wc-block-components-radio-control-accordion-option{
    margin-bottom:8px!important;
  }
}

body.weauty-wxp04-checkout .wc-block-components-radio-control__label,
body.weauty-wxp04-checkout .wc-block-components-radio-control-accordion-option__label{
  color:var(--wx04-ink)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.75!important;
}

body.weauty-wxp04-checkout .wc-block-components-radio-control__description,
body.weauty-wxp04-checkout .wc-block-components-radio-control-accordion-content{
  color:var(--wx04-secondary)!important;
  font-size:11px!important;
  line-height:1.85!important;
}

body.weauty-wxp04-checkout .wc-block-checkout__sidebar{
  align-self:start;
  padding:18px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:18px!important;
  background:var(--wx04-subtle)!important;
  box-shadow:var(--wx04-shadow);
}

body.weauty-wxp04-checkout .wc-block-components-checkout-order-summary__title{
  color:var(--wx04-ink)!important;
  font-size:17px!important;
  font-weight:800!important;
}

body.weauty-wxp04-checkout .wc-block-components-order-summary-item{
  padding-block:13px!important;
  border-color:var(--wx04-border)!important;
}

body.weauty-wxp04-checkout .wc-block-components-order-summary-item__image img{
  aspect-ratio:3/4!important;
  object-fit:cover!important;
  border-radius:10px!important;
}

body.weauty-wxp04-checkout .wc-block-components-order-summary-item__description{
  color:var(--wx04-secondary)!important;
  font-size:11px!important;
  line-height:1.7!important;
}

body.weauty-wxp04-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{
  color:var(--wx04-ink)!important;
  font-size:13px!important;
  font-weight:750!important;
}

body.weauty-wxp04-checkout .wc-block-components-totals-wrapper{
  padding:12px 0!important;
  border-color:var(--wx04-border)!important;
}

body.weauty-wxp04-checkout .wc-block-components-totals-item__value{
  color:var(--wx04-ink)!important;
  font-weight:750!important;
}

body.weauty-wxp04-checkout .wc-block-components-totals-footer-item{
  margin-top:5px!important;
  padding-top:16px!important;
  border-top:1px solid var(--wx04-border)!important;
}

body.weauty-wxp04-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.weauty-wxp04-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:var(--wx04-ink)!important;
  font-size:16px!important;
  font-weight:800!important;
}

body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button{
  min-height:56px!important;
  width:100%!important;
  border:1px solid var(--wx04-ink)!important;
  border-radius:12px!important;
  background:var(--wx04-ink)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:800!important;
}

body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled){
  background:#000!important;
}

body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button:disabled{
  border-color:#d7d7d7!important;
  background:#e7e7e7!important;
  color:#8a8a8a!important;
  cursor:not-allowed!important;
}

.wxp04-review-marker{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  color:var(--wx04-ink);
  font-size:12px;
  font-weight:750;
}

.wxp04-review-marker b{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  border:1px solid var(--wx04-border-strong);
  border-radius:999px;
  font-size:10px;
}

.wxp04-policy-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 12px;
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid var(--wx04-border);
  color:var(--wx04-secondary);
  font-size:10px;
  line-height:1.8;
}

.wxp04-policy-links span{
  width:100%;
}

.wxp04-policy-links a{
  color:var(--wx04-ink)!important;
  font-weight:700;
  text-decoration:underline!important;
  text-underline-offset:3px;
}

body.weauty-wxp04-checkout .wc-block-components-spinner{
  color:var(--wx04-ink)!important;
}

/* Sticky summaries only on layouts with enough horizontal room. */
@media(min-width:1000px){
  body.weauty-wxp04-cart .wc-block-cart__sidebar,
  body.weauty-wxp04-checkout .wc-block-checkout__sidebar{
    position:sticky!important;
    top:92px!important;
  }
}

@media(max-width:999px){
  .wxp04-checkout-progress{
    width:calc(100% - 28px);
    overflow-x:auto;
    grid-template-columns:repeat(5,minmax(108px,1fr));
    scrollbar-width:none;
  }
  .wxp04-checkout-progress::-webkit-scrollbar{display:none}

  body.weauty-wxp04-cart .wc-block-cart__sidebar,
  body.weauty-wxp04-checkout .wc-block-checkout__sidebar{
    position:static!important;
    margin-top:16px!important;
  }
}

@media(max-width:782px){
  body.weauty-wxp04-cart .wc-block-cart-item__total{
    display:none!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-items__row{
    padding:13px!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image{
    width:94px!important;
    min-width:94px!important;
    padding:0 0 0 10px!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image a{
    width:82px!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image img{
    width:82px!important;
    max-width:82px!important;
    height:108px!important;
  }

  .wxp04-cart-intro{
    align-items:flex-start;
    flex-direction:column;
  }

  .wxp04-continue-shopping{
    width:100%;
  }

  body.weauty-wxp04-checkout :where(
    .wp-block-woocommerce-checkout-contact-information-block,
    .wp-block-woocommerce-checkout-shipping-address-block,
    .wp-block-woocommerce-checkout-billing-address-block,
    .wp-block-woocommerce-checkout-shipping-methods-block,
    .wp-block-woocommerce-checkout-payment-block,
    .wp-block-woocommerce-checkout-additional-information-block,
    .wp-block-woocommerce-checkout-order-note-block,
    .wp-block-woocommerce-checkout-terms-block,
    .wp-block-woocommerce-checkout-actions-block
  ){
    padding:15px!important;
    border-radius:14px!important;
  }

  body.weauty-wxp04-checkout .wc-block-checkout__sidebar{
    padding:15px!important;
    border-radius:14px!important;
  }
}

@media(max-width:600px){
  .wxp04-checkout-progress{
    overflow:visible;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    padding:7px;
  }

  .wxp04-checkout-progress__step{
    min-height:52px;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    padding:4px 2px;
    text-align:center;
  }

  .wxp04-checkout-progress__step b{
    width:22px;
    height:22px;
    font-size:9px;
  }

  .wxp04-checkout-progress__step span{
    width:100%;
    font-size:9px;
    text-overflow:clip;
  }

  body.weauty-wxp04-cart .site-main,
  body.weauty-wxp04-checkout .site-main{
    padding-bottom:86px;
  }

  body.weauty-wxp04-cart .entry-title,
  body.weauty-wxp04-checkout .entry-title{
    font-size:27px;
  }

  .wxp04-checkout-progress{
    margin-bottom:14px;
  }

  .wxp04-checkout-progress__step{
    min-height:44px;
  }

  body.weauty-wxp04-cart .wc-block-cart__sidebar{
    padding:14px!important;
    border-radius:14px!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-items__row{
    border-radius:14px!important;
  }

  .wxp04-mobile-cart-bar{
    position:fixed;
    z-index:60;
    inset:auto 10px 10px;
    min-height:62px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px;
    border:1px solid var(--wx04-border);
    border-radius:16px;
    background:rgba(255,255,255,.96);
    box-shadow:0 18px 48px rgba(17,17,17,.17);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    transform:translateY(0);
    opacity:1;
    transition:opacity .15s ease,transform .15s ease;
  }

  .wxp04-mobile-cart-bar.is-hidden{
    opacity:0;
    pointer-events:none;
    transform:translateY(12px);
  }

  .wxp04-mobile-cart-bar__total{
    min-width:0;
    flex:1;
    padding-inline:5px;
  }

  .wxp04-mobile-cart-bar__total small{
    display:block;
    margin-bottom:2px;
    color:var(--wx04-secondary);
    font-size:9px;
  }

  .wxp04-mobile-cart-bar__total strong{
    display:block;
    overflow:hidden;
    color:var(--wx04-ink);
    font-size:12px;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .wxp04-mobile-cart-bar__cta{
    min-height:46px;
    flex:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 16px;
    border-radius:11px;
    background:var(--wx04-ink);
    color:#fff!important;
    text-decoration:none!important;
    font-size:12px;
    font-weight:800;
  }

  body.weauty-wxp04-checkout .wc-block-components-radio-control__option,
  body.weauty-wxp04-checkout .wc-block-components-radio-control-accordion-option{
    min-height:62px!important;
    padding:12px!important;
  }

  .wxp04-policy-links{
    gap:8px 13px;
  }
}

@media(prefers-reduced-motion:reduce){
  body.weauty-wxp04-cart *,
  body.weauty-wxp04-checkout *{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}


/* WXP-04 payment columns — cash right, installments left */
@media(min-width:1000px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:10px 12px!important;
    align-items:start!important;
    direction:ltr!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-installment{
    grid-column:1!important;
    grid-row:var(--wxp04-payment-row)!important;
    align-self:start!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-cash{
    grid-column:2!important;
    grid-row:var(--wxp04-payment-row)!important;
    align-self:start!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control-accordion-option{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    direction:rtl!important;
  }
}

/* One visual boundary per payment method; the accordion owns the card border. */
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-option >
  .wc-block-components-radio-control__option{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* WXP04 final cart submit label — React-safe */
body.weauty-wxp04-cart .wc-block-cart__submit-button{
  font-size:0!important;
}
body.weauty-wxp04-cart .wc-block-cart__submit-button::after{
  content:"تکمیل سفارش";
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.2;
}


/* WXP04 final cart media/remove alignment + compact payment details */
body.weauty-wxp04-cart .wc-block-cart-item__image{
  width:120px!important;
  min-width:120px!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  vertical-align:top!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__image a{
  width:96px!important;
  margin:0!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__image img{
  width:96px!important;
  max-width:96px!important;
  height:128px!important;
  margin:0!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__product{
  padding:0!important;
  vertical-align:top!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__wrap{
  min-height:128px!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__quantity{
  gap:10px!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__remove-link{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 36px!important;
  padding:0!important;
  margin:4px 0 0!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--wx04-secondary)!important;
  line-height:1!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__remove-link svg{
  width:18px!important;
  height:18px!important;
}

body.weauty-wxp04-cart .wc-block-cart-item__remove-link:hover{
  border-color:rgba(211,48,48,.28)!important;
  background:#fff5f5!important;
  color:var(--wx04-error)!important;
}

/* Hide only text-only gateway descriptions; preserve future gateways with fields/buttons. */
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
  .wc-block-components-radio-control-accordion-content:not(:has(input,select,textarea,button)){
  display:none!important;
}

@media(max-width:782px){
  body.weauty-wxp04-cart .wc-block-cart-item__image{
    width:104px!important;
    min-width:104px!important;
    padding:0 10px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__image a,
  body.weauty-wxp04-cart .wc-block-cart-item__image img{
    width:84px!important;
    max-width:84px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__image img{
    height:112px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__wrap{
    min-height:112px!important;
  }
}

/* WXP04 remove button specificity correction */
body.weauty-wxp04-cart button.wc-block-cart-item__remove-link{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  margin:4px 0 0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 36px!important;
}


/* WXP04 round-2: cart price hierarchy, uncropped imagery, split payment boxes */
@media(min-width:783px){
  body.weauty-wxp04-cart .wc-block-cart-item__total{
    align-items:flex-start!important;
    justify-content:center!important;
    padding-top:4px!important;
    text-align:center!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__total .wc-block-components-product-price,
  body.weauty-wxp04-cart .wc-block-cart-item__total .wc-block-formatted-money-amount{
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.55!important;
    white-space:nowrap!important;
  }
}

body.weauty-wxp04-cart .wc-block-cart-item__image img,
body.weauty-wxp04-checkout .wc-block-components-order-summary-item__image img{
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f7f7!important;
}

/* Two visually independent payment groups without moving Woo/React-owned nodes. */
@media(min-width:700px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid{
    position:relative!important;
    isolation:isolate!important;
    gap:10px 28px!important;
    padding:46px 12px 12px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    overflow:visible!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before,
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    position:absolute;
    top:0;
    bottom:0;
    width:calc(50% - 7px);
    box-sizing:border-box;
    padding:13px 15px;
    border:1px solid var(--wx04-border)!important;
    border-radius:16px;
    background:#fafafa;
    color:var(--wx04-ink);
    font-size:13px;
    font-weight:800;
    line-height:1.5;
    text-align:right;
    direction:rtl;
    pointer-events:none;
    z-index:0;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before{
    content:"";
    left:0;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    content:"";
    right:0;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid >
    .wc-block-components-radio-control-accordion-option{
    position:relative!important;
    z-index:1!important;
  }
}

@media(max-width:699px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before,
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    content:none!important;
    display:none!important;
  }
}


/* WXP04 payment group headings anchored to first option in each column */
@media(min-width:700px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before,
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    border-color:rgba(17,17,17,.10)!important;
    background:#fbfbfb!important;
    box-shadow:0 5px 16px rgba(17,17,17,.035)!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-group-first::before{
    position:absolute;
    top:-34px;
    right:3px;
    z-index:2;
    color:var(--wx04-ink);
    font-size:13px;
    font-weight:800;
    line-height:1.5;
    direction:rtl;
    white-space:nowrap;
    pointer-events:none;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-installment.wxp04-payment-group-first::before{
    content:"پرداخت اقساطی";
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-cash.wxp04-payment-group-first::before{
    content:"پرداخت نقدی";
  }
}

/* WXP04 payment box positioning correction */
@media(min-width:700px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before{
    content:"پرداخت اقساطی"!important;
    left:0!important;
    right:auto!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    content:"پرداخت نقدی"!important;
    right:0!important;
    left:auto!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wxp04-payment-group-first::before{
    content:none!important;
    display:none!important;
  }
}


/* WXP04 r3 cart line price + defer shipping presentation to checkout */
@media(min-width:783px){
  body.weauty-wxp04-cart .wc-block-cart-item__total{
    display:table-cell!important;
    vertical-align:middle!important;
    padding:0 8px!important;
    text-align:left!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__total .wc-block-components-product-price,
  body.weauty-wxp04-cart .wc-block-cart-item__total .wc-block-formatted-money-amount{
    display:inline-block!important;
    font-size:18px!important;
    font-weight:800!important;
    line-height:1.5!important;
    white-space:nowrap!important;
  }
}

/* WXP04 r4 cart spacing / checkout shipping / red place-order */
@media(min-width:783px){
  body.weauty-wxp04-cart .wc-block-cart-item__image{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__image img{
    height:114px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__product{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__wrap{
    min-height:114px!important;
  }
}

body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
}

body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button{
  border-color:#ef3340!important;
  background:#ef3340!important;
  color:#fff!important;
}
body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled){
  border-color:#d62d38!important;
  background:#d62d38!important;
}
body.weauty-wxp04-checkout .wc-block-components-checkout-place-order-button:disabled{
  border-color:#ef3340!important;
  background:#ef3340!important;
  color:#fff!important;
  opacity:.45!important;
}

/* WXP04 r4 final cart inset from the right edge */
@media(min-width:783px){
  body.weauty-wxp04-cart .wc-block-cart-item__image{
    width:calc(120px + clamp(24px,2.5vw,36px))!important;
    min-width:calc(120px + clamp(24px,2.5vw,36px))!important;
    padding-right:clamp(24px,2.5vw,36px)!important;
    padding-left:12px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__quantity{
    padding-right:clamp(24px,2.5vw,36px)!important;
    box-sizing:border-box!important;
  }
}
@media(max-width:782px){
  body.weauty-wxp04-cart .wc-block-cart-item__image{
    width:118px!important;
    min-width:118px!important;
    padding-right:4px!important;
    padding-left:10px!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-item__quantity{
    padding-right:10px!important;
    box-sizing:border-box!important;
  }
}

/* WXP04 final shipping section frame: one outer section frame, no middle wrapper frame. */
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block{
  margin-bottom:12px!important;
  padding:18px!important;
  border:1px solid var(--wx04-border)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-shipping-rates-control__package,
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-radio-control{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* WXP04 remove Woo's grouped shipping-control outline; keep section + per-option frames. */
body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-shipping-methods-block
  .wc-block-components-radio-control::after{
  content:none!important;
  display:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}

/* WXP04 mobile parity 2026-10-05: preserve desktop payment grouping as stacked mobile groups. */
@media(max-width:699px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    direction:rtl!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before,
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    position:static!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    box-sizing:border-box!important;
    padding:0 3px 2px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--wx04-ink)!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.5!important;
    text-align:right!important;
    direction:rtl!important;
    pointer-events:none!important;
    z-index:auto!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before{
    content:none!important;
    display:none!important;
    order:1!important;
  }
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid:has(> .wxp04-payment-installment)::before{
    content:"پرداخت اقساطی"!important;
    display:block!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid > .wxp04-payment-installment{
    order:2!important;
    margin:0!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    content:none!important;
    display:none!important;
    order:3!important;
    margin-top:8px!important;
  }
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid:has(> .wxp04-payment-cash)::after{
    content:"پرداخت نقدی"!important;
    display:block!important;
  }

  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid > .wxp04-payment-cash{
    order:4!important;
    margin:0!important;
  }
}

/* WXP04 mobile: keep the full order summary in main; remove Woo's duplicate collapsed top summary. */
@media(max-width:782px){
  body.weauty-wxp04-checkout .wc-block-checkout.is-mobile > .wc-block-checkout__sidebar{
    display:none!important;
  }
}


/* WXP04 owner 2026-10-05: mobile payment order — cash first, installments second. */
@media(max-width:699px){
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::after{
    order:1!important;
    margin-top:0!important;
  }
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid > .wxp04-payment-cash{
    order:2!important;
  }
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid::before{
    order:3!important;
    margin-top:8px!important;
  }
  body.weauty-wxp04-checkout .wp-block-woocommerce-checkout-payment-block
    .wc-block-components-radio-control.wxp04-payment-grid > .wxp04-payment-installment{
    order:4!important;
  }
}


/* WXP04 owner 2026-10-05 r2: contained mobile cart cards + exact media alignment. */
@media(max-width:782px){
  body.weauty-wxp04-cart .wp-block-woocommerce-cart,
  body.weauty-wxp04-cart .wc-block-cart,
  body.weauty-wxp04-cart .wc-block-cart__main,
  body.weauty-wxp04-cart .wc-block-cart-items,
  body.weauty-wxp04-cart .wc-block-cart-items tbody{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-items{
    table-layout:fixed!important;
    margin-inline:0!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-items__row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 108px!important;
    grid-template-areas:"product image"!important;
    align-items:center!important;
    gap:12px!important;
    direction:ltr!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 12px!important;
    padding:14px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-items__row > td{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    border:0!important;
    box-sizing:border-box!important;
    direction:rtl!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image{
    grid-area:image!important;
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
    padding:0!important;
    margin:0!important;
    align-self:center!important;
    justify-self:end!important;
    display:grid!important;
    place-items:center!important;
    text-align:center!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image a{
    width:92px!important;
    height:122px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__image img{
    width:92px!important;
    max-width:92px!important;
    height:122px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:12px!important;
    background:#f7f7f7!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__product{
    grid-area:product!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    align-self:center!important;
    text-align:right!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:122px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:4px!important;
    overflow:visible!important;
  }

  body.weauty-wxp04-cart .wc-block-components-product-name,
  body.weauty-wxp04-cart .wc-block-components-product-metadata,
  body.weauty-wxp04-cart .wc-block-cart-item__prices,
  body.weauty-wxp04-cart .wc-block-cart-item__quantity{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__quantity{
    padding-right:0!important;
    padding-left:0!important;
    margin-top:8px!important;
  }

  body.weauty-wxp04-cart .wc-block-cart-item__total{
    display:none!important;
  }
}

/* WXP04 owner 2026-10-05 r3: final mobile cart containment/media precedence. */
@media(max-width:782px){
  body.weauty-wxp04-cart .wp-block-woocommerce-cart{
    width:calc(100% - 32px)!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }
  body.weauty-wxp04-cart .wc-block-cart__main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-items,
  body.weauty-wxp04-cart .wc-block-cart-items tbody{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  body.weauty-wxp04-cart .wc-block-cart-items__row > td.wc-block-cart-item__total{
    display:none!important;
  }
  html body.weauty-wxp04-cart .wc-block-cart-items__row > td.wc-block-cart-item__image{
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
    padding:0!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    align-self:center!important;
    justify-self:end!important;
  }
  html body.weauty-wxp04-cart .wc-block-cart-items__row > td.wc-block-cart-item__image a{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    height:122px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
  }
  html body.weauty-wxp04-cart .wc-block-cart-items__row > td.wc-block-cart-item__image img{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    height:122px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    object-fit:contain!important;
    object-position:center!important;
  }
}


/* Owner-approved commerce wording — 2026-10-06 */
body.weauty-wxp04-cart
  .wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label{
  font-size:0!important;
}
body.weauty-wxp04-cart
  .wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label::after{
  content:"مجموع سبد";
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.6;
}

body.weauty-wxp04-checkout
  .wc-block-components-checkout-place-order-button{
  font-size:0!important;
}
body.weauty-wxp04-checkout
  .wc-block-components-checkout-place-order-button::after{
  content:"پرداخت سفارش";
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.2;
}

/* Post/courier are postpaid: never describe their delivery charge as free. */
body.weauty-wxp04-checkout.weauty-postpay-selected
  .wc-block-components-totals-shipping
  .wc-block-components-totals-item__value{
  font-size:0!important;
}
body.weauty-wxp04-checkout.weauty-postpay-selected
  .wc-block-components-totals-shipping
  .wc-block-components-totals-item__value::after{
  content:"پرداخت هنگام تحویل";
  display:inline-block;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.6;
  color:var(--wx04-ink,#171717);
}


/* Cart summary restore — 2026-10-06
 * Shipping is postpaid and must remain visible between coupon and cart total.
 */
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-totals-block{
  display:block!important;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block,
body.weauty-wxp04-cart .wc-block-components-totals-shipping{
  display:block!important;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block{
  padding:13px 0!important;
  border-top:0!important;
  border-bottom:1px solid var(--wx04-border)!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-shipping .wc-block-components-totals-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:4px 12px!important;
  align-items:center!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__label{
  grid-column:1!important;
  grid-row:1!important;
  color:var(--wx04-text)!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__value{
  grid-column:2!important;
  grid-row:1!important;
  color:var(--wx04-ink)!important;
  font-size:0!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after{
  content:"پرداخت هنگام تحویل";
  font-size:12px!important;
  font-weight:700!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__description{
  grid-column:1 / -1!important;
  grid-row:2!important;
  margin:0!important;
  color:var(--wx04-secondary)!important;
  font-size:11px!important;
  line-height:1.7!important;
}
body.weauty-wxp04-cart .wc-block-components-totals-footer-item{
  margin-top:0!important;
}
/* Cart summary item-count row — 2026-10-06
 * Cart does not expose shipping status. Reuse Woo's shipping summary slot
 * as a stable item-count row between coupon and cart total.
 */
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-totals-block{
  display:block!important;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:46px!important;
  padding:12px 0!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid var(--wx04-border)!important;
  background:transparent!important;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block
  .wc-block-components-totals-shipping{
  display:none!important;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block::before{
  content:"تعداد اقلام";
  color:var(--wx04-text)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.6;
}
body.weauty-wxp04-cart .wp-block-woocommerce-cart-order-summary-shipping-block::after{
  content:attr(data-wxp04-item-count);
  color:var(--wx04-ink)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.6;
  white-space:nowrap;
}
/* One separator only: item-count row owns it; total must not add another line. */
body.weauty-wxp04-cart .wc-block-components-totals-footer-item{
  border-top:0!important;
  margin-top:0!important;
  padding-top:14px!important;
}
