html[data-ecep-public-a11y-font-scale] {
    font-size: var(--public-a11y-font-size) !important;
}

.ecep-public-a11y,
.ecep-public-a11y * {
    box-sizing: border-box;
}

.ecep-public-a11y {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1040;
    color: #102033;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

.ecep-public-a11y button,
.ecep-public-a11y input {
    font: inherit;
}

.ecep-public-a11y__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 2px solid #00495f;
    border-radius: 0.625rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(16, 32, 51, 0.18);
    color: #00495f;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.ecep-public-a11y__trigger:hover {
    background: #eef7fa;
}

.ecep-public-a11y__trigger:focus-visible,
.ecep-public-a11y__panel button:focus-visible,
.ecep-public-a11y__check:focus-within {
    outline: 3px solid #2b7a94;
    outline-offset: 3px;
}

.ecep-public-a11y__mark {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 50%;
    background: #00495f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.ecep-public-a11y__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: grid;
    width: min(22rem, calc(100vw - 24px));
    max-height: calc(100dvh - 7rem);
    gap: 0.875rem;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 2px solid #00495f;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(16, 32, 51, 0.24);
    color: #102033;
}

.ecep-public-a11y__panel > * {
    max-width: 100%;
    min-width: 0;
}

.ecep-public-a11y__panel[hidden] {
    display: none !important;
}

.ecep-public-a11y__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ecep-public-a11y__title,
.ecep-public-a11y__description,
.ecep-public-a11y__note {
    margin: 0;
}

.ecep-public-a11y__title {
    min-width: 0;
    color: inherit;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ecep-public-a11y__description {
    color: #415466;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
}

.ecep-public-a11y__close {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #8ba0ae;
    border-radius: 0.5rem;
    background: #fff;
    color: #102033;
    cursor: pointer;
    font-size: 1.5rem;
}

.ecep-public-a11y__group {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.ecep-public-a11y__label {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 750;
}

.ecep-public-a11y__actions {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ecep-public-a11y__action,
.ecep-public-a11y__reset {
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #738b9a;
    border-radius: 0.5rem;
    background: #f8fbfc;
    color: #102033;
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ecep-public-a11y__action:hover,
.ecep-public-a11y__reset:hover {
    border-color: #00495f;
    background: #eef7fa;
}

.ecep-public-a11y__action[aria-pressed="true"] {
    border-color: #00495f;
    background: #00495f;
    color: #fff;
}

.ecep-public-a11y__action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.ecep-public-a11y__font-action {
    min-width: 2.75rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.ecep-public-a11y__value {
    display: inline-grid;
    min-width: 4.25rem;
    min-height: 2.75rem;
    place-items: center;
    color: #263b4d;
    font-size: 1rem;
    font-weight: 800;
}

.ecep-public-a11y__check {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    gap: 0.625rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    color: inherit;
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 700;
}

.ecep-public-a11y__check input {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: #00495f;
}

.ecep-public-a11y__reset {
    width: 100%;
    border-width: 2px;
    background: #fff;
    color: #00495f;
}

.ecep-public-a11y__note {
    color: #526879;
    font-size: 0.82rem;
}

body.ecep-public-a11y--links a {
    text-decoration: underline !important;
    text-decoration-thickness: 0.12em !important;
    text-underline-offset: 0.16em !important;
}

body.ecep-public-a11y--reduce-motion *,
body.ecep-public-a11y--reduce-motion *::before,
body.ecep-public-a11y--reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0.01ms !important;
}

body[data-public-contrast="light"],
body[data-public-contrast="light"] #main-content {
    background: #fff !important;
    color: #000 !important;
}

body[data-public-contrast="light"]
    :where(header, footer, nav, main, section, article, aside, div, p, ul, ol, li,
    h1, h2, h3, h4, h5, h6, span, small, strong, em, label, fieldset) {
    border-color: #000 !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #000 !important;
    text-shadow: none !important;
}

body[data-public-contrast="light"] a {
    color: #003ea8 !important;
}

html:has(body[data-public-contrast="dark"]),
body[data-public-contrast="dark"],
body[data-public-contrast="dark"] #main-content {
    color-scheme: dark;
    background: #16181d !important;
    color: #e8eaed !important;
}

body[data-public-contrast="dark"]
    :where(header, footer, nav, main, section, article, aside, div, p, ul, ol, li,
    h1, h2, h3, h4, h5, h6, span, small, strong, em, label, fieldset) {
    border-color: #3d4350 !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #e8eaed !important;
    text-shadow: none !important;
}

body[data-public-contrast="dark"] a {
    color: #9ec5ea !important;
}

body[data-public-contrast="dark"] :where(
    .dpa-flow-home-link,
    .dpa-flow-contact-action,
    .dpa-flow-unlock-link
) {
    background: #242833 !important;
    border-color: #5b6373 !important;
    color: #e8eaed !important;
    box-shadow: none !important;
}

body[data-public-contrast="dark"] :where(
    .dpa-flow-home-link,
    .dpa-flow-contact-action,
    .dpa-flow-unlock-link
):hover {
    background: #2c313c !important;
    color: #e8eaed !important;
}

body[data-public-contrast="dark"] .ecep-public-a11y__check input {
    accent-color: #9ec5ea;
    background: #242833 !important;
    border-color: #5b6373 !important;
}

body[data-public-contrast="dark"] .ecep-public-a11y__reset {
    background: #242833 !important;
    color: #e8eaed !important;
    border-color: #5b6373 !important;
}

body[data-public-contrast="dark"] :where(
    .dpa-flow-panel,
    .dpa-application-card,
    .dpa-flow-card,
    .dpa-flow-completed,
    .dpa-flow-contact-strip,
    .dpa-flow-empty,
    .dpa-flow-continue,
    .dpa-form-shell,
    .dpa-form-header,
    .ecep-public-a11y__trigger,
    .ecep-public-a11y__panel
) {
    background-color: #1c1f26 !important;
}

body[data-public-contrast="dark"] :where(
    .dpa-application-block,
    .dpa-flow-card-window,
    .dpa-flow-card-message,
    .dpa-application-note
) {
    background-color: #242833 !important;
}

body[data-public-contrast="dark"] :where(
    .dpa-application-chip,
    .dpa-flow-card--closed .dpa-flow-status
) {
    background-color: #1f3a30 !important;
    border-color: #2f7d5f !important;
    color: #b6e0c8 !important;
}

body[data-public-contrast="light"] :where(input, select, textarea, button),
body[data-public-contrast="dark"] :where(input, select, textarea, button) {
    border-color: currentcolor !important;
}

body[data-public-contrast="light"] :where(input, select, textarea, button) {
    background: #fff !important;
    color: #000 !important;
}

body[data-public-contrast="light"] .dpa-form-page .form-control,
body[data-public-contrast="light"] .dpa-form-page .form-select,
body[data-public-contrast="light"] .dpa-form-page textarea.form-control,
body[data-public-contrast="light"] .dpa-form-page .choices__inner,
body[data-public-contrast="light"] .dpa-form-page .choices__input,
body[data-public-contrast="light"] .dpa-form-page .choices__list--dropdown,
body[data-public-contrast="light"] .dpa-form-page .choices__list[aria-expanded],
body[data-public-contrast="light"] .dpa-form-page .choices__list--dropdown .choices__list,
body[data-public-contrast="light"] .dpa-form-page .choices__list[aria-expanded] .choices__list,
body[data-public-contrast="light"] .dpa-form-page .choices__list--dropdown .choices__item,
body[data-public-contrast="light"] .dpa-form-page .choices__list[aria-expanded] .choices__item {
    background: #fff !important;
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
}

body[data-public-contrast="light"] .dpa-form-page .choices[data-type*="select-one"]::after {
    border-color: #000 transparent transparent !important;
}

body[data-public-contrast="light"] .dpa-form-page .choices__placeholder,
body[data-public-contrast="light"] .dpa-form-page .choices__list--single .choices__item {
    background: transparent !important;
    color: #000 !important;
}

body[data-public-contrast="light"] .dpa-form-page .choices__list--dropdown
    .choices__item--selectable.is-highlighted,
body[data-public-contrast="light"] .dpa-form-page .choices__list[aria-expanded]
    .choices__item--selectable.is-highlighted,
body[data-public-contrast="light"] .dpa-form-page .choices__list--dropdown
    .choices__item--choice.is-selected,
body[data-public-contrast="light"] .dpa-form-page .choices__list[aria-expanded]
    .choices__item--choice.is-selected {
    background: #e8e8e8 !important;
    color: #000 !important;
}

body[data-public-contrast="dark"] :where(input, select, textarea, button) {
    background: #242833 !important;
    color: #e8eaed !important;
}

body[data-public-contrast="dark"] .dpa-form-page .form-control,
body[data-public-contrast="dark"] .dpa-form-page .form-select,
body[data-public-contrast="dark"] .dpa-form-page textarea.form-control,
body[data-public-contrast="dark"] .dpa-form-page .choices__inner,
body[data-public-contrast="dark"] .dpa-form-page .choices__input,
body[data-public-contrast="dark"] .dpa-form-page .choices__list--dropdown,
body[data-public-contrast="dark"] .dpa-form-page .choices__list[aria-expanded],
body[data-public-contrast="dark"] .dpa-form-page .choices__list--dropdown .choices__list,
body[data-public-contrast="dark"] .dpa-form-page .choices__list[aria-expanded] .choices__list,
body[data-public-contrast="dark"] .dpa-form-page .choices__list--dropdown .choices__item,
body[data-public-contrast="dark"] .dpa-form-page .choices__list[aria-expanded] .choices__item {
    background: #242833 !important;
    background-color: #242833 !important;
    color: #e8eaed !important;
    border-color: #5b6373 !important;
    box-shadow: none !important;
}

body[data-public-contrast="dark"] .dpa-form-page .choices__placeholder,
body[data-public-contrast="dark"] .dpa-form-page .choices__list--single .choices__item {
    background: transparent !important;
    color: #c5cad3 !important;
}

body[data-public-contrast="dark"] .dpa-form-page .choices__list--dropdown
    .choices__item--selectable.is-highlighted,
body[data-public-contrast="dark"] .dpa-form-page .choices__list[aria-expanded]
    .choices__item--selectable.is-highlighted,
body[data-public-contrast="dark"] .dpa-form-page .choices__list--dropdown
    .choices__item--choice.is-selected,
body[data-public-contrast="dark"] .dpa-form-page .choices__list[aria-expanded]
    .choices__item--choice.is-selected {
    background: #2c313c !important;
    color: #e8eaed !important;
}

body[data-public-contrast="light"]
    .ecep-public-a11y__action[aria-pressed="true"] {
    background: #000 !important;
    color: #fff !important;
}

body[data-public-contrast="dark"]
    .ecep-public-a11y__action[aria-pressed="true"] {
    background: #e8eaed !important;
    color: #16181d !important;
}

@media (max-width: 640px) {
    .ecep-public-a11y {
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        left: max(8px, env(safe-area-inset-left));
        display: flex;
        justify-content: flex-end;
        pointer-events: none;
    }

    .ecep-public-a11y__trigger,
    .ecep-public-a11y__panel {
        pointer-events: auto;
    }

    .ecep-public-a11y__panel {
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 6.5rem);
        gap: 14px;
        padding: 16px;
        overflow-x: hidden;
    }

    .ecep-public-a11y__header {
        gap: 8px;
    }

    .ecep-public-a11y__close {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .ecep-public-a11y__actions {
        gap: 8px;
    }

    .ecep-public-a11y__action,
    .ecep-public-a11y__reset {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
    }

    .ecep-public-a11y__font-action {
        min-width: 44px;
    }

    .ecep-public-a11y__value {
        min-width: 68px;
        min-height: 44px;
    }

    .ecep-public-a11y__check {
        min-height: 44px;
        gap: 10px;
        padding: 4px;
    }

    .ecep-public-a11y__check input {
        width: 24px;
        height: 24px;
    }
}

@media print {
    .ecep-public-a11y {
        display: none !important;
    }
}
