/**
 * Exit Intent Popup Styles - Compact Version with Gradient Border
 */

/* Overlay */
.fg-exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Popup Container - Compact with Gradient Border */
.fg-exit-popup {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px 30px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

/* Gradient Border Animation */
.fg-exit-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            #bb0a07);
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.fg-exit-popup::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #ffffff;
    border-radius: 14px;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

/* Close Button */
.fg-exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 2;
}

.fg-exit-popup-close:hover {
    background: rgba(187, 10, 7, 0.1);
    color: #bb0a07;
    transform: rotate(90deg);
}

.fg-exit-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Icon */
.fg-exit-popup-icon {
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

.fg-exit-popup-icon svg {
    width: 56px;
    height: 56px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Title - 20px */
.fg-exit-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
    line-height: 1.3;
}

/* Message - 14px */
.fg-exit-popup-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px;
}

/* Buttons Container */
.fg-exit-popup-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

/* Button Base - 15px */
.fg-exit-popup-button {
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

/* Primary Button */
.fg-exit-popup-button-primary {
    background: #bb0a07;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(187, 10, 7, 0.3);
}

.fg-exit-popup-button-primary:hover {
    background: #990806;
    box-shadow: 0 6px 20px rgba(187, 10, 7, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Secondary Button */
.fg-exit-popup-button-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
}

.fg-exit-popup-button-secondary:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fg-exit-popup {
        padding: 30px 25px 25px;
        max-width: 95%;
    }

    .fg-exit-popup-title {
        font-size: 18px;
    }

    .fg-exit-popup-message {
        font-size: 13px;
    }

    .fg-exit-popup-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .fg-exit-popup {
        padding: 25px 20px 20px;
    }

    .fg-exit-popup-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .fg-exit-popup-message {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .fg-exit-popup-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}