.wpctt-content {
	box-sizing: border-box;
}

.wpctt-content-inner.wpctt-is-clamped {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--wpctt-line-limit, 3);
}

.wpctt-character-preview[hidden],
.wpctt-line-preview[hidden],
.wpctt-content-inner[hidden],
.wpctt-toggle-text[hidden],
.wpctt-toggle-icon[hidden] {
	display: none !important;
}

.wpctt-toggle-row {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.4em;
}

.wpctt-toggle-row--left {
	text-align: left;
}

.wpctt-toggle-row--center {
	text-align: center;
}

.wpctt-toggle-row--right {
	text-align: right;
}

.wpctt-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	box-sizing: border-box;
	min-height: 0;
	margin: 0;
	padding: 0;
	position: relative;
	left: var(--wpctt-offset-x, 0);
	top: var(--wpctt-offset-y, 0);
	border-style: solid;
	border-radius: 3px;
	cursor: pointer;
	font-family: var(--wpctt-font);
	font-size: var(--wpctt-font-size);
	line-height: 1.35;
	transition-property: color, background-color, border-color, border-width, font-size;
	transition-duration: 160ms;
	transition-timing-function: ease;
}

.wpctt-toggle--inline {
	margin-inline-start: 0.3em;
	vertical-align: baseline;
}

.wpctt-toggle--button {
	padding: 0.55em 0.9em;
	border-width: var(--wpctt-border-width);
	border-color: var(--wpctt-border-color);
	background: var(--wpctt-background-color);
	color: var(--wpctt-color);
	text-decoration: none;
}

.wpctt-toggle--link {
	border: 0;
	background: transparent;
	color: var(--wpctt-color);
	text-decoration: var(--wpctt-text-decoration);
}

.wpctt-toggle:hover,
.wpctt-toggle:focus-visible {
	font-family: var(--wpctt-font-hover);
	font-size: var(--wpctt-font-size-hover);
	color: var(--wpctt-color-hover);
}

.wpctt-toggle--button:hover,
.wpctt-toggle--button:focus-visible {
	border-width: var(--wpctt-border-width-hover);
	border-color: var(--wpctt-border-color-hover);
	background: var(--wpctt-background-color-hover);
}

.wpctt-toggle--link:hover,
.wpctt-toggle--link:focus-visible {
	background: transparent;
	text-decoration: var(--wpctt-text-decoration-hover);
}

.wpctt-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wpctt-toggle-icon {
	display: inline-block;
	line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
	.wpctt-content,
	.wpctt-toggle {
		transition: none !important;
		animation: none !important;
	}
}
