/* SafeCyber Scorecard — popup styles */

/* ── Teaser slide-in ──────────────────────────────────────────────────────── */

.scs-teaser {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
    pointer-events: none;
    max-width: 340px;
    width: calc(100vw - 48px);
}

.scs-teaser.scs-teaser-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.scs-teaser.scs-teaser-dismissed {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.scs-teaser-inner {
    background: #ffffff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    padding: 14px 14px 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    position: relative;
}

.scs-teaser-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #9b9890;
    cursor: pointer;
    padding: 2px 4px;
    font-family: inherit;
}

.scs-teaser-close:hover { color: #18170f; }

.scs-teaser-icon {
    width: 40px;
    height: 40px;
    background: #0C447C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scs-teaser-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 16px;
    min-width: 0;
}

.scs-teaser-text strong {
    font-size: 13px;
    font-weight: 500;
    color: #18170f;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scs-teaser-text span {
    font-size: 11.5px;
    color: #6a6860;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scs-teaser-btn {
    background: #0C447C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background 0.12s;
}

.scs-teaser-btn:hover { background: #185FA5; }

@media (max-width: 480px) {
    .scs-teaser {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }
    .scs-teaser-inner { flex-wrap: wrap; }
    .scs-teaser-btn { width: 100%; text-align: center; }
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */

.scs-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.scs-modal.scs-modal-open {
    opacity: 1;
    pointer-events: all;
}

.scs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.scs-modal-box {
    position: relative;
    background: #f7f6f2;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    -webkit-overflow-scrolling: touch;
}

.scs-modal.scs-modal-open .scs-modal-box {
    transform: translateY(0) scale(1);
}

.scs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.scs-modal-title {
    font-size: 13px;
    font-weight: 500;
    color: #6a6860;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.scs-modal-close {
    background: none;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    color: #6a6860;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
}

.scs-modal-close:hover { background: #f0ede6; color: #18170f; }

.scs-modal-body {
    padding: 0 1.25rem 1.5rem;
    overflow-y: auto;
}

/* Override scs-wrap padding inside modal */
.scs-modal-body .scs-wrap {
    padding-top: 0.75rem;
}

@media (max-width: 480px) {
    .scs-modal {
        padding: 0;
        align-items: flex-end;
    }
    .scs-modal-box {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
    .scs-modal-header { border-radius: 16px 16px 0 0; }
}

/* Body scroll lock when modal open */
body.scs-modal-lock {
    overflow: hidden;
}
