:root {
	--wdts-ebook-primary: #5c738a;
	--wdts-ebook-primary-dark: #3d5066;
	--wdts-ebook-gold: #d28e24;
	--wdts-ebook-gold-dark: #b07518;
	--wdts-ebook-green: #13612e;
	--wdts-ebook-green-soft: #e8f5e9;
	--wdts-ebook-ink: #1a202c;
	--wdts-ebook-text: #2d3748;
	--wdts-ebook-text-soft: #718096;
	--wdts-ebook-bg: #f2f3f5;
	--wdts-ebook-surface: #ffffff;
	--wdts-ebook-surface-soft: #faf9f7;
	--wdts-ebook-border: #e3e5eb;
	--wdts-ebook-shadow: 0 20px 38px -24px rgba(17, 24, 39, 0.28);
	--wdts-ebook-radius: 18px;
	--wdts-ebook-radius-pill: 999px;
}

.wdts-ebook-page,
.wdts-ebook-browse {
	color: var(--wdts-ebook-text);
}

.wdts-ebook-shell,
.wdts-ebook-browse {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.wdts-ebook-hero {
	position: relative;
	margin: 0 calc(50% - 50vw);
	overflow: hidden;
	background: linear-gradient(160deg, #111e2b 0%, #2c3e50 30%, #3d5066 65%, #4a6178 100%);
	color: #fff;
	text-align: center;
}

.wdts-ebook-hero::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(210, 142, 36, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.wdts-ebook-hero::after {
	content: "";
	position: absolute;
	bottom: -30%;
	left: -5%;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	pointer-events: none;
}

.wdts-ebook-hero__deco {
	position: absolute;
	pointer-events: none;
}

.wdts-ebook-hero__deco--1 {
	top: 20%;
	left: 8%;
	width: 80px;
	height: 80px;
	border: 1px solid rgba(210, 142, 36, 0.2);
	border-radius: 50%;
	animation: wdts-ebook-hero-float 8s ease-in-out infinite;
}

.wdts-ebook-hero__deco--2 {
	top: 15%;
	right: 10%;
	width: 120px;
	height: 120px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	transform: rotate(30deg);
	animation: wdts-ebook-hero-float-reverse 10s ease-in-out infinite;
}

.wdts-ebook-hero__deco--3 {
	right: 15%;
	bottom: 18%;
	width: 60px;
	height: 60px;
	border: 1px solid rgba(210, 142, 36, 0.15);
	border-radius: 50%;
	animation: wdts-ebook-hero-float 6s ease-in-out infinite;
}

.wdts-ebook-hero__deco--4 {
	bottom: 25%;
	left: 12%;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(210, 142, 36, 0.06);
	transform: rotate(45deg);
	animation: wdts-ebook-hero-float-reverse 7s ease-in-out infinite;
}

.wdts-ebook-hero__deco--line {
	top: 50%;
	left: 50%;
	width: 800px;
	height: 800px;
	border: 1px solid rgba(255, 255, 255, 0.03);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

@keyframes wdts-ebook-hero-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-12px);
	}
}

@keyframes wdts-ebook-hero-float-reverse {
	0%,
	100% {
		transform: rotate(30deg) translateY(0);
	}

	50% {
		transform: rotate(30deg) translateY(-12px);
	}
}

.wdts-ebook-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 100px 24px 80px;
}

.wdts-ebook-hero__content {
	position: relative;
	z-index: 2;
	color: #fff;
}

.wdts-ebook-hero__eyebrow {
	display: inline-block;
	margin-bottom: 20px;
	padding: 6px 20px;
	border: 1px solid rgba(210, 142, 36, 0.5);
	border-radius: var(--wdts-ebook-radius-pill);
	color: var(--wdts-ebook-gold);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.wdts-ebook-hero__title,
.wdts-ebook-detail__header h1,
.wdts-ebook-reader__toolbar h1,
.wdts-ebook-panel h2,
.wdts-ebook-empty h2 {
	margin: 0;
	font-family: "Noto Serif TC", serif;
	color: var(--wdts-ebook-ink);
}

.wdts-ebook-hero__title {
	color: #fff;
	font-size: clamp(2.2rem, 4vw, 2.8rem);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
}

.wdts-ebook-hero__title span {
	color: var(--wdts-ebook-gold);
}

.wdts-ebook-hero__kicker {
	margin-top: 8px;
	margin-bottom: 24px;
	font-family: "Noto Serif TC", serif;
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: 0.38em;
	color: rgba(255, 255, 255, 0.75);
}

.wdts-ebook-hero__divider {
	width: 48px;
	height: 2px;
	margin: 0 auto 28px;
	background: linear-gradient(90deg, transparent, var(--wdts-ebook-gold), transparent);
}

.wdts-ebook-hero__subtitle {
	max-width: 520px;
	margin: 0 auto 36px;
	font-size: 1.05rem;
	line-height: 2;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
}

.wdts-ebook-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.wdts-ebook-hero__badge {
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--wdts-ebook-radius-pill);
	background: rgba(255, 255, 255, 0.1);
	padding: 10px 24px;
	backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.95);
	cursor: pointer;
	font-size: 0.85rem;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: 0.06em;
	transition: all 0.3s ease;
}

.wdts-ebook-status-panel,
.wdts-ebook-price-panel,
.wdts-ebook-notice,
.wdts-ebook-purchase-summary,
.wdts-ebook-empty,
.wdts-ebook-panel,
.wdts-ebook-card,
.wdts-ebook-related-card,
.wdts-ebook-mini-card {
	border: 1px solid var(--wdts-ebook-border);
	border-radius: var(--wdts-ebook-radius);
	background: var(--wdts-ebook-surface);
}

.wdts-ebook-hero__badge:hover,
.wdts-ebook-hero__badge.is-active,
.wdts-ebook-hero__badge:focus-visible {
	border-color: rgba(210, 142, 36, 0.85);
	background: rgba(210, 142, 36, 0.88);
	color: #fff;
}

.wdts-ebook-hero__badge:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 4px;
}

.wdts-ebook-hero__fade {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 60px;
	background: linear-gradient(to bottom, transparent, var(--wdts-ebook-bg));
}

.wdts-ebook-browse__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	margin-bottom: 28px;
}

.wdts-ebook-filter-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wdts-ebook-filter-tabs__button,
.wdts-ebook-primary-link,
.wdts-ebook-secondary-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wdts-ebook-radius-pill);
	font-weight: 600;
	text-decoration: none;
	transition: 0.2s ease;
}

.wdts-ebook-filter-tabs__button {
	border: 1px solid var(--wdts-ebook-border);
	background: var(--wdts-ebook-surface);
	padding: 10px 18px;
	color: var(--wdts-ebook-text);
	cursor: pointer;
}

.wdts-ebook-filter-tabs__button.is-active,
.wdts-ebook-filter-tabs__button:hover {
	border-color: var(--wdts-ebook-primary);
	background: var(--wdts-ebook-primary);
	color: #fff;
}

.wdts-ebook-grid,
.wdts-ebook-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.wdts-ebook-grid.is-filter-empty {
	display: block;
}

.wdts-ebook-filter-status {
	margin-bottom: 24px;
	padding: 22px 24px;
	border: 1px solid #f4d6a6;
	border-radius: var(--wdts-ebook-radius);
	background: #fff6e9;
	color: #8a5b17;
	font-weight: 700;
	text-align: center;
	box-shadow: var(--wdts-ebook-shadow);
}

.wdts-ebook-filter-status[hidden] {
	display: none;
}

.wdts-ebook-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: var(--wdts-ebook-shadow);
}

.wdts-ebook-card[hidden] {
	display: none !important;
}

.wdts-ebook-card__cover,
.wdts-ebook-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	padding: 28px;
	background: linear-gradient(135deg, #ece3d5 0%, #dac8ac 100%);
	text-decoration: none;
}

.wdts-ebook-card__cover.is-paid,
.wdts-ebook-card__cover.is-paid-download,
.wdts-ebook-cover.is-paid,
.wdts-ebook-cover.is-paid-download,
.wdts-ebook-related-card__cover.is-paid,
.wdts-ebook-related-card__cover.is-paid-download,
.wdts-ebook-mini-card__cover.is-paid-download,
.wdts-ebook-mini-card__cover.is-paid {
	background: linear-gradient(135deg, #dbc8a7 0%, #c39f62 100%);
}

.wdts-ebook-card__cover.is-free,
.wdts-ebook-card__cover.is-login-read,
.wdts-ebook-card__cover.is-form-read,
.wdts-ebook-cover.is-free,
.wdts-ebook-cover.is-login-read,
.wdts-ebook-cover.is-form-read,
.wdts-ebook-related-card__cover.is-free,
.wdts-ebook-related-card__cover.is-login-read,
.wdts-ebook-related-card__cover.is-form-read,
.wdts-ebook-mini-card__cover.is-login-read,
.wdts-ebook-mini-card__cover.is-form-read,
.wdts-ebook-mini-card__cover.is-free {
	background: linear-gradient(135deg, #e8ddd0 0%, #d4c5b0 100%);
}

.wdts-ebook-card__cover img,
.wdts-ebook-cover img,
.wdts-ebook-related-card__cover img,
.wdts-ebook-mini-card__cover img {
	display: block;
	width: 100%;
	max-width: 240px;
	border-radius: 8px;
	box-shadow: 10px 16px 32px rgba(0, 0, 0, 0.18);
	object-fit: cover;
}

.wdts-ebook-card__mock,
.wdts-ebook-cover__mock {
	display: flex;
	width: 100%;
	max-width: 260px;
	min-height: 320px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 10px 16px 32px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.wdts-ebook-card__icon,
.wdts-ebook-cover__icon {
	font-size: 2.8rem;
}

.wdts-ebook-card__mock-title,
.wdts-ebook-cover__mock h2 {
	margin-top: 14px;
	font-family: "Noto Serif TC", serif;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--wdts-ebook-primary-dark);
}

.wdts-ebook-cover__mock p {
	margin: 10px 0 0;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 24px 26px !important;
}

.wdts-ebook-card__topline,
.wdts-ebook-meta,
.wdts-ebook-inline-links,
.wdts-ebook-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wdts-ebook-card__topline {
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 6px;
}

.wdts-ebook-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content !important;
	max-width: max-content !important;
	padding: 8px 16px !important;
	border-radius: var(--wdts-ebook-radius-pill);
	font-size: 0.78rem !important;
	line-height: 1 !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	flex: 0 0 auto !important;
}

.wdts-ebook-badge.is-free,
.wdts-ebook-badge.is-login-read,
.wdts-ebook-badge.is-form-read {
	background: var(--wdts-ebook-green-soft);
	color: var(--wdts-ebook-green);
}

.wdts-ebook-badge.is-paid,
.wdts-ebook-badge.is-paid-download {
	background: #f7ecd8;
	color: var(--wdts-ebook-gold-dark);
}

.wdts-ebook-card__subtitle,
.wdts-ebook-meta,
.wdts-ebook-reader__toolbar p,
.wdts-ebook-copy,
.wdts-ebook-inline-links a,
.wdts-ebook-mini-card__body span,
.wdts-ebook-related-card__body span,
.wdts-ebook-sidebar-meta span {
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-card__title {
	margin: 12px 0 10px;
	font-size: 1.34rem !important;
	line-height: 1.58 !important;
}

.wdts-ebook-card__title a,
.wdts-ebook-related-card__body,
.wdts-ebook-mini-card__body {
	color: var(--wdts-ebook-ink);
	text-decoration: none;
}

.wdts-ebook-card__subtitle {
	margin: 0 0 12px;
	line-height: 1.8;
}

.wdts-ebook-card__meta {
	margin-bottom: 18px;
	font-size: 0.92rem !important;
	line-height: 1.6 !important;
}

.wdts-ebook-card__summary {
	margin: 0 0 18px !important;
	font-size: 0.98rem !important;
	line-height: 1.9 !important;
	color: var(--wdts-ebook-text-soft) !important;
}

.wdts-ebook-card__footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin-top: auto !important;
	padding-top: 18px !important;
	border-top: 1px solid var(--wdts-ebook-border) !important;
}

.wdts-ebook-card__access-copy {
	display: flex !important;
	align-items: center !important;
	min-height: 44px !important;
}

.wdts-ebook-card__free-copy {
	font-size: 1.12rem !important;
	font-weight: 700 !important;
	color: var(--wdts-ebook-green) !important;
}

.wdts-ebook-card__price {
	margin-bottom: 0 !important;
	font-family: "Noto Serif TC", serif;
	font-size: 1.28rem !important;
	color: var(--wdts-ebook-gold-dark) !important;
}

.wdts-ebook-primary-link {
	background: var(--wdts-ebook-primary);
	padding: 12px 20px !important;
	color: #fff !important;
	font-size: 0.98rem !important;
	min-height: 44px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

.wdts-ebook-primary-link:hover {
	background: var(--wdts-ebook-primary-dark);
	color: #fff;
}

.wdts-ebook-secondary-link {
	border: 1px solid var(--wdts-ebook-primary);
	padding: 12px 20px !important;
	color: var(--wdts-ebook-primary) !important;
	background: transparent !important;
	font-size: 0.98rem !important;
	min-height: 44px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}

.wdts-ebook-secondary-link:hover {
	background: var(--wdts-ebook-primary);
	color: #fff;
}

.wdts-ebook-empty {
	grid-column: 1 / -1;
	padding: 32px;
	text-align: center;
}

.wdts-ebook-empty p {
	margin: 12px 0 0;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 20px;
	font-size: 0.9rem;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-breadcrumb a {
	color: var(--wdts-ebook-primary);
	text-decoration: none;
}

.wdts-ebook-detail {
	display: grid;
	grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.wdts-ebook-page--reader .wdts-ebook-shell {
	max-width: 1280px;
}

.wdts-ebook-reader {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.wdts-ebook-detail__visual,
.wdts-ebook-reader__sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
}

.wdts-ebook-price-panel,
.wdts-ebook-status-panel,
.wdts-ebook-notice,
.wdts-ebook-panel,
.wdts-ebook-purchase-summary,
.wdts-ebook-reader__viewer {
	padding: 24px;
	box-shadow: var(--wdts-ebook-shadow);
}

.wdts-ebook-status-panel {
	margin-top: 18px;
	border-color: #cfe8d6;
	background: var(--wdts-ebook-green-soft);
	color: var(--wdts-ebook-green);
	font-weight: 700;
	text-align: center;
}

.wdts-ebook-status-panel.is-free,
.wdts-ebook-status-panel.is-login-read,
.wdts-ebook-status-panel.is-form-read {
	letter-spacing: 0.03em;
}

.wdts-ebook-price-panel {
	margin-top: 18px;
	background: #faf0dc;
	border-color: #ecd39c;
	text-align: center;
}

.wdts-ebook-price-panel__label {
	font-size: 0.82rem;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-price-panel__amount {
	margin-top: 6px;
	font-family: "Noto Serif TC", serif;
	font-size: 1.7rem;
	color: var(--wdts-ebook-gold-dark);
}

.wdts-ebook-detail__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wdts-ebook-detail__header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 8px !important;
}

.wdts-ebook-detail__header .wdts-ebook-badge {
	align-self: flex-start !important;
	margin-bottom: 0 !important;
}

.wdts-ebook-detail__header h1,
.wdts-ebook-reader__toolbar h1 {
	font-size: clamp(2.15rem, 3.3vw, 2.9rem) !important;
	line-height: 1.45 !important;
}

.wdts-ebook-reader__toolbar p {
	margin: 14px 0 0;
	font-size: 1rem;
}

.wdts-ebook-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 2px;
	font-size: 0.93rem;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.wdts-ebook-notice {
	background: #fff6e9;
	border-color: #f4d6a6;
	color: #8a5b17;
}

.wdts-ebook-copy {
	padding-top: 2px;
	padding-bottom: 4px;
	line-height: 1.95;
	font-size: 1rem;
	color: var(--wdts-ebook-text);
}

.wdts-ebook-copy__editor > *:first-child {
	margin-top: 0;
}

.wdts-ebook-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	background: var(--wdts-ebook-surface-soft);
}

.wdts-ebook-panel--highlights {
	background: var(--wdts-ebook-surface-soft);
}

.wdts-ebook-panel--highlights.is-free,
.wdts-ebook-panel--highlights.is-login-read,
.wdts-ebook-panel--highlights.is-form-read {
	border-color: #d7eadf;
}

.wdts-ebook-panel--highlights.is-paid,
.wdts-ebook-panel--highlights.is-paid-download {
	border-color: #ecd39c;
	background: #fffaf0;
}

.wdts-ebook-panel--highlights.is-paid .wdts-ebook-list li::before,
.wdts-ebook-panel--highlights.is-paid-download .wdts-ebook-list li::before {
	color: var(--wdts-ebook-gold);
}

.wdts-ebook-panel--cta {
	background: linear-gradient(180deg, #fff, #f8fafc);
}

.wdts-ebook-panel--cta.is-free,
.wdts-ebook-panel--cta.is-login-read,
.wdts-ebook-panel--cta.is-form-read {
	border-color: #bfe2c7;
	background: linear-gradient(180deg, #fff, #f3fbf5);
}

.wdts-ebook-panel--cta.is-paid,
.wdts-ebook-panel--cta.is-paid-download {
	border-color: #efd39b;
	background: linear-gradient(180deg, #fff, #fff8ec);
}

.wdts-ebook-panel--cta.is-access-granted {
	border-color: #cfe6da;
	background: linear-gradient(180deg, #fff, #f4fbf7);
}

.wdts-ebook-panel h2 {
	font-size: 1.08rem !important;
	line-height: 1.45 !important;
}

.wdts-ebook-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wdts-ebook-list li {
	position: relative;
	padding-left: 30px;
	line-height: 1.85;
}

.wdts-ebook-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wdts-ebook-green);
	font-weight: 700;
}

.wdts-ebook-purchase-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: #faf0dc;
	border-color: #ecd39c;
}

.wdts-ebook-purchase-summary__label {
	font-size: 0.82rem;
	color: var(--wdts-ebook-text-soft);
}

.wdts-ebook-purchase-summary__title {
	margin-top: 4px;
	font-weight: 700;
	color: var(--wdts-ebook-ink);
}

.wdts-ebook-purchase-summary__price {
	font-family: "Noto Serif TC", serif;
	font-size: 1.38rem;
	color: var(--wdts-ebook-gold-dark);
}

.wdts-ebook-inline-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	font-size: 0.9rem;
}

.wdts-ebook-inline-links a {
	text-decoration: none;
}

.wdts-ebook-related-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wdts-ebook-related-card,
.wdts-ebook-mini-card {
	display: flex;
	gap: 14px;
	padding: 12px;
	text-decoration: none;
}

.wdts-ebook-related-card__cover,
.wdts-ebook-mini-card__cover {
	display: flex;
	width: 72px;
	height: 96px;
	flex: 0 0 72px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	overflow: hidden;
	font-size: 1.5rem;
}

.wdts-ebook-related-card__cover img,
.wdts-ebook-mini-card__cover img {
	max-width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: none;
}

.wdts-ebook-related-card__body,
.wdts-ebook-mini-card__body {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.wdts-ebook-reader__main {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 20px;
}

.wdts-ebook-reader__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px !important;
}

.wdts-ebook-reader__toolbar h1 {
	font-size: clamp(2.2rem, 3.5vw, 3.2rem) !important;
	line-height: 1.18 !important;
}

.wdts-ebook-reader__viewer {
	padding: 0;
	overflow: hidden;
}

.wdts-ebook-reader__sidebar {
	width: 100%;
	max-width: 340px;
	justify-self: end;
}

.wdts-ebook-reader__viewer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px;
	background: #2f3842;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.88rem;
}

.wdts-ebook-reader__viewer-body {
	min-height: clamp(560px, 76vh, 980px);
	background: #4f565d;
}

.wdts-ebook-reader__viewer-body .pdfemb-viewer {
	width: 100% !important;
	max-width: 100% !important;
	min-height: clamp(560px, 76vh, 980px) !important;
	margin: 0 !important;
	border: 0 !important;
	background: #4f565d !important;
	box-shadow: none !important;
}

.wdts-ebook-reader__viewer-body .pdfemb-toolbar {
	background: #3e444b !important;
}

.wdts-ebook-reader__viewer-body .pdfemb-toolbar div,
.wdts-ebook-reader__viewer-body .pdfemb-toolbar button,
.wdts-ebook-reader__viewer-body .pdfemb-toolbar button[disabled] {
	font-size: 0.96rem !important;
}

.wdts-ebook-reader__viewer-body .pdfemb-pagescontainer {
	background: #4f565d !important;
}

.wdts-ebook-reader__viewer-body .pdfemb-download {
	display: none !important;
}

.wdts-ebook-reader__viewer-body iframe {
	display: block;
	width: 100%;
	min-height: clamp(560px, 76vh, 980px);
	border: 0;
	background: #4f565d;
}

.wdts-ebook-sidebar-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wdts-ebook-sidebar-meta div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.wdts-ebook-sidebar-meta strong {
	color: var(--wdts-ebook-ink);
	font-size: 1rem;
}

.wdts-ebook-mini-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wdts-ebook-form-shell.is-submitting {
	opacity: 0.78;
}

.wdts-ebook-form-shell .fluentform {
	margin-top: 6px;
}

.wdts-ebook-form-shell .ff-el-group {
	margin-bottom: 16px;
}

.wdts-ebook-form-shell .ff-el-input--label label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wdts-ebook-ink);
}

.wdts-ebook-form-shell .ff-el-form-control {
	min-height: 48px;
	border: 1px solid var(--wdts-ebook-border);
	border-radius: 12px;
	background: #fff;
	color: var(--wdts-ebook-text);
}

.wdts-ebook-form-shell textarea.ff-el-form-control {
	min-height: 140px;
}

.wdts-ebook-form-shell .ff-btn-submit {
	width: 100%;
	min-height: 46px !important;
	border-radius: var(--wdts-ebook-radius-pill);
	background: var(--wdts-ebook-green);
	border-color: var(--wdts-ebook-green);
	font-weight: 700;
	font-size: 0.96rem !important;
	padding: 10px 18px !important;
}

.wdts-ebook-form-shell .ff-btn-submit:hover {
	background: #104f25;
	border-color: #104f25;
}

.wdts-ebook-form-shell .ff-message-success {
	margin-top: 16px;
	border-radius: 14px;
	border-color: #bfe2c7;
	background: var(--wdts-ebook-green-soft);
	color: var(--wdts-ebook-green);
}

@media (max-width: 1024px) {
	.wdts-ebook-grid,
	.wdts-ebook-related-grid,
	.wdts-ebook-detail,
	.wdts-ebook-reader {
		grid-template-columns: 1fr;
	}

	.wdts-ebook-detail__visual,
	.wdts-ebook-reader__sidebar {
		position: static;
	}

	.wdts-ebook-reader__sidebar {
		max-width: none;
		justify-self: stretch;
	}

	.wdts-ebook-card__cover,
	.wdts-ebook-cover {
		min-height: 280px;
	}

	.wdts-ebook-reader__toolbar h1 {
		font-size: clamp(1.9rem, 4vw, 2.45rem);
	}
}

@media (max-width: 767px) {
	.wdts-ebook-shell,
	.wdts-ebook-browse {
		padding-right: 16px;
		padding-left: 16px;
	}

	.wdts-ebook-hero__inner {
		padding: 56px 20px;
	}

	.wdts-ebook-hero__title {
		font-size: 2rem;
		letter-spacing: 0.08em;
	}

	.wdts-ebook-hero__kicker {
		font-size: 0.92rem;
		letter-spacing: 0.2em;
	}

	.wdts-ebook-hero__subtitle {
		font-size: 0.96rem;
		line-height: 1.9;
	}

	.wdts-ebook-hero__badges {
		gap: 10px;
	}

	.wdts-ebook-hero__badge {
		padding: 9px 18px;
		font-size: 0.8rem;
	}

	.wdts-ebook-hero__deco--2,
	.wdts-ebook-hero__deco--line {
		display: none;
	}

	.wdts-ebook-grid,
	.wdts-ebook-related-grid {
		gap: 18px;
	}

	.wdts-ebook-detail {
		gap: 32px;
	}

	.wdts-ebook-detail__header h1 {
		font-size: 2rem;
		line-height: 1.42;
	}

	.wdts-ebook-meta {
		gap: 10px 14px;
	}

	.wdts-ebook-meta__item {
		white-space: normal;
	}

	.wdts-ebook-card__body,
	.wdts-ebook-price-panel,
	.wdts-ebook-status-panel,
	.wdts-ebook-notice,
	.wdts-ebook-panel,
	.wdts-ebook-purchase-summary {
		padding: 18px;
	}

	.wdts-ebook-card__footer {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.wdts-ebook-card__topline,
	.wdts-ebook-browse__controls,
	.wdts-ebook-reader__toolbar,
	.wdts-ebook-purchase-summary,
	.wdts-ebook-sidebar-meta div {
		flex-direction: column;
		align-items: flex-start;
	}

	.wdts-ebook-actions,
	.wdts-ebook-inline-links {
		flex-direction: column;
		align-items: stretch;
	}

	.wdts-ebook-primary-link,
	.wdts-ebook-secondary-link {
		width: 100%;
		font-size: 0.94rem !important;
		min-height: 42px !important;
	}

	.wdts-ebook-badge {
		font-size: 0.74rem !important;
		padding: 7px 14px !important;
	}

	.wdts-ebook-detail__header h1 {
		font-size: 2rem;
		line-height: 1.38;
	}

	.wdts-ebook-reader__toolbar h1 {
		font-size: 1.8rem;
	}

	.wdts-ebook-reader__sidebar {
		max-width: none;
	}

	.wdts-ebook-related-card,
	.wdts-ebook-mini-card {
		align-items: center;
	}
}
