/* Fix12: keep first-visit consent controls clear of ES/PT root-page content. */
body.language-root-page .cookie-consent-panel {
    top: 84px;
    right: max(18px, env(safe-area-inset-right));
    bottom: auto;
    left: max(18px, env(safe-area-inset-left));
    width: auto;
}

body.language-root-page .cookie-consent-card {
    width: min(860px, 100%);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0 auto;
    padding: 12px 50px 12px 14px;
}

body.language-root-page .cookie-consent-copy > span,
body.language-root-page .cookie-consent-copy > p {
    display: none;
}

body.language-root-page .cookie-consent-copy h2 {
    margin: 0;
    font-size: 16px;
}

body.language-root-page .cookie-consent-copy a {
    margin-top: 4px;
    font-size: 12px;
}

body.language-root-page .cookie-consent-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

body.language-root-page .cookie-consent-actions button,
body.language-root-page .cookie-close-button {
    min-width: 44px;
    min-height: 44px;
}

body.language-root-page .cookie-consent-actions button {
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
}

body.language-root-page .cookie-close-button {
    width: 44px;
    height: 44px;
}

body.language-root-page.cookie-consent-open .resource-shell {
    padding-top: 250px;
}

@media (max-width: 760px) {
    body.language-root-page .cookie-consent-panel {
        top: 76px;
        right: 10px;
        left: 10px;
    }

    body.language-root-page .cookie-consent-card {
        max-height: none;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 48px 10px 12px;
        overflow: visible;
    }

    body.language-root-page .cookie-consent-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    body.language-root-page .cookie-consent-actions button {
        width: 100%;
        padding: 6px;
        white-space: normal;
    }

    body.language-root-page.cookie-consent-open .resource-shell {
        padding-top: 310px;
    }
}
