.gplite-points {
	display: inline-block;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f0f0f1;
}

.gplite-rank {
	display: inline-block;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
}

.gplite-rank.gplite-no-rank {
	background: #ccc;
	color: #333;
}

ul.gplite-achievements {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 1em 0;
}

.gplite-achievement-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 120px;
}

.gplite-achievement-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
}

.gplite-achievement-title {
	font-weight: 600;
	margin-top: 6px;
	font-size: 0.9em;
}

.gplite-achievement-date {
	font-size: 0.75em;
	color: #666;
}

ol.gplite-leaderboard {
	margin: 1em 0;
	padding-left: 1.5em;
}

ol.gplite-leaderboard li {
	padding: 4px 0;
	border-bottom: 1px solid #eee;
}

.gplite-empty {
	color: #666;
	font-style: italic;
}

.gplite-woo-points-notice {
	font-size: 0.9em;
	color: #2271b1;
	font-weight: 600;
	margin: 8px 0;
}

.gplite-unlock-wrap {
	margin: 1.2em 0;
}

.gplite-unlock-box {
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	padding: 18px 20px;
	text-align: center;
	background: #fafafa;
}

.gplite-unlock-cost {
	margin: 0 0 12px;
	font-weight: 600;
}

.gplite-unlock-message {
	margin: 0;
	color: #666;
}

.gplite-unlock-btn {
	cursor: pointer;
}

.gplite-unlock-btn.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.gplite-unlock-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid #ccc;
	border-top-color: #2271b1;
	border-radius: 50%;
	vertical-align: middle;
	animation: gplite-spin 0.6s linear infinite;
}

@keyframes gplite-spin {
	to { transform: rotate( 360deg ); }
}

.gplite-unlock-error {
	margin-top: 10px;
	color: #d63638;
	font-size: 0.9em;
}

.gplite-unlock-content.gplite-unlock-revealed {
	animation: gplite-fade-in 0.35s ease;
}

@keyframes gplite-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.gplite-earn-wrap {
	margin: 1.2em 0;
}

.gplite-earn-box {
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	padding: 18px 20px;
	text-align: center;
	background: #fafafa;
}

.gplite-earn-amount {
	margin: 0 0 12px;
	font-weight: 600;
	color: #2271b1;
}

.gplite-earn-message-login {
	margin: 0;
	color: #666;
}

.gplite-earn-btn {
	cursor: pointer;
}

.gplite-earn-btn.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.gplite-earn-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid #ccc;
	border-top-color: #2271b1;
	border-radius: 50%;
	vertical-align: middle;
	animation: gplite-spin 0.6s linear infinite;
}

.gplite-earn-error {
	margin-top: 10px;
	color: #d63638;
	font-size: 0.9em;
}

.gplite-earn-message.gplite-earn-claimed {
	border: 1px solid #00a32a;
	border-radius: 6px;
	padding: 14px 18px;
	background: #edfaef;
	text-align: center;
}

.gplite-earn-message.gplite-earn-revealed {
	animation: gplite-fade-in 0.35s ease;
}

.gplite-user-points {
	margin: 1.2em 0;
}

.gplite-user-points-title {
	font-weight: 600;
	margin: 0 0 10px;
}

ul.gplite-user-points-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0;
	margin: 0;
}

.gplite-user-points-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	padding: 14px 18px;
	border-radius: 8px;
	background: #f0f6fc;
	border: 1px solid #d3e3f1;
	text-align: center;
}

.gplite-user-points-value {
	font-size: 1.4em;
	font-weight: 700;
	color: #2271b1;
	line-height: 1.2;
}

.gplite-user-points-label {
	font-size: 0.8em;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-top: 4px;
}

.gplite-redeem-box {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid #d3e3f1;
	border-radius: 6px;
	background: #f7fbff;
}

.gplite-redeem-title {
	font-weight: 600;
	margin: 0 0 10px;
}

.gplite-redeem-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gplite-redeem-balance {
	font-size: 0.9em;
	color: #646970;
}

.gplite-redeem-amount {
	width: 120px;
}

.gplite-redeem-apply-btn {
	cursor: pointer;
}

.gplite-redeem-applied {
	margin: 0;
	font-weight: 600;
	color: #00a32a;
}

.gplite-redeem-remove-btn {
	color: #d63638;
	font-weight: 400;
}

.gplite-redeem-error {
	margin-top: 8px;
	color: #d63638;
	font-size: 0.9em;
}

.gplite-redeem-hint {
	margin: 6px 0 0;
	font-size: 0.8em;
	color: #646970;
}

.gplite-card-redeem-box {
	margin: 1.2em 0;
	padding: 16px 18px;
	border: 1px solid #d3e3f1;
	border-radius: 6px;
	background: #f7fbff;
}

.gplite-card-redeem-title {
	font-weight: 600;
	margin: 0 0 10px;
}

.gplite-card-redeem-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gplite-card-code-input {
	width: 200px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-family: monospace;
}

.gplite-card-redeem-btn {
	cursor: pointer;
}

.gplite-card-redeem-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #ccc;
	border-top-color: #2271b1;
	border-radius: 50%;
	vertical-align: middle;
	animation: gplite-spin 0.6s linear infinite;
}

.gplite-card-redeem-message {
	margin-top: 10px;
	font-size: 0.9em;
}

.gplite-card-redeem-message.gplite-card-redeem-success {
	color: #00a32a;
	font-weight: 600;
}

.gplite-card-redeem-message.gplite-card-redeem-error {
	color: #d63638;
}

.gplite-card-customer-input {
	width: 220px;
}

.gplite-card-create-box {
	margin: 1.2em 0;
	padding: 16px 18px;
	border: 1px solid #d3e3f1;
	border-radius: 6px;
	background: #f7fbff;
}

.gplite-card-create-title {
	font-weight: 600;
	margin: 0 0 6px;
}

.gplite-card-create-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.gplite-card-create-balance {
	font-size: 0.9em;
	color: #646970;
}

.gplite-card-create-amount {
	width: 160px;
}

.gplite-card-create-btn {
	cursor: pointer;
}

.gplite-card-create-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #ccc;
	border-top-color: #2271b1;
	border-radius: 50%;
	vertical-align: middle;
	animation: gplite-spin 0.6s linear infinite;
}

.gplite-card-create-message {
	margin-top: 10px;
	font-size: 0.9em;
	word-break: break-word;
}

.gplite-card-create-message.gplite-card-create-success {
	color: #00a32a;
	font-weight: 600;
}

.gplite-card-create-message.gplite-card-create-error {
	color: #d63638;
}

.gplite-card-create-qr {
	margin-top: 14px;
	text-align: center;
}

.gplite-card-create-qr img {
	border: 1px solid #d3e3f1;
	border-radius: 8px;
	padding: 8px;
	background: #fff;
}

.gplite-card-create-qr-hint {
	margin: 8px 0 0;
	font-size: 0.8em;
	color: #646970;
	font-weight: 400;
}

.gplite-deduct-wrap {
	margin: 1.2em 0;
}

.gplite-deduct-box {
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	padding: 0px;
	text-align: center;
	background: #fafafa;
}

.gplite-deduct-cost {
	margin: 0 0 12px;
	font-weight: 600;
	color: #2271b1;
	display: none;
}

.gplite-deduct-message {
	margin: 0;
	color: #666;
}

.gplite-deduct-btn {
	cursor: pointer;
	border-radius: 25px;
	background-color: #ffe66e;
}

.gplite-deduct-box.has-btn-bg-image {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-color: transparent;
	border: none;
	overflow: hidden;
	/* Safety net: the button itself is position:absolute (see below) and
	   contributes zero height to this box on its own — the real height
	   normally comes from the JS-set aspect-ratio once the background
	   image finishes loading. On a slow/flaky connection (common on
	   mobile) that can take a while or fail outright, which without this
	   would leave the box — and the button inside it — at 0px height and
	   completely invisible/untappable until the image loads, if ever. */
	min-height: 160px;
}

.gplite-deduct-box.has-btn-bg-image .gplite-deduct-cost {
	position: relative;
	color: #fff;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.6 );
}

.gplite-deduct-box.has-btn-bg-image .gplite-deduct-action {
	position: absolute;
	left: 50%;
	bottom: 5%;
	transform: translateX( -50% );
	width: 90%;
	text-align: center;
	margin: 0;
}

.gplite-deduct-box.has-btn-bg-image .gplite-deduct-message {
	margin: 0;
}

.gplite-deduct-btn.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.gplite-deduct-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid #ccc;
	border-top-color: #2271b1;
	border-radius: 50%;
	vertical-align: middle;
	animation: gplite-spin 0.6s linear infinite;
}

.gplite-deduct-error {
	margin-top: 10px;
	color: #d63638;
	font-size: 0.9em;
}

/* Reusable modal popup, shared by any Deduct Points Button on the page */
.gplite-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.gplite-modal-fireworks {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	display: none;
}

.gplite-modal-overlay.has-fireworks .gplite-modal-fireworks {
	display: block;
}

.gplite-modal-overlay.is-open {
	display: flex;
}

body.gplite-modal-lock-scroll {
	overflow: hidden;
}

.gplite-modal {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 360px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 0;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
	animation: gplite-modal-in 0.2s ease;
	/* Makes this element a containing block for any position:fixed element
	   inside the popup content (e.g. another plugin's own internal modal,
	   like a scratch-card "you won!" popup). Without this, a fixed-position
	   descendant stacks against the page's ROOT z-index context instead of
	   ours, and can end up hidden behind our own modal backdrop even though
	   it's nested deep inside — this traps it safely within our layering. */
	contain: layout;
}

@keyframes gplite-modal-in {
	from { opacity: 0; transform: translateY( 10px ); }
	to { opacity: 1; transform: translateY( 0 ); }
}

.gplite-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6em;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.gplite-modal-close:hover {
	color: #111;
}

.gplite-modal-title {
	font-size: 1.2em;
	font-weight: 700;
	margin-bottom: 14px;
	padding-right: 20px;
	display: none;
}

.gplite-modal-body {
	line-height: 1.6;
}

.gplite-modal-body.has-bg-image {
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	border-radius: 6px;
	padding: 16px;
	margin: -4px;
	box-sizing: border-box;
	/* Lower risk than the button case (the popup's actual content is
	   normal in-flow HTML, so it already has real height on its own),
	   but the same small safety net in case that content is very short. */
	min-height: 120px;
}

.gplite-redeem-guest {
	color: #666;
	font-style: italic;
}

.gplite-card-scan-btn {
	cursor: pointer;
}

.gplite-card-scan-panel {
	margin-top: 12px;
	text-align: center;
}

.gplite-card-scan-video {
	width: 100%;
	max-width: 320px;
	border-radius: 8px;
	background: #000;
}

.gplite-card-scan-close {
	display: block;
	margin: 8px auto 0;
	color: #d63638;
}

.gplite-card-scan-hint {
	margin: 6px 0 0;
	font-size: 0.85em;
	color: #646970;
}

.gplite-card-scan-unsupported {
	margin-top: 10px;
	font-size: 0.85em;
	color: #d63638;
}

.gplite-bill-acceptor-wrap {
	position: relative;
}

.gplite-bill-acceptor-input {
	/* Visually hidden but still focusable and typeable — display:none or
	   visibility:hidden would stop a HID device's keystrokes from landing
	   in it at all, which defeats the point of this field. */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	border: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.gplite-bill-acceptor-status {
	margin: 0;
	font-weight: 600;
	color: #2271b1;
	min-height: 1.4em;
}

.gplite-bill-acceptor-status.is-error {
	color: #d63638;
}

.gplite-bill-acceptor-message {
	color: #646970;
}

.gplite-youtube-watch-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.gplite-youtube-watch {
	position: relative;
}

.gplite-youtube-watch-notice {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX( -50% ) translateY( 10px );
	background: rgba( 32, 33, 36, 0.92 );
	color: #fff;
	padding: 10px 18px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 5;
}

.gplite-youtube-watch-notice.is-visible {
	opacity: 1;
	transform: translateX( -50% ) translateY( 0 );
}

.gplite-youtube-watch-notice.is-error {
	background: rgba( 214, 54, 56, 0.92 );
}

.gplite-yt-message {
	color: #646970;
}

