/* WooCommerce Exit Popup Styles */

.wc-exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.wc-exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wc-exit-popup-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    position: relative;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.wc-exit-popup-overlay.active .wc-exit-popup-container {
    transform: scale(1) translateY(0);
}

.wc-exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.wc-exit-popup-close:hover {
    background: #f3f4f6;
    color: #111827;
    transform: rotate(90deg);
}

.wc-exit-popup-content {
    text-align: center;
}

.wc-exit-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color, #4f46e5) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

.wc-exit-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.3;
}

.wc-exit-popup-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.wc-exit-popup-message p {
    margin: 0 0 12px;
}

.wc-exit-popup-message p:last-child {
    margin-bottom: 0;
}

.wc-exit-popup-code {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    background: #f9fafb;
    border: 2px dashed var(--accent-color, #4f46e5);
    border-radius: 12px;
    padding: 12px;
}

.wc-exit-popup-code-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color, #4f46e5);
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    outline: none;
}

.wc-exit-popup-copy-btn {
    background: var(--accent-color, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wc-exit-popup-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.wc-exit-popup-copy-btn.copied {
    background: #10b981;
}

.wc-exit-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color, #4f46e5) 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    width: 100%;
    text-align: center;
}

.wc-exit-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    color: white;
}

.wc-exit-popup-no-thanks {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
    padding: 8px;
    transition: color 0.2s ease;
}

.wc-exit-popup-no-thanks:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Theme: Elegant */
.wc-exit-popup-theme-elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wc-exit-popup-theme-elegant .wc-exit-popup-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-title {
    color: white;
}

.wc-exit-popup-theme-elegant .wc-exit-popup-message {
    color: rgba(255, 255, 255, 0.9);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-code {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-code-input {
    color: white;
}

.wc-exit-popup-theme-elegant .wc-exit-popup-button {
    background: white;
    color: #667eea;
}

.wc-exit-popup-theme-elegant .wc-exit-popup-button:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-no-thanks {
    color: rgba(255, 255, 255, 0.7);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-no-thanks:hover {
    color: white;
}

.wc-exit-popup-theme-elegant .wc-exit-popup-close {
    color: rgba(255, 255, 255, 0.8);
}

.wc-exit-popup-theme-elegant .wc-exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Theme: Bold */
.wc-exit-popup-theme-bold {
    background: #1f2937;
    color: white;
}

.wc-exit-popup-theme-bold .wc-exit-popup-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.wc-exit-popup-theme-bold .wc-exit-popup-title {
    color: white;
    font-size: 32px;
}

.wc-exit-popup-theme-bold .wc-exit-popup-message {
    color: #d1d5db;
}

.wc-exit-popup-theme-bold .wc-exit-popup-code {
    background: #374151;
    border-color: #f59e0b;
}

.wc-exit-popup-theme-bold .wc-exit-popup-code-input {
    color: #f59e0b;
}

.wc-exit-popup-theme-bold .wc-exit-popup-copy-btn {
    background: #f59e0b;
}

.wc-exit-popup-theme-bold .wc-exit-popup-copy-btn:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.wc-exit-popup-theme-bold .wc-exit-popup-button {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.wc-exit-popup-theme-bold .wc-exit-popup-button:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.wc-exit-popup-theme-bold .wc-exit-popup-no-thanks {
    color: #9ca3af;
}

.wc-exit-popup-theme-bold .wc-exit-popup-no-thanks:hover {
    color: #d1d5db;
}

.wc-exit-popup-theme-bold .wc-exit-popup-close {
    color: #9ca3af;
}

.wc-exit-popup-theme-bold .wc-exit-popup-close:hover {
    background: #374151;
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .wc-exit-popup-container {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .wc-exit-popup-title {
        font-size: 24px;
    }
    
    .wc-exit-popup-message {
        font-size: 15px;
    }
    
    .wc-exit-popup-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .wc-exit-popup-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .wc-exit-popup-code-input {
        font-size: 16px;
    }
    
    .wc-exit-popup-button {
        padding: 14px 32px;
        font-size: 15px;
    }
}
