/* Popup modal for [static_site_popup] — aligns with FAST admin accent (Indigo). */

html.static-site-popup-is-open,
html.static-site-popup-is-open body {
    overflow: hidden;
}

.static-site-popup-shortcode {
    display: inline-block;
}

.static-site-popup__trigger {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.static-site-popup__trigger:hover {
    background: #4f46e5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.static-site-popup__trigger:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.static-site-popup__trigger:active {
    transform: scale(0.98);
}

.static-site-popup[hidden] {
    display: none !important;
}

.static-site-popup:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    /* Above WP admin bar (99999), sticky headers, and most theme overlays; works with body reparent in popup.js */
    z-index: 2147483646;
}

.static-site-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.static-site-popup__panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.static-site-popup__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.static-site-popup__title {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.static-site-popup__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.static-site-popup__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.static-site-popup__frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    background: #f8fafc;
}

.static-site-popup__frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}
