#nd-cart-drawer-root {
        all: initial;
    }

    #nd-cart-toggle,
    #nd-cart-drawer,
    #nd-cart-overlay {
        font-family: Arial, Helvetica, sans-serif;
        box-sizing: border-box;
    }

    #nd-cart-toggle {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 9998;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 999px;
        background: #f8ae4d;
        color: #111827;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    #nd-cart-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #nd-cart-toggle-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        border-radius: 999px;
        background: #fff;
        color: #111827;
        font-size: 13px;
        font-weight: 700;
    }

    #nd-cart-overlay {
        position: fixed;
        inset: 0;
        z-index: 9997;
        background: rgba(17, 24, 39, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    #nd-cart-overlay.nd-open {
        opacity: 1;
        pointer-events: auto;
    }

    #nd-cart-drawer {
        position: fixed;
        top: 15vh;
        right: 0;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        width: 420px;
        max-width: 100vw;
        height: 80vh;
        overflow: hidden;
        transform: translateX(100%);
        border-top: 1px solid #e5e7eb;
        border-left: 1px solid #e5e7eb;
        border-top-left-radius: 18px;
        background: #fff;
        color: #1f2937;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        transition: transform 0.25s ease;
    }

    #nd-cart-drawer.nd-open {
        transform: translateX(0);
    }

    #nd-cart-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid #e5e7eb;
        background: #fff;
        font-size: 18px;
    }

    #nd-cart-close {
        padding: 0;
        border: none;
        background: transparent;
        color: #374151;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    #nd-cart-drawer-status {
        margin: 20px 20px 0;
        padding: 12px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #f9fafb;
        color: #374151;
        font-size: 14px;
        line-height: 1.45;
    }

    #nd-cart-drawer-status.nd-eligible {
        border-color: #b7ebc6;
        background: #ecfdf3;
        color: #166534;
        font-weight: 700;
    }

    #nd-cart-drawer-items {
        flex: 1;
        overflow-y: auto;
        padding: 8px 20px 20px;
    }

    .nd-drawer-empty {
        margin-top: 16px;
        color: #6b7280;
    }

    .nd-drawer-item {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 16px 0;
        border-top: 1px solid #f0f0f0;
    }

    .nd-drawer-item:first-child {
        border-top: none;
    }

    .nd-drawer-item-main {
        flex: 1;
        min-width: 0;
    }

    .nd-drawer-item-name {
        margin-bottom: 6px;
        font-size: 15px;
        font-weight: 600;
    }

    .nd-drawer-item-meta {
        margin-bottom: 10px;
        color: #6b7280;
        font-size: 13px;
        line-height: 1.45;
    }

    .nd-drawer-item-total {
        white-space: nowrap;
        font-size: 14px;
        font-weight: 600;
    }

    .nd-drawer-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nd-drawer-qty {
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        border: 1px solid #d1d5db;
        border-radius: 999px;
        background: #fff;
    }

    .nd-drawer-qty button {
        width: 34px;
        height: 34px;
        padding: 0;
        border: none;
        background: #fff;
        color: #111827;
        font-size: 18px;
        cursor: pointer;
    }

    .nd-drawer-qty button:hover {
        background: #f9fafb;
    }

    .nd-drawer-qty span {
        min-width: 34px;
        padding: 0 6px;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
    }

    .nd-drawer-remove {
        padding: 0;
        border: none;
        background: none;
        color: #b91c1c;
        font-size: 14px;
        cursor: pointer;
    }

    #nd-cart-drawer-summary {
        padding: 16px 20px 8px;
        border-top: 1px solid #e5e7eb;
        background: #fff;
    }

    .nd-cart-summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 15px;
    }

    #nd-cart-drawer-discount-row {
        color: #166534;
        font-weight: 600;
    }

    .nd-cart-summary-total {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        font-size: 17px;
        font-weight: 700;
    }

    #nd-cart-drawer-footer {
        padding: 0 20px 20px;
        background: #fff;
    }

    #nd-cart-drawer-checkout {
        width: 100%;
        padding: 15px 22px;
        border: none;
        border-radius: 12px;
        background: #111827;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

    #nd-cart-drawer-checkout:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    @media (max-width: 640px) {
        #nd-cart-toggle {
            right: 14px;
            bottom: 14px;
        }

        #nd-cart-drawer {
            top: 15vh;
            width: 100vw;
            height: 80vh;
            border-top-left-radius: 18px;
        }

        .nd-drawer-item {
            flex-direction: column;
        }
    }
