/* Component: Black Friday bar (inc/bfcm-banner.php). Loaded with cp_use_style( 'bfcm' ) only while the bar shows. */
@layer components {
	.cp-bfcm {
		background: var(--cp-charcoal);
		color: var(--cp-white);
		font-family: var(--cp-font-body);
		font-size: var(--cp-text-sm);
		line-height: 1.35;
		overflow-x: clip;
	}
	.cp-bfcm__bar {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: var(--cp-s1);
		width: min(100%, calc(var(--cp-maxw) + 2 * var(--cp-gutter)));
		margin-inline: auto;
		padding: 6px var(--cp-s1) 6px 12px;
		min-height: 52px;
		box-sizing: border-box;
	}
	.cp-bfcm__msg { flex: 1 1 12rem; min-width: 0; margin: 0; }
	.cp-bfcm__msg strong { font-weight: 700; }
	.cp-bfcm__desk { display: none; }
	.cp-bfcm__fine { display: none; margin: 2px 0 0; font-weight: 400; }
	.cp-bfcm__count { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
	.cp-bfcm__cta {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-height: var(--cp-tap);
		padding: 0 14px;
		border: 2px solid transparent;
		border-radius: var(--cp-radius-pill);
		background: var(--cp-teal);
		color: var(--cp-charcoal);
		font-family: var(--cp-font-head);
		font-weight: 600;
		font-size: var(--cp-text-sm);
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}
	.cp-bfcm__cta:hover { background: var(--cp-charcoal); color: var(--cp-white); border-color: var(--cp-teal); }
	.cp-bfcm__x {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: var(--cp-tap);
		height: var(--cp-tap);
		padding: 0;
		border: 0;
		border-radius: var(--cp-radius-sm);
		background: transparent;
		color: var(--cp-white);
		cursor: pointer;
	}
	/* White ring on the charcoal bar; this layer beats base.css's charcoal ring. */
	.cp-bfcm :focus-visible { outline: 2px solid var(--cp-white); outline-offset: 2px; }
	.cp-bfcm__cta:focus-visible { outline-color: var(--cp-charcoal); }
	@media (min-width: 782px) {
		.cp-bfcm { font-size: var(--cp-text-base); }
		.cp-bfcm__bar { min-height: 44px; padding: 4px 12px 4px var(--cp-s3); gap: var(--cp-s2); }
		.cp-bfcm__mobi { display: none; }
		.cp-bfcm__desk { display: inline; }
		.cp-bfcm__fine:not(:empty) { display: block; }
		.cp-bfcm__cta { font-size: 16px; padding: 0 18px; }
	}
}
