.htk-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 580px;
	margin: 24px auto 20px;
	padding: 5px 0 0;
	overflow: hidden;
	border: 1px solid #e5e5df;
	border-radius: 11px;
	background:
		repeating-linear-gradient(
			135deg,
			#ffcf24 0,
			#ffcf24 10px,
			#2b2a20 10px,
			#2b2a20 20px
		) top / auto 5px no-repeat,
		#fffefa;
	box-shadow: 0 6px 18px rgba(32, 33, 36, 0.09);
	isolation: isolate;
}

.htk-container *,
.htk-container *::before,
.htk-container *::after {
	box-sizing: border-box;
}

.htk-panel {
	--htk-google-accent: #4285f4;
	--htk-support-accent: #ff5a1f;

	position: relative;
	overflow: hidden;
	padding: 14px 16px 16px;
	border-radius: 0;
	background: #fffefa;
}

.htk-heading {
	position: relative;
	max-width: 540px;
	margin: 0 auto 12px;
	padding: 0;
	color: #202124;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: center;
	text-wrap: balance;
}

.htk-heading::before,
.htk-heading::after {
	display: none;
}

.htk-heading__line,
.htk-heading__second-line {
	display: inline;
}

.htk-heading__second-line::before {
	content: " ";
}

.htk-heading__google {
	color: var(--htk-google-accent);
}

.htk-heading__support {
	color: var(--htk-support-accent);
}

.htk-buttons {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 530px;
	margin: 0 auto;
	text-align: center;
}

.htk-google-button,
.htk-support-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	width: 100%;
	max-width: none;
	height: 46px;
	min-width: 0;
	min-height: 46px;
	border-radius: 8px;
	line-height: 1.15;
	text-decoration: none;
	letter-spacing: 0;
	cursor: pointer;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		color 180ms ease,
		opacity 180ms ease,
		transform 180ms ease;
}

.htk-buttons > :only-child {
	flex: 0 1 260px;
}

.htk-google-button:hover,
.htk-google-button:focus,
.htk-support-button:hover,
.htk-support-button:focus {
	text-decoration: none;
}

.htk-google-button:focus-visible,
.htk-support-button:focus-visible {
	outline: 3px solid rgba(66, 133, 244, 0.55);
	outline-offset: 3px;
}

.htk-google-button {
	gap: 8px;
	padding: 0 12px;
	border: 1px solid #e1e4e8;
	background: #ffffff;
	box-shadow: 0 3px 9px rgba(32, 33, 36, 0.06);
	color: #202124;
	font-family: inherit;
}

.htk-google-button:hover,
.htk-google-button:focus {
	border-color: #c5c9d0;
	background: #f8fafd;
	box-shadow: 0 4px 11px rgba(32, 33, 36, 0.1);
	color: #202124;
}

.htk-google-logo {
	display: block;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
}

.htk-google-text {
	display: -webkit-box;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 180px;
	max-height: 2.3em;
	overflow: hidden;
	color: #202124;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.htk-support-button {
	gap: 8px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	background: linear-gradient(90deg, #ff6a1a 0%, #e2450a 100%);
	box-shadow: 0 4px 11px rgba(226, 69, 10, 0.18);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.htk-support-button:hover,
.htk-support-button:focus {
	box-shadow: 0 6px 14px rgba(226, 69, 10, 0.25);
	color: #ffffff;
	transform: translateY(-1px);
}

.htk-support-button:active {
	transform: translateY(0);
}

.htk-coffee-icon {
	display: block;
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	color: currentColor;
}

.htk-rotating-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 145px;
	min-width: 145px;
	max-width: 145px;
	overflow: hidden;
	white-space: nowrap;
}

.htk-text-item {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
	will-change: opacity, transform;
}

.htk-text-item--leaving {
	opacity: 0;
	transform: translateY(-6px);
}

.htk-text-item--entering {
	animation: htkTextIn 180ms ease both;
}

@keyframes htkTextIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html.htk-modal-open,
html.htk-modal-open body {
	overflow: hidden;
}

.htk-image-modal[hidden] {
	display: none;
}

.htk-image-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.htk-image-modal *,
.htk-image-modal *::before,
.htk-image-modal *::after {
	box-sizing: border-box;
}

.htk-image-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	cursor: pointer;
}

.htk-image-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: min(92vw, 760px);
	max-height: 88vh;
	padding: 12px;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.htk-image-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #202124;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.htk-image-modal__close:hover,
.htk-image-modal__close:focus {
	background: #000000;
	color: #ffffff;
}

.htk-image-modal__close:focus-visible {
	outline: 3px solid #8ab4f8;
	outline-offset: 3px;
}

.htk-image-modal__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(88vh - 24px);
	border-radius: 4px;
	object-fit: contain;
}

.htk-image-modal__error {
	margin: 16px;
	color: #b32d2e;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.htk-google-button,
	.htk-support-button,
	.htk-text-item {
		transition: none;
	}

	.htk-support-button:hover,
	.htk-support-button:focus {
		transform: none;
	}

	.htk-text-item--entering {
		animation: none;
	}
}

@media (max-width: 600px) {
	.htk-container {
		margin-top: 22px;
		margin-bottom: 18px;
	}

	.htk-panel {
		padding: 13px 14px 15px;
	}

	.htk-heading {
		margin-bottom: 11px;
		font-size: 16px;
	}
}

@media (max-width: 540px) {
	.htk-panel {
		padding: 12px;
	}

	.htk-heading {
		margin-bottom: 10px;
		font-size: 15px;
	}

	.htk-buttons {
		flex-direction: column;
		gap: 8px;
		max-width: 280px;
	}

	.htk-google-button,
	.htk-support-button {
		flex: 0 0 auto;
		width: 100%;
		max-width: 280px;
		height: 44px;
		min-height: 44px;
	}

	.htk-buttons > :only-child {
		flex-basis: auto;
	}

	.htk-google-logo {
		flex-basis: 24px;
		width: 24px;
		height: 24px;
	}

	.htk-google-text {
		max-width: 180px;
		font-size: 13px;
	}

	.htk-coffee-icon {
		flex-basis: 18px;
		width: 18px;
		height: 18px;
	}

	.htk-rotating-text {
		width: 140px;
		min-width: 140px;
		max-width: 140px;
	}
}

@media (max-width: 480px) {
	.htk-container {
		border-radius: 9px;
	}

	.htk-image-modal {
		padding: 18px;
	}

	.htk-image-modal__panel {
		max-width: 100%;
		padding: 8px;
	}

	.htk-image-modal__close {
		top: -12px;
		right: -8px;
	}
}

@media (max-width: 360px) {
	.htk-buttons,
	.htk-google-button,
	.htk-support-button {
		max-width: 100%;
	}
}
