/* FG Constructions — Cookiebanner (Google Consent Mode v2) */

.fg-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: #141414;
    border-top: 1px solid #333;
    color: #e0e0e0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    animation: fg-consent-in 0.25s ease-out;
}

@keyframes fg-consent-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fg-consent {
        animation: none;
    }
}

.fg-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.fg-consent__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

.fg-consent__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #b8b8b8;
    max-width: 80ch;
    margin-bottom: 18px;
}

.fg-consent__settings {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
    background-color: #1a1a1a;
    border: 1px solid #2b2b2b;
}

.fg-consent__category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.fg-consent__category-label:has(.fg-consent__checkbox:disabled) {
    cursor: default;
}

.fg-consent__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #fff;
    flex-shrink: 0;
}

.fg-consent__checkbox:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fg-consent__category-description {
    font-size: 0.78rem;
    line-height: 1.55;
    color: #9a9a9a;
    margin: 6px 0 0 26px;
}

.fg-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fg-consent__button {
    padding: 11px 24px;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fg-consent__button:hover {
    border-color: #fff;
    color: #fff;
}

.fg-consent__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fg-consent__button--primary {
    background-color: #fff;
    border-color: #fff;
    color: #111;
    font-weight: 600;
}

.fg-consent__button--primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #111;
}

.fg-consent__button--ghost {
    border-color: transparent;
    text-decoration: underline;
    padding-left: 8px;
    padding-right: 8px;
}

.fg-consent__button--save {
    border-color: #fff;
    color: #fff;
}

/* Link in de footer om de keuze later aan te passen */
.fg-consent-link-wrapper {
    margin-top: 20px;
}

.fg-consent-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    color: #9a9a9a;
    text-decoration: underline;
    cursor: pointer;
}

.fg-consent-link:hover {
    color: #fff;
}

.fg-consent-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .fg-consent {
        max-height: 85vh;
        overflow-y: auto;
    }

    .fg-consent__inner {
        padding: 20px 16px;
    }

    .fg-consent__actions {
        flex-direction: column;
    }

    .fg-consent__button {
        width: 100%;
    }
}
