/* Accessibility dialog style */

/* WCAG Notification Dialog */

#wcag-toolbar {
    background: #f4f6dd;
    background: var(--primary-yellow-light);
    color: #353940;
    color: var(--primary-gray-dark);
    padding: 10px 60px 10px 20px; 
    padding: 1rem 6rem 1rem 2rem;
    line-height: 1.2;
    text-align: left;

    font-size: 20px;
    font-size: 2rem;
    font-weight: bold;

    display: flex;
    flex-flow: row wrap;
    position: relative;

    justify-content: flex-start;
    align-items: center;
}
#wcag-toolbar.hidden {
    display: none;
}
#wcag-toolbar a {
    background: var(--primary-yellow-light);
    color: #353940;
}

#wcag-toolbar .wcag-icon {
    background: transparent no-repeat center;
    background-size: auto 100%;
    background-size: contain;
    color: #353940;
    color: var(--primary-black);

    width: 35px;
    width: 3.5rem;
    height: 35px;
    height: 3.5rem;
}

#wcag-toolbar .wcag-nav {
    margin: 5px 10px 5px 0;
    margin: 0.5rem 1rem 0.5rem 0;
}

#wcag-toolbar .wcag-nav span {
    font-size: 1.6rem;
}

#wcag-toolbar .wcag-close {
    position: absolute;
    right: 20px;
    right: 2rem;
    top: 50%;
    transform: translate(0, -50%);

    border-radius: 50%;
}
#wcag-toolbar .wcag-close a {
    position: absolute;
    right: 0;
    transform: translate(0, -50%);

    width: 35px;
    width: 3.5rem;
    height: 35px;
    height: 3.5rem;
    border: 2px solid #353940;
    border: .2rem solid #353940;
    border: .2rem solid var(--primary-black-nochange);
    border-radius: 50%;
}
#wcag-toolbar .wcag-close a span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none !important;

    line-height: 1;
    font-size: 35px;
    font-size: 3.5rem;
    color: #353940;
    color: var(--primary-black-nochange);
}
#wcag-toolbar .wcag-close a span.wcag-close-text {
    font-size: 0;
    color: transparent;
}
#wcag-toolbar .wcag-close a:hover,
#wcag-toolbar .wcag-close a:focus {
    background: #353940;
    background: var(--primary-black-nochange);
}
#wcag-toolbar .wcag-close a:hover span,
#wcag-toolbar .wcag-close a:focus span {
    color: #f4f6dd;
    color: var(--primary-yellow-light);
}


#toggle-wcag-toolbar {
    cursor: pointer;
}
#toggle-wcag-toolbar.hidden {
    display: none;
}
#toggle-wcag-toolbar a {
    padding: 0;
}

#wcag-confirm-dialog {
    max-width: 650px;
    text-align: center;
}
#wcag-confirm-dialog p {
    margin-bottom: 35px;
    margin-bottom: 3.5rem;
}

.wcag-toolbar-icon {
    background: transparent no-repeat center;
    background-size: auto 100%;
    background-size: contain;
    color: #353940;
    color: var(--primary-black);

    width: 36px;
    width: 3.6rem;
    height: 36px;
    height: 3.6rem;

    display: inline-block;
    vertical-align: middle;
    margin-bottom: 2px;
    margin-bottom: .2rem;
}

nav .wcag-toolbar-icon {
    height: 36px;
    height: 3.6rem;
    width: 36px;
    width: 3.6rem;
    background-size: 30px;
    background-size: 3rem;
    border-radius: 50%;
}
a:hover > .wcag-toolbar-icon,
a:focus > .wcag-toolbar-icon {
    border: 2px solid #ffffff;
    border: 2px solid var(--primary-white-light);
}



/* Accessibility dialog's style */

.wcag-modal-container {
    padding: 0;
    background-color: rgba(0, 0, 0, 0.85);
}

.wcag-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 100%;
    width: 550px;
    min-width: 33%;
    max-width: 100%;
    padding: 30px;

    background-color: #ffffff;
    color: #000000;
}


.wcag-input {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: .375rem .5rem;
    border: 5px solid;
    outline: 2px solid;
    outline-offset: -2px;
    margin: .375rem 0;
    border-radius: 10px;
    min-height: 2.75em;
}

.wcag-input input,
.wcag-input span {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wcag-input span {
    margin-left: .25rem;
}

.wcag-modal-content h2 {
    font-size: 2.05em;
    font-weight: 700;
    margin: 0 50px .45em 0;
    text-align: left;
}

.wcag-modal-content .w3-button {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 44px;
    line-height: 42px;
    border: none;
    color: #9a0000 !important;
    display: block;
    width: 44px;
    height: 44px;
}

.wcag-modal-content .w3-button:hover,
.wcag-modal-content .w3-button:focus {
    color: #f3f4f6 !important;
    background-color: #9a0000 !important;
}

body .wcag-contrast-l2.wcag-modal-content .w3-button {
    color: #ff0000 !important;
}

body .wcag-contrast-l2.wcag-modal-content .w3-button:hover,
body .wcag-contrast-l2.wcag-modal-content .w3-button:focus {
    color: #000000 !important;
    background-color: #ff0000 !important;
}

.wcag-modal-content fieldset {
    border: none;
    padding: 0;
}

.wcag-modal-content fieldset legend {
    font-size: 1.65em;
    margin: 0 0 .5em;
}
.wcag-modal-content fieldset legend h3 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}

.wcag-modal-content p,
.wcag-modal-content li {
    margin: 0 0 .5em;
}

.wcag-modal-content>p,
.wcag-modal-content fieldset,
.wcag-modal-content fieldset>label:last-of-type:not(:last-child) {
    margin: 0 0 1em;
}

.wcag-modal-content ul {
    padding-left: 1em;
    list-style-type: circle;
}

.wcag-modal-content abbr {
    font-weight: 700;
}

.wcag-modal-content abbr:before,
.wcag-modal-content abbr:after {
    display: inline;
    text-decoration: none;
}

.wcag-modal-content abbr:before {
    content: '“';
}

.wcag-modal-content abbr:after {
    content: '”';
}

.wcag-modal-content .wcag-submit {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wcag-modal-content .wcag-submit button {
    font-size: 1.25em;
    font-weight: 700;
    outline-offset: -4px;
    margin: .45rem;
}

.wcag-modal-content .wcag-submit button {
    border-radius: 8px;
    border-radius: .8em;
    padding: 5px;
    padding: .5em;
}

#wcag-options-dialog-discard {
    color: #9a0000 !important;
    border-color: #9a0000 !important;
    outline-color: #9a0000 !important;
}

#wcag-options-dialog-apply {
    color: #00ab6e !important;
    border-color: #00ab6e !important;
    outline-color: #00ab6e !important;
}

#wcag-options-dialog-discard:hover,
#wcag-options-dialog-discard:focus,
#wcag-options-dialog-apply:hover,
#wcag-options-dialog-apply:focus {
    outline: 3px solid;
    outline-offset: -4px;
}


body .wcag-contrast-l2 #wcag-options-dialog-discard {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
    outline-color: #ff0000 !important;
}

body .wcag-contrast-l1 #wcag-options-dialog-apply {
    color: #006619 !important;
    border-color: #006619 !important;
    outline-color: #006619 !important;
}

body .wcag-contrast-l2 #wcag-options-dialog-apply {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    outline-color: #ffff00 !important;
}



/* Contrast levels' style */

body.wcag-contrast-l1,
body.wcag-contrast-l1 *,
body.wcag-contrast-l1 *:after,
body.wcag-contrast-l1 *:before {
    --primary-green: #006619;
    --primary-green-dark: #006619;
    --primary-green-light: #ffffff;
    --primary-white: #ffffff;
    --primary-white-dark: #ffffff;
    --primary-white-light: #ffffff;
    --primary-black: #ffffff;
    --primary-black-alpha: rgba(255, 255, 255, 0.4);
    --primary-gray-dark: #000000;
    --primary-gray-light: #000000;
    --link-color: #9a0000;
}

body.wcag-contrast-l1 .InputElement {
    color: #000000 !important;
    color: var(--primary-gray-dark) !important;
}

.wcag-contrast-l1 .slider-prev:hover span,
.wcag-contrast-l1 .slider-prev:focus span,
.wcag-contrast-l1 .slider-next:hover span,
.wcag-contrast-l1 .slider-next:focus span,
.wcag-contrast-l2 .slider-prev:hover span,
.wcag-contrast-l2 .slider-prev:focus span,
.wcag-contrast-l2 .slider-next:hover span,
.wcag-contrast-l2 .slider-next:focus span {
    padding: 10px 6px;
    padding: 1rem .6rem;
    border: 2px solid;
    border-radius: 8px;
    border-radius: .8rem;
    transition: none;
}


body.wcag-contrast-l2,
body.wcag-contrast-l2 *,
body.wcag-contrast-l2 *:after,
body.wcag-contrast-l2 *:before {
    --primary-white: #000000;
    --link-color: #ff0000;
}

.wcag-contrast-l2 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

.wcag-contrast-l2 * {
    background-color: transparent !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

.wcag-contrast-l2 .wcag-contrast-l2-nt {
    background-color: #000000 !important;
}

body.wcag-contrast-l2 .InputElement {
    color: #ffff00 !important;
}



/* Font levels' style */

html.wcag-font-l0 {
    font-size: 62.5% !important;
}

html.wcag-font-l1 {
    font-size: 78% !important;
}



/* Override styling for live-preview in modal */

/** Contrast */

body .wcag-contrast-l0 {
    background-color: #f3f4f6 !important;
    color: #353940 !important;
    border-color: #00ab6e !important;
    outline-color: #00ab6e !important;
}

body .wcag-contrast-l0 * {
    background-color: transparent !important;
    color: #353940 !important;
    border-color: #f3f4f6 !important;
    outline-color: #00ab6e !important;
}

body .wcag-contrast-l0 [type="checkbox"],
body .wcag-contrast-l0 [type="radio"] {
    color: #00ab6e !important;
    border-color: #00ab6e !important;
    outline-color: #00ab6e !important;
}

body .wcag-contrast-l0 [type="checkbox"]:checked,
body .wcag-contrast-l0 [type="radio"]:checked {
    background-color: #00ab6e !important;
    border-color: transparent !important;
}


body .wcag-contrast-l1 {
    background-color: #f3f4f6 !important;
    color: #000000 !important;
    border-color: #006619 !important;
    outline-color: #006619 !important;
}

body .wcag-contrast-l1 * {
    background-color: transparent !important;
    color: #000000 !important;
    border-color: #f3f4f6 !important;
    outline-color: #006619 !important;
}

body .wcag-contrast-l1 [type="checkbox"],
body .wcag-contrast-l1 [type="radio"] {
    color: #006619 !important;
    border-color: #006619 !important;
    outline-color: #006619 !important;
}

body .wcag-contrast-l1 [type="checkbox"]:checked,
body .wcag-contrast-l1 [type="radio"]:checked {
    background-color: #006619 !important;
    border-color: transparent !important;
}


body .wcag-contrast-l2 {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    outline-color: #ffff00 !important;
}

body .wcag-contrast-l2 * {
    background-color: transparent !important;
    color: #ffff00 !important;
    border-color: #000000 !important;
    outline-color: #ffff00 !important;
}

body .wcag-contrast-l2 [type="checkbox"],
body .wcag-contrast-l2 [type="radio"] {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    outline-color: #ffff00 !important;
}

body .wcag-contrast-l2 [type="checkbox"]:checked,
body .wcag-contrast-l2 [type="radio"]:checked {
    background-color: #ffff00 !important;
    border-color: transparent !important;
}



/* Font */

body .wcag-font-l0 {
    font-size: 16px;
    font-weight: 400;
}

body .wcag-font-l0 * {
    font-weight: 400;
}

body .wcag-font-l1 {
    font-size: 20px;
    font-weight: 700;
}

body .wcag-font-l1 * {
    font-weight: 700;
}



/* Override styling for specific elements */

/* Contrast */

body .wcag-contrast-l0-force {
    background-color: #e5e7eb !important;
}

body .wcag-contrast-l0-force span {
    color: #353940 !important;
}

body .wcag-contrast-l0-force small {
    color: #6b7280 !important;
    font-size: 1em !important;
}

body .wcag-contrast-l0-force [type="checkbox"],
body .wcag-contrast-l0-force [type="radio"] {
    color: #00ab6e !important;
    border-color: #00ab6e !important;
    outline-color: #00ab6e !important;
}

body .wcag-contrast-l0-force [type="checkbox"]:checked,
body .wcag-contrast-l0-force [type="radio"]:checked {
    background-color: #00ab6e !important;
}


body .wcag-contrast-l1-force {
    background-color: #f3f4f6 !important;
}

body .wcag-contrast-l1-force span {
    color: #000000 !important;
}

body .wcag-contrast-l1-force [type="checkbox"],
body .wcag-contrast-l1-force [type="radio"] {
    color: #006619 !important;
    border-color: #006619 !important;
    outline-color: #006619 !important;
}

body .wcag-contrast-l1-force [type="checkbox"]:checked,
body .wcag-contrast-l1-force [type="radio"]:checked {
    background-color: #006619 !important;
}


body .wcag-contrast-l2-force {
    background-color: #000000 !important;
}

body .wcag-contrast-l2-force span {
    color: #ffff00 !important;
}

body .wcag-contrast-l2-force [type="checkbox"],
body .wcag-contrast-l2-force [type="radio"] {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    outline-color: #ffff00 !important;
}

body .wcag-contrast-l2-force [type="checkbox"]:checked,
body .wcag-contrast-l2-force [type="radio"]:checked {
    background-color: #ffff00 !important;
}



/* Font */

body .wcag-font-l0-force {
    font-weight: 400 !important;
}

body .wcag-font-l0-force * {
    font-weight: 400 !important;
}

body .wcag-font-l0-force span {
    font-size: 16px !important;
}

body .wcag-font-l0-force small {
    font-size: 1em !important;
}



body .wcag-font-l1-force {
    font-weight: 700 !important;
}

body .wcag-font-l1-force * {
    font-weight: 700 !important;
}

body .wcag-font-l1-force span {
    font-size: 20px !important;
}