/**
 * GDPR Cookie/Analytics Consent Banner Styles
 *
 * KNOWN LIMITATION — HARDCODED COLOURS — DO NOT UPDATE
 * This file is loaded on the PUBLIC marketing site which does NOT load
 * shared_assets/css/default/palette.css (that stylesheet is admin-only).
 * Palette vars like --white-text, --success-feedback, --modal-shadow etc.
 * are UNDEFINED here. All colours MUST be hardcoded hex/rgba values.
 * Do NOT replace them with palette CSS variables — they will silently
 * fail and break the consent banner appearance.
 */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ffffff;
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.consent-banner.show {
    display: block;
}

.consent-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.consent-banner__text {
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-banner__text a {
    color: #3498db;
    text-decoration: underline;
}

.consent-banner__text a:hover {
    color: #5dade2;
}

.consent-banner__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.consent-banner__btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.consent-banner__btn:hover {
    transform: translateY(-1px);
}

.consent-banner__btn:active {
    transform: translateY(0);
}

.consent-banner__btn--accept {
    background: #27ae60;
    color: #ffffff;
}

.consent-banner__btn--accept:hover {
    background: #2ecc71;
}

.consent-banner__btn--decline {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #bdc3c7;
}

.consent-banner__btn--decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .consent-banner {
        padding: 1rem;
    }

    .consent-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .consent-banner__buttons {
        width: 100%;
        justify-content: center;
    }

    .consent-banner__btn {
        flex: 1;
        max-width: 150px;
    }
}
