.mg-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--wp--preset--color--base, #fff);
    color: var(--wp--preset--color--contrast, #111);
    border-top: 1px solid var(--wp--preset--color--contrast-3, #ddd);
    box-shadow: 0 -2px 8px rgb(0 0 0 / 8%);
}

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

.mg-consent-banner__text {
    flex: 1 1 60%;
    margin: 0;
    font-size: 0.875rem;
}

.mg-consent-banner__link {
    font-size: 0.875rem;
    color: var(--wp--preset--color--contrast, #111);
}

.mg-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mg-consent-banner__btn {
    padding: 0.5rem 1rem;
    border: 1px solid currentcolor;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    touch-action: manipulation;
    background: transparent;
}

.mg-consent-banner__btn--primary {
    background-color: var(--wp--preset--color--contrast, #111);
    color: var(--wp--preset--color--base, #fff);
    border-color: var(--wp--preset--color--contrast, #111);
}

.mg-consent-banner__btn--secondary {
    background-color: transparent;
    color: var(--wp--preset--color--contrast, #111);
}

@media (max-width: 600px) {
    .mg-consent-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .mg-consent-banner__text {
        flex: 1 1 100%;
    }

    .mg-consent-banner__actions {
        justify-content: stretch;
    }

    .mg-consent-banner__btn {
        flex: 1;
        text-align: center;
    }
}
