.warhammer-read-text {
	--wrt-inset: 10px;
	--wrt-panel-background: #fff;
	--wrt-panel-radius: 10px;
	margin: 26px auto 30px;
	max-width: 420px;
	text-align: center;
}

.warhammer-read-text__frame {
	position: relative;
	display: block;
	line-height: 0;
}

.warhammer-read-text__frame > img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.warhammer-read-text__overlay {
	position: absolute;
	inset: var(--wrt-inset);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.warhammer-read-text.is-open .warhammer-read-text__overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.warhammer-read-text__overlay-inner {
	position: relative;
	display: flex;
	max-height: 100%;
	min-height: 0;
}

.warhammer-read-text__copy {
	width: 100%;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 22px 14px 14px;
	border-radius: var(--wrt-panel-radius);
	background: var(--wrt-panel-background);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
	color: #1a1a1a;
	font-size: 12.5px;
	line-height: 1.75;
	text-align: left;
	-webkit-overflow-scrolling: touch;
	user-select: text;
}

.warhammer-read-text__copy > :first-child {
	margin-top: 0;
}

.warhammer-read-text__copy > :last-child {
	margin-bottom: 0;
}

/* Elementor's kit rule `.elementor-kit-N button` (0-1-1) sets background-color,
   color, border-radius and padding, and beats a single-class plugin rule (0-1-0).
   Every button rule below is scoped to the widget root to reach 0-2-0, and the
   interactive states to 0-3-0 so they clear `.elementor-kit-N button:hover` (0-2-1).
   The four kit-owned properties are restated explicitly; omitting one lets it
   through (a 22px close button inherited `padding: 16px 24px` and rendered 50x34). */

.warhammer-read-text .warhammer-read-text__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-width: 0;
	padding: 0;
	border: 1px solid #999;
	border-radius: 999px;
	background-color: #fff;
	color: #333;
	box-shadow: none;
	line-height: 0;
	cursor: pointer;
}

.warhammer-read-text .warhammer-read-text__close:hover,
.warhammer-read-text .warhammer-read-text__close:focus {
	border-color: #fbca1b;
	background-color: #fbca1b;
	color: #1a1a1a;
}

.warhammer-read-text .warhammer-read-text__close svg {
	width: 9px;
	height: 9px;
}

.warhammer-read-text .warhammer-read-text__trigger {
	display: inline-block;
	min-width: 0;
	margin-top: 10px;
	padding: 2px 12px;
	border: 1px solid #d1d5d9;
	border-radius: 3px;
	background-color: #fff;
	color: #1a1a1a;
	box-shadow: none;
	font-family: Bitter, serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.warhammer-read-text .warhammer-read-text__trigger:hover,
.warhammer-read-text .warhammer-read-text__trigger:focus,
.warhammer-read-text .warhammer-read-text__trigger[aria-expanded="true"] {
	border-color: #fbca1b;
	background-color: #fbca1b;
	color: #1a1a1a;
}

.warhammer-read-text .warhammer-read-text__trigger:focus-visible,
.warhammer-read-text .warhammer-read-text__close:focus-visible,
.warhammer-read-text .warhammer-read-text__copy:focus-visible {
	outline: 2px solid #0b63ce;
	outline-offset: 2px;
	box-shadow: none;
}

.warhammer-read-text__placeholder {
	padding: 24px;
	border: 1px dashed #b7bcc2;
	background: #f7f7f7;
	color: #555;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.warhammer-read-text__overlay,
	.warhammer-read-text .warhammer-read-text__trigger {
		transition: none;
	}
}

