/* Palette compatibility for existing public templates, only in the enabled preview. */
body.saemg-brand-preview {
    --e-global-color-primary: var(--sp-primary);
    --e-global-color-secondary: var(--sp-primary-hover);
    --e-global-color-accent: var(--sp-primary);
    --e-global-color-8be4a45: var(--sp-red);
    --e-global-color-e54ea8e: var(--sp-red-on-brand);
    --e-global-color-88c7c60: var(--sp-primary-soft);
}
body.saemg-brand-preview :is(.elementor-location-header,.elementor-location-footer) .elementor-button {
    background-color: var(--sp-red-button) !important;
    border-color: var(--sp-red-button) !important;
    color: white !important;
}
body.saemg-brand-preview :is(.elementor-location-header,.elementor-location-footer) .elementor-button:is(:hover,:focus-visible,:active) {
    background-color: var(--sp-red-hover) !important;
    border-color: var(--sp-red-hover) !important;
}
body.saemg-brand-preview .elementor-button :is(span,i) { color: inherit !important; }
body.saemg-brand-preview .elementor-social-icon { background-color: var(--sp-primary) !important; color: white !important; }
body.saemg-brand-preview .elementor-social-icon :is(i,svg) { color: inherit !important; fill: currentColor; }
body.saemg-brand-preview :where(a,button,input,select,textarea,[tabindex]):focus-visible,
body.saemg-brand-preview .jobsearch-checkbox input:focus-visible+label {
    outline: 3px solid var(--sp-primary) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px white !important;
}
body.saemg-brand-preview .jobsearch-modal :is(a,input[type=submit],input[type=button],button[type=submit]) { color: var(--sp-primary); }
body.saemg-brand-preview .jobsearch-modal :is(input[type=submit],input[type=button],button[type=submit]) {
    background: var(--sp-primary) !important; border-color: var(--sp-primary) !important; color: white !important;
}
body.saemg-brand-preview .jobsearch-modal :is(input[type=submit],input[type=button],button[type=submit]):not(:disabled):is(:hover,:focus-visible,:active) {
    background: var(--sp-primary-hover) !important; border-color: var(--sp-primary-hover) !important;
}
body.saemg-brand-preview .jobsearch-modal :is(input:not([type=submit]):not([type=button]),select,textarea) {
    border-color: var(--sp-control-border) !important; color: var(--sp-title) !important; accent-color: var(--sp-primary);
}
body.saemg-brand-preview .jobsearch-modal :is(input,textarea)::placeholder { color: var(--sp-text); opacity: 1; }
body.saemg-brand-preview .jobsearch-modal .pt-errors { color: var(--sp-danger) !important; }
body.saemg-brand-preview .jobsearch-modal .jobsearch-user-type-choose .active>a { background: var(--sp-primary) !important; color: white !important; }
body.saemg-brand-preview .jobsearch-modal .jobsearch-user-type-choose .active>a>:is(span,small) { color: white !important; }
@media(forced-colors:active) {
    body.saemg-brand-preview :where(a,button,input,select,textarea,[tabindex]):focus-visible { outline-color: Highlight !important; }
}
