/**
 * ACON Support Page Notice — styles
 * Namespaced with #asn-* / .asn-* — no conflicts with theme or other plugins.
 *
 * Design intent: this is a SAFETY message, not a marketing popup.
 * No red/alarm colours, no aggressive motion, no sound, no countdown,
 * no forced full-screen lock. Soft colours, gentle fade, generous
 * whitespace, and an easy, obvious way out at all times.
 */

/* ── Soft backdrop ─────────────────────────────────────────────────────
   Translucent, not black — keeps the page visible and non-threatening.
   pointer-events left ON so a click outside also dismisses gently.
──────────────────────────────────────────────────────────────────────── */
.asn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 28, 0.28);
    z-index: 2147483640;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.asn-overlay.asn-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Dialog card ───────────────────────────────────────────────────── */
.asn-dialog {
    position: fixed;
    z-index: 2147483641;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -46%);
    width: min(440px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    background: #fbfaf8;
    border-radius: 14px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.10);

    padding: 32px 28px 26px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b2f33;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.asn-dialog.asn-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* ── Close (×) button — always available, top right ─────────────────── */
.asn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8a8f94;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.asn-close:hover,
.asn-close:focus-visible {
    background-color: rgba(0, 0, 0, 0.06);
    color: #2b2f33;
}

.asn-close:focus-visible {
    outline: 2px solid #6a8caf;
    outline-offset: 1px;
}

/* ── Title ─────────────────────────────────────────────────────────── */
.asn-title {
    margin: 0 28px 14px 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #20242a;
}

/* ── Body text ─────────────────────────────────────────────────────── */
.asn-body {
    font-size: 15px;
    line-height: 1.65;
    color: #45494e;
}

.asn-body p {
    margin: 0 0 14px;
}

.asn-body p:last-child {
    margin-bottom: 0;
}

/* ── Action buttons (phone links) ─────────────────────────────────── */
.asn-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.asn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.1s ease;
    line-height: 1.3;
}

.asn-btn:active {
    transform: scale(0.98);
}

.asn-btn-primary {
    background-color: #c0392b;
    color: #ffffff;
}

.asn-btn-primary:hover,
.asn-btn-primary:focus-visible {
    filter: brightness(1.08);
}

.asn-btn-secondary {
    background-color: #eef1f3;
    color: #2b2f33;
}

.asn-btn-secondary:hover,
.asn-btn-secondary:focus-visible {
    background-color: #e2e6e9;
}

.asn-btn:focus-visible {
    outline: 2px solid #6a8caf;
    outline-offset: 2px;
}

/* ── Quiet text-link dismiss — no pressure, easy exit ───────────────── */
.asn-dismiss-text {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 8px 0 0;
    background: none;
    border: none;
    font-size: 13.5px;
    color: #8a8f94;
    text-decoration: underline;
    text-decoration-color: rgba(138, 143, 148, 0.4);
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease;
}

.asn-dismiss-text:hover,
.asn-dismiss-text:focus-visible {
    color: #45494e;
}

.asn-dismiss-text:focus-visible {
    outline: 2px solid #6a8caf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .asn-dialog {
        width: calc(100vw - 28px);
        padding: 26px 22px 22px;
        border-radius: 12px;
    }

    .asn-title {
        font-size: 17.5px;
    }

    .asn-body {
        font-size: 14.5px;
    }
}

/* ── Respect reduced-motion preference ───────────────────────────────
   Safety content should never rely on animation to be understood,
   so motion-sensitive visitors get an instant, simple appearance.
──────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .asn-overlay,
    .asn-dialog {
        transition: opacity 0.2s linear;
    }
    .asn-dialog.asn-visible {
        transform: translate(-50%, -50%);
    }
}
