/* MatrixMicro.net Bogo
 * Contents: Visibility, banner, ribbon, badges, cart controls, accessibility and responsive layout
 * All selectors must remain scoped to extension-owned elements.
 */
.mm-bogo-banner[hidden],
.mm-bogo-ribbon[hidden],
.mm-bogo-slot[hidden],
.mm-bogo-block-badge[hidden],
.mm-bogo-controls[hidden] {
	display: none !important;
}
.mm-bogo-banner {
	position: fixed;
	top: var(--mm-bogo-admin, 0px);
	left: 0;
	right: 0;
	z-index: 99990;
	background: #131313;
	color: #fff;
	padding: 12px 20px;
	box-sizing: border-box;
	box-shadow: 0 3px 12px #0003;
	font:
		600 16px/1.4 system-ui,
		sans-serif;
}
.mm-bogo-banner-inner {
	max-width: 1400px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	flex-wrap: wrap;
}
.mm-bogo-banner a.mm-bogo-message {
	color: #fff;
	text-decoration: none;
	flex: 1 1 280px;
}
.mm-bogo-timer {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-size: 14px;
}
.mm-bogo-banner .mm-bogo-cta {
	color: var(--mm-cta-color, #fff);
	background: var(--mm-cta-bg, #bb2025);
	padding: 9px 16px;
	border-radius: 5px;
	text-decoration: none;
	white-space: nowrap;
}
.mm-bogo-banner button {
	border: 1px solid #aaa;
	border-radius: 4px;
	background: var(--mm-close-bg, transparent);
	color: var(--mm-close-color, inherit);
	cursor: pointer;
	padding: 8px 12px;
	font: inherit;
}
.mm-bogo-banner .mm-bogo-cta:hover,
.mm-bogo-banner .mm-bogo-cta:focus-visible {
	background: var(--mm-cta-hover-bg, #991b1f);
	color: var(--mm-cta-hover-color, #fff);
}
.mm-bogo-banner button:hover,
.mm-bogo-banner button:focus-visible {
	background: var(--mm-close-hover-bg, #fff);
	color: var(--mm-close-hover-color, #131313);
}
.mm-bogo-ribbon {
	position: fixed;
	bottom: 12px;
	right: 12px;
	z-index: 99990;
	border: 0;
	border-radius: 6px;
	background: #a71920;
	color: #fff;
	padding: 10px 16px;
	cursor: pointer;
	box-shadow: 0 2px 10px #0003;
	font:
		600 14px/1.4 system-ui,
		sans-serif;
	max-width: calc(100vw - 24px);
}
.mm-bogo-ribbon[data-position="bottom-left"] {
	left: 12px;
	right: auto;
}
.mm-bogo-ribbon[data-position="top"] {
	top: var(--mm-bogo-admin, 0px);
	bottom: auto;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	border-radius: 0;
	padding: 8px 16px;
	line-height: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}
.mm-bogo-slot,
.mm-bogo-block-badge {
	background: #b4e1ff;
	color: #101820;
	border-radius: 5px;
	padding: 8px 10px;
	margin: 0 0 10px;
	font:
		600 14px/1.4 system-ui,
		sans-serif;
	text-align: center;
	clear: both;
}
.mm-bogo-single {
	font-size: 17px;
	width: 100%;
	box-sizing: border-box;
}
.mm-bogo-controls {
	padding: 16px;
	border: 1px solid var(--mm-box-border, #a2c2d8);
	border-radius: 6px;
	background: var(--mm-box-background, #f1f8fc);
	margin: 0 0 24px;
	color: var(--mm-box-text, #182935);
}
.mm-bogo-controls h2 {
	color: inherit;
	font-size: 19px;
	margin: 0 0 8px;
}
.mm-bogo-controls label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 10px 0;
	cursor: pointer;
}
.mm-bogo-controls input {
	accent-color: var(--mm-box-accent, #2271b1);
	margin-top: 5px;
	flex: 0 0 auto;
}
.mm-bogo-controls p {
	margin: 8px 0;
}
.mm-bogo-error {
	color: #9c1821;
}
.mm-bogo-banner :focus-visible,
.mm-bogo-ribbon:focus-visible,
.mm-bogo-controls input:focus-visible {
	outline: 3px solid #f2b844;
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.mm-bogo-banner {
		padding: 10px 12px;
		font-size: 14px;
	}
	.mm-bogo-banner-inner {
		gap: 8px 12px;
	}
	.mm-bogo-banner a.mm-bogo-message {
		flex-basis: 100%;
		text-align: center;
	}
	.mm-bogo-timer {
		font-size: 12px;
	}
}
.mm-bogo-banner .mm-bogo-message {
	flex: 1 1 280px;
	color: inherit;
}
.mm-bogo-message p:last-child,
.mm-bogo-slot p:last-child,
.mm-bogo-block-badge p:last-child {
	margin-bottom: 0;
}
.mm-bogo-message p:first-child,
.mm-bogo-slot p:first-child {
	margin-top: 0;
}
.mm-bogo-message img,
.mm-bogo-slot img,
.mm-bogo-block-badge img {
	max-width: 100%;
	height: auto;
}
.mm-bogo-message a {
	color: inherit;
	text-decoration: underline;
}
.mm-bogo-cart-label {
	padding: 8px 12px;
	border-radius: 4px;
	margin-top: 8px;
}
.mm-bogo-timer[hidden] {
	display: none !important;
}
.mm-bogo-details[hidden] { display: none !important; }
.mm-bogo-controls a.mm-bogo-details,
.mm-bogo-slot a.mm-bogo-details,
.mm-bogo-banner a.mm-bogo-details {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: 14px;
	line-height: 1.5;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 2px;
	box-sizing: border-box;
}
.mm-bogo-details:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mm-bogo-details-wrap { margin-top: 4px; }
.mm-bogo-offer-feedback + .mm-bogo-offer-feedback { margin-top: 12px; }
@media (max-width: 600px) {
	.mm-bogo-banner .mm-bogo-message {
		flex-basis: 100%;
		text-align: center;
	}
}
