/* Dialog Overlay */
.cart-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-dialog-overlay.open {
    display: flex;
    opacity: 1;
}

/* Dialog Container */
.cart-dialog {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cart-dialog-overlay.open .cart-dialog {
    transform: scale(1);
}

/* Cart Items Container */
.cart-dialog-items {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #fff;
    border-radius: 4px;
}

/* Single Cart Item Row */
.cart-dialog-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Trash Button */
.cart-dialog-delete {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cart-dialog-delete:hover {
    opacity: 1;
}

.cart-dialog-delete img,
.cart-dialog-delete svg {
    width: 24px;
    height: 24px;
}

/* Item Content (image + details) */
.cart-dialog-item-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

/* Item Details */
.cart-dialog-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cart-dialog-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    line-height: 20px;
    color: #000;
    text-align: right;
}

.cart-dialog-item-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.cart-dialog-item-delivery {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* Price Badge */
.cart-dialog-item-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 0;
    width: 126px;
    font-size: 19px;
    font-weight: 500;
    line-height: 15px;
    color: #000;
    text-align: right;
}

.cart-dialog-item-price .price-amount {
    font-size: 19px;
}

.cart-dialog-item-price .price-currency {
    font-size: 19px;
}

.cart-dialog-item-price .price-points {
    font-size: 16px;
}

/* Item Image */
.cart-dialog-item-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

/* Divider */
.cart-dialog-divider {
    width: 100%;
    height: 1px;
    background: #D9D9D9;
}

/* Summary Section */
.cart-dialog-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border-radius: 4px;
}

.cart-dialog-total-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 16px;
    text-align: right;
}

.cart-dialog-total-label {
    font-weight: 400;
    line-height: 19px;
    color: #0B0427;
}

.cart-dialog-total-value {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 16px;
    background: #F8F8F8;
    border-radius: 38px;
    font-size: 16px;
    font-weight: 500;
    line-height: 15px;
    color: #000;
}

/* Actions Section */
.cart-dialog-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.cart-dialog-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 34px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-dialog-btn-primary {
    background: #2020B3;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.16);
}

.cart-dialog-btn-primary:hover {
    background: #1a1a99;
}

.cart-dialog-btn-primary svg {
    width: 17px;
    height: 17px;
}

.cart-dialog-btn-secondary {
    background: #fff;
    border: 2px solid #000;
    color: #000;
}

.cart-dialog-btn-secondary:hover {
    background: #F8F8F8;
}

/* Open Cart Button */
.open-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2020B3;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.open-cart-btn:hover {
    background: #1a1a99;
}

.open-cart-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 480px) {
    .cart-dialog {
        padding: 20px 16px;
    }

    .cart-dialog-actions {
        flex-direction: column-reverse;
    }

    .cart-dialog-item-name {
        font-size: 15px;
    }

    .cart-dialog-item-delivery {
        font-size: 13px;
    }

    .cart-dialog-item-price {
        font-size: 16px;
        width: auto;
    }

    .cart-dialog-item-image {
        width: 60px;
        height: 45px;
    }
}
