/* GigPortal Digital Signage — player styles (self-contained). */

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	min-height: -webkit-fill-available;
	overflow: hidden;
	background: #000;
}

/* Lock the kiosk viewport on iOS home-screen / standalone mode. */
body {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-overflow-scrolling: touch;
}

/* Embedded in a marketing-page iframe: use percentage heights only — do NOT
   combine position:fixed with JS pixel heights (that collapses later slides). */
html.sign-embed {
	width: 100%;
	height: 100%;
}
html.sign-embed body {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}
html.sign-embed #sign {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
html.sign-embed #tipBar,
html.sign-embed .preloader {
	position: absolute;
}
html.sign-embed .slide {
	width: 100%;
	height: 100%;
}

#sign {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
}

.slide.active { opacity: 1; }

/* Use explicit width/height (not max-*) so iOS Safari doesn't collapse the
   image to zero size inside the flex container. cover fills the screen edge to
   edge (no letterbox bars); images are pre-cropped to 4:3 in the dashboard.
   Ken Burns scale runs on .kenburns-wrap — never on the img itself. */
.Image-slide .kenburns-wrap {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}
.Image-slide .kenburns-wrap img,
.Image-slide video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.Video-slide video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.Review-slide {
	background-color: #ffffff;
	color: #000000;
	flex-direction: column;
	padding: 0;
	box-sizing: border-box;
}

.Review-slide.inverted {
	background-color: #000000;
	color: #ffffff;
}

.Review-slide.inverted .review-comment,
.Review-slide.inverted td.review-comment {
	color: #ffffff !important;
}

.Review-slide.inverted .reviewer-name,
.Review-slide.inverted .review-time {
	color: #ffffff !important;
	opacity: 1;
}

.Review-slide:not(.inverted) .reviewer-name,
.Review-slide:not(.inverted) .review-time {
	color: #000000 !important;
}

.Review-slide:not(.inverted) .review-comment,
.Review-slide:not(.inverted) td.review-comment {
	color: #000000 !important;
}

/* Review slide: header on top; comment flex-centered in the remaining
   space above the tip bar. Font size is never reduced to fit. */
.slide.Review-slide:not(.review-list) {
	display: block !important;
	overflow: hidden;
}

.review-stage-16x9 {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	overflow: hidden;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
}

#sign.has-tipbar .Review-slide .review-stage-16x9 {
	bottom: 56px;
	bottom: clamp(44px, 7vh, 72px);
	bottom: calc(clamp(44px, 7vh, 72px) + env(safe-area-inset-bottom, 0px));
}

.review-stage-16x9 > .review-header {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	padding: 2.5% 4% 1%;
	box-sizing: border-box;
	font-family: Nunito, sans-serif;
	font-weight: 400;
}

.review-header-row {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	gap: 2.5%;
	width: 100%;
}

.review-stage-16x9 > .review-body {
	-webkit-flex: 1 1 0%;
	flex: 1 1 0%;
	min-height: 0;
	width: 100%;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	box-sizing: border-box;
	/* More bottom padding than top shifts the flex midpoint up. */
	padding: 0 4% 8%;
	overflow: hidden;
}

.review-stage-16x9 .review-comment {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	font-style: italic;
	line-height: 1.3;
	box-sizing: border-box;
}

.reviewer-photo {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
}

.reviewer-photo img {
	width: clamp(56px, 9vw, 110px);
	height: clamp(56px, 9vw, 110px);
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.reviewer-photo-fallback {
	width: clamp(56px, 9vw, 110px);
	height: clamp(56px, 9vw, 110px);
	border-radius: 50%;
	background: #c62828;
	color: #fff;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	font-size: clamp(1.4rem, 4.5vw, 2.8rem);
	font-weight: 700;
}

.review-info {
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	padding-left: 1%;
}

.reviewer-name {
	font-size: 3.1vw;
	font-weight: 700;
	margin: 0;
	line-height: 1.15;
	text-transform: capitalize;
}
.review-time {
	font-size: 2.7vw;
	opacity: 0.85;
	margin: 0.15em 0 0;
	line-height: 1.15;
}
.review-comment {
	font-style: italic;
	line-height: 1.3;
	text-align: center;
	margin: 0;
	padding: 0;
}
.star-rating {
	font-size: 2.4vw;
	letter-spacing: 0.1em;
	color: #f5a623;
	margin: 0.25vw 0 0.35vw;
	line-height: 1;
}
.star-rating img {
	height: 1em;
	width: auto;
	vertical-align: middle;
	margin: 0 0.15em;
}
.review-source-logo {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	align-self: flex-start;
	padding-top: 0.2em;
}
.review-source-logo img {
	max-height: clamp(28px, 5vw, 48px);
	max-width: clamp(28px, 5vw, 48px);
	display: block;
}

.overlay {
	position: absolute;
	z-index: 20;
	font-size: 2.5rem; /* fallback for older iOS without clamp() */
	font-size: clamp(1.4rem, 5vw, 4rem);
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	padding: 0 4%;
	text-shadow:
		0 2px 4px rgba(0, 0, 0, 0.95),
		0 4px 14px rgba(0, 0, 0, 0.85),
		0 8px 28px rgba(0, 0, 0, 0.65);
	color: #fff;
	pointer-events: none;
}

.overlay.top { top: 4%; }
.overlay.middle { top: 50%; transform: translateY(-50%); }
.overlay.bottom { bottom: 8%; }
.overlay.left { text-align: left; left: 0; }
.overlay.center { left: 0; right: 0; }
.overlay.right { text-align: right; right: 0; }

.infuse-grid { width: 96%; margin: 0 auto; }
.infuse-reviews-review {
	background: rgba(255,255,255,.95);
	color: #222;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	width: 360px;
	box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.Review-slide.inverted .infuse-reviews-review { background: rgba(30,30,30,.95); color: #eee; }

/* QR Tips slide — modern dark background, content centered and large. */
.QRtips-slide {
	width: 100%;
	height: 100%;
	background: #1c2740;
	/* Glows anchored at all four corners + a clearly-navy base so every edge,
	   including the bottom, is visibly colored — no black dead zone. */
	background:
		radial-gradient(90% 90% at 12% 100%, rgba(29,185,84,.40), transparent 62%),
		radial-gradient(90% 90% at 100% 100%, rgba(56,120,255,.45), transparent 62%),
		radial-gradient(95% 95% at 50% 0%, rgba(168,85,247,.34), transparent 64%),
		linear-gradient(180deg, #223052 0%, #1a2238 60%, #161d31 100%);
	color: #fff;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Extra bottom padding clears the overlaying tip bar so content centers
	   symmetrically in the visible area (not behind the bar). */
	padding: 3vmin 3vmin calc(3vmin + 8vh);
	box-sizing: border-box;
	/* NOTE: do NOT set position here — .slide is position:absolute and stacks all
	   slides on top of each other. Overriding it (e.g. relative) drops this slide
	   into normal flow, pushing the 2nd+ QR Tips slide off-screen (black frame). */
	overflow: hidden;
}
.QRtips-slide.inverted {
	background: #1c2740;
	background:
		radial-gradient(90% 90% at 12% 100%, rgba(29,185,84,.40), transparent 62%),
		radial-gradient(90% 90% at 100% 100%, rgba(56,120,255,.45), transparent 62%),
		radial-gradient(95% 95% at 50% 0%, rgba(168,85,247,.34), transparent 64%),
		linear-gradient(180deg, #223052 0%, #1a2238 60%, #161d31 100%);
}
/* Decorative dotted texture overlay. */
.QRtips-slide::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2px);
	background-size: 30px 30px;
	opacity: .6;
	pointer-events: none;
}
/* Soft diagonal sheen across the slide. */
.QRtips-slide::after {
	content: "";
	position: absolute;
	top: -30%;
	left: -10%;
	width: 60%;
	height: 160%;
	background: linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,0) 70%);
	transform: rotate(8deg);
	pointer-events: none;
}
.qrtips-inner {
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	text-align: center;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.qrtips-heading {
	font-size: 48px; /* fallback for old iOS */
	font-size: 8.5vmin;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 4vmin;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.qrtips-grid {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: nowrap;
	width: 100%;
}
.qrtips-card {
	margin: 0 2vmin;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 20px;
	padding: 2.4vmin;
	box-shadow: 0 18px 50px rgba(0,0,0,.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
/* Large square sized so two codes fill most of the screen. Capped by viewport
   width too (min) so a third/narrow screen never overflows sideways. */
.qrtips-qr {
	width: 300px;  /* fallback for very old iOS */
	height: 300px; /* fallback */
	width: 44vmin;
	height: 44vmin;
	background: #fff;
	border-radius: 14px;
	padding: 2.2vmin;
	box-sizing: border-box;
}
.qrtips-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.qrtips-label {
	color: #fff;
	font-weight: 800;
	font-size: 22px; /* fallback */
	font-size: 3.4vmin;
	margin-top: 2vmin;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.qrtips-sub {
	margin-top: 3vmin;
	font-size: 18px; /* fallback */
	font-size: 3vmin;
	color: rgba(255,255,255,.7);
}

/* Scrolling tip bar */
#tipBar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px; /* fallback for older iOS without clamp() */
	height: clamp(44px, 7vh, 72px);
	background: #000;
	color: #fff;
	z-index: 9999;
	overflow: hidden;
	display: flex;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}

#tipBar .tip-track {
	display: inline-block;
	white-space: nowrap;
	padding-left: 100%;
	animation: tip-scroll 18s linear infinite;
	font-size: 1.5rem; /* fallback for older iOS without clamp() */
	font-size: clamp(1.1rem, 3.2vw, 2rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

@keyframes tip-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* Tip bar overlays the slides (fixed, high z-index) so images/videos stay
   full-screen behind it instead of being pushed up. */

.preloader {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 1.2rem;
	z-index: 50;
}
