/**
 * External URL Manager — interstitial overlay
 *
 * Fully self-contained: does not rely on Bootstrap or any theme styles.
 * Override any rule in your theme stylesheet — nothing here uses !important.
 */

/* ── Overlay backdrop ───────────────────────────────────────────────────── */
.eum-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.eum-overlay.active {
    display: flex;
    animation: eum-fade-in 0.15s ease forwards;
}

/* ── Dialog box ─────────────────────────────────────────────────────────── */
.eum-dialog {
    background: #fff;
    border-radius: 0.375rem;
    padding: 1.75rem 2rem;
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    font-family: inherit;
}

/* ── Close (×) button ───────────────────────────────────────────────────── */
.eum-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    font-size: 1.25rem;
    color: #666;
    opacity: 0.7;
}

.eum-close:hover {
    opacity: 1;
    color: #000;
}

/* ── Displayed external URL ─────────────────────────────────────────────── */
.eum-target-link {
    display: block;
    word-break: break-all;
    margin-bottom: 1.25rem;
    color: inherit;
}

/* ── Action buttons ─────────────────────────────────────────────────────── */
.eum-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.eum-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.eum-btn:hover {
    opacity: 0.85;
}

.eum-btn-continue {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.eum-btn-cancel {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

/* ── Entrance animation ─────────────────────────────────────────────────── */
@keyframes eum-fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
