/**
 * BrikPanel: the printed mark (front-end/orders/brikpanel-order-print.php,
 * -print-mark.js). A green dot on the top corner of an order's Print button
 * once its summary was printed or saved as PDF: the orders list's printer
 * (both looks of the list), the button in the compact list's order panel and
 * the order page's header button. Loaded only while the store's "Printed mark"
 * setting is on.
 *
 * The dot is an element of its own (span.brikpanel-print-dot), not a pseudo
 * element: the order panel's buttons switch ::before and ::after off.
 */

/* The order page's header button does the same in its own stylesheet
   (front-end/order/brikpanel-order.css), which owns that class. */
.brikpanel-print-list-link.is-printed,
.bp-od-print.is-printed {
	position: relative;
}

/* Sits on the button's top corner, past its edge; the white ring keeps it apart
   from the hairline border. inset-inline-end: the left corner in a right-to-left
   admin, where the corner a reader's eye leaves the button from is the left one. */
.brikpanel-print-dot {
	position: absolute;
	top: -3px;
	inset-inline-end: -3px;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1a8917;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
}

/* High contrast modes drop background colours: keep the dot in the text colour. */
@media (forced-colors: active) {
	.brikpanel-print-dot {
		forced-color-adjust: none;
		background: CanvasText;
		box-shadow: 0 0 0 2px Canvas;
	}
}
