/**
 * Rotozoom Conditions — Blocks surface.
 *
 * ⛔ THIS FILE DELIBERATELY DOES NOT STYLE `.rzwc-notice`. That class is emitted by
 * RZWC_Notices::wrap() and styled by assets/css/notices.css, which RZWC_Notices_Render enqueues
 * on every WooCommerce front-end page — the Cart and Checkout block pages included. Styling it
 * here as well produced a visible double box in the cart totals (an outer padded, bordered
 * container wrapping the server's own padded, bordered one). Two files owning one look is the
 * same trap as two copies of an arithmetic: they drift, and the second one wins by accident.
 *
 * What is left here is only what the block surface adds and nothing else owns: the container
 * that positions the group inside WooCommerce's totals column, the JS disclosure toggle, and the
 * <details> fallback used by the server-rendered product path.
 */

.rzwc-notices {
	display: flex;
	flex-direction: column;
}

/* Layout hook only — no border, padding or colour, so the notice keeps notices.css's look. */
.rzwc-blocks-notice {
	min-width: 0;
}

/*
 * ⛔ There is no `.rzwc-popup` equivalent here on purpose. A notice with `style: 'popup'` renders
 * inline on this surface — the same choice the shortcode already makes — because a modal thrown
 * over a checkout costs orders, and because `text` and `html` hold the same sentence, so a
 * disclosure would print the offer twice.
 */

/* Server-rendered product fallback (only fires where the classic hook does not). */
.rzwc-notices--product {
	margin-block: 1em;
}
