﻿@charset "utf-8";
/* 전체 오버레이 */
.overlay1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 팝업 컨테이너 */
.popup1 {
    background: #111;
    color: #fff;
    max-width: 800px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: 'Noto Sans KR', sans-serif;
}

    .popup1 h1 {
        margin: 0 0 20px;
        font-size: 1.8rem;
        font-weight: 700;
        text-align: center;
    }

    .popup1 p {
        line-height: 1.6;
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* 버튼 그룹 */
    .popup1 .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .popup1 .btn {
        font-size: 1rem;
        padding: 10px 24px;
        border-radius: 4px;
        cursor: pointer;
        min-width: 140px;
        transition: background 0.2s, color 0.2s;
    }

        /* 아웃라인 버튼 */
        .popup1 .btn.outline {
            background: transparent;
            color: #fff;
            border: 2px solid #fff;
        }

            .popup1 .btn.outline:hover {
                background: rgba(255, 255, 255, 0.1);
            }

        /* 거부 버튼 */
        .popup1 .btn.reject {
            background: #555;
            color: #fff;
            border: none;
        }

            .popup1 .btn.reject:hover {
                background: #666;
            }

        /* 허용 버튼 */
        .popup1 .btn.accept {
            background: #777;
            color: #fff;
            border: none;
        }

            .popup1 .btn.accept:hover {
                background: #888;
            }

@media (max-width: 400px) {
    .popup1 .btn {
        flex: 1 1 100%;
    }
}


/* ─── 오버레이 ───────────────────────────────── */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ─── 팝업 전체 ──────────────────────────────── */
.popup {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 640px;
    height: 60vh; /* 높이를 뷰포트의 80%로 고정 */
    background: #111;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden; /* 플렉스 푸터가 밖으로 나가지 않도록 */
    font-family: 'Noto Sans KR', sans-serif;
}

/* ─── 스크롤 가능한 콘텐츠 영역 ─────────────── */
.popup-content {
    flex: 1 1 auto;
    padding: 30px 24px;
    overflow-y: auto; /* 스크롤 활성화 */
}

/* ─── 고정된 푸터(버튼 영역) ───────────────── */
.popup-footer {
    flex: 0 0 auto;
    padding: 16px 24px;
    background: #111;
    border-top: 1px solid #333;
}

/* ─── 헤더 & 설명 ─────────────────────────── */
.popup-content h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    text-align: center;
}

.popup-content .desc {
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 8px;
}

    .popup-content .desc a {
        color: #E91E63;
        text-decoration: underline;
    }

/* ─── 모두 허용 버튼 ───────────────────────── */
.btn-top {
    display: block;
    margin: 16px auto 24px;
    padding: 10px 28px;
    background: #E91E63;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

    .btn-top:hover {
        background: #d81b60;
    }

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 24px 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ─── 쿠키 항목 공통 ───────────────────────── */
.cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .cookie-item .info {
        flex: 1;
    }

        .cookie-item .info h4 {
            margin: 0 0 4px;
            font-size: 1.6rem;
            font-weight: 500;
        }

        .cookie-item .info p {
            margin: 0;
            font-size: 1.5rem;
            color: #ccc;
            line-height: 1.4;
        }

    .cookie-item.always .info p {
        color: #888;
        font-style: italic;
    }

    .cookie-item.always .always-on {
        font-size: 1.5rem;
        color: #888;
    }

/* ─── 토글 스위치 ─────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #555;
    transition: 0.3s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        transition: 0.3s;
        border-radius: 50%;
    }

.switch input:checked + .slider {
    background: #E91E63;
}

    .switch input:checked + .slider:before {
        transform: translateX(20px);
    }

/* ─── 타겟 맞춤 광고 ───────────────────────── */
.cookie-item.target {
    flex-direction: column;
    align-items: stretch;
}

    .cookie-item.target .title-switch {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-item.target .subtext {
        margin: 6px 0 0;
        font-size: 0.9rem;
        color: #ccc;
        line-height: 1.4;
    }

    .cookie-item.target .important {
        background: #222;
        border: 1px solid #333;
        border-radius: 4px;
        padding: 12px;
        margin-top: 10px;
    }

        .cookie-item.target .important strong {
            color: #E91E63;
            font-weight: 600;
            margin-right: 4px;
        }

        .cookie-item.target .important span {
            color: #ccc;
            font-size: 0.85rem;
            line-height: 1.4;
        }

/* ─── 하단 버튼 그룹 ───────────────────────── */
.btn-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

    .btn-group .btn {
        padding: 10px 24px;
        border: none;
        border-radius: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        background: #E91E63;
        color: #fff;
    }

        .btn-group .btn:hover {
            background: #d81b60;
        }

@media (max-width: 480px) {
    .popup-content {
        padding: 20px 16px;
    }

    .cookie-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .cookie-item .switch {
            margin-top: 8px;
        }

    .btn-top,
    .btn-group .btn {
        width: 100%;
        text-align: center;
    }
}
