/* ==========================================================
   PETSCOMPARE - EXIT-INTENT POPUP
   ========================================================== */

.exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.exit-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.exit-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem 1.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    position: relative;
    transform: translateY(20px) scale(.96);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
    text-align: center;
}

.exit-overlay.is-visible .exit-card {
    transform: translateY(0) scale(1);
}

.exit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50%;
    transition: all .15s;
}
.exit-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.exit-emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: .75rem;
    animation: exit-bounce 1.5s ease-in-out infinite;
}

@keyframes exit-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.exit-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.65rem;
    color: #1f2937;
    margin: 0 0 .65rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.exit-sub {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.exit-options {
    display: grid;
    gap: .65rem;
    margin-bottom: 1.25rem;
}

.exit-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: all .15s;
}

.exit-option:hover {
    border-color: #047857;
    background: #f0fdf4;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.exit-option-emoji {
    font-size: 1.85rem;
    flex-shrink: 0;
}

.exit-option strong {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 2px;
}

.exit-option small {
    color: #6b7280;
    font-size: .85rem;
}

.exit-dismiss {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: .5rem;
    font-family: inherit;
}
.exit-dismiss:hover {
    color: #1f2937;
}

@media (max-width: 480px) {
    .exit-card {
        padding: 1.75rem 1.25rem 1rem;
        border-radius: 16px;
    }
    .exit-title { font-size: 1.35rem; }
    .exit-sub { font-size: .92rem; margin-bottom: 1.25rem; }
    .exit-option { padding: .85rem 1rem; }
    .exit-option-emoji { font-size: 1.5rem; }
    .exit-option strong { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
    .exit-emoji { animation: none; }
    .exit-overlay,
    .exit-card { transition: opacity .15s; }
}
