/**
 * Bandeau de consentement cookies — Smart Finance Galaxy.
 *
 * @package HelloElementorChild
 */

.sfg-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    background-color: var(--sfg-secondary);
    color: var(--sfg-white);
    font-family: var(--sfg-font-body);
    box-shadow: 0 8px 24px rgba(11, 11, 48, 0.25);
}

.sfg-consent[hidden] {
    display: none;
}

.sfg-consent__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sfg-consent__text a {
    color: var(--sfg-primary);
    text-decoration: underline;
}

.sfg-consent__actions {
    display: flex;
    gap: 12px;
}

/* Même style pour « Accepter » et « Refuser » (pas de choix mis en avant). */
.sfg-consent__btn {
    min-width: 120px;
    padding: 10px 20px;
    border: 2px solid var(--sfg-primary);
    background-color: transparent;
    color: var(--sfg-white);
    font-family: var(--sfg-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.sfg-consent__btn:hover,
.sfg-consent__btn:focus-visible {
    background-color: var(--sfg-primary);
    color: var(--sfg-typo);
}

/* Lien « Gestion des cookies » (footer, mentions légales). */
.sfg-consent-open {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .sfg-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 16px;
    }

    .sfg-consent__actions {
        width: 100%;
    }

    .sfg-consent__btn {
        flex: 1;
        min-width: 0;
    }
}
