/* CUSTOM CODE: Add to Cart Notification Styles */

/* Base Notification Styles */
.custom-atc-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #dd701b 0%, #dd701b 100%);
    color: white;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999999;
    display: none;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
    border: 2px solid rgba(255,255,255,0.3);
    min-width: 250px;
    max-width: 90%;
}

/* Adding Popup Specific */
.custom-adding-popup {
    background: linear-gradient(135deg, #dd701b 0%, #dd701b 100%);
}

.custom-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Added Popup Specific */
.custom-added-popup .custom-popup-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Close Button */
.custom-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: transform 0.2s;
}

.custom-popup-close:hover {
    transform: scale(1.2);
}

/* Content Styles */
.custom-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-atc-notification h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3em;
}

.custom-atc-notification p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -60%); }
}

/* Button Loading State */
.adding::after {
    content: "..." !important;
    display: inline-block !important;
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive */
@media (max-width: 480px) {
    .custom-atc-notification {
        padding: 20px 30px;
    }
    
    .custom-popup-icon, .custom-spinner {
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
}