@layer rc-componentes {
    .rc-consentimento {
        position: fixed;
        z-index: 1001;
        right: 0;
        bottom: 0;
        left: 0;
        padding: var(--rc-space-4) var(--rc-gutter);
        border-top: 1px solid var(--rc-color-border);
        background: var(--rc-color-surface);
        color: var(--rc-color-text-body);
        box-shadow: var(--rc-shadow-banner);
        font-family: var(--rc-font-body);
        font-size: var(--rc-font-size-body);
        line-height: var(--rc-line-height-body);
    }

    .rc-consentimento[hidden] {
        display: none;
    }

    .rc-consentimento__caixa {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--rc-space-6);
        width: var(--rc-container-ratio);
        margin: 0 auto;
    }

    .rc-consentimento__texto {
        display: flex;
        flex-direction: column;
        gap: var(--rc-space-1);
        min-width: 0;
    }

    .rc-consentimento__texto p {
        margin: 0;
    }

    .rc-consentimento__titulo {
        margin: 0;
        color: var(--rc-color-text);
        font-family: var(--rc-font-heading);
        font-size: var(--rc-font-size-h4);
        font-weight: var(--rc-font-weight-semibold);
        line-height: var(--rc-line-height-heading);
        letter-spacing: var(--rc-letter-spacing-h4);
    }

    .rc-consentimento__link {
        color: var(--rc-color-primary);
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }

    .rc-consentimento__acoes {
        display: flex;
        flex: none;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: var(--rc-space-3);
    }

    .rc-consentimento__grupos {
        display: flex;
        flex-direction: column;
        gap: var(--rc-space-4);
    }

    .rc-consentimento__grupo {
        display: flex;
        flex-direction: column;
        gap: var(--rc-space-1);
    }

    .rc-consentimento__grupo .rc-opcao {
        color: var(--rc-color-text);
        font-size: var(--rc-font-size-body);
        font-weight: var(--rc-font-weight-bold);
    }

    .rc-consentimento__ajuda {
        margin: 0 0 0 calc(1.25rem + var(--rc-space-2));
        color: var(--rc-color-text-muted);
        font-size: var(--rc-font-size-sm);
        line-height: var(--rc-line-height-body);
    }

    .rc-consentimento__reabrir {
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
        text-decoration: underline;
        text-underline-offset: 0.2em;
        cursor: pointer;
    }

    .rc-consentimento [data-rc-consentimento-acao]:focus-visible,
    .rc-consentimento__modal [data-rc-consentimento-acao]:focus-visible,
    .rc-consentimento__reabrir:focus-visible {
        outline: none;
        box-shadow: var(--rc-focus-ring);
    }

    @media (max-width: 1024px) {
        .rc-consentimento__caixa {
            width: 100%;
        }
    }

    @media (max-width: 767px) {
        .rc-consentimento__caixa {
            flex-direction: column;
            align-items: stretch;
            gap: var(--rc-space-4);
        }

        .rc-consentimento__acoes {
            justify-content: stretch;
        }

        .rc-consentimento__acoes .rc-botao--primario,
        .rc-consentimento__acoes .rc-botao--secundario {
            flex: 1 1 0;
            min-width: 0;
        }

        .rc-consentimento__acoes .rc-botao--link {
            order: 3;
            flex-basis: 100%;
        }
    }

    @media (max-width: 1023px) {
        .rc-consentimento__reabrir,
        .rc-consentimento .rc-botao--link {
            position: relative;
        }

        .rc-consentimento__reabrir::before,
        .rc-consentimento .rc-botao--link::before {
            content: "";
            position: absolute;
            inset: min(0px, calc(50% - 1.375rem));
        }
    }
}
