/* cart-sidebar.css */


/* From resources/views/templates/basic/partials/cart.blade.php */
.cart-calculation-summary {
            padding: 14px 16px;
            border-radius: 14px;
            background: #f9fafb;
            border: 1px solid #eef0f4;
        }

        .cart-calculation-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            font-size: 14px;
            color: #4b5563;
        }

        .cart-calculation-row:not(:last-child) {
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #e5e7eb;
        }

        .cart-calculation-row strong {
            color: #111827;
            font-weight: 700;
        }

        .cart-bottom .btn-wrapper .btn {
            border-radius: 12px;
            font-weight: 700;
        }

/* From resources/views/templates/basic/partials/cart_bottom.blade.php */
/* Cart Bottom Wrapper */
        .cart-bottom-wrapper {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        /* Coupon Section */
        .coupon-section {
            padding: 20px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        /* Applied Coupon Card */
        .applied-coupon-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .applied-coupon-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .coupon-icon-wrapper {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #dcfce7;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #16a34a;
            flex-shrink: 0;
        }

        .applied-coupon-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .applied-coupon-label {
            font-size: 11px;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1;
        }

        .applied-coupon-code {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            line-height: 1.3;
        }

        .remove-coupon-btn {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #fee2e2;
            color: #dc2626;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            flex-shrink: 0;
            padding: 0;
        }

        .remove-coupon-btn:hover {
            background: #dc2626;
            color: #ffffff;
            transform: rotate(90deg);
        }

        /* Apply Coupon Wrapper */
        .apply-coupon-wrapper {
            /* No additional styling needed */
        }

        .coupon-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 10px;
        }

        .coupon-input-group {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .coupon-input-field {
            flex: 1;
            height: 44px;
            border: 1.5px solid #e5e7eb;
            border-radius: 8px;
            padding: 0 14px;
            font-size: 14px;
            color: #111827;
            background: #ffffff;
            transition: all 0.3s ease;
            outline: none;
            min-width: 0;
        }

        .coupon-input-field:hover {
            border-color: #d1d5db;
        }

        .coupon-input-field:focus {
            border-color: #111827;
            box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
        }

        .coupon-input-field::placeholder {
            color: #cbd5e1;
            font-weight: 400;
        }

        .coupon-apply-btn {
            height: 44px;
            padding: 0 20px;
            background: #111827;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .coupon-apply-btn:hover:not(:disabled) {
            background: #1f2937;
            box-shadow: 0 4px 12px rgba(17, 17, 17, 0.2);
            transform: translateY(-1px);
        }

        .coupon-apply-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .coupon-apply-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Price Breakdown */
        .price-breakdown-wrapper {
            padding: 20px 0 0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            font-size: 14px;
        }

        .price-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6b7280;
            font-weight: 500;
        }

        .price-label i {
            font-size: 16px;
            color: #9ca3af;
        }

        .price-value {
            color: #111827;
            font-weight: 600;
            font-size: 14px;
        }

        .price-row-discount {
            padding: 8px 0;
        }

        .price-row-discount .price-label {
            color: #16a34a;
        }

        .price-row-discount .price-label i {
            color: #16a34a;
        }

        .discount-value {
            color: #16a34a !important;
            font-weight: 700;
        }

        .coupon-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            background: #f0fdf4;
            color: #16a34a;
            font-size: 11px;
            font-weight: 600;
            border-radius: 4px;
            border: 1px solid #bbf7d0;
            line-height: 1.4;
        }

        .price-row-total {
            padding: 16px 0 0;
            margin-top: 8px;
            border-top: 2px solid #111827;
            font-size: 16px;
        }

        .price-total-label {
            font-weight: 700;
            color: #111827;
            font-size: 16px;
        }

        .price-total-value {
            font-weight: 700;
            color: #111827;
            font-size: 20px;
        }

        /* Responsive */
        @media (max-width: 767px) {
            .coupon-input-group {
                flex-direction: column;
            }

            .coupon-apply-btn {
                width: 100%;
            }

            .price-row-total {
                font-size: 15px;
            }

            .price-total-value {
                font-size: 18px;
            }

            .applied-coupon-card {
                padding: 12px 14px;
            }

            .coupon-icon-wrapper {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .applied-coupon-code {
                font-size: 14px;
            }
        }

        @media (max-width: 575px) {
            .coupon-section {
                padding: 16px 0;
            }

            .price-breakdown-wrapper {
                padding: 16px 0 0;
            }

            .price-row {
                font-size: 13px;
                padding: 8px 0;
            }

            .price-total-label {
                font-size: 14px;
            }

            .price-total-value {
                font-size: 17px;
            }

            .coupon-input-field {
                height: 42px;
                font-size: 13px;
            }

            .coupon-apply-btn {
                height: 42px;
                font-size: 13px;
            }
        }

/* From resources/views/components/frontend/basic/cart-item.blade.php */
.single-product-item.cartItem {
    width: 100%;
}

.single-product-item.cartItem .content {
    min-width: 0;
    width: 100%;
}

.single-product-item.cartItem .content-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.single-product-item.cartItem .cart-qty-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.single-product-item.cartItem .cart-qty-wrap input,
.single-product-item.cartItem .cart-qty-wrap input[type="text"],
.single-product-item.cartItem .cart-qty-wrap input[type="number"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background-color: #fff !important;
    border: 1px solid #dbe3f0 !important;
    border-radius: 14px !important;
}

.single-product-item.cartItem .cart-qty-wrap button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.single-product-item.cartItem .cart-qty-wrap input::-webkit-outer-spin-button,
.single-product-item.cartItem .cart-qty-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product-item.cartItem .cart-qty-wrap input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 575px) {
    .single-product-item.cartItem {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .single-product-item.cartItem .thumb {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .single-product-item.cartItem .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .single-product-item.cartItem .content-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }

    .single-product-item.cartItem .content-top-left {
        min-width: 0;
    }

    .single-product-item.cartItem .title {
        display: block;
        font-size: 14px;
        line-height: 1.3;
        word-break: break-word;
    }

    .single-product-item.cartItem .text-muted {
        font-size: 13px;
    }

    .single-product-item.cartItem .content-bottom {
        align-items: center;
        margin-top: 10px;
    }

    .single-product-item.cartItem .cart-total-price {
        font-size: 13px;
    }
}

/* Keep the slide-out cart readable at every viewport width. */
.cart-sidebar-area .cart-calculation-row,
.cart-sidebar-area .price-row { gap: 14px; }
.cart-sidebar-area .cart-calculation-row strong,
.cart-sidebar-area .price-value { margin-left: auto; padding-left: 14px; white-space: nowrap; }
.cart-sidebar-area .price-label { min-width: 0; flex: 1 1 auto; }
.cart-sidebar-area .price-total-label,
.cart-sidebar-area .price-total-value,
.cart-sidebar-area .price-total-value * { color: #6f2039!important; font-weight: 850!important; }
.cart-sidebar-area .price-total-value { font-size: 20px; }
.cart-sidebar-area .cart-bottom { padding-top: 16px; }
.cart-sidebar-area .cart-bottom .cart-calculation-summary { margin-bottom: 14px!important; }
@media (max-width: 430px) {
    .cart-sidebar-area .cart-calculation-row,
    .cart-sidebar-area .price-row { gap: 10px; }
    .cart-sidebar-area .cart-calculation-row strong,
    .cart-sidebar-area .price-value { padding-left: 10px; }
    .cart-sidebar-area .price-total-value { font-size: 18px; }
}

/* Compact drawer layout: keep more products visible before the summary. */
.cart-sidebar-area .cart-products.cart--products { min-height: 0; }
.cart-sidebar-area .cart-items-wrapper {
    max-height: min(46vh, 430px);
    overflow-y: auto;
    padding: 2px 4px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #d8a5b5 transparent;
}
.cart-sidebar-area .cart-items-wrapper::-webkit-scrollbar { width: 4px; }
.cart-sidebar-area .cart-items-wrapper::-webkit-scrollbar-thumb { border-radius: 99px; background: #d8a5b5; }
.cart-sidebar-area .single-product-item.cartItem {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}
.cart-sidebar-area .single-product-item.cartItem .thumb {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
}
.cart-sidebar-area .single-product-item.cartItem .content-top { gap: 6px !important; }
.cart-sidebar-area .single-product-item.cartItem .title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px !important;
    line-height: 1.3 !important;
}
.cart-sidebar-area .single-product-item.cartItem .content-top-left > .d-flex > span:not(.cart-item-price) { display: none; }
.cart-sidebar-area .single-product-item.cartItem .text-muted { font-size: 12px !important; }
.cart-sidebar-area .single-product-item.cartItem .content-bottom { margin-top: 6px !important; gap: 8px !important; }
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap { transform: scale(.88); transform-origin: left center; }
.cart-sidebar-area .single-product-item.cartItem .cart-total-price { margin-left: auto; }
.cart-sidebar-area .single-product-item.cartItem .total-price { font-size: 10px !important; }
.cart-sidebar-area .single-product-item.cartItem .total-price-text { font-size: 14px !important; }
.cart-sidebar-area .single-product-item.cartItem .cart-item-action button { width: 28px !important; height: 28px !important; font-size: 13px !important; }

@media (max-width: 575px) {
    .cart-sidebar-area { padding: 14px 12px !important; }
    .cart-sidebar-area .top-content { padding-bottom: 10px !important; }
    .cart-sidebar-area .cart-sidebar-area__title { font-size: 22px !important; }
    .cart-sidebar-area .cart-items-wrapper { max-height: 44vh; }
    .cart-sidebar-area .single-product-item.cartItem { grid-template-columns: 46px minmax(0, 1fr) !important; gap: 8px !important; padding-block: 8px !important; }
    .cart-sidebar-area .single-product-item.cartItem .thumb { width: 46px !important; min-width: 46px !important; height: 46px !important; }
    .cart-sidebar-area .single-product-item.cartItem .title { font-size: 12px !important; }
    .cart-sidebar-area .single-product-item.cartItem .content-bottom { margin-top: 4px !important; }
}

/* Mobile drawer: avoid repeating the same subtotal twice and keep the
   product, delivery and total sections visually separated. */
@media (max-width: 575px) {
    .cart-sidebar-area {
        width: min(100vw, 390px) !important;
        padding: 16px 14px 14px !important;
    }

    .cart-sidebar-area .top-content {
        padding-bottom: 12px !important;
        margin-bottom: 2px !important;
    }

    .cart-sidebar-area .cart-sidebar-area__title {
        font-size: 23px !important;
    }

    .cart-sidebar-area .cart-items-wrapper { padding-block: 6px !important; }
    .cart-sidebar-area .cart-calculation-summary { display: none !important; }

    .cart-sidebar-area .single-product-item.cartItem {
        gap: 10px !important;
        padding-block: 8px !important;
    }

    .cart-sidebar-area .single-product-item.cartItem .thumb {
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
    }

    .cart-sidebar-area .single-product-item.cartItem .title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .cart-sidebar-area .single-product-item.cartItem .text-muted {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .cart-sidebar-area .single-product-item.cartItem .content-bottom { margin-top: 7px !important; }
    .cart-sidebar-area .cart-bottom { padding-top: 8px !important; }

    .cart-sidebar-area .cart-bottom-wrapper .price-row {
        padding-block: 10px !important;
        column-gap: 10px !important;
        font-size: 14px !important;
    }

    .cart-sidebar-area .cart-bottom-wrapper .price-label,
    .cart-sidebar-area .cart-bottom-wrapper .price-value { line-height: 1.35 !important; }
    .cart-sidebar-area .cart-delivery-note { margin: -2px 0 4px !important; font-size: 11px !important; }
    .cart-sidebar-area .market-cart-country { margin-block: 5px !important; }
    .cart-sidebar-area .market-tax-help { margin-block: 6px 4px !important; padding: 10px !important; font-size: 11px !important; }

    .cart-sidebar-area .cart-bottom-wrapper .price-row-total {
        margin-top: 8px !important;
        padding-top: 14px !important;
    }

    .cart-sidebar-area .cart-bottom-wrapper .price-total-value { font-size: 18px !important; }
    .cart-sidebar-area .btn-wrapper .btn { margin-top: 10px !important; min-height: 46px !important; }
}

.cart-delivery-note {
    display: block;
    margin: -4px 0 8px;
    color: #806875;
    font-size: 11px;
    line-height: 1.45;
}

.price-row-shipping .price-value {
    color: #6f2039;
    font-weight: 750;
}

/* Final sidebar polish: keep the summary readable even when checkout/page
   styles are loaded after this stylesheet. Grid gives the label and amount
   their own columns instead of allowing the text to run together. */
.cart-sidebar-area {
    width: min(100%, 420px) !important;
    max-width: 100vw !important;
    padding: 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fb 100%) !important;
    overflow-x: hidden;
}

.cart-sidebar-area .top-content {
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 16px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #ead6df;
}

.cart-sidebar-area .cart-sidebar-area__title {
    margin: 0 !important;
    color: #24141c !important;
    font-size: 26px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em;
}

.cart-sidebar-area .cart-bottom-wrapper .price-row,
.cart-sidebar-area .cart-bottom-wrapper .cart-calculation-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.cart-sidebar-area .cart-bottom-wrapper .price-label {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
}

.cart-sidebar-area .cart-bottom-wrapper .price-value,
.cart-sidebar-area .cart-bottom-wrapper .cart-calculation-row strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-self: end !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    white-space: nowrap !important;
    line-height: 1.45 !important;
}

.cart-sidebar-area .cart-bottom-wrapper .cart-net-value,
.cart-sidebar-area .cart-bottom-wrapper .cart-vat-value {
    margin-left: 0 !important;
}

.cart-sidebar-area .cart-bottom-wrapper .price-row-total {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    margin-top: 12px !important;
    padding-top: 18px !important;
    border-top: 2px solid #a52e55 !important;
}

.cart-sidebar-area .cart-bottom-wrapper .price-total-label,
.cart-sidebar-area .cart-bottom-wrapper .price-total-value,
.cart-sidebar-area .cart-bottom-wrapper .price-total-value * {
    color: #6f2039 !important;
    font-weight: 800 !important;
}

.cart-sidebar-area .cart-bottom-wrapper .price-total-value {
    font-size: 21px !important;
}

.cart-sidebar-area .market-cart-country {
    margin: 8px 0 6px !important;
}

.cart-sidebar-area .market-tax-help {
    display: block !important;
    margin: 8px 0 4px !important;
    padding: 12px !important;
    border-radius: 10px !important;
    line-height: 1.45 !important;
}

@media (max-width: 430px) {
    .cart-sidebar-area {
        width: 100% !important;
        padding: 18px !important;
    }

    .cart-sidebar-area .cart-bottom-wrapper .price-row,
    .cart-sidebar-area .cart-bottom-wrapper .cart-calculation-row {
        column-gap: 12px !important;
    }

    .cart-sidebar-area .cart-bottom-wrapper .price-total-value {
        font-size: 19px !important;
    }
}

/* Final compact drawer overrides (must come after the base sidebar polish). */
.cart-sidebar-area .cart-items-wrapper {
    max-height: min(46vh, 430px) !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    scrollbar-width: thin;
    scrollbar-color: #d8a5b5 transparent;
}
.cart-sidebar-area .cart-items-wrapper::-webkit-scrollbar { width: 4px; }
.cart-sidebar-area .cart-items-wrapper::-webkit-scrollbar-thumb { border-radius: 99px; background: #d8a5b5; }
.cart-sidebar-area .single-product-item.cartItem {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding-block: 10px !important;
}
.cart-sidebar-area .single-product-item.cartItem .thumb { width: 52px !important; min-width: 52px !important; height: 52px !important; border-radius: 12px !important; }
.cart-sidebar-area .single-product-item.cartItem .title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px !important; line-height: 1.3 !important; }
.cart-sidebar-area .single-product-item.cartItem .content-top-left > .d-flex > span:not(.cart-item-price) { display: none !important; }
.cart-sidebar-area .single-product-item.cartItem .content-bottom { margin-top: 6px !important; gap: 8px !important; }
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap { transform: scale(.88); transform-origin: left center; }
.cart-sidebar-area .single-product-item.cartItem .cart-total-price { margin-left: auto !important; }
.cart-sidebar-area .single-product-item.cartItem .total-price { font-size: 10px !important; }
.cart-sidebar-area .single-product-item.cartItem .total-price-text { font-size: 14px !important; }
.cart-sidebar-area .single-product-item.cartItem .cart-item-action button { width: 28px !important; height: 28px !important; font-size: 13px !important; }

@media (max-width: 575px) {
    .cart-sidebar-area { padding: 14px 12px !important; }
    .cart-sidebar-area .top-content { padding-bottom: 10px !important; }
    .cart-sidebar-area .cart-sidebar-area__title { font-size: 22px !important; }
    .cart-sidebar-area .cart-items-wrapper { max-height: 44vh !important; }
    .cart-sidebar-area .single-product-item.cartItem { grid-template-columns: 46px minmax(0, 1fr) !important; gap: 8px !important; padding-block: 8px !important; }
    .cart-sidebar-area .single-product-item.cartItem .thumb { width: 46px !important; min-width: 46px !important; height: 46px !important; }
    .cart-sidebar-area .single-product-item.cartItem .title { font-size: 12px !important; }
}

/* Keep the drawer product-first. Detailed taxes, delivery and coupons open
   in a dedicated breakdown modal instead of taking up the drawer height. */
.cart-sidebar-area .cart-items-wrapper { max-height: min(64vh, 620px) !important; }
.cart-sidebar-area .cart-products.cart--products { overflow: visible !important; }
.cart-sidebar-area .cart-bottom { padding-top: 8px !important; }
.cart-sidebar-area .cart-drawer-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #ead6df;
    border-bottom: 1px solid #ead6df;
}
.cart-sidebar-area .cart-drawer-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6f5260;
    font-size: 13px;
    font-weight: 700;
}
.cart-sidebar-area .cart-drawer-summary-label i { color: #962f4f; font-size: 17px; }
.cart-sidebar-area .cart-drawer-summary-total { margin-left: auto; color: #6f2039; font-size: 15px; font-weight: 850; white-space: nowrap; }
.cart-sidebar-area .cart-drawer-breakdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: #962f4f;
    font-size: 12px;
    font-weight: 800;
}
.cart-sidebar-area .cart-drawer-breakdown-trigger:hover { color: #6f2039; }
.cart-drawer-breakdown-modal .modal-dialog { width: min(94vw, 430px); margin: 1rem auto; }
.cart-drawer-breakdown-modal .modal-content { border: 1px solid #ead6df; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(67,27,47,.22); }
.cart-drawer-breakdown-modal .modal-header { padding: 16px 18px; border-bottom: 1px solid #ead6df; }
.cart-drawer-breakdown-modal .modal-title { color: #24141c; font-size: 18px; font-weight: 800; }
.cart-drawer-breakdown-modal .modal-body { padding: 0 18px 18px; }
.cart-drawer-breakdown-modal .cart-bottom-wrapper { padding-top: 0; }
.cart-drawer-breakdown-modal .coupon-section { padding-top: 14px; }

@media (max-width: 575px) {
    .cart-sidebar-area .cart-items-wrapper { max-height: 60vh !important; }
    .cart-sidebar-area .cart-drawer-summary-bar { padding-block: 10px; }
    .cart-sidebar-area .cart-drawer-summary-total { font-size: 14px; }
    .cart-sidebar-area .cart-drawer-breakdown-trigger-text { display: none; }
    .cart-drawer-breakdown-modal .modal-dialog { width: calc(100% - 20px); }
    .cart-drawer-breakdown-modal .modal-body { padding-inline: 14px; }
}

/* Make drawer quantity controls readable without pushing the line total out
   of the narrow drawer. */
.cart-sidebar-area .single-product-item.cartItem .content-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 8px !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap {
    display: flex !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    padding: 2px !important;
    border: 1px solid #ead6df !important;
    border-radius: 11px !important;
    background: #fff !important;
    transform: none !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .product-quantity-input,
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .quantity {
    display: grid !important;
    grid-template-columns: 32px 38px 32px !important;
    align-items: center !important;
    width: 102px !important;
    min-width: 102px !important;
    min-height: 36px !important;
    border: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .qtyButton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff1f6 !important;
    color: #962f4f !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .qtyButton:hover,
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .qtyButton:focus-visible {
    background: #962f4f !important;
    color: #fff !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap input {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 1px solid #ead6df !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #24141c !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 32px !important;
    text-align: center !important;
}
.cart-sidebar-area .single-product-item.cartItem .cart-total-price {
    min-width: 0 !important;
    margin-left: 0 !important;
    text-align: right !important;
}
.cart-sidebar-area .single-product-item.cartItem .total-price-text {
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

@media (max-width: 575px) {
    .cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .product-quantity-input,
    .cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .quantity {
        grid-template-columns: 30px 36px 30px !important;
        width: 96px !important;
        min-width: 96px !important;
    }
    .cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap .qtyButton {
        width: 30px !important;
        min-width: 30px !important;
    }
    .cart-sidebar-area .single-product-item.cartItem .cart-qty-wrap input {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
    .cart-sidebar-area .single-product-item.cartItem .total-price-text { font-size: 13px !important; }
}
