/* Keeps the styles of Elementor's Site Settings ( global buttons , links , headings , labels , fields , images )
 * and of the theme out of everything the plugin draws : the header , the footer , every shortcode and every
 * page the plugin makes.
 *
 * It works together with the other cazrom_*.css files :
 *
 *   1. every selector of those files starts with ":root:not(#cz)" ( bin/shield-css.php adds it ) , which gives it
 *      the weight of an id. A kit or a theme rule never carries one , so what the plugin sets always wins , in
 *      every state ( hover , focus , active ).
 *   2. this file covers what the plugin does not set. Each rule weighs exactly one id : more than any rule of
 *      a kit or a theme , less than any rule of the plugin. So a global style cannot leak in through a property
 *      the plugin left alone ( a text-transform , a letter-spacing , a shadow , a hover background... ).
 *
 * It applies to an element that has a class starting with "cz" and to everything inside it , in every state.
 * The values are plain ones. NOT run through bin/shield-css.php : it has to stay under the other files. */

/* ----- buttons ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) :is(button, [type="button"], [type="submit"]),
    :is(button, [type="button"], [type="submit"]):is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) {
    font-family: inherit; font-size: 1rem; font-weight: 400; font-style: normal; line-height: inherit;
    letter-spacing: normal; word-spacing: normal; text-transform: none; text-decoration: none; text-shadow: none;
    color: inherit; background-color: transparent; background-image: none; box-shadow: none;
    border: 1px solid; border-radius: 3px; padding: .5rem 1rem;
}

/* ----- links ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) a,
    a:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) {
    font: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit;
    text-decoration: none; color: inherit;
}

/* ----- headings ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) :is(h1, h2, h3, h4, h5, h6),
    :is(h1, h2, h3, h4, h5, h6):is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) {
    font-family: inherit; font-weight: 500; font-style: inherit; line-height: 1.2;
    letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-decoration: none; color: inherit;
}
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h1, h1:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 2.5rem; }
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h2, h2:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 2rem; }
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h3, h3:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 1.75rem; }
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h4, h4:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 1.5rem; }
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h5, h5:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 1.25rem; }
:where(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) h6, h6:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])):not(#cz) { font-size: 1rem; }

/* ----- paragraphs : the kit's paragraph spacing ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) p,
    p:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) { margin-block-end: 1rem; }

/* ----- labels ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) label,
    label:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) {
    font-family: inherit; font-size: inherit; font-weight: inherit; font-style: inherit; line-height: 1;
    letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-decoration: none; color: inherit;
}

/* ----- fields ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) :is(input:not([type="button"], [type="submit"]), textarea, select),
    :is(input:not([type="button"], [type="submit"]), textarea, select):is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) {
    font-family: inherit; font-size: inherit; font-weight: 400; font-style: normal; line-height: inherit;
    letter-spacing: normal; word-spacing: normal; text-transform: none; text-decoration: none;
    color: revert; background-color: revert; background-image: revert; box-shadow: none; accent-color: auto;
    border: revert; border-radius: revert; padding: revert;
}
/* the ones that are a box to type in or pick from */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) :is(input:is([type="date"], [type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]), textarea, select),
    :is(input:is([type="date"], [type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]), textarea, select):is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) { border: 1px solid #666; border-radius: 3px; padding: .5rem 1rem; }
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) :is(input:is([type="date"], [type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]), textarea, select):focus,
    :is(input:is([type="date"], [type="email"], [type="number"], [type="password"], [type="search"], [type="tel"], [type="text"], [type="url"]), textarea, select):is([class^="cz"], [class*=" cz"]):not([class*="czrm_"]):focus
):not(#cz) { border-color: #333; }

/* ----- pictures ----- */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) img,
    img:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"])
):not(#cz) { border: 0 none; border-radius: 0; box-shadow: none; opacity: 1; filter: none; }

/* ----- the body typography of the Site Settings -----
 * Text inherits from the page. The outermost element of each thing the plugin draws starts over , so a site wide
 * weight , size , line height , italic , uppercase or letter spacing stops there. The font family and the text
 * color are still the site's : they are what makes the plugin look like part of the site. */
:where(
    :is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body):not(:is([class^="cz"], [class*=" cz"]):not([class*="czrm_"], html, body) *)
):not(#cz) {
    font-size: 1rem; font-weight: 400; font-style: normal; line-height: 1.5;
    letter-spacing: normal; word-spacing: normal; text-transform: none; text-shadow: none;
}
