﻿/* from NoticeStrip.module.css */
[data-tp="notice"] {
/* Top notice — flat brand */

.notice {
	position: relative;
    z-index: 1;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
    background: var(--tp-brand);
    padding: 4px 0;
}

/* Auto shine sweep left → right (shimmer) — behind ticker text */
.notice::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 38%,
		rgba(255, 255, 255, 0.22) 48%,
		rgba(255, 255, 255, 0.42) 50%,
		rgba(255, 255, 255, 0.22) 52%,
		transparent 62%,
		transparent 100%
	);
	background-size: 220% 100%;
	animation: noticeShine 3.2s ease-in-out infinite;
}



.row,
.noticeRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px;
	padding: 2px 12px;
	position: relative;
	z-index: 2;
	max-width: 1300px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.text {
	flex: 1;
	min-width: 0;
	color: #fff;
	font-weight: 500;
}

/* Ticker (smooth CSS-only continuous scroll) */
.ticker {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.tickerTrack {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	/* Legacy style.css `* { max-width:100% }` otherwise shrinks the track and
	   stacks the duplicated ticker sets on top of each other on mobile. */
	max-width: none;
	width: max-content;
	flex-shrink: 0;
	animation: tickerScroll 52s linear infinite;
	will-change: transform;
	backface-visibility: hidden;
}
.ticker:hover .tickerTrack {
	animation-play-state: paused;
}

.tickerSet {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 48px;
	padding-right: 48px;
	max-width: none;
	width: max-content;
}

.waBtn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex: 0 0 auto;
	margin-left: auto;
	padding: 3px 0;
	background: transparent;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.2;
	border-radius: 0;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	transition: opacity 0.2s;
}

.waBtn:hover {
	opacity: 0.92;
	transform: none;
	color: #fff;
}

.waNo {
	display: inline-block;
	color: #fff;
	background: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff 36%,
		rgba(255, 255, 255, 0.42) 46%,
		#ffffff 56%,
		#ffffff 100%
	);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: noticeWaShine 2.8s ease-in-out infinite;
}



.waBtn i {
	font-size: 14px;
	font-family: "Font Awesome 6 Brands", "FontAwesome", sans-serif;
	font-weight: 400;
}

.tickerItem {
	display: inline-block;
	flex-shrink: 0;
	white-space: nowrap;
	color: inherit;
	font-weight: 500;
}

.tickerDot {
	display: inline-block;
	flex-shrink: 0;
	white-space: nowrap;
	color: inherit;
	font-weight: 500;
	opacity: 0.92;
	padding: 0 0.15em;
}



@media (max-width: 991px) {
	.row,
	.noticeRow {
		padding-inline: 16px;
		overflow: hidden;
	}

	.waBtn {
		display: none !important;
	}

	.text {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.ticker {
		-webkit-mask-image: linear-gradient(
			90deg,
			transparent 0,
			#000 10px,
			#000 calc(100% - 10px),
			transparent 100%
		);
		mask-image: linear-gradient(
			90deg,
			transparent 0,
			#000 10px,
			#000 calc(100% - 10px),
			transparent 100%
		);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tickerTrack { animation-duration: 80s; }
	.notice::after { animation: none; opacity: 0; }
	.waNo { animation: none; -webkit-text-fill-color: #fff; background: none; }
}

}
@keyframes noticeShine {
	0% {
		background-position: 120% 0;
	}
	100% {
		background-position: -120% 0;
	}
}

@keyframes noticeWaShine {
	0% { background-position: 120% 0; }
	100% { background-position: -120% 0; }
}

@keyframes tickerScroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

