/* Searle Brand Coupons */

.sbc-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 6px 48px;
	background: var(--sbc-bar-bg, #1A7AA6);
	color: var(--sbc-bar-text, #fff);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	box-sizing: border-box;
}
.sbc-bar[hidden] { display: none; }

.sbc-bar__items { display: grid; }
.sbc-bar__item {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s;
}
.sbc-bar__item.is-active { opacity: 1; visibility: visible; }

.sbc-bar__close {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.sbc-bar__close:hover { background: rgba(255, 255, 255, .15); }

/* The code chip: styled like a tear-off voucher so it reads as "copy me". */
.sbc-code {
	display: inline-block;
	margin: 0 2px;
	padding: 1px 8px;
	border: 1.5px dashed currentColor;
	border-radius: 4px;
	background: rgba(255, 255, 255, .14);
	color: inherit;
	font: inherit;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.5;
	cursor: copy;
	vertical-align: baseline;
	transition: border-style 0s, background-color .15s;
}
.sbc-code:hover { border-style: solid; }
.sbc-code:focus-visible,
.sbc-bar__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sbc-code.is-copied { border-style: solid; }

/* Product offers */
.sbc-offers { margin: 12px 0; }
.sbc-offer {
	margin: 0 0 6px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--sbc-badge-bg, #EAF6FC);
	color: var(--sbc-badge-text, #0F5A7C);
	font-size: 14px;
	line-height: 1.45;
}
.sbc-offer:last-child { margin-bottom: 0; }
.sbc-offer .sbc-code { background: #fff; }

.sbc-offers--loop { margin: 6px 0 10px; }
.sbc-offers--loop .sbc-offer { padding: 5px 8px; font-size: 12.5px; text-align: center; }

.sbc-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.sbc-bar { padding: 6px 40px 6px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.sbc-bar__item { transition: none; }
}
