/* ============================================
   Cookie Consent Banner (alulról felbukó ablak)
   ============================================ */

#cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 36, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9998;
}

#cookie-consent-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

#cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
}

#cookie-consent-banner.is-open {
    transform: translateY(0);
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cookie-consent-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b2241;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
}

.cookie-close-btn:hover {
    color: var(--text-dark);
}

.cookie-consent-body {
    padding: 20px 28px;
    overflow-y: auto;
}

.cookie-consent-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-consent-intro a {
    color: var(--btn-blue);
    font-weight: 600;
}

.cookie-category {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.cookie-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b2241;
}

.cookie-category-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-consent-none {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Toggle kapcsoló */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 999px;
    transition: 0.3s;
    cursor: pointer;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background-color: var(--btn-blue);
}

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

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-consent-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--btn-blue);
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

.cookie-btn-secondary {
    background: #fff;
    color: var(--btn-blue);
}

.cookie-btn-secondary:hover {
    background: #f0f5fa;
}

.cookie-btn-primary {
    background: var(--btn-blue);
    color: #fff;
}

.cookie-btn-primary:hover {
    filter: brightness(1.15);
}

/* Lábléc jogi linkek (Adatvédelem / Süti beállítások) */
.footer-legal-links {
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-legal-links a,
.footer-legal-links button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-main);
    padding: 0;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
    color: #ffffff;
}

.footer-legal-links .sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

@media (max-width: 768px) {
    #cookie-consent-banner {
        max-width: 100%;
        max-height: 90vh;
    }

    .cookie-consent-header,
    .cookie-consent-body,
    .cookie-consent-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-consent-footer {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
