/* TipTop Holiday Popup */

.tthp-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.72);
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tthp-overlay[hidden] {
	display: none;
}

.tthp-overlay.is-visible {
	opacity: 1;
}

.tthp-dialog {
	position: relative;
	max-width: min(680px, 92vw);
	margin: auto;
	padding: 16px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
	box-sizing: border-box;
}

.tthp-overlay.is-visible .tthp-dialog {
	transform: none;
}

.tthp-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tthp-close:hover,
.tthp-close:focus-visible {
	background: #444;
}

.tthp-close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.tthp-headline {
	margin: 0 0 12px;
	padding-right: 32px;
	font-size: 1.35rem;
	line-height: 1.3;
	text-align: center;
}

.tthp-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 74vh;
	object-fit: contain;
	margin: 0 auto;
	border-radius: 4px;
}

.tthp-image-link {
	display: block;
	line-height: 0;
}

.tthp-body {
	margin-top: 12px;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
}

.tthp-body p:last-child {
	margin-bottom: 0;
}

body.tthp-noscroll {
	overflow: hidden;
}

@media (max-width: 600px) {
	.tthp-overlay {
		padding: 28px 14px;
	}

	.tthp-close {
		top: -12px;
		right: -8px;
	}

	.tthp-image {
		max-height: 66vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tthp-overlay,
	.tthp-dialog {
		transition: none;
	}

	.tthp-dialog {
		transform: none;
	}
}

/* ---------------------------------------------------------------- Notice bar */

.tthp-bar {
	position: relative;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	padding: 10px 48px 10px 16px;
	background: var( --tthp-bar-bg, #0d4f8b );
	color: var( --tthp-bar-color, #fff );
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
}

.tthp-bar[hidden] {
	display: none;
}

.tthp-bar--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.tthp-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	width: 100%;
	margin: 0 auto;
	max-width: 1100px;
}

.tthp-bar-text {
	color: inherit;
}

.tthp-bar-cta {
	padding: 5px 14px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.tthp-bar-cta:hover,
.tthp-bar-cta:focus-visible {
	background: rgba( 255, 255, 255, 0.18 );
	color: inherit;
}

.tthp-bar-cta:focus-visible,
.tthp-bar-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tthp-bar-close {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY( -50% );
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}

.tthp-bar-close:hover,
.tthp-bar-close:focus-visible {
	opacity: 1;
}

/* The whole overlay is the close target, so show it that way. */
.tthp-click-anywhere,
.tthp-click-anywhere .tthp-dialog {
	cursor: pointer;
}

.tthp-click-anywhere .tthp-image-link,
.tthp-click-anywhere .tthp-close {
	cursor: pointer;
}

@media (max-width: 600px) {
	.tthp-bar {
		padding: 10px 44px 10px 12px;
		font-size: 0.95rem;
	}
}
