/* 쿠키 동의 배너 + 설정 팝업 */

.cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #fff;
    padding: 20px 24px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 480px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn-link {
    border-color: transparent;
    text-decoration: underline;
}

.cookie-btn-primary {
    background: #fff;
    color: #1a1a1a;
}

.cookie-settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.cookie-settings-popup {
    background: #fff;
    color: #1a1a1a;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 28px;
}

.cookie-settings-title {
    margin: 0 0 16px;
    font-size: 18px;
}

.cookie-settings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cookie-settings-item {
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.cookie-settings-item:first-child {
    border-top: none;
}

.cookie-settings-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-settings-item-title {
    font-size: 15px;
    font-weight: 700;
}

.cookie-settings-item-text {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-toggle {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: 0.2s;
}

.cookie-switch-toggle::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-switch input:checked + .cookie-switch-toggle {
    background-color: #1a1a1a;
}

.cookie-switch input:checked + .cookie-switch-toggle::before {
    transform: translateX(18px);
}

.cookie-switch input:disabled + .cookie-switch-toggle {
    background-color: #1a1a1a;
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.cookie-settings-footer .cookie-btn {
    border-color: #ccc;
    color: #1a1a1a;
}

.cookie-settings-footer .cookie-btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.cookie-settings-reopen {
    position: fixed;
    left: 12px;
    bottom: 8px;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: flex-end;
    }
}
