/* ============================================================
   DONGÓ PC — Cookie consent banner
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 560px;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: cookieSlideUp 0.4s ease both;
    transition: opacity 0.3s, transform 0.3s;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-content {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }

.cookie-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a { color: var(--accent); text-decoration: none; font-weight: 500; }
.cookie-text a:hover { text-decoration: underline; }

.cookie-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.cookie-details.open { max-height: 300px; margin-top: 16px; }

.cookie-category {
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.cookie-category:last-child { margin-bottom: 0; }

.cookie-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.cookie-cat-header strong { font-size: 0.9rem; color: var(--text-primary); }

.cookie-category > p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    padding-left: 48px;
    line-height: 1.5;
}

/* Toggle switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 36px; height: 20px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 20px;
    transition: 0.3s;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-switch input:checked + .cookie-slider { background: var(--accent); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(16px); }
.cookie-switch input:disabled + .cookie-slider { opacity: 0.7; cursor: not-allowed; }

/* Gombok */
.cookie-actions { display: flex; gap: 10px; }

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #ffffff;
    flex: 1;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.cookie-btn-save {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    flex: 1;
}

.cookie-btn-save:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px; right: 12px; bottom: 12px;
        padding: 20px;
    }

    .cookie-content { flex-direction: column; gap: 12px; }
    .cookie-actions { flex-direction: column; }
}
