html[data-wcag-size="size2"] {
    font-size: 112.5%;
}

html[data-wcag-size="size3"] {
    font-size: 125%;
}

html[data-wcag-letter-spacing="on"] body,
html[data-wcag-letter-spacing="on"] body * {
    letter-spacing: 0.06em !important;
}

html[data-wcag-contrast="on"] body,
html[data-wcag-contrast="on"] .page-content {
    background: #000 !important;
    color: #ffeb00 !important;
}

html[data-wcag-contrast="on"] body * {
    color: #ffeb00 !important;
    background-color: transparent !important;
    border-color: #ffeb00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html[data-wcag-contrast="on"] a,
html[data-wcag-contrast="on"] a * {
    color: #ffeb00 !important;
}

html[data-wcag-contrast="on"] .wcag .wcag_opt,
html[data-wcag-contrast="on"] .wcag .wcag_set,
html[data-wcag-contrast="on"] .wcag .wcag_open {
    background: #000 !important;
    color: #ffeb00 !important;
    border-color: #ffeb00 !important;
}

html[data-wcag-contrast="on"] i,
html[data-wcag-contrast="on"] .material-icons,
html[data-wcag-contrast="on"] svg {
    filter: brightness(0) saturate(100%) invert(87%) sepia(93%) saturate(1118%) hue-rotate(353deg) brightness(106%) contrast(104%) !important;
}

.wcag_container {
    position: relative;
}

.wcag {
    position: absolute;
    top: -40px;
    right: 15px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
}

.wcag .wcag_set {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 40px;
    width: 40px;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 0;
    color: var(--theme-text-color);
    font-weight: 600;
    line-height: 1;
    background: var(--theme-color-white);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wcag .wcag-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    line-height: 1;
}

.wcag .wcag-icon svg {
    width: 100%;
    height: 100%;
}

.wcag .wcag_title {
    display: none;
}

.wcag .wcag_open {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--theme-color-grey-gallery);
    border-radius: 6px;
    background: var(--theme-color-white);
    box-shadow: 0 8px 24px var(--theme-color-grey-gallery);
    z-index: 999;
}

.wcag .wcag_open.is-open {
    display: inline-flex;
}

.wcag .wcag_opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--theme-color-grey-gallery);
    background: var(--theme-color-white);
    color: var(--theme-text-color);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wcag .wcag_opt:hover,
.wcag .wcag_set:hover {
    background: var(--theme-color-grey-bg);
}

.wcag .wcag_opt:hover {
    background: var(--theme-color-grey-bg);
    border-color: var(--theme-color-silver);
}

@keyframes wcag-icon-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wcag .wcag_opt.is-active {
    border-color: var(--theme-color-red);
    background: var(--theme-color-red);
    color: var(--theme-color-white) !important;
}

@media (max-width: 991px) {
    .wcag .wcag_open.is-open {
        display: inline-flex;
    }

    #_mobile_wcag .wcag_set {
        display: none;
    }

    #_mobile_wcag .wcag_open {
        display: flex;
        padding: 0;
        border: 0;
        box-shadow: none;
        gap: 8px;
        background: transparent;
        flex-wrap: wrap;
    }
    .wcag {
        position: relative;
        top: 30px;
        right: -7px;
        display: block;
        font-weight: 500;
        line-height: 100%;
    }

    .wcag .wcag_set .header-icon,
    .wcag .wcag_set .wcag-icon {
        font-size: 26px;
    }

    .wcag .wcag_set {
        display: block;
        height: initial;
        padding: 0;
    }

    .wcag .wcag_title {
        display: block;
        font-size: 14px;
        margin-bottom: 10px;
    }

}