/* نوار سبد زنده — الگوی live-bascket دلبری */
#live-basket-wrapper {
    clear: both;
    width: 100%;
    margin: 8px 0 10px;
}

.dw-live-basket {
    display: block;
    box-sizing: border-box;
    width: 1150px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 20px 12px;
    background: #74b9ff;
    border: 1px solid #0984e3;
    color: #0c4877;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
    font-size: 15px;
    overflow: hidden;
}
.dw-live-basket__row {
    width: 510px;
    display: block;
    text-align: right;
    height: 28px;
    padding: 6px 0 0;
    float: right;
    box-sizing: border-box;
}
.dw-live-basket__n,
.dw-live-basket__title,
.dw-live-basket__qty {
    display: inline-block;
    border: 1px solid #0f4874;
    padding: 2px 4px;
    box-sizing: border-box;
    vertical-align: middle;
}
.dw-live-basket__n {
    width: 28px;
    text-align: center;
    background: #0984e3;
    color: #fff;
}
.dw-live-basket__title {
    width: 360px;
    color: #0c4877;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dw-live-basket__qty {
    width: 78px;
    text-align: center;
    font-weight: bold;
    color: #0c4877;
}
.dw-live-basket__footer {
    float: left;
    padding-top: 8px;
    font-size: 14px;
    font-weight: bold;
}
.dw-live-basket__footer a,
.dw-live-basket__footer a:visited {
    color: #0b3d66 !important;
    text-decoration: none;
}
.dw-live-basket__edit-btn,
.dw-live-basket__footer a.dw-live-basket__edit-btn,
.dw-live-basket__footer a.dw-live-basket__edit-btn:visited {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #0984e3 !important;
    background-color: #0984e3 !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    font-family: IRANSans, Tahoma, sans-serif;
}
.dw-live-basket__edit-btn:hover,
.dw-live-basket__footer a.dw-live-basket__edit-btn:hover {
    background: #0770c2 !important;
    background-color: #0770c2 !important;
    color: #fff !important;
}

/* صفحه اصلاح سفارش / تسویه */
.dw-cart-page {
    direction: rtl;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
    background: #fff;
    min-height: 100vh;
}
.dw-cart-page .site-topbar {
    float: none !important;
    display: block !important;
    width: 100% !important;
    min-width: 1160px;
    height: 126px !important;
    background: #0984e3 !important;
    overflow: hidden !important;
    box-sizing: border-box;
}
.dw-cart-page .site-topbar__nav {
    background: #74b9ff;
    height: 40px;
}
.dw-cart-wrap {
    width: 1150px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 80px;
    box-sizing: border-box;
}
.dw-cart-page-title {
    margin: 0 0 16px;
    font-size: 28px;
    color: #0984e3;
    font-weight: 800;
}
.dsc-waitlist {
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ffe082;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.dsc-waitlist__head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #8a6d00;
}
.dsc-waitlist__empty {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: #fffdf5;
    border: 1px dashed #ffe082;
    border-radius: 8px;
    color: #8a6d00;
    font-size: 0.9rem;
    line-height: 1.7;
}
/* روش پرداخت — الگوی delbari.ir checkout-payment.css */
.dw-pm-chooser {
    width: 100%;
    margin: 14px 0 12px;
    padding: 14px 16px;
    border: 1px solid #cfe3f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 80%);
    box-sizing: border-box;
    direction: rtl;
}
.dw-pm-chooser[hidden],
.dw-pm-chooser.is-empty {
    display: none !important;
}
.dw-pm-chooser__title {
    margin: 0 0 12px;
    color: #0f4874;
    font-size: 20px;
    font-weight: 800;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
}
.dw-pm-chooser__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.dw-pm-chooser__list--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dw-pm-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 14px;
    border: 2px solid #d5e3f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
}
.dw-pm-option:hover {
    border-color: #90caf9;
}
.dw-pm-option.is-selected,
.dw-pm-option:has(.dw-pm-option__input:checked) {
    border-color: #1565c0;
    background: #f3f8ff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}
.dw-pm-option__input {
    margin-top: 4px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    accent-color: #1565c0;
}
.dw-pm-option__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.dw-pm-option__name {
    display: block;
    color: #0f2744;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}
.dw-pm-option__amount {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eef5fc;
}
.dw-pm-option__amount.has-original {
    gap: 4px;
}
.dw-pm-option__amount-original {
    display: block;
    color: #c62828;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    text-decoration: line-through;
    text-decoration-color: #c62828;
    text-decoration-thickness: 2px;
    opacity: 0.9;
}
.dw-pm-option__amount-label {
    display: block;
    color: #607d8b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.dw-pm-option__amount-value {
    display: block;
    color: #0d47a1;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}
.dw-pm-option__amount-value .dw-price-rtl,
.dw-pm-option__amount-value .dw-price-rtl__amount,
.dw-pm-option__amount-value .dw-price-rtl__currency {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
}
.dw-pm-option__desc {
    display: block;
    color: #607d8b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}
#payment.woocommerce-checkout-payment {
    display: block !important;
    visibility: visible !important;
    margin-top: 8px;
    padding: 14px 16px !important;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    background: #f7fafc;
    box-sizing: border-box;
}
#payment .woocommerce-additional-fields label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
#payment .woocommerce-additional-fields {
    margin-bottom: 12px;
}
#payment div.form-row.place-order {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}
.dw-pm-place-hint {
    margin: 0 0 10px;
    font-weight: 700;
    color: #37474f;
    font-size: 14px;
    line-height: 1.6;
}
#payment .dw-place-order-btn {
    width: 100% !important;
    min-height: 56px !important;
    height: auto !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-family: IRANSans, iransans, Tahoma, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    background: #0984e3 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
}
#payment .dw-pm-back-btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    background: #ff7675 !important;
    color: #fff !important;
    font-family: IRANSans, iransans, Tahoma, sans-serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.dw-pm-actions-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}
.dw-pm-actions-row .dw-pm-chooser {
    margin: 0;
    width: 100%;
}
.dw-pm-actions-row #payment {
    margin: 0 !important;
    width: 100%;
}
@media (max-width: 980px) {
    .dw-pm-chooser__list--count-3 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .dw-pm-chooser__list {
        grid-template-columns: 1fr;
    }
}
/* جدول اقلام سفارش — الگوی delbari.ir checkout */
.dw-wholesale-cart-shell #order_review {
    margin-top: 0 !important;
    background: #fff !important;
    border: 1px solid #d9e6f2 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    box-sizing: border-box !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table,
.dw-wholesale-cart-shell #order_review table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 0 0 !important;
    table-layout: auto !important;
    font-family: IRANSans, iransans, Tahoma, sans-serif !important;
    font-size: 16px !important;
    color: #000 !important;
    background: transparent !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table th,
.dw-wholesale-cart-shell #order_review table.shop_table td {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
    background: transparent !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table thead th {
    background: #eaf4ff !important;
    color: #0f4874 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table th.product-name:first-child,
.dw-wholesale-cart-shell #order_review table.shop_table td.product-name {
    width: auto !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.dw-wholesale-cart-shell #order_review table.shop_table .product-name,
.dw-wholesale-cart-shell #order_review table.shop_table .product-name a,
.dw-wholesale-cart-shell #order_review table.shop_table .product-total,
.dw-wholesale-cart-shell #order_review table.shop_table .amount {
    color: #0f4874 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item {
    color: red !important;
    font-size: 25px !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .product-name,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .product-name a,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .product-total,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .product-total .amount,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .amount,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .dw-price-rtl,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .dw-price-rtl__amount,
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .dw-price-rtl__currency {
    color: #111 !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table .cart_item .product-quantity {
    color: red !important;
    font-size: 25px !important;
    font-weight: 700 !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table tfoot th {
    text-align: right !important;
    color: #636e72 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table .cart-subtotal td,
.dw-wholesale-cart-shell #order_review table.shop_table .cart-subtotal .amount,
.dw-wholesale-cart-shell #order_review table.shop_table .cart-subtotal .dw-price-rtl {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.dw-wholesale-cart-shell #order_review table.shop_table .order-total th,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total td,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total .amount,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total .dw-price-rtl,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total .dw-price-rtl__amount,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total .dw-price-rtl__currency,
.dw-wholesale-cart-shell #order_review table.shop_table .order-total .woocommerce-Price-currencySymbol {
    color: #0f4874 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-bottom: none !important;
}
.dw-cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.dw-cart-table th,
.dw-cart-table td {
    border: 1px solid #dfe6e9;
    padding: 10px 8px;
    vertical-align: middle;
    text-align: center;
}
.dw-cart-table th {
    background: #0984e3;
    color: #fff;
}
.dw-cart-table .name {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
}
.dw-cart-table .price-box {
    text-align: right;
    background: #f1f2f6;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 15px;
}
.dw-cart-table .price-box .final {
    color: #d63031;
    font-weight: bold;
}
.dw-cart-table input.qty {
    width: 70px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    font-family: inherit;
}
.dw-cart-remove {
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    color: #d63031;
    text-decoration: none;
    padding: 0 8px;
}
.dw-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}
.dw-cart-btn {
    display: inline-block;
    border: 0;
    border-radius: 4px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: #fff !important;
    background: #74b9ff;
}
.dw-cart-btn.warn { background: #ff7675; }
.dw-cart-btn.ok { background: #00b894; }
.dw-cart-btn.ghost {
    background: #fff;
    color: #0984e3 !important;
    border: 1px solid #0984e3;
}
.dw-cart-total {
    margin-top: 18px;
    padding: 14px 16px;
    background: #ecf5ff;
    border: 1px solid #74b9ff;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
}
.dw-cart-empty {
    margin: 60px auto;
    text-align: center;
    font-size: 22px;
    color: #2d3436;
}
.dw-cart-note {
    width: 100%;
    min-height: 90px;
    box-sizing: border-box;
    padding: 10px;
    font-family: inherit;
    font-size: 16px;
    margin-top: 8px;
}
.dw-cart-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.dw-cart-alert.ok { background: #dff9e8; color: #00695c; }
.dw-cart-alert.err { background: #ffe6e6; color: #c0392b; }
.dw-cart-alert.info { background: #eaf4ff; color: #0b3d66; }

/* استپر تعداد در کارت محصول کاتالوگ */
.dw-qty-stepper {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    width: 148px;
    height: 56px;
    margin: 0 auto;
    border: 1px solid #b7cfe3;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 1px 2px rgba(16, 42, 67, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    direction: ltr;
    box-sizing: border-box;
}
.dw-qty-stepper__input,
.dw-qty-stepper input.qty-input {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    margin: 0;
    padding: 0 6px 0 44px !important;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    text-align: center;
    font-size: 34px !important;
    font-weight: 700;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
    color: #1a2b3c;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}
.dw-qty-stepper__input::placeholder,
.dw-qty-stepper input.qty-input::placeholder {
    color: #111111;
    font-weight: 700;
    opacity: 1;
}
.dw-qty-stepper__input::-webkit-outer-spin-button,
.dw-qty-stepper__input::-webkit-inner-spin-button,
.dw-qty-stepper input.qty-input::-webkit-outer-spin-button,
.dw-qty-stepper input.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dw-qty-stepper__controls {
    position: absolute;
    top: 3px;
    left: 3px;
    right: auto;
    bottom: 3px;
    width: 38px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dw-qty-stepper__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #f4f9fd 0%, #e3eef8 100%);
    color: #1f6aa8;
    cursor: pointer;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.dw-qty-stepper__btn svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}
.dw-qty-stepper__btn:hover {
    background: linear-gradient(180deg, #e8f4fc 0%, #cfe6f7 100%);
    color: #0a5a99;
}
.dw-qty-stepper__btn:active {
    background: linear-gradient(180deg, #74b9ff 0%, #5aa8f5 100%);
    color: #fff;
    box-shadow: none;
    transform: scale(0.96);
}
.dw-qty-stepper:focus-within {
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.28);
}

/* دکمه افزودن محصول در کاتالوگ */
.dw-product-card .dw-add-cart-btn,
input.dw-add-cart-btn {
    width: 148px !important;
    height: 50px !important;
    margin-top: 10px !important;
    padding: 0 10px !important;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #74b9ff 0%, #4fa3f7 100%) !important;
    color: #fff !important;
    font-family: IRANSans, iransans, Tahoma, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(9, 132, 227, 0.28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.dw-product-card .dw-add-cart-btn:hover,
input.dw-add-cart-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.34);
}
.dw-product-card .dw-add-cart-btn:active,
input.dw-add-cart-btn:active {
    transform: translateY(1px);
}
.dw-add-cart-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}
.dw-add-cart-btn.is-ok {
    background: linear-gradient(180deg, #00b894 0%, #00a884 100%) !important;
}
.dw-cart-in-card {
    margin-top: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(0, 184, 148, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: IRANSans, iransans, Tahoma, sans-serif;
    line-height: 1.4;
    text-align: center;
}
.dw-cart-in-card[hidden] {
    display: none !important;
}
