/**
 * Cart Duplicate Warning Popup Styles
 * WooCommerce-style notification
 */

/* Popup Overlay - Centered positioning */
.cdw-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cdw-popup-overlay.cdw-show {
    pointer-events: auto;
    opacity: 1;
}

/* Popup Container - WooCommerce style centered */
.cdw-popup {
    background: #f0e8c8;
    border-left: 4px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: calc(100% - 40px);
    margin: 0;
    padding: 15px 50px 15px 20px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.cdw-popup-overlay.cdw-show .cdw-popup {
    transform: scale(1);
}

/* Popup Icon - Warning icon like WooCommerce */
.cdw-popup-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdw-popup-icon svg {
    width: 24px;
    height: 24px;
    color: #856404;
}

/* Popup Content */
.cdw-popup-content {
    flex: 1;
}

.cdw-popup-title {
    display: none;
}

.cdw-popup-message {
    font-size: 14px;
    color: #856404;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Close Button - Simple X button */
.cdw-popup-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #856404;
    border: none;
    padding: 5px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    outline: none;
}

.cdw-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.cdw-popup-close span {
    display: inline-block;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cdw-popup {
        width: calc(100% - 20px);
        padding: 12px 40px 12px 15px;
        font-size: 13px;
    }
    
    .cdw-popup-icon {
        width: 20px;
        height: 20px;
    }
    
    .cdw-popup-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .cdw-popup-message {
        font-size: 13px;
    }
    
    .cdw-popup-close {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }
}

/* Animation for button that's being checked */
.cdw-already-checked {
    opacity: 0.8;
}

/* Accessibility improvements */
.cdw-popup-close:focus {
    outline: 2px solid #856404;
    outline-offset: 2px;
}

.cdw-popup-overlay:focus {
    outline: none;
}

/* Auto-hide animation */
@keyframes cdw-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

