/**
 * BioMyst BOGO banners.
 *
 * .bm-bogobar  — the full-bleed sitewide announcement strip above the header.
 * .bm-bogo     — the inline banner used on shop / product / mini-cart, in two
 *                variants: --block (full strip) and --mini (compact, cart flyout).
 *
 * Enqueued sitewide from inc/bogo.php. Uses design tokens only.
 */

/* ------------------------------------------------------------------ *
 * Sitewide announcement bar
 * ------------------------------------------------------------------ */

.bm-bogobar {
	display: block;
	background: var(--bm-teal);
	color: #fff;
	font-family: var(--bm-font);
}

/* Author class would otherwise beat the UA [hidden] rule. */
.bm-bogobar[hidden] {
	display: none;
}

.bm-bogobar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 40px;
	padding-top: 7px;
	padding-bottom: 7px;
}

.bm-bogobar__msg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 100%;
	/* Symmetric padding wider than the dismiss button's zone keeps the centred
	   text from ever running under the absolutely-positioned button. */
	padding: 0 42px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

a.bm-bogobar__msg:hover .bm-bogobar__text {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bm-bogobar__msg .bm-bogo__icon {
	flex: 0 0 auto;
	color: #fff;
}

.bm-bogobar__arrow {
	flex: 0 0 auto;
	transition: transform var(--bm-t);
}

a.bm-bogobar__msg:hover .bm-bogobar__arrow {
	transform: translateX(3px);
}

.bm-bogobar__dismiss {
	position: absolute;
	top: 50%;
	right: var(--bm-gutter);
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--bm-r-sm);
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity var(--bm-t), background var(--bm-t);
}

.bm-bogobar__dismiss:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.16);
}

.bm-bogobar__dismiss:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

/* ------------------------------------------------------------------ *
 * Inline banner — shared
 * ------------------------------------------------------------------ */

.bm-bogo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--bm-font);
	text-decoration: none;
	color: var(--bm-ink);
}

.bm-bogo__icon {
	flex: 0 0 auto;
	color: var(--bm-teal);
}

.bm-bogo__text {
	font-weight: 600;
	min-width: 0;
}

.bm-bogo__arrow {
	flex: 0 0 auto;
	margin-left: auto;
	color: var(--bm-teal);
	transition: transform var(--bm-t);
}

a.bm-bogo:hover .bm-bogo__arrow {
	transform: translateX(3px);
}

/* ---- Block variant (shop title area, product buy panel) ---- */

.bm-bogo--block {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: var(--bm-teal-tint-05);
	border: 1px solid var(--bm-teal-tint-14);
	border-radius: var(--bm-r-xl);
	font-size: 13.5px;
	line-height: 1.4;
}

a.bm-bogo--block:hover {
	background: var(--bm-teal-tint);
	border-color: var(--bm-teal);
}

/* ---- Mini variant (cart flyout) ---- */

.bm-bogo--mini {
	margin: 0 0 12px;
	padding: 8px 11px;
	background: var(--bm-teal-tint-05);
	border: 1px solid var(--bm-teal-tint-12);
	border-radius: var(--bm-r-md);
	font-size: 11.5px;
	line-height: 1.3;
	gap: 8px;
}

.bm-bogo--mini .bm-bogo__text {
	color: var(--bm-text-mid);
}

a.bm-bogo--mini:hover {
	background: var(--bm-teal-tint);
	border-color: var(--bm-teal);
}

/* ------------------------------------------------------------------ *
 * Mobile
 * ------------------------------------------------------------------ */

@media (max-width: 600px) {
	.bm-bogobar__msg {
		font-size: 12px;
		gap: 8px;
		padding: 0 36px;
	}

	.bm-bogobar__inner {
		min-height: 38px;
	}

	.bm-bogo--block {
		font-size: 12.5px;
		padding: 11px 13px;
	}
}
