/**
 * Holiday notice (includes/solatube-holiday-notice.php).
 * Banner at the bottom of the fixed header on shop pages; collapses once the page is scrolled.
 */

.solatube-holiday-notice {
	position: relative;
	z-index: 1;
	background: transparent;
	color: #101418;
	/* Same font as cart/checkout/product (--sp-font in cart-page.css) so it matches on every shop page */
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Full-width yellow strip; content limited to 1400px */
.solatube-holiday-notice__inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px max(20px, calc((100% - 1400px) / 2));
	background: #FDB927;
	border-bottom: 2px solid #F1A503;
}

.solatube-holiday-notice__icon {
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
}

.solatube-holiday-notice .solatube-holiday-notice__text {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.solatube-holiday-notice .solatube-holiday-notice__heading {
	font-family: inherit;
	font-weight: 700;
}

/* Collapsed once the page is scrolled */
.solatube-holiday-notice.is-hidden {
	max-height: 0;
	opacity: 0;
}

/* Shop catalog pages: grey (not white) behind the collapsed banner, matching the page */
body.solatube-holiday-notice-catalog {
	background-color: #F4F4F4;
}

/* Pushes the page down by the banner's height (set by JS; fallback until it runs) */
body.solatube-holiday-notice-active {
	padding-top: var(--solatube-holiday-notice-height, 70px);
}

@media screen and (max-width: 767px) {
	.solatube-holiday-notice__inner {
		gap: 10px;
		padding: 10px 12px;
	}

	.solatube-holiday-notice__icon {
		font-size: 18px;
	}

	body.solatube-holiday-notice-active {
		padding-top: var(--solatube-holiday-notice-height, 90px);
	}
}
