/* Match the root with ID specificity to override Enfold #top and #wrap_all rules. */
html.agaa-size:is(:root,#agaa-root):is(:root,#agaa-layout) [data-agaa-sized] {
    font-size:var(--agaa-size-px)!important;
}

html:is(.agaa-size,.agaa-spacing):root :is(p,a,label,button,li,.avia-menu-text,.avia-button,.agaa-text):not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    overflow-wrap:anywhere;
}

html:is(.agaa-size,.agaa-spacing):root :is(button,textarea,select,input:not([type=image]),.button,.avia-button,.avia-button-text,nav li>a,.avia-menu-text):not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    white-space:normal!important;
    height:auto!important;
    max-width:100%;
    line-height:1.45!important;
    box-sizing:border-box;
}

html:is(.agaa-size,.agaa-spacing):root #header :is(.container,.inner-container,.main_menu,.av-main-nav,.av-main-nav>li):not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    height:auto!important;
    min-height:inherit;
}

html:is(.agaa-size,.agaa-spacing):root #header .av-main-nav {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
}

html:is(.agaa-size,.agaa-spacing):root #header .main_menu {
    position:relative;
    float:right;
    max-width:100%;
}

html.agaa-spacing:is(:root,#agaa-root):is(:root,#agaa-layout) :is(p,li,dt,dd,td,th,caption,blockquote,figcaption,h1,h2,h3,h4,h5,h6,label,legend,button,input,textarea,select,option,a,small,strong,em,summary,.avia-menu-text,.avia-button-text,.agaa-text):not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    line-height:1.65!important;
    letter-spacing:.12em!important;
    word-spacing:.16em!important;
}


html.agaa-links:is(:root,#agaa-root):is(:root,#agaa-layout) :is(p,li,dd,article,main,.entry-content,.avia_textblock,.agaa-text) a[href]:not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    text-decoration:underline!important;
    text-underline-offset:.18em;
    text-decoration-thickness:max(1px,.09em)!important;
}

@media (forced-colors:none) {
    html[data-agaa-contrast=light] {
        --agaa-paper:#fff;
        --agaa-ink:#101820;
        --agaa-link:#003b80;
        --agaa-focus:#962100;
        color-scheme:light;
    }
    html[data-agaa-contrast=dark] {
        --agaa-paper:#12171b;
        --agaa-gradient-paper:#000;
        --agaa-ink:#fff;
        --agaa-link:#a3e4ff;
        --agaa-focus:#ffdc54;
        color-scheme:dark;
    }
    html[data-agaa-contrast] {
        background-color:var(--agaa-paper);
        color:var(--agaa-ink);
    }

    /* Recolor layout surfaces. Text inside them keeps the surface behind it visible. */
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(
        body,header,footer,main,nav,aside,article,section,fieldset,dialog,table,tr,td,th,
        :where(#main,#wrap_all,#header_main,#header_meta,#socket),.header_bg,.container_wrap,.avia-section,
        .flex_column,.flex_column_table,.sidebar,.widget,.sub-menu,.av-burger-overlay-inner,
        .av-subnav-menu,.avia_textblock,.agaa-surface,.av-icon-box,.iconbox_content,
        .togglecontainer,.toggler,.toggle_wrap,.tabcontainer,.tab,.tab_content,
        .avia-table,.avia-testimonial-content,.avia_message_box,.avia-pricing-table,
        .av-call-to-action,.av-masonry-entry-content,.grid-content,.slide-content,.avia-caption-title,.avia-caption-content,
        .wp-block-group,.wp-block-column,.has-background:not(.wp-block-cover),
        div[style*="background-color" i],div[style*="background:" i]
    ):not(:where(
        #agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,
        .avia-layerslider,.avia-layerslider *,.ls-wp-container,.ls-wp-container *,.ls-container,.ls-container *
    )) {
        background-color:var(--agaa-paper)!important;
        color:var(--agaa-ink)!important;
        border-color:var(--agaa-ink)!important;
    }

    /* The theme paints the dropdown and its link rows independently. */
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(
        #header .sub-menu,#header .avia_mega_div,#header .sub-menu a,#av-burger-menu-ul a
    ):not(:where(.agaa-exempt,.agaa-exempt *)) {
        background-color:var(--agaa-paper)!important;
        background-image:none!important;
        color:var(--agaa-link)!important;
        border-color:var(--agaa-ink)!important;
    }
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(
        #header .sub-menu a,#av-burger-menu-ul a
    ):is(:hover,:focus-visible,[aria-current=page]):not(:where(.agaa-exempt,.agaa-exempt *)) {
        text-decoration:underline!important;
    }

    /* Suppress the gradient paint while keeping the original image available for inspection. */
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout)
    .avia-section[data-agaa-gradient]:not(:where(.agaa-exempt,.agaa-exempt *)) {
        background-color:var(--agaa-gradient-paper,var(--agaa-paper))!important;
        background-size:0 0!important;
        background-repeat:no-repeat!important;
    }

    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(
        p,li,dt,dd,caption,blockquote,figcaption,h1,h2,h3,h4,h5,h6,label,legend,small,strong,em,b,
        summary,.avia-menu-text,.avia-button-text,.av-special-heading-tag,.entry-content-wrapper span,.agaa-text
    ):not(:where(
        #agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,
        .avia-layerslider *,.ls-wp-container *,.ls-container *,
        [data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *
    )) {
        color:var(--agaa-ink)!important;
        text-shadow:none!important;
    }
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(a[href],a[href] :is(span,strong,em,b)):not(:where(
        #agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,
        .avia-layerslider *,.ls-wp-container *,.ls-container *,
        [data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *
    )) {
        color:var(--agaa-link)!important;
    }
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :is(button,.button,.avia-button,.wp-block-button__link,input:not([type=image]),select,option,textarea):not(:where(
        #agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,
        .avia-layerslider *,.ls-wp-container *,.ls-container *
    )) {
        background-color:var(--agaa-paper)!important;
        background-image:none!important;
        color:var(--agaa-ink)!important;
        border:2px solid var(--agaa-ink)!important;
    }
    html[data-agaa-contrast]:root :not(:where(#agaa-widget *, .agaa-exempt, .agaa-exempt *))::placeholder {
        color:var(--agaa-ink)!important;
        opacity:.85;
    }
    html[data-agaa-contrast]:root :focus-visible:not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
        outline:3px solid var(--agaa-focus)!important;
        outline-offset:2px!important;
        box-shadow:0 0 0 2px var(--agaa-paper)!important;
    }

    /* Slider text needs contrast against the image at every animation position. */
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :where(
        .avia-layerslider,.ls-wp-container,.ls-container
    ) :is(
        .ls-text-layer,.ls-text-layer :is(span,strong,em,b,a),
        .ls-html-layer :is(p,h1,h2,h3,h4,h5,h6,li,span,strong,em,b,a),
        .ls-slide :is(p,h1,h2,h3,h4,h5,h6):is(.ls-l,.ls-layer)
    ):not(:where(.agaa-exempt,.agaa-exempt *,img,svg,svg *,[data-av_icon],[data-av_iconfont],.av-icon-char)) {
        color:var(--agaa-ink)!important;
        text-shadow:-1px -1px 2px var(--agaa-paper),1px -1px 2px var(--agaa-paper),
            -1px 1px 2px var(--agaa-paper),1px 1px 2px var(--agaa-paper)!important;
        -webkit-text-stroke:2px var(--agaa-paper);
        paint-order:stroke fill;
    }
    html[data-agaa-contrast]:is(:root,#agaa-root):is(:root,#agaa-layout) :where(
        .avia-layerslider,.ls-wp-container,.ls-container
    ) :is(a.ls-text-layer[href],.ls-text-layer a[href],.ls-html-layer a[href]):not(:where(.agaa-exempt,.agaa-exempt *)) {
        color:var(--agaa-link)!important;
        text-decoration:underline;
    }
}

html.agaa-motion,html.agaa-motion *:not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)),html.agaa-motion *:not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *))::before,html.agaa-motion *:not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *))::after {
    animation-duration:.01ms!important;
    animation-delay:0s!important;
    animation-iteration-count:1!important;
    transition-duration:0s!important;
    transition-delay:0s!important;
    scroll-behavior:auto!important;
}

html.agaa-motion :is(.av-animated-generic,.avia_animate_when_almost_visible,.avia-animated-generic):not(:where(#agaa-widget,#agaa-widget *,.agaa-exempt,.agaa-exempt *,.logo,.logo *,[data-av_icon],[data-av_iconfont],.av-icon-char,.dashicons,.fa,.fas,.fab,.material-icons,[class*="av_font_icon"],[class*="av_font_icon"] *)) {
    opacity:1!important;
    transform:none!important;
}

html.agaa-focus:is(:root,#agaa-root):is(:root,#agaa-layout) :focus-visible {
    outline:4px solid #075ad8!important;
    outline-offset:2px!important;
    box-shadow:0 0 0 2px white,0 0 0 8px #fff,0 0 0 10px #17232c!important;
}
@media (forced-colors:active) {
    html.agaa-focus:is(:root,#agaa-root):is(:root,#agaa-layout) :focus-visible {
        outline:4px solid Highlight!important;
        box-shadow:none!important;
    }
}
