/* GTP Christmas Hours – front end. Everything is scoped to .gtpch-* and uses two-class
   selectors so Elementor kit / theme button and heading styles don't leak in. */

/* ---------- Banner ---------- */
.gtpch-banner {
	box-sizing: border-box;
	position: relative;
	z-index: 99990;
	width: 100%;
	margin: 0;
	background: var(--gtpch-bg, #14532d);
	color: var(--gtpch-fg, #ffffff);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
}
.gtpch-banner[hidden] { display: none !important; }
.gtpch-banner *, .gtpch-banner *::before, .gtpch-banner *::after { box-sizing: border-box; }

.gtpch-banner.gtpch-banner--sticky { position: -webkit-sticky; position: sticky; top: 0; }
.admin-bar .gtpch-banner.gtpch-banner--sticky { top: 32px; }

.gtpch-banner.gtpch-banner--bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding-bottom: env(safe-area-inset-bottom, 0);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.gtpch-banner .gtpch-banner__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 10px 52px;
	text-align: center;
}
.gtpch-banner .gtpch-banner__text {
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}
.gtpch-banner .gtpch-banner__link,
.gtpch-banner .gtpch-banner__close {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	min-height: 0;
	width: auto;
}
.gtpch-banner .gtpch-banner__link {
	padding: 4px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}
.gtpch-banner .gtpch-banner__link:hover,
.gtpch-banner .gtpch-banner__link:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	color: inherit;
}
.gtpch-banner .gtpch-banner__close {
	position: absolute;
	top: 50%;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	transform: translateY(-50%);
}
.gtpch-banner .gtpch-banner__close:hover,
.gtpch-banner .gtpch-banner__close:focus-visible { background: rgba(255, 255, 255, 0.18); color: inherit; }
.gtpch-banner button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Popup ---------- */
.gtpch-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.gtpch-popup[hidden] { display: none !important; }
.gtpch-popup.is-open { opacity: 1; }
.gtpch-popup *, .gtpch-popup *::before, .gtpch-popup *::after { box-sizing: border-box; }

.gtpch-popup .gtpch-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}
.gtpch-popup .gtpch-popup__card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 28px 26px 22px;
	background: #ffffff;
	color: #1f2937;
	border-top: 6px solid var(--gtpch-accent, #b91c1c);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	text-align: left;
	transform: translateY(12px);
	transition: transform 0.2s ease;
	outline: none;
}
.gtpch-popup.is-open .gtpch-popup__card { transform: none; }

.gtpch-popup .gtpch-popup__x,
.gtpch-popup .gtpch-popup__ok {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	min-height: 0;
}
.gtpch-popup .gtpch-popup__x {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	color: #6b7280;
	border: 0;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
}
.gtpch-popup .gtpch-popup__x:hover,
.gtpch-popup .gtpch-popup__x:focus-visible { background: #f3f4f6; color: #111827; }
.gtpch-popup .gtpch-popup__ok {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 12px 16px;
	background: var(--gtpch-accent, #b91c1c);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.gtpch-popup .gtpch-popup__ok:hover,
.gtpch-popup .gtpch-popup__ok:focus-visible { filter: brightness(0.92); color: #ffffff; }
.gtpch-popup button:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }

/* ---------- Shared content (popup, shortcode, Elementor widget) ---------- */
.gtpch-popup .gtpch-popup__eyebrow,
.gtpch-inline .gtpch-popup__eyebrow {
	margin: 0 0 4px;
	padding: 0 40px 0 0;
	color: var(--gtpch-accent, #b91c1c);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}
.gtpch-popup .gtpch-popup__title,
.gtpch-inline .gtpch-popup__title {
	margin: 0 0 8px;
	padding: 0 40px 0 0;
	color: #111827;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
}
.gtpch-inline .gtpch-popup__eyebrow,
.gtpch-inline .gtpch-popup__title { padding-right: 0; }
.gtpch-popup .gtpch-popup__intro,
.gtpch-inline .gtpch-popup__intro {
	margin: 0 0 14px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
}
.gtpch-popup .gtpch-hours,
.gtpch-inline .gtpch-hours {
	width: 100%;
	margin: 0 0 12px;
	border: 0;
	border-collapse: collapse;
	background: none;
	font-size: 15px;
	line-height: 1.4;
	table-layout: auto;
}
.gtpch-popup .gtpch-hours th,
.gtpch-popup .gtpch-hours td,
.gtpch-inline .gtpch-hours th,
.gtpch-inline .gtpch-hours td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: none;
	vertical-align: top;
	text-align: left;
}
.gtpch-popup .gtpch-hours th,
.gtpch-inline .gtpch-hours th { padding-right: 12px; color: #111827; font-weight: 600; }
.gtpch-popup .gtpch-hours td,
.gtpch-inline .gtpch-hours td { color: #374151; text-align: right; white-space: nowrap; }
.gtpch-popup .gtpch-hours__row--closed td,
.gtpch-inline .gtpch-hours__row--closed td { color: var(--gtpch-accent, #b91c1c); font-weight: 600; }
.gtpch-popup .gtpch-hours__note,
.gtpch-inline .gtpch-hours__note {
	display: block;
	color: #6b7280;
	font-size: 13px;
	font-weight: 400;
	white-space: normal;
}
.gtpch-popup .gtpch-popup__resume,
.gtpch-popup .gtpch-popup__footer,
.gtpch-inline .gtpch-popup__resume,
.gtpch-inline .gtpch-popup__footer {
	margin: 0 0 6px;
	color: #374151;
	font-size: 14px;
	line-height: 1.5;
}
.gtpch-popup .gtpch-popup__footer,
.gtpch-inline .gtpch-popup__footer { color: #4b5563; }

.gtpch-inline { max-width: 560px; font-family: inherit; }
.gtpch-inline .gtpch-inline__note,
.gtpch-inline--empty {
	margin: 0 0 10px;
	padding: 8px 12px;
	background: #fef3c7;
	color: #78350f;
	border-radius: 6px;
	font-size: 13px;
}

html.gtpch-lock, html.gtpch-lock body { overflow: hidden; }
html.gtpch-has-bottom body { padding-bottom: var(--gtpch-bottom-space, 56px); }
html.gtpch-has-bottom .gtpch-review { bottom: calc(var(--gtpch-bottom-space, 56px) + 12px); }

/* ---------- Review bar (preview links only) ---------- */
.gtpch-review {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 1000000;
	max-width: 340px;
	padding: 14px 16px;
	background: #ffffff;
	color: #111827;
	border: 2px solid #111827;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}
.gtpch-review .gtpch-review__title { margin: 0 0 2px; font-weight: 700; font-size: 15px; color: #111827; }
.gtpch-review .gtpch-review__meta { margin: 0 0 10px; color: #4b5563; font-size: 13px; }
.gtpch-review .gtpch-review__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gtpch-review form { margin: 0; }
.gtpch-review .gtpch-review__btn {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 8px 14px;
	background: #ffffff;
	color: #111827;
	border: 1px solid #111827;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}
.gtpch-review .gtpch-review__btn--ok { background: #15803d; border-color: #15803d; color: #ffffff; }
.gtpch-review .gtpch-review__note { color: #92400e; font-size: 13px; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 782px) {
	.admin-bar .gtpch-banner.gtpch-banner--sticky { top: 46px; }
}
@media (max-width: 600px) {
	/* WordPress un-fixes the admin bar below 600px. */
	.admin-bar .gtpch-banner.gtpch-banner--sticky { top: 0; }
}
@media (max-width: 767px) {
	.gtpch-banner { font-size: 14px; }
	.gtpch-banner .gtpch-banner__inner { padding: 9px 46px 9px 14px; gap: 6px 10px; }
	.gtpch-banner .gtpch-banner__link { font-size: 13px; padding: 3px 12px; }

	/* Popup becomes a bottom sheet – easy to read and close with a thumb. */
	.gtpch-popup { align-items: flex-end; padding: 0; }
	.gtpch-popup .gtpch-popup__card {
		max-width: none;
		max-height: 85vh;
		max-height: 85dvh;
		padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0));
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}
	.gtpch-popup .gtpch-popup__title { font-size: 20px; }
	.gtpch-popup .gtpch-hours, .gtpch-inline .gtpch-hours { font-size: 14px; }
	.gtpch-popup .gtpch-hours td, .gtpch-inline .gtpch-hours td { white-space: normal; }

	.gtpch-review { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.gtpch-popup, .gtpch-popup .gtpch-popup__card { transition: none; }
}
