html[data-webai-heading-page] {
    --webai-heading-padding: clamp(24px, 3.4vw, 42px);
    --webai-heading-radius: 24px;
    --webai-heading-secondary: #eef7ff;
    --webai-heading-end: var(--webai-heading-brand, #0868b6);
    --webai-heading-start: color-mix(in srgb, var(--webai-heading-end) 76%, #08172a);
    --webai-heading-background:
        radial-gradient(ellipse 90% 86% at 87% 160%, rgb(255 255 255 / 8%) 99%, transparent 100%),
        linear-gradient(135deg, var(--webai-heading-start), var(--webai-heading-end));
}

html[data-webai-heading-page="products"] body .store-products-head,
html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero),
html:is([data-webai-heading-page="article"], [data-webai-heading-page="contact"]) body main :is(section, header, div):has(> h1) {
    box-sizing: border-box;
    min-width: 0;
    padding: var(--webai-heading-padding) !important;
    border: 1px solid rgb(255 255 255 / 20%) !important;
    border-radius: var(--webai-heading-radius) !important;
    background: var(--webai-heading-background) !important;
    color: #fff !important;
    text-align: start !important;
    box-shadow: 0 14px 34px rgb(12 35 52 / 12%);
}

html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) {
    min-height: 190px;
    align-content: center;
    margin-bottom: 22px;
}

html[data-webai-heading-page="products"] body .store-products-head h1,
html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) > h1,
html:is([data-webai-heading-page="article"], [data-webai-heading-page="contact"]) body main :is(section, header, div) > h1 {
    max-width: 100%;
    margin: 0 0 8px !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 36px !important;
    line-height: 1.12 !important;
    letter-spacing: -.4px !important;
    overflow-wrap: break-word;
}

html[data-webai-heading-page="products"] body .store-products-head .products-head-copy > :is(small, p:has(+ h1), span:has(+ h1)),
html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) > :is(small, span),
html:is([data-webai-heading-page="article"], [data-webai-heading-page="contact"]) body main :is(section, header, div):has(> h1) > :is(small, p:has(+ h1), span:has(+ h1)) {
    display: block;
    margin: 0 0 10px !important;
    color: var(--webai-heading-secondary) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

html[data-webai-heading-page="products"] body .store-products-head .products-head-copy > h1 ~ p,
html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) > h1 ~ p,
html:is([data-webai-heading-page="article"], [data-webai-heading-page="contact"]) body main :is(section, header, div) > h1 ~ p {
    margin: 0 !important;
    color: var(--webai-heading-secondary) !important;
    opacity: 1;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

html[data-webai-heading-page="article"] body main :is(section, header, div):has(> h1) > :is(.store-article-meta, .article-meta) {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--webai-heading-secondary) !important;
}

html[data-webai-heading-page="article"] body main :is(section, header, div):has(> h1) > :is(.store-article-meta, .article-meta) :is(span, time, a) {
    color: inherit !important;
}

html[data-webai-heading-page="contact"] body main :is(section, header, div):has(> h1) :is(.phone, .store-contact-phone),
html[data-webai-heading-page="contact"] body main :is(section, header, div):has(> h1) a[href^="tel:"] {
    color: #fff !important;
}

html[data-webai-heading-page="contact"] body main form[method="post"] :is(button[type="submit"], input[type="submit"], .contact-submit) {
    --webai-action-bg: var(--webai-heading-end);
    --webai-action-edge: var(--webai-heading-end);
    --webai-action-fg: #fff;
    border-radius: 999px !important;
    border-color: var(--webai-heading-end) !important;
    background: var(--webai-heading-end) !important;
    color: #fff !important;
}

html[data-webai-heading-page="articles"] body .articles-tabs a:is(.active, .is-active, :hover) {
    --webai-action-bg: var(--webai-heading-end);
    --webai-action-edge: var(--webai-heading-end);
    --webai-action-fg: #fff;
    border-color: var(--webai-heading-end) !important;
    background: var(--webai-heading-end) !important;
    color: #fff !important;
}

@media (max-width: 760px) {
    html[data-webai-heading-page] {
        --webai-heading-padding: 24px 20px;
        --webai-heading-radius: 18px;
    }

    html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) { min-height: 0; }

    html[data-webai-heading-page="products"] body .store-products-head h1,
    html[data-webai-heading-page="articles"] body :is(.store-articles-head, .articles-hero) > h1,
    html:is([data-webai-heading-page="article"], [data-webai-heading-page="contact"]) body main :is(section, header, div) > h1 { font-size: 28px !important; }
}
