/* ========================================
   Cookie Consent Banner — EU GDPR kompatibilis
   ======================================== */

.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    animation: ccFadeIn 0.3s ease;
}

.cc-overlay.cc-hiding {
    animation: ccFadeOut 0.3s ease forwards;
}

@keyframes ccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ccFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.cc-banner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    max-width: 620px;
    width: 100%;
    animation: ccSlideUp 0.35s ease;
    overflow: hidden;
}

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

.cc-content {
    padding: 28px 28px 24px;
}

.cc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cc-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cc-icon {
    font-size: 1.6rem;
    color: #d97706;
}

.cc-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 20px;
}

.cc-link {
    color: #0d7377;
    text-decoration: underline;
    font-weight: 500;
}

.cc-link:hover {
    color: #0a5c5f;
}

/* Kategória választók */
.cc-categories {
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.cc-cat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #e5e7eb;
}

.cc-cat:last-child {
    border-bottom: none;
}

.cc-cat:hover {
    background: #f9fafb;
}

.cc-cat input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #0d7377;
    flex-shrink: 0;
}

.cc-cat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-cat-info strong {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.cc-cat-info small {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

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

.cc-actions-custom {
    margin-top: 10px;
}

.cc-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.cc-btn-accept {
    background: #0d7377;
    color: #fff;
    flex: 1;
}

.cc-btn-accept:hover {
    background: #0a5c5f;
}

.cc-btn-necessary {
    background: #f3f4f6;
    color: #374151;
}

.cc-btn-necessary:hover {
    background: #e5e7eb;
}

.cc-btn-settings {
    background: transparent;
    color: #6b7280;
    padding: 11px 14px;
}

.cc-btn-settings:hover {
    background: #f3f4f6;
    color: #374151;
}

.cc-btn-save {
    background: #0d7377;
    color: #fff;
    width: 100%;
    justify-content: center;
}

.cc-btn-save:hover {
    background: #0a5c5f;
}

/* Footer cookie link */
.footer-cookie-link {
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: none;
    font: inherit;
    padding: 0;
}

.footer-cookie-link:hover {
    color: #0d7377;
}

/* Reszponzív */
@media (max-width: 600px) {
    .cc-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cc-banner {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }

    .cc-content {
        padding: 22px 18px 20px;
    }

    .cc-actions {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
        justify-content: center;
    }

    .cc-btn-settings {
        order: 3;
    }
}
