*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body.endo-partner-body,
body.endo-admin-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.endo-partner-body button,
body.endo-partner-body input,
body.endo-partner-body select,
body.endo-partner-body textarea,
body.endo-admin-body button,
body.endo-admin-body input,
body.endo-admin-body select,
body.endo-admin-body textarea {
    font: inherit;
}

body.endo-partner-body button,
body.endo-admin-body button {
    cursor: pointer;
}

body.endo-partner-body button:disabled,
body.endo-admin-body button:disabled {
    cursor: not-allowed;
}

body.endo-partner-body img,
body.endo-admin-body img {
    display: block;
    max-width: 100%;
}

body.endo-partner-body a,
body.endo-admin-body a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.endo-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.endo-scroll-lock {
    overflow: hidden;
}

:where(
    body.endo-partner-body,
    body.endo-admin-body
) :focus-visible {
    outline: 2px solid rgba(0, 61, 196, .62);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
