/* Adanola reference proportions, RTL typography and native Elementor open/close behavior. */
.elementor-menu-cart__main.td-bag {
    --td-ink:#202421; --td-muted:#737771; --td-line:#efeeeb;
    --td-reco-image:clamp(116px,calc(100dvh - 535px),242px);
    width:min(550px,100vw)!important; max-width:100vw!important; height:100vh!important;height:100dvh!important;
    max-height:100dvh!important;padding:0!important;margin:0!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    background:#fff!important;color:var(--td-ink)!important;direction:rtl;box-sizing:border-box;
    font-family:'IRANSansX',Tahoma,sans-serif;
}
.td-bag *, .td-bag *::before,.td-bag *::after {box-sizing:border-box;}
.admin-bar .elementor-menu-cart__main.td-bag {
    height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))!important;
    max-height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))!important;
    margin-top:var(--wp-admin--admin-bar--height,32px)!important;
}
.td-bag > .widget_shopping_cart_content,.td-bag > .elementor-menu-cart__close-button,
.td-bag > .tarfandooni-drawer-recommendations {display:none!important;}
.td-bag [hidden] {display:none!important;}
.td-bag .td-bag-header {
    display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 52px;
    min-height:52px;padding:0 22px;border-bottom:1px solid var(--td-line);background:#fff;
}
.td-bag .td-bag-title {font:600 17px/1.5 'IRANSansX',Tahoma,sans-serif;margin:0;color:var(--td-ink);}
.td-bag .td-bag-close {
    display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;
    border:0!important;background:transparent!important;color:var(--td-ink)!important;padding:0;border-radius:0;
}
.td-bag .td-bag-close svg {width:22px;height:22px;transform:none;}
.td-bag .td-bag-body {flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 22px;scrollbar-width:thin;scrollbar-color:#9a9c96 transparent;}
.td-bag .td-bag-empty {
    min-height:clamp(100px,calc(100dvh - 510px),250px);margin:0 -22px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;padding:22px;background:#f8f7f5;text-align:center;
}
.td-bag .td-bag-empty p {font-size:14px;line-height:1.8;margin:0;color:var(--td-ink);}
.td-bag .td-bag-browse {min-width:175px;padding:13px 22px;border:1px solid var(--td-ink);font-size:13px;color:var(--td-ink)!important;text-decoration:none;background:transparent;}
.td-bag .td-bag-items {list-style:none;display:block;margin:0;padding:0;}
.td-bag .td-bag-item {display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;padding:22px 0;border-bottom:1px solid var(--td-line);margin:0;}
.td-bag .td-item-image {display:block;align-self:start;}
.td-bag .td-item-image img {display:block;width:140px;height:175px;object-fit:cover;border-radius:0;aspect-ratio:auto;}
.td-bag .td-item-details {display:flex;flex-direction:column;min-width:0;padding:2px 0;}
.td-bag .td-item-top {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.td-bag .td-item-name {font-size:14px;line-height:1.8;font-weight:500;flex:1;min-width:0;text-decoration:none;color:var(--td-ink)!important;}
.td-bag .td-item-price {font-size:13px;font-weight:600;line-height:1.8;flex:0 0 auto;white-space:nowrap;color:var(--td-ink)!important;}
.td-bag .td-item-price .woocommerce-Price-amount,.td-bag .td-bag-total-price .woocommerce-Price-amount {font:inherit!important;color:inherit!important;}
.td-bag .td-item-delivery {font-size:12px;line-height:1.7;color:var(--td-muted);margin:8px 0;}
.td-bag .td-item-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;}
.td-bag .td-item-quantity {display:flex;align-items:center;gap:8px;direction:ltr;}
.td-bag .td-item-change {width:26px;height:30px;padding:0;border:0;background:transparent;color:var(--td-ink);font:300 19px/1 sans-serif;border-radius:0;}
.td-bag .td-item-count {min-width:12px;text-align:center;font-size:13px;}
.td-bag .td-item-remove {padding:5px 0;border:0;border-radius:0;background:transparent!important;font-size:12px;text-decoration:underline;text-underline-offset:3px;color:var(--td-ink)!important;}
.td-bag .td-gift-label {font-size:11px;color:#596b5a;}
.td-bag .td-bag-notice {background:#fff3ee;color:#8b3025;padding:10px;font-size:12px;line-height:1.8;margin:10px 0;}
.td-bag .td-recos {padding:25px 0 16px;margin:0;border:0;}
.td-bag .td-recos .e-con,.td-bag .td-recos .e-con-inner {padding:0!important;gap:0!important;min-width:0!important;width:100%!important;}
.td-bag .td-recos .elementor-heading-title {font-size:17px!important;font-weight:600!important;line-height:1.7!important;margin:0 0 14px!important;color:var(--td-ink)!important;}
.td-bag .td-recos .woocommerce {margin:0!important;}
.td-bag .td-reco-slider {position:relative;min-width:0;width:100%;overflow:hidden;--td-arrow-y:110px;}
.td-bag .td-recos .woocommerce ul.products {
    display:flex!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;
    margin:0!important;padding:0 0 3px!important;list-style:none;direction:rtl;
    scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab;
}
.td-bag .td-recos .woocommerce ul.products::-webkit-scrollbar {display:none;}
.td-bag .td-recos .woocommerce ul.products::before,.td-bag .td-recos .woocommerce ul.products::after {display:none!important;}
.td-bag .td-recos .woocommerce ul.products li.product {
    flex:0 0 40%!important;width:40%!important;max-width:40%!important;min-width:0!important;
    display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    float:none!important;scroll-snap-align:start;background:#fff!important;box-shadow:none!important;text-align:right!important;
}
.td-bag .td-rec-card .woocommerce-loop-product__link {display:block;text-decoration:none;}
.td-bag .td-rec-card img {
    width:100%!important;height:var(--td-reco-image)!important;aspect-ratio:auto!important;object-fit:cover!important;
    margin:0 0 9px!important;border-radius:0!important;-webkit-user-drag:none;user-select:none;
}
.td-bag .td-recos .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size:13px!important;line-height:1.75!important;min-height:46px!important;padding:0!important;margin:0!important;color:var(--td-ink)!important;font-weight:400!important;
}
.td-bag .td-recos .woocommerce ul.products li.product .price {
    display:block;margin:6px 0 13px!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;color:var(--td-ink)!important;
}
.td-bag .td-rec-choice {display:block;width:100%;margin-top:auto;}
.td-bag .td-rec-quantity {
    width:100%;height:33px!important;min-height:0;padding:3px 3px 3px 22px!important;border:0!important;border-bottom:1px solid var(--td-ink)!important;
    border-radius:0!important;box-shadow:none!important;background-color:#fff!important;color:var(--td-ink)!important;font-size:13px!important;
}
.td-bag .td-recos .woocommerce ul.products li.product .td-rec-add {
    display:block;width:100%;min-height:36px;padding:7px 5px!important;margin:8px 0 0!important;
    background:#fff!important;color:var(--td-ink)!important;border:1px solid var(--td-ink)!important;border-radius:0!important;font-size:12px!important;line-height:1.5!important;font-weight:500!important;
}
.td-bag .td-rec-add::before,.td-bag .td-rec-add::after {display:none!important;}
.td-bag .td-rec-add:hover {background:var(--td-ink)!important;color:#fff!important;}
.td-bag .td-rec-arrow {
    position:absolute;top:var(--td-arrow-y);transform:translateY(-50%);z-index:2;width:38px;height:38px;display:flex;align-items:center;justify-content:center;
    padding:0!important;border:1px solid var(--td-ink)!important;border-radius:0!important;background:#fff!important;color:var(--td-ink)!important;cursor:pointer;
    opacity:1;transition:opacity .22s ease,background-color .22s ease;
}
.td-bag .td-rec-arrow svg {transform:none!important;}
.td-bag .td-rec-right {right:8px;left:auto;}
.td-bag .td-rec-left {left:8px;right:auto;}
.td-bag .td-rec-arrow:disabled {opacity:.35;cursor:default;}
@media(hover:hover) and (pointer:fine) {
    .td-bag .td-rec-arrow,.td-bag .td-rec-arrow:disabled {opacity:0;pointer-events:none;}
    .td-bag .td-reco-slider:hover .td-rec-arrow,.td-bag .td-reco-slider:has(:focus-visible) .td-rec-arrow {opacity:1;pointer-events:auto;}
    .td-bag .td-reco-slider:hover .td-rec-arrow:disabled,.td-bag .td-reco-slider:has(:focus-visible) .td-rec-arrow:disabled {opacity:.35;}
}
.td-bag .td-recos .woocommerce ul.products.is-dragging {scroll-snap-type:none!important;cursor:grabbing;user-select:none;}
.td-bag .td-recos-empty {font-size:12px;color:var(--td-muted);margin:0;}
.td-bag .td-bag-footer {flex:0 0 auto;background:#fff;border-top:1px solid var(--td-line);padding:17px 22px max(17px,env(safe-area-inset-bottom));}
.td-bag .td-reward-progress {display:grid;grid-template-columns:2fr 1fr;gap:10px;margin:0 0 9px;direction:rtl;}
.td-bag .td-reward-track {height:9px;background:#e6e6e6;overflow:hidden;position:relative;}
.td-bag .td-reward-fill {display:block;position:absolute;inset-block:0;inset-inline-start:0;width:0;background:#969d8f;transition:width .75s cubic-bezier(.22,.61,.36,1);}
.td-bag .td-reward-stage-2 .td-reward-fill {background:#ddb267;}
.td-bag .td-reward-message {font-size:11px;line-height:1.85;text-align:center;margin:0;color:var(--td-ink);}
.td-bag .td-reward-note {font-size:10px;line-height:1.6;text-align:center;margin:3px 0 0;color:var(--td-muted);}
.td-bag .td-reward-note:empty {display:none;}
.td-bag .td-bag-total {display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;line-height:1.8;font-weight:600;margin:16px 0 10px;}
.td-bag .td-bag-total-price {font-size:13px!important;color:var(--td-ink)!important;}
.td-bag .td-bag-checkout {display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px;background:#1f2521!important;border:1px solid #1f2521;color:#fff!important;border-radius:0;text-decoration:none;font-size:13px;font-weight:600;}
.td-bag .td-bag-checkout:hover {background:#35413a!important;}
.td-bag [aria-disabled=true] {opacity:.55;cursor:wait;}
.td-bag button:disabled,.td-bag select:disabled {cursor:wait;}
.td-bag button:focus-visible,.td-bag a:focus-visible,.td-bag select:focus-visible,.td-bag ul:focus-visible {outline:2px solid #248e88;outline-offset:3px;}
.td-bag .td-visually-hidden {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
@media(max-width:767px) {
    .elementor-menu-cart__main.td-bag {--td-reco-image:clamp(110px,calc(100dvh - 430px),230px);}
    .td-bag .td-bag-header {padding:0 18px;min-height:49px;flex-basis:49px;}
    .td-bag .td-bag-title {font-size:15px;}
    .td-bag .td-bag-body {padding:0 18px;}
    .td-bag .td-bag-empty {min-height:clamp(100px,calc(100dvh - 400px),225px);margin:0 -18px;gap:18px;}
    .td-bag .td-recos {padding:18px 0 13px;}
    .td-bag .td-recos .elementor-heading-title {font-size:15px!important;margin-bottom:12px!important;}
    .td-bag .td-bag-item {grid-template-columns:88px minmax(0,1fr);gap:13px;padding:19px 0;}
    .td-bag .td-item-image img {width:88px;height:112px;}
    .td-bag .td-item-top {gap:8px;}
    .td-bag .td-item-name {font-size:12px;}
    .td-bag .td-item-price {font-size:11px;}
    .td-bag .td-item-delivery {font-size:11px;margin:5px 0;}
    .td-bag .td-bag-footer {padding:13px 18px max(13px,env(safe-area-inset-bottom));}
    .td-bag .td-bag-total {margin-top:10px;font-size:12px;}
    .td-bag .td-bag-total-price {font-size:12px!important;}
    .td-bag .td-bag-checkout {height:44px;font-size:12px;}
    .td-bag .td-rec-arrow {width:32px;height:32px;}
}
@media(max-height:620px) {
    .td-bag.td-is-empty {--td-reco-image:clamp(90px,calc(100dvh - 320px),155px);}
    .td-bag .td-bag-empty {min-height:90px;padding:14px 18px;gap:12px;}
    .td-bag .td-bag-empty p {font-size:12px;}
    .td-bag .td-bag-browse {padding:8px 18px;font-size:12px;}
    .td-bag .td-recos {padding:14px 0 10px;}
    .td-bag .td-recos .elementor-heading-title {font-size:14px!important;margin-bottom:9px!important;}
    .td-bag .td-reward-message {font-size:10px;}
}
@media(prefers-reduced-motion:reduce) {
    .td-bag .td-reward-fill,.td-bag .td-rec-arrow {transition:none;}
    .td-bag .td-rec-list {scroll-behavior:auto;}
}
