/*
 * The offer notice, the band under the header (AIEO_DMM_Offer_Band; the designer's surface 2, direction B). Loaded only
 * on a page that prints it. Every colour is the theme's token: the accent, the page's background and lines, its text and
 * the focus ring; another theme's palette gives its own (FE-D1). The spacing and the type are the theme's presets. On a
 * block theme it is a child of the site's blocks, right after the header: it takes no block gap of its own, so what
 * follows it keeps the space it had under the header.
 */
/*
 * The ground is the full width; its content is the header's row, as the theme's top bar holds its own (Rooster Zero
 * 924fbecd): the page's padding at the sides and, inside it, a box no wider than the site's wide size, so the tag starts
 * where the header's logo starts and the close (a header action's 44 px box at the box's end) stands under the header's
 * last icon and the top bar's cross, centre on centre, at every width (the owner, 18 Nov 2026: "Make the x's to be in the
 * same position"). Another theme: the content size it declares, else the full row, inside a 16 px padding.
 */
.aieo-onote {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	padding-inline: var(--wp--style--root--padding-left, 16px) var(--wp--style--root--padding-right, 16px);
	background: color-mix(in srgb, var(--wp--preset--color--accent, currentColor) 7%, var(--wp--preset--color--bg, transparent));
	border-bottom: 1px solid var(--wp--preset--color--line, currentColor);
	color: var(--wp--preset--color--fg, inherit);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	margin-block: 0;
}

.aieo-onote[hidden] {
	display: none;
}

/*
 * Closing (the visitor's press; banner.js): the banner folds up and fades in the theme's base time, with the designer's
 * ease, so the page under it rises instead of jumping. Under reduced motion the script hides it at once.
 */
.aieo-onote.is-closing {
	overflow: hidden;
	opacity: 0;
	border-bottom-color: transparent;
	transition:
		height var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1),
		opacity var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1),
		border-bottom-color var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1);
}

.aieo-onote__w {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: var(--wp--preset--spacing--3, 0.75rem);
	box-sizing: border-box;
	min-width: 0;
	max-width: var(--wp--style--global--wide-size, var(--wp--style--global--content-size, none));
	min-height: 52px;
	padding-block: 8px;
	padding-inline-end: 44px; /* the close's box */
}

.aieo-onote__mark {
	flex: 0 0 auto;
	display: inline-grid;
	width: 20px;
	height: 20px;
	color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent, currentColor));
}

.aieo-onote__mark > * {
	width: 100%;
	height: 100%;
}

.aieo-onote__t {
	margin: 0;
	max-width: 62ch; /* the designer's measure of a paragraph */
	line-height: 1.45;
}

.aieo-onote__t b {
	font-weight: 600;
}

/*
 * The code's dashed chip: one box that goes to the next line whole rather than break inside the code; a code longer
 * than the line breaks inside its own box (at its hyphens first), the box intact around it.
 */
.aieo-onote__t code {
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	vertical-align: baseline;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 1px 6px;
	border: 1px dashed var(--wp--preset--color--fg, currentColor);
	overflow-wrap: anywhere;
}

.aieo-onote__x {
	--aieo-onote-xi: 18px; /* the cross's drawing */
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	translate: 0 -50%;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.aieo-onote__xi {
	display: inline-grid;
	width: var(--aieo-onote-xi);
	height: var(--aieo-onote-xi);
}

/*
 * On a computer the cross's drawing ends on the row's edge, where the header's last icon ends with its count and the
 * product page's share icon, as the theme's top bar's cross (Rooster Zero; the owner, 19 Nov 2026: "Also please fix the
 * same X for our notification bars"): its 44 px room hangs outside the row by what it has around its drawing, so the
 * box and the drawing's sizes place it, never a number of its own. A phone keeps it centre on centre under the header's
 * last button, as the theme's (its 782 px).
 */
@media (min-width: 782px) {
	.aieo-onote__x {
		/* Never past the page's padding: a theme without one keeps the room on the page, no sideways scroll. */
		inset-inline-end: max(calc((var(--aieo-onote-xi) - 44px) / 2), calc(-1 * var(--wp--style--root--padding-right, 16px)));
	}
}

.aieo-onote__xi > * {
	width: 100%;
	height: 100%;
}

.aieo-onote__x:focus-visible {
	outline: none;
	box-shadow: var(--wp--custom--rooster--focus-ring, 0 0 0 2px currentColor);
}
