/* ============================================================
   SRUJAN CONSENT — v2.1.0
   ============================================================ */

.sgc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2147483000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}
.sgc-overlay.mode-inline {
    position: static;
    background: transparent;
    padding: 40px 16px;
    z-index: auto;
}

.sgc-overlay *,
.sgc-overlay *::before,
.sgc-overlay *::after { box-sizing: border-box; }

.sgc-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: sgcIn .35s ease;
}

@keyframes sgcIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

.sgc-title {
    color: #0a1f44;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.3;
}

.sgc-message {
    color: #1a2b4a;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.sgc-message p { margin: 0 0 12px; }
.sgc-message p:last-child { margin-bottom: 0; }

.sgc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Agree-only mode: center the single button */
.sgc-actions:has(.sgc-agree:only-child) {
    justify-content: center;
}
.sgc-actions .sgc-agree:only-child {
    min-width: 200px;
}

.sgc-btn {
    appearance: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 46px;
    line-height: 1;
    transition: background .2s, border-color .2s, transform .1s;
    font-family: inherit;
}
.sgc-btn:active { transform: translateY(1px); }

.sgc-agree {
    background: #2563eb;
    color: #ffffff;
}
.sgc-agree:hover { background: #1d4ed8; }

.sgc-disagree {
    background: #ffffff;
    color: #0a1f44;
    border-color: #e5eaf2;
}
.sgc-disagree:hover {
    border-color: #0a1f44;
    background: #f8fafc;
}

.sgc-note {
    font-size: 0.78rem;
    color: #64748b;
    margin: 16px 0 0;
    line-height: 1.4;
}

/* Lock scroll when popup open */
html.sgc-locked,
body.sgc-locked {
    overflow: hidden !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .sgc-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    .sgc-title { font-size: 1.15rem; }
    .sgc-message { font-size: 0.92rem; }

    .sgc-actions {
        flex-direction: column-reverse;
    }
    .sgc-btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
    }
}