/* [cvrt] Woo Helper: the notes next to prices (Cvrt_Woo_Helper_Notes, 0.3.2).

   A note never takes the price's typography. By default it uses the page's
   body text, at most its size:
   1. --cvrt-wh-body-*: the computed font of <body>, set on :root by
      notes.js (printed inline at wp_body_open, before the notes paint);
   2. Elementor's global "Text" typography (--e-global-typography-text-*);
   3. a block theme's body presets (--wp--preset--font-family--body).
   Size: the body size, capped at "small" (the theme's small preset, else
   0.875rem). Everything else a price may set is reset.
   "body .cvrt-wh-note" outranks theme rules like ".elementor-kit-5 a" and
   loses to an Elementor widget's own controls ({{WRAPPER}} selectors). */

body .cvrt-wh-note {
	display: block;
	margin: 0.25em 0 0;
	font-family: var(--cvrt-wh-body-font-family, var(--e-global-typography-text-font-family, var(--wp--preset--font-family--body)));
	font-size: min(var(--cvrt-wh-body-font-size, var(--e-global-typography-text-font-size, 1rem)), var(--wp--preset--font-size--small, 0.875rem));
	font-weight: var(--cvrt-wh-body-font-weight, var(--e-global-typography-text-font-weight, 400));
	font-style: normal;
	font-variant: normal;
	line-height: 1.5;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	color: var(--cvrt-wh-body-color, var(--e-global-color-text, var(--wp--preset--color--contrast)));
}

/* Links in a note keep the theme's link colour, never another font. */
body .cvrt-wh-note a {
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

/* The notes moved out of a price element. */
.cvrt-wh-notes {
	display: block;
	margin: 0.25em 0 0;
}
.cvrt-wh-notes > .cvrt-wh-note:first-child {
	margin-top: 0;
}

/* Inline: the delivery time shortcode and figure captions. */
body span.cvrt-wh-note,
body figcaption.cvrt-wh-note {
	margin-top: 0;
}
body span.cvrt-wh-note {
	display: inline;
}

/* Mode "price" ("vom Preis übernehmen"): the 0.3.1 look. */
body .cvrt-wh-note--price {
	font-family: inherit;
	font-size: 0.8em;
	font-weight: normal;
	font-style: inherit;
	font-variant: inherit;
	line-height: 1.4;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
	text-decoration: inherit;
	text-shadow: inherit;
	color: inherit;
}
