.cart-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.cart-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.cart-total-header {
    color: var(--accent);
    font-size: 1.55rem;
    font-weight: 900;
}

.cart-body {
    overflow-x: auto;
}

.empty-cart {
    display: flex;
    min-height: 22.5rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
}

.empty-cart > i {
    margin-bottom: 0.9375rem;
    color: var(--subtle);
    font-size: 4rem;
}

.empty-cart p {
    color: var(--muted);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1.0625rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-table th {
    color: var(--subtle);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-item-image img {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 0.625rem;
    object-fit: contain;
}

.item-name {
    font-weight: 800;
}

.item-type {
    color: var(--subtle);
    font-size: .72rem;
}

.price-amount {
    color: var(--accent);
    font-weight: 800;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.qty-btn,
.btn-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-2);
    cursor: pointer;
}

.qty-input {
    width: 3rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
    text-align: center;
}

.btn-remove {
    color: var(--danger);
}

.cart-coupon {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
}

.coupon-input-group {
    display: flex;
    gap: 0.625rem;
}

.coupon-message {
    margin-top: 0.625rem;
    font-size: .85rem;
}

.coupon-success {
    color: var(--success);
}

.coupon-error {
    color: var(--danger);
}

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border);
}

.cart-footer-info {
    max-width: 43.75rem;
    color: var(--muted);
    font-size: .85rem;
}

.cart-footer-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .cart-header,
    .cart-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1) {
        display: none;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
    }
}

.cart-panel[aria-busy="true"] {
    opacity: 0.75;
}
