:root{
    --wype-primary:#674188;
    --wype-desktop-bottom:24px;
    --wype-mobile-bottom:50px;
    --wype-font:inherit;
    --wype-cart-height:56px;
    --wype-cart-radius:14px;
    --wype-add-text:#fff;
    --wype-add-border:#674188;
    --wype-add-border-width:0px;
    --wype-stepper-bg:#fff;
    --wype-stepper-border:#E6E8EC;
    --wype-control-bg:#F5F5F5;
    --wype-control-hover-bg:#EEEEEE;
    --wype-control-color:#674188;
    --wype-delete-bg:#FFF1F1;
    --wype-delete-color:#D33B3B;
    --wype-swatch-border:#DDE0E5;
    --wype-swatch-active:#674188;
}

/* فقط native controls داخل فرم محصول پنهان می‌شوند؛ ساختار WooCommerce در DOM سالم می‌ماند. */
.single-product form.cart .wype-native-hidden{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-width:1px!important;
    min-height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
    opacity:0!important;
    pointer-events:none!important;
}

/* Only opt-in price synchronization and dropdowns with WordYar swatches. */
.single-product form.wype-sync-native-price .single_variation .woocommerce-variation-price{
    display:none!important;
}

.single-product form.variations_form .variations .value:has(> .wype-swatches) > select{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

/* Swatches */
.wype-swatches{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px!important;
    font-family:var(--wype-font)!important;
}

.wype-swatch{
    all:unset!important;
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    cursor:pointer!important;
    font-family:var(--wype-font)!important;
    font-size:.78rem!important;
    font-weight:700!important;
    line-height:1.2!important;
    transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,opacity .18s ease!important;
}

.wype-swatch--text{
    min-width:var(--wype-text-swatch-width,54px)!important;
    min-height:var(--wype-text-swatch-height,42px)!important;
    padding:0 14px!important;
    border:1.5px solid var(--wype-swatch-border)!important;
    border-radius:var(--wype-text-swatch-radius,22px)!important;
    background:#fff!important;
    color:#333!important;
}

.wype-swatch--text.is-active{
    color:var(--wype-swatch-active)!important;
    border-color:var(--wype-swatch-active)!important;
    background:#fff!important;
    box-shadow:none!important;
}

.wype-swatch--color{
    width:var(--wype-color-swatch-size,30px)!important;
    height:var(--wype-color-swatch-size,30px)!important;
    padding:0!important;
    border:2px solid #fff!important;
    border-radius:var(--wype-color-swatch-radius,50%)!important;
    background:var(--wype-swatch-color)!important;
    box-shadow:0 0 0 1px var(--wype-color-swatch-border,var(--wype-swatch-border))!important;
}

.wype-swatch--color.is-active{
    box-shadow:0 0 0 var(--wype-color-swatch-active-width,2px) var(--wype-color-swatch-active-border,var(--wype-swatch-active))!important;
}

.wype-swatch--color > .wype-swatch__tooltip{
    position:absolute;
    z-index:5;
    inset-block-end:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%);
    width:max-content;
    max-width:min(180px, 75vw);
    padding:4px 8px;
    border-radius:5px;
    background:#172033;
    color:#fff;
    font-size:12px;
    font-weight:500;
    line-height:1.5;
    text-align:center;
    overflow-wrap:anywhere;
    visibility:hidden;
    pointer-events:none;
}

.wype-swatch--color:focus-visible > .wype-swatch__tooltip{
    visibility:visible;
}

@media (hover:hover){
    .wype-swatch--color:hover > .wype-swatch__tooltip{
        visibility:visible;
    }
}

.wype-swatch--color:focus-visible{
    outline:2px dashed var(--wype-color-swatch-active-border,var(--wype-swatch-active))!important;
    outline-offset:4px!important;
}

.wype-swatch--color.is-active::after{
    content:"✓"!important;
    position:absolute!important;
    inset:0!important;
    display:var(--wype-color-swatch-check-display,flex)!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--wype-color-swatch-check-color,#fff)!important;
    font:700 calc(var(--wype-color-swatch-size,30px) / 2)/1 Arial,sans-serif!important;
    text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}

.wype-swatch.is-disabled{
    opacity:.25!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    filter:grayscale(.35)!important;
}

/* Main price: فقط عنصری که JS به عنوان قیمت اصلی پیدا کرده این کلاس را می‌گیرد. */
.wype-main-price{
    font-family:var(--wype-font)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    line-height:1.5!important;
}

.wype-main-price del{
    opacity:.48!important;
    font-size:.82em!important;
    font-weight:500!important;
}

.wype-main-price ins{
    text-decoration:none!important;
    font-weight:800!important;
}

/* Cart component مستقل */
.wype-cart{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    clear:both!important;
    font-family:var(--wype-font)!important;
    margin-top:10px!important;
}

.wype-cart__add{
    all:unset!important;
    width:100%!important;
    min-height:52px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    padding:0 18px!important;
    border:var(--wype-add-border-width) solid var(--wype-add-border)!important;
    border-radius:var(--wype-cart-radius)!important;
    background:var(--wype-primary)!important;
    color:var(--wype-add-text)!important;
    font-family:var(--wype-font)!important;
    font-size:.84rem!important;
    font-weight:700!important;
    cursor:pointer!important;
    box-shadow:none!important;
    transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease!important;
}

.wype-cart__add:hover{
    transform:translateY(-1px)!important;
    box-shadow:none!important;
}

.wype-cart__add.is-awaiting{
    opacity:.55!important;
    box-shadow:none!important;
}

.wype-cart__add[disabled]{
    cursor:wait!important;
}

.wype-cart__add[aria-hidden="true"]{
    display:none!important;
}

.wype-cart.has-item .wype-cart__add{
    display:none!important;
}

.wype-cart__add-label.is-hidden{
    visibility:hidden!important;
}

.wype-cart__loader{
    display:none!important;
    position:absolute!important;
    width:17px!important;
    height:17px!important;
    border:2px solid currentColor!important;
    border-inline-end-color:transparent!important;
    border-radius:50%!important;
    animation:wype-spin .7s linear infinite!important;
}

.wype-cart__loader.is-visible{
    display:block!important;
}

@media(prefers-reduced-motion:reduce){
    .wype-cart__loader{animation:none!important}
}

.wype-cart__hint{
    display:none!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin-top:7px!important;
    padding:8px 10px!important;
    border-radius:9px!important;
    background:#FFF8ED!important;
    color:#8A5A16!important;
    font-family:var(--wype-font)!important;
    font-size:.7rem!important;
    line-height:1.6!important;
    text-align:center!important;
}

.wype-cart__hint.is-visible{
    display:block!important;
}

.wype-cart__in-cart{
    display:none!important;
    width:100%!important;
    grid-template-columns:minmax(0,1.7fr) minmax(118px,.85fr)!important;
    gap:8px!important;
    align-items:stretch!important;
}

.wype-cart.has-item .wype-cart__in-cart{
    display:grid!important;
}

.wype-stepper{
    min-width:0!important;
    height:var(--wype-cart-height)!important;
    display:grid!important;
    grid-template-columns:minmax(20px,var(--wype-stepper-button-size,calc(var(--wype-cart-height) - 10px))) minmax(40px,1fr) minmax(20px,var(--wype-stepper-button-size,calc(var(--wype-cart-height) - 10px)))!important;
    align-items:center!important;
    gap:4px!important;
    box-sizing:border-box!important;
    padding:5px!important;
    background:var(--wype-stepper-bg)!important;
    border:1px solid var(--wype-stepper-border)!important;
    border-radius:var(--wype-cart-radius)!important;
    box-shadow:var(--wype-stepper-shadow,none)!important;
}

.wype-stepper__button{
    all:unset!important;
    width:min(var(--wype-stepper-button-size,42px),calc(var(--wype-cart-height) - 12px))!important;
    height:min(var(--wype-stepper-button-size,42px),calc(var(--wype-cart-height) - 12px))!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    cursor:pointer!important;
    color:var(--wype-control-color)!important;
    background:var(--wype-control-bg)!important;
    border-radius:11px!important;
    transition:background .18s ease,transform .18s ease!important;
}

.wype-stepper__button:hover{
    background:var(--wype-control-hover-bg)!important;
    transform:scale(1.03)!important;
}

.wype-cart.is-at-limit .wype-stepper__plus:disabled{
    opacity:.45!important;
    cursor:not-allowed!important;
    background:var(--wype-control-bg)!important;
    transform:none!important;
}

.wype-stepper__button.is-delete{
    color:var(--wype-delete-color)!important;
    background:var(--wype-delete-bg)!important;
}

.wype-stepper__button svg{
    width:20px!important;
    height:20px!important;
    display:block!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

.wype-stepper__value{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
}

.wype-stepper__value :is(strong,small){
    font-family:var(--wype-qty-number-font-family,var(--wype-qty-font-family,inherit))!important;
    font-size:var(--wype-qty-number-font-size,var(--wype-qty-font-size,var(--wype-qty-default-size)))!important;
    font-weight:var(--wype-qty-number-font-weight,var(--wype-qty-font-weight,var(--wype-qty-default-weight,inherit)))!important;
    font-style:var(--wype-qty-number-font-style,var(--wype-qty-font-style,inherit))!important;
    text-transform:var(--wype-qty-number-text-transform,var(--wype-qty-text-transform,inherit))!important;
    text-decoration:var(--wype-qty-number-text-decoration,var(--wype-qty-text-decoration,none))!important;
    line-height:var(--wype-qty-number-line-height,var(--wype-qty-line-height,var(--wype-qty-default-line-height)))!important;
    letter-spacing:var(--wype-qty-number-letter-spacing,var(--wype-qty-letter-spacing,inherit))!important;
    word-spacing:var(--wype-qty-number-word-spacing,var(--wype-qty-word-spacing,inherit))!important;
}

.wype-stepper__value strong{
    --wype-qty-default-size:1rem;
    --wype-qty-default-line-height:1.1;
    --wype-qty-default-weight:bolder;
    color:#28222F!important;
}

.wype-stepper__value small{
    --wype-qty-default-size:.56rem;
    --wype-qty-default-line-height:1.2;
    color:#888!important;
    white-space:nowrap!important;
}

.wype-cart__view{
    all:unset!important;
    min-width:0!important;
    height:56px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 14px!important;
    grid-template-rows:1fr 1fr!important;
    column-gap:4px!important;
    align-items:center!important;
    padding:var(--wype-cart-link-padding,7px 10px)!important;
    background:#fff!important;
    border:1px solid #E6E8EC!important;
    border-radius:14px!important;
    box-shadow:0 1px 3px rgba(0,0,0,.05)!important;
    color:var(--wype-cart-link-color,#30263B)!important;
    cursor:pointer!important;
    font-family:var(--wype-cart-link-font-family,var(--wype-font))!important;
}

.wype-cart__view strong{
    grid-column:1!important;
    grid-row:1!important;
    align-self:end!important;
    min-width:0!important;
    font-size:var(--wype-cart-link-font-size,.64rem)!important;
    line-height:var(--wype-cart-link-line-height,1.2)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.wype-cart__view small{
    grid-column:1!important;
    grid-row:2!important;
    align-self:start!important;
    min-width:0!important;
    color:var(--wype-cart-link-color,var(--wype-primary))!important;
    font-size:var(--wype-cart-link-font-size,.54rem)!important;
    line-height:var(--wype-cart-link-line-height,1.2)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

.wype-cart__view > span{
    grid-column:2!important;
    grid-row:1 / 3!important;
    align-self:center!important;
    color:var(--wype-cart-link-color,#aaa)!important;
    font-size:var(--wype-cart-link-font-size,18px)!important;
    line-height:var(--wype-cart-link-line-height,1)!important;
}

@keyframes wype-spin{
    to{transform:rotate(360deg)}
}

@media(max-width:767px){
    .wype-cart__in-cart{
        grid-template-columns:minmax(0,1.8fr) minmax(108px,.8fr)!important;
        gap:7px!important;
    }

    .wype-cart__view{
        padding:var(--wype-cart-link-padding,7px 8px)!important;
    }

    .wype-cart__view strong{
        font-size:var(--wype-cart-link-font-size,.6rem)!important;
    }

    .wype-cart__view small{
        font-size:var(--wype-cart-link-font-size,.49rem)!important;
    }


}

@media(max-width:360px){
    .wype-cart__in-cart{
        grid-template-columns:minmax(0,1fr)!important;
    }

    .wype-cart__view{
        height:50px!important;
    }


}

.wype-stepper__value strong.is-changing{
    animation:wype-qty-change .26s ease both!important;
}
.wype-cart.is-busy .wype-stepper__button{
    opacity:.55!important;
    pointer-events:none!important;
}
@keyframes wype-qty-change{
    0%{opacity:1;transform:translateY(0) scale(1)}
    45%{opacity:0;transform:translateY(-5px) scale(.92)}
    46%{opacity:0;transform:translateY(5px) scale(.92)}
    100%{opacity:1;transform:translateY(0) scale(1)}
}

/* 1.6.4 — interaction lock / processing feedback */
.wype-cart.is-busy{
    cursor:progress!important;
}
.wype-cart.is-busy .wype-cart__add,
.wype-cart.is-busy .wype-stepper__button,
.wype-cart.is-busy .wype-cart__view{
    pointer-events:none!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value strong{
    display:block!important;
    opacity:.42!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value::after{
    content:""!important;
    position:absolute!important;
    width:13px!important;
    height:13px!important;
    left:calc(50% + 13px)!important;
    top:50%!important;
    margin-top:-6.5px!important;
    border:2px solid currentColor!important;
    border-right-color:transparent!important;
    border-radius:50%!important;
    box-sizing:border-box!important;
    animation:wype-processing-spin .65s linear infinite!important;
}
@keyframes wype-processing-spin{
    to{transform:rotate(360deg)}
}
@media (prefers-reduced-motion:reduce){
    .wype-cart__in-cart.is-processing .wype-stepper__value::after,
    .wype-stepper__value strong.is-changing{
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
    }
}

/* 1.6.6 — RTL control order */
.wype-stepper{
    direction:ltr!important;
}
.wype-stepper__minus{
    order:1!important;
}
.wype-stepper__value{
    order:2!important;
}
.wype-stepper__plus{
    order:3!important;
}


/* 1.6.8 — fixed SVG left chevron; independent of RTL text direction */
.wype-cart__view .wype-cart__view-arrow{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:16px!important;
    height:16px!important;
    transform:none!important;
}
.wype-cart__view .wype-cart__view-arrow svg{
    display:block!important;
    width:16px!important;
    height:16px!important;
    transform:none!important;
}

/* خود UI وردیار فقط بعد از ساخته‌شدن توسط JS وارد layout می‌شود. */
.wype-cart{
    visibility:visible!important;
}

/* 1.3.3 — Elementor Sticky creates a visibility:hidden spacer clone.
 * WYPE explicitly makes .wype-cart visible, which would otherwise override the
 * inherited hidden visibility and expose only the cart inside that spacer.
 * Keep the spacer copy inert and invisible; Elementor still retains it for layout. */
/* 1.3.4 — Elementor Sticky spacer must remain completely invisible.
 * .wype-cart itself is explicitly visibility:visible!important above, so hiding
 * only the module host is not enough: a child can override inherited visibility.
 * Hide the actual WYPE UI nodes directly while preserving the spacer dimensions. */
.elementor-sticky__spacer [data-wype-module="cart"],
.elementor-sticky__spacer [data-wype-module="cart-link"],
.elementor-sticky__spacer .wype-cart,
.elementor-sticky__spacer .wype-cart__view{
    visibility:hidden!important;
    pointer-events:none!important;
}

/* 1.7.5 — modular views built on the stable 1.6.9 WooCommerce engine */
.wype-engine{display:none!important}
.wype-module{width:100%;max-width:100%;box-sizing:border-box}
.wype-module--variations .reset_variations{display:none!important}
.wype-module--cart .wype-cart{width:100%!important;margin-top:0!important}
.wype-module--cart .wype-cart__in-cart{grid-template-columns:1fr!important}
.wype-module--cart .wype-cart__view{display:none!important}
.wype-module--cart-link .wype-cart__view{width:100%!important}


/* 1.7.8 — shortcode variation UI is independent from WooCommerce table markup. */
.wype-module--variations,
.wype-module--variations .wype-variations-view,
.wype-module--variations .wype-variation-item,
.wype-module--variations .wype-variation-label,
.wype-module--variations .wype-swatches{
    box-sizing:border-box!important;
}

.wype-module--variations .wype-variations-view{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    gap:14px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}

.wype-module--variations .wype-variation-item{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    width:100%!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}

.wype-module--variations .wype-variation-label{
    display:block!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:inherit!important;
    font:inherit;
    font-weight:600;
}

/* Modular shortcodes must never inherit WooCommerce table chrome. */
.wype-module--variations table,
.wype-module--variations tbody,
.wype-module--variations tr,
.wype-module--variations th,
.wype-module--variations td{
    display:unset!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

/* 1.8.1 — clean, RTL-safe selected variation heading */
.wype-module--variations .wype-variation-label{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    direction:rtl!important;
    gap:0!important;
    width:auto!important;
    margin:0 0 9px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    line-height:1.6;
    white-space:nowrap!important;
}
.wype-module--variations .wype-variation-label__name{
    display:inline-block!important;
    margin:0!important;
    padding:0!important;
    font-size:14px;
    font-weight:600;
    line-height:1.6;
}
.wype-module--variations .wype-variation-label__separator{
    display:inline-block!important;
    margin:0 1px 0 5px!important;
    padding:0!important;
    font-size:14px;
    font-weight:600;
    line-height:1.6;
}
.wype-module--variations .wype-variation-label__selected{
    display:inline-flex!important;
    align-items:center!important;
    direction:rtl!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
    font-size:12px;
    font-weight:500;
    line-height:1.6;
}
.wype-module--variations .wype-variation-label__selected[hidden]{
    display:none!important;
}
.wype-module--variations .wype-variation-label__selected-text{
    display:inline-block!important;
    margin:0!important;
    padding:0!important;
    font:inherit;
}
.wype-module--variations .wype-variation-label__color-dot{
    display:inline-block!important;
    box-sizing:border-box;
    flex:none;
    width:var(--wype-selected-dot-size,9px)!important;
    height:var(--wype-selected-dot-size,9px)!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    background:var(--wype-selected-color,transparent)!important;
    border:1px solid rgba(0,0,0,.14)!important;
    box-shadow:none!important;
}
.wype-module--variations .wype-variation-item{
    gap:7px!important;
}
.wype-module--variations .wype-variation-item + .wype-variation-item{
    margin-top:12px!important;
}


/* 1.8.3 — add button and quantity controller are two states of the same box. */
.wype-cart__add,
.wype-stepper{
    height:var(--wype-cart-height)!important;
    min-height:var(--wype-cart-height)!important;
}
.wype-module--cart .wype-cart__add,
.wype-module--cart .wype-stepper{
    width:100%!important;
    max-width:100%!important;
    height:var(--wype-cart-height)!important;
    min-height:var(--wype-cart-height)!important;
    box-sizing:border-box!important;
}


/* Shortcode responsive visibility */
@media(min-width:1025px){.wype-module[data-wype-device="mobile"],.wype-module[data-wype-device="tablet"]{display:none!important}}
@media(min-width:768px) and (max-width:1024px){.wype-module[data-wype-device="desktop"],.wype-module[data-wype-device="mobile"]{display:none!important}}
@media(max-width:767px){.wype-module[data-wype-device="desktop"],.wype-module[data-wype-device="tablet"]{display:none!important}}

/* 1.9.1 — initial cart hydration uses the add-button loader; quantity keeps its current number visible while syncing. */

/* 1.9.2 — quantity processing is one centered state: number/label fade and spinner sits exactly on the number axis. */
.wype-cart__in-cart.is-processing .wype-stepper__value{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value strong{
    visibility:hidden!important;
    opacity:0!important;
    animation:none!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value small{
    opacity:.28!important;
    transition:opacity .16s ease!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__value::after{
    content:""!important;
    position:absolute!important;
    width:14px!important;
    height:14px!important;
    left:50%!important;
    top:12px!important;
    margin-left:-7px!important;
    margin-top:-7px!important;
    border:2px solid currentColor!important;
    border-right-color:transparent!important;
    border-radius:50%!important;
    box-sizing:border-box!important;
    animation:wype-processing-spin .65s linear infinite!important;
}
.wype-cart__in-cart.is-processing .wype-stepper__button{
    opacity:.38!important;
}


/* 1.9.3 — combined cart + cart-link shortcode and slightly roomier quantity label. */
.wype-cart-full{width:100%;display:flex;flex-direction:column;gap:8px;}
.wype-cart-full > .wype-module{width:100%;}
@media(min-width:1025px){.wype-cart-full[data-wype-device="mobile"],.wype-cart-full[data-wype-device="tablet"]{display:none!important}}
@media(min-width:768px) and (max-width:1024px){.wype-cart-full[data-wype-device="desktop"],.wype-cart-full[data-wype-device="mobile"]{display:none!important}}
@media(max-width:767px){.wype-cart-full[data-wype-device="desktop"],.wype-cart-full[data-wype-device="tablet"]{display:none!important}}


/* 1.9.4 — combined cart layout: primary action 70%, cart link 30%, equal height. */
.wype-cart-full{
    width:100%!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:8px!important;
}
.wype-cart-full > .wype-module--cart{
    flex:7 1 0!important;
    width:auto!important;
    min-width:0!important;
}
.wype-cart-full > .wype-module--cart-link{
    flex:3 1 0!important;
    width:auto!important;
    min-width:0!important;
}
.wype-cart-full > .wype-module--cart .wype-cart,
.wype-cart-full > .wype-module--cart .wype-cart__add,
.wype-cart-full > .wype-module--cart .wype-stepper,
.wype-cart-full > .wype-module--cart-link,
.wype-cart-full > .wype-module--cart-link .wype-cart__view{
    height:var(--wype-cart-height)!important;
    min-height:var(--wype-cart-height)!important;
    max-height:var(--wype-cart-height)!important;
    box-sizing:border-box!important;
}
.wype-cart-full > .wype-module--cart-link .wype-cart__view{
    width:100%!important;
}

/* 1.9.5 — lock combined cart row sizing/alignment. */
.wype-cart-full{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
}
.wype-cart-full > .wype-module--cart{
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    align-self:stretch!important;
}
.wype-cart-full > .wype-module--cart-link{
    flex:0 0 30%!important;
    width:30%!important;
    max-width:30%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    align-self:stretch!important;
}
.wype-cart-full > .wype-module--cart .wype-cart,
.wype-cart-full > .wype-module--cart .wype-cart__add,
.wype-cart-full > .wype-module--cart .wype-cart__in-cart,
.wype-cart-full > .wype-module--cart .wype-stepper,
.wype-cart-full > .wype-module--cart-link,
.wype-cart-full > .wype-module--cart-link .wype-cart__view{
    margin-top:0!important;
    margin-bottom:0!important;
}
.wype-cart-full > .wype-module--cart,
.wype-cart-full > .wype-module--cart-link,
.wype-cart-full > .wype-module--cart .wype-cart,
.wype-cart-full > .wype-module--cart .wype-cart__add,
.wype-cart-full > .wype-module--cart .wype-stepper,
.wype-cart-full > .wype-module--cart-link .wype-cart__view{
    height:var(--wype-cart-height)!important;
    min-height:var(--wype-cart-height)!important;
    max-height:var(--wype-cart-height)!important;
    box-sizing:border-box!important;
}
.wype-cart-full > .wype-module--cart-link .wype-cart__view{
    width:100%!important;
    max-width:100%!important;
}


/* 1.9.6 — cart-full hydration + compact 30% cart action. */
.wype-module--cart-link[hidden]{
    display:none!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:var(--wype-cart-link-padding,0 9px)!important;
    text-align:center!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view strong{
    display:none!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view small{
    display:block!important;
    min-width:0!important;
    color:var(--wype-cart-link-color,var(--wype-primary))!important;
    font-size:var(--wype-cart-link-font-size,.58rem)!important;
    line-height:var(--wype-cart-link-line-height,1.25)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view > span{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
}
/* While the initial cart state is unknown, only the primary cart module owns
   the row. Once render() confirms qty > 0, the 30% cart link is revealed. */
.wype-cart-full > .wype-module--cart{
    min-height:var(--wype-cart-height)!important;
}


/* 1.9.7 — compact cart action fit + temporary selection hint. */
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view{
    gap:2px!important;
    padding:var(--wype-cart-link-padding,0 4px)!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view small{
    font-size:var(--wype-cart-link-font-size,.52rem)!important;
    line-height:var(--wype-cart-link-line-height,1.15)!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view-arrow svg{
    width:12px!important;
    height:12px!important;
}
.wype-cart__hint.is-visible{
    position:relative!important;
    z-index:2!important;
}


/* 1.9.8 — stable 65/35 combined cart layout and true vertical centering. */
.wype-cart-full > .wype-module--cart{
    flex:1 1 65%!important;
    width:auto!important;
    min-width:0!important;
}
.wype-cart-full > .wype-module--cart-link{
    flex:0 0 var(--wype-cart-link-width,35%)!important;
    width:var(--wype-cart-link-width,35%)!important;
    max-width:var(--wype-cart-link-width,35%)!important;
    min-width:0!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    height:var(--wype-cart-height)!important;
    min-height:var(--wype-cart-height)!important;
    max-height:var(--wype-cart-height)!important;
    padding:var(--wype-cart-link-padding,0 8px)!important;
    line-height:var(--wype-cart-link-line-height,1)!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view small{
    display:block!important;
    flex:0 1 auto!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:center!important;
    margin:0!important;
    padding:var(--wype-cart-link-padding,0)!important;
    min-width:0!important;
    font-size:var(--wype-cart-link-font-size,.58rem)!important;
    line-height:var(--wype-cart-link-line-height,1.25)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.wype-cart-full > .wype-module--cart-link.wype-cart-link--compact .wype-cart__view > span{
    display:flex!important;
    flex:0 0 auto!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:center!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:var(--wype-cart-link-padding,0)!important;
    line-height:var(--wype-cart-link-line-height,1)!important;
}


/* 1.2.8 — Wordyar Cart Quantity Controller
 * The outer height is the single source of truth. Buttons are derived from it,
 * so +/-/trash remain centered when the configured height changes on desktop,
 * tablet or mobile. */
.woocommerce-cart-form .quantity.wype-cart-qty{
    --wype-cart-qty-height:var(--wype-cart-height,56px);
    --wype-cart-qty-inset:5px;
    --wype-cart-qty-button:min(42px,calc(var(--wype-cart-qty-height) - (var(--wype-cart-qty-inset) * 2)));
    direction:ltr!important;
    display:grid!important;
    grid-template-columns:var(--wype-cart-qty-button) minmax(38px,1fr) var(--wype-cart-qty-button)!important;
    align-items:center!important;
    justify-items:center!important;
    gap:4px!important;
    width:146px!important;
    min-width:146px!important;
    height:var(--wype-cart-qty-height)!important;
    min-height:0!important;
    margin:0!important;
    padding:var(--wype-cart-qty-inset)!important;
    border:1px solid var(--wype-stepper-border,#E6E8EC)!important;
    border-radius:var(--wype-cart-radius,14px)!important;
    background:var(--wype-stepper-bg,#fff)!important;
    box-shadow:var(--wype-stepper-shadow,none)!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    line-height:1!important;
}
.woocommerce-cart-form .wype-cart-qty__native{
    position:absolute!important;
    width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;border:0!important;
    opacity:0!important;pointer-events:none!important;
}
.woocommerce-cart-form .wype-cart-qty__button{
    all:unset!important;
    width:var(--wype-cart-qty-button)!important;
    height:var(--wype-cart-qty-button)!important;
    min-width:0!important;min-height:0!important;
    margin:0!important;padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    justify-self:center!important;
    box-sizing:border-box!important;
    cursor:pointer!important;
    color:var(--wype-control-color,#674188)!important;
    background:var(--wype-control-bg,#F5F5F5)!important;
    border-radius:min(11px,calc(var(--wype-cart-qty-button) * .27))!important;
    line-height:1!important;
    font-size:0!important;
    vertical-align:middle!important;
    transition:background .18s ease,transform .18s ease,opacity .18s ease!important;
}
.woocommerce-cart-form .wype-cart-qty__button:hover:not(:disabled){
    background:var(--wype-control-hover-bg,#EEEEEE)!important;
    transform:scale(1.03)!important;
}
.woocommerce-cart-form .wype-cart-qty__button.is-delete{
    color:var(--wype-delete-color,#D33B3B)!important;
    background:var(--wype-delete-bg,#FFF1F1)!important;
}
.woocommerce-cart-form .wype-cart-qty__button:disabled,
.woocommerce-cart-form .wype-cart-qty__button.is-disabled{
    opacity:.38!important;cursor:not-allowed!important;transform:none!important;
}
.woocommerce-cart-form .wype-cart-qty__button svg{
    width:min(20px,calc(var(--wype-cart-qty-button) * .48))!important;
    height:min(20px,calc(var(--wype-cart-qty-button) * .48))!important;
    margin:0!important;padding:0!important;
    display:block!important;
    flex:0 0 auto!important;
    fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
    stroke-linecap:round!important;stroke-linejoin:round!important;
}
.woocommerce-cart-form .wype-cart-qty__value{
    direction:rtl!important;
    width:100%!important;height:100%!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    align-self:stretch!important;justify-self:stretch!important;
    margin:0!important;padding:0!important;
    min-width:0!important;color:#28222F!important;font-size:1rem!important;font-weight:700!important;line-height:1!important;
    font-family:inherit!important;user-select:none!important;
    box-sizing:border-box!important;
}
.wype-cart-page-notice{
    position:fixed;left:50%;bottom:24px;z-index:999999;
    transform:translate(-50%,12px);opacity:0;
    padding:10px 16px;border-radius:10px;background:#202124;color:#fff;
    font:inherit;font-size:13px;font-weight:600;line-height:1.5;
    box-shadow:0 8px 24px rgba(0,0,0,.14);pointer-events:none;
    transition:opacity .18s ease,transform .18s ease;
}
.wype-cart-page-notice.is-visible{opacity:1;transform:translate(-50%,0)}
@media (min-width:768px) and (max-width:1024px){
    .woocommerce-cart-form .quantity.wype-cart-qty{
        width:138px!important;
        min-width:138px!important;
    }
}
@media(max-width:767px){
    .woocommerce-cart-form .quantity.wype-cart-qty{
        --wype-cart-qty-inset:5px;
        --wype-cart-qty-button:min(38px,calc(var(--wype-cart-qty-height) - (var(--wype-cart-qty-inset) * 2)));
        grid-template-columns:var(--wype-cart-qty-button) minmax(34px,1fr) var(--wype-cart-qty-button)!important;
        width:130px!important;
        min-width:130px!important;
        height:var(--wype-cart-qty-height)!important;
        padding:var(--wype-cart-qty-inset)!important;
    }
    .wype-cart-page-notice{bottom:18px;max-width:calc(100vw - 32px);white-space:nowrap}
}





/* 1.9.11 — selectable unavailable variations + non-shifting cart validation. */
.wype-cart{
    position:relative!important;
}
.wype-cart__add.is-unavailable,
.wype-cart__add.is-unavailable[disabled]{
    cursor:not-allowed!important;
    opacity:.55!important;
    box-shadow:none!important;
}
.wype-cart__hint{
    position:absolute!important;
    inset-inline:0!important;
    top:calc(100% + 7px)!important;
    margin:0!important;
    z-index:20!important;
    pointer-events:none!important;
}
.wype-cart__hint.is-visible{
    display:block!important;
}


/* 1.9.12 — cart validation is an overlay and never participates in document flow. */
.wype-cart{position:relative!important;}
.wype-cart__hint,
.wype-cart__hint.is-visible{
    position:absolute!important;
    inset-inline:0!important;
    top:auto!important;
    bottom:calc(100% + 7px)!important;
    margin:0!important;
    z-index:20!important;
    pointer-events:none!important;
}

/* 1.10.30 — Native/global typography tokens apply to the visible compact label too. */
.wype-cart__view{font-size:var(--wype-cart-link-font-size,inherit)!important;font-weight:var(--wype-cart-link-font-weight,inherit)!important;font-style:var(--wype-cart-link-font-style,normal)!important;text-transform:var(--wype-cart-link-text-transform,none)!important;text-decoration:var(--wype-cart-link-text-decoration,none)!important;letter-spacing:var(--wype-cart-link-letter-spacing,normal)!important;word-spacing:var(--wype-cart-link-word-spacing,normal)!important}
.wype-cart__view strong,.wype-cart__view small{font-family:var(--wype-cart-link-font-family,inherit)!important;font-weight:var(--wype-cart-link-font-weight,inherit)!important;font-style:inherit!important;text-transform:inherit!important;letter-spacing:inherit!important;word-spacing:inherit!important}
