/*
 * GOMGOM compact consent gate
 * Legal copy stays intact; this layer owns only the text-led mobile presentation.
 */

html.guel-demo-consent-lock,
html.guel-demo-consent-lock body {
    overflow: hidden !important;
}

#guelDemoConsentLayer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 17, 17, .20);
    font-family: Pretendard, sans-serif;
}

#guelDemoConsentLayer.is-show {
    display: flex;
}

.guel-demo-consent-card {
    width: min(100%, 370px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 28px;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 54px rgba(17, 17, 17, .14);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.guel-demo-consent-content {
    padding: 26px 24px 24px;
}

.guel-demo-consent-title {
    margin: 0 0 18px;
    font-family: "KoPubWorldBatang", "Noto Serif KR", Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -.045em;
    text-align: left;
}

.guel-demo-consent-body {
    margin: 0;
    color: rgba(17, 17, 17, .68);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.72;
    letter-spacing: -.018em;
    text-align: left;
    word-break: keep-all;
}

.guel-demo-consent-body strong {
    color: #111;
    font-weight: 750;
}

.guel-demo-consent-detail {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, .10);
}

.guel-demo-consent-detail summary {
    display: none;
}

.guel-demo-consent-detail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.guel-demo-consent-detail-item dt {
    margin: 0 0 4px;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.01em;
}

.guel-demo-consent-detail-item dd {
    margin: 0;
    color: rgba(17, 17, 17, .62);
    font-size: 12px;
    line-height: 1.62;
    letter-spacing: -.015em;
    word-break: keep-all;
}

.guel-demo-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 8px;
    margin-top: 26px;
}

.guel-demo-consent-btn {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 750 13px/1 Pretendard, sans-serif;
    letter-spacing: -.02em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.guel-demo-consent-btn.is-detail {
    border-color: rgba(17, 17, 17, .14);
    background: #fff;
    color: rgba(17, 17, 17, .68);
}

.guel-demo-consent-btn.is-primary {
    background: #111;
    color: #fff;
}

.guel-demo-consent-btn:active {
    transform: scale(.98);
}

.guel-demo-consent-btn.is-detail:active {
    background: rgba(17, 17, 17, .045);
}

.guel-demo-consent-btn.is-primary:active {
    background: #2a2a2a;
}

@media (max-width: 359px) {
    #guelDemoConsentLayer {
        padding: 14px;
    }

    .guel-demo-consent-card {
        max-height: calc(100dvh - 28px);
        border-radius: 24px;
    }

    .guel-demo-consent-content {
        padding: 26px 20px 20px;
    }

    .guel-demo-consent-title {
        font-size: 21px;
    }

    .guel-demo-consent-actions {
        grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    }

    .guel-demo-consent-btn {
        padding: 0 10px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guel-demo-consent-btn {
        transition: none;
    }
}
