.cod-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150000;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 10px;
}

.cod-popup-modal {
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    height: fit-content;
    margin: auto;
    position: relative;
    animation: popupFadeIn 0.25s ease-out;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.97) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cod-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.popup-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 6px;
    position: relative;
}

.popup-item-remove-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-info {
    flex: 1;
    padding-right: 35px;
}



.item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.item-image-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.item-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
