/* Footer layout only. Buttons reuse the canonical Selge action system. */
body.tp24-selge .tp24-footer-right { min-width: 0; }
body.tp24-selge .tp24-footer-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: 12px 20px; margin-top: 16px;
}
body.tp24-selge #tp24-portal-feedback {
    box-sizing: border-box; width: 100%; max-width: 600px; margin: 24px auto 0;
    padding: 24px; border: 1px solid var(--selge-line); border-radius: 12px;
    background: var(--selge-white, #fff); color: var(--selge-ink); font-size: 1rem;
}
body.tp24-selge #tp24-portal-feedback[hidden] { display: none; }
body.tp24-selge #tp24-feedback-heading { margin: 0 0 20px; font-size: 1.25rem; line-height: 1.4; }
body.tp24-selge #tp24-portal-feedback p { margin: 16px 0; }
body.tp24-selge #tp24-portal-feedback label { display: block; margin-bottom: 7px; font-weight: 500; }
body.tp24-selge #tp24-portal-feedback :is(input, textarea) {
    box-sizing: border-box; display: block; width: 100%; min-width: 0; padding: 12px;
    border: 1px solid var(--selge-line); border-radius: 8px;
    background: var(--selge-white, #fff); color: var(--selge-ink); font: inherit;
}
body.tp24-selge #tp24-portal-feedback textarea { resize: vertical; min-height: 110px; }
body.tp24-selge #tp24-portal-feedback :is(input, textarea):focus-visible {
    outline: 2px solid #527fa0; outline-offset: 3px;
}
body.tp24-selge #tp24-portal-feedback [role="status"]:empty { margin: 0; }
@media (min-width: 769px) {
    body.tp24-selge .tp24-footer-with-feedback { display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
    /* Let the form span the whole footer, rather than centering in its right column. */
    body.tp24-selge .tp24-footer-with-feedback .tp24-footer-right { display: contents; }
    body.tp24-selge .tp24-footer-with-feedback .tp24-selge-footer-brand { grid-column: 1; grid-row: 1 / span 2; }
    body.tp24-selge .tp24-footer-with-feedback .teenus24-legal-footer__links { grid-column: 2; grid-row: 1; }
    body.tp24-selge .tp24-footer-with-feedback .tp24-footer-actions { grid-column: 2; grid-row: 2; }
    body.tp24-selge .tp24-footer-with-feedback #tp24-portal-feedback { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 768px) {
    body.tp24-selge .tp24-footer-actions { justify-content: flex-start; }
    body.tp24-selge #tp24-portal-feedback { max-width: none; padding: 20px; }
}
