.itherm-floating-pdf {
	--itherm-pdf-green: #40981d;
	--itherm-pdf-green-dark: #305920;
	--itherm-pdf-green-mid: #83bb6f;
	--itherm-pdf-green-light: #c1ddba;
	--itherm-pdf-black: #000000;
	--itherm-pdf-white: #ffffff;
	position: fixed;
	right: 0;
	top: 54%;
	z-index: 9999;
	transform: translateY(-50%);
	font-family: inherit;
}

.itherm-floating-pdf__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	max-width: calc(100vw - 24px);
	padding: 10px 18px 10px 10px;
	color: var(--itherm-pdf-white);
	background: linear-gradient(135deg, var(--itherm-pdf-black) 0%, #101610 62%, var(--itherm-pdf-green-dark) 100%);
	border: 1px solid rgba(193, 221, 186, 0.45);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
	text-decoration: none;
	transform: translateX(calc(100% - 62px));
	transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
	will-change: transform;
}

.itherm-floating-pdf__link:hover,
.itherm-floating-pdf__link:focus,
.itherm-floating-pdf__link:focus-visible {
	color: var(--itherm-pdf-white);
	background: linear-gradient(135deg, var(--itherm-pdf-green) 0%, var(--itherm-pdf-green-dark) 72%, var(--itherm-pdf-black) 100%);
	box-shadow: 0 22px 52px rgba(64, 152, 29, 0.34);
	outline: none;
	transform: translateX(0);
	text-decoration: none;
}

.itherm-floating-pdf__link:focus-visible {
	outline: 3px solid rgba(131, 187, 111, 0.45);
	outline-offset: 4px;
}

.itherm-floating-pdf__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 999px;
	color: var(--itherm-pdf-white);
	background: linear-gradient(135deg, var(--itherm-pdf-green) 0%, var(--itherm-pdf-green-mid) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.itherm-floating-pdf__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.itherm-floating-pdf__content {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	white-space: nowrap;
}

.itherm-floating-pdf__text {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.itherm-floating-pdf__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	padding: 2px 8px;
	border-radius: 999px;
	color: var(--itherm-pdf-black);
	background: var(--itherm-pdf-green-light);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.itherm-floating-pdf {
		top: auto;
		right: 16px;
		bottom: calc(22px + env(safe-area-inset-bottom, 0px));
		transform: none;
	}

	.itherm-floating-pdf__link {
		min-height: 54px;
		padding: 9px 15px 9px 9px;
		border-right: 1px solid rgba(193, 221, 186, 0.45);
		border-radius: 999px;
		transform: none;
	}
}

@media (max-width: 480px) {
	.itherm-floating-pdf {
		right: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.itherm-floating-pdf__link {
		gap: 9px;
		min-height: 50px;
		padding: 8px 12px 8px 8px;
	}

	.itherm-floating-pdf__icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.itherm-floating-pdf__icon svg {
		width: 19px;
		height: 19px;
	}

	.itherm-floating-pdf__text {
		font-size: 13px;
	}

	.itherm-floating-pdf__badge {
		min-height: 20px;
		padding: 2px 7px;
		font-size: 10px;
	}
}

@media (max-width: 360px) {
	.itherm-floating-pdf__text {
		max-width: 92px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (prefers-reduced-motion: reduce) {
	.itherm-floating-pdf__link {
		transition: none;
	}
}

.itherm-pdf-embed {
	--itherm-pdf-green: #40981d;
	--itherm-pdf-green-dark: #305920;
	--itherm-pdf-green-mid: #83bb6f;
	--itherm-pdf-green-light: #c1ddba;
	--itherm-pdf-black: #000000;
	--itherm-pdf-white: #ffffff;
	--itherm-pdf-bg: #f4f8f2;
	--itherm-pdf-embed-height: 720px;
	width: 100%;
	margin: 24px 0;
	overflow: hidden;
	background: var(--itherm-pdf-bg);
	border: 1px solid rgba(64, 152, 29, 0.18);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.itherm-pdf-embed__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px clamp(14px, 2.5vw, 24px);
	background: var(--itherm-pdf-white);
	border-bottom: 1px solid rgba(64, 152, 29, 0.18);
}

.itherm-pdf-embed__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.itherm-pdf-embed__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	color: var(--itherm-pdf-white);
	background: linear-gradient(135deg, var(--itherm-pdf-green), var(--itherm-pdf-green-dark));
}

.itherm-pdf-embed__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.itherm-pdf-embed__title {
	margin: 0;
	color: var(--itherm-pdf-black);
	font-size: clamp(16px, 2vw, 21px);
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.itherm-pdf-embed__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.itherm-pdf-embed__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid rgba(48, 89, 32, 0.28);
	background: var(--itherm-pdf-green);
	color: var(--itherm-pdf-white);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.itherm-pdf-embed__button:hover,
.itherm-pdf-embed__button:focus,
.itherm-pdf-embed__button:focus-visible {
	background: var(--itherm-pdf-green-dark);
	color: var(--itherm-pdf-white);
	text-decoration: none;
	outline: none;
}

.itherm-pdf-embed__button:focus-visible {
	box-shadow: 0 0 0 3px rgba(131, 187, 111, 0.45);
}

.itherm-pdf-embed__button--secondary {
	background: var(--itherm-pdf-black);
}

.itherm-pdf-embed__frame-wrap {
	width: 100%;
	min-height: 320px;
	background: var(--itherm-pdf-white);
}

.itherm-pdf-embed__frame {
	display: block;
	width: 100%;
	height: var(--itherm-pdf-embed-height);
	min-height: 320px;
	border: 0;
	background: var(--itherm-pdf-white);
}

.itherm-pdf-embed__fallback {
	margin: 0;
	padding: 12px clamp(14px, 2.5vw, 24px);
	background: var(--itherm-pdf-white);
	color: var(--itherm-pdf-black);
	font-size: 14px;
	line-height: 1.5;
	border-top: 1px solid rgba(64, 152, 29, 0.16);
}

.itherm-pdf-embed__fallback a {
	color: var(--itherm-pdf-green-dark);
	font-weight: 800;
}

@media (max-width: 720px) {
	.itherm-pdf-embed {
		margin: 18px 0;
	}

	.itherm-pdf-embed__header {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.itherm-pdf-embed__actions {
		width: 100%;
	}

	.itherm-pdf-embed__button {
		flex: 1 1 0;
		padding-inline: 10px;
		font-size: 12px;
	}

	.itherm-pdf-embed__frame {
		height: min(var(--itherm-pdf-embed-height), 72vh);
		min-height: 480px;
	}
}

@media (max-width: 480px) {
	.itherm-pdf-embed__icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.itherm-pdf-embed__icon svg {
		width: 19px;
		height: 19px;
	}

	.itherm-pdf-embed__title {
		font-size: 15px;
	}

	.itherm-pdf-embed__actions {
		flex-direction: column;
	}

	.itherm-pdf-embed__button {
		width: 100%;
	}

	.itherm-pdf-embed__frame {
		height: 68vh;
		min-height: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.itherm-pdf-embed__button {
		transition: none;
	}
}
