.wccto-panel {
	margin: 1.25rem 0;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	background: rgba(0, 0, 0, 0.025);
	border-radius: 8px;
	background: color-mix(in srgb, Canvas 96%, currentColor 4%);
	color: inherit;
	font: inherit;
}

.wccto-panel-header {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 0.9rem;
}

.wccto-title {
	display: block;
	color: inherit;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
}

.wccto-price {
	display: inline-flex;
	align-items: center;
	min-height: 1.8rem;
	padding: 0.25rem 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	background: color-mix(in srgb, Canvas 88%, currentColor 12%);
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	font-weight: 700;
	white-space: nowrap;
}

.wccto-price-free {
	opacity: 0.82;
}

.wccto-description {
	margin: 0.3rem 0 0;
	color: inherit;
	font: inherit;
	font-size: 0.925em;
	opacity: 0.75;
}

.wccto-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.7fr);
	gap: 0.8rem;
}

.wccto-control label,
.wccto-control-label {
	display: block;
	margin-bottom: 0.35rem;
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	font-weight: 650;
}

.wccto-control input[type="text"],
.wccto-control select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 2.6rem;
	color: inherit;
	font: inherit;
}

.wccto-font-control {
	grid-column: 1 / -1;
}

.wccto-font-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1.1rem;
}

.wccto-font-option {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	width: auto;
	padding: 0.35rem 0.15rem 0.45rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 1.15;
	overflow: hidden;
	text-align: center;
	transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.wccto-font-option:hover,
.wccto-font-option:focus {
	opacity: 0.72;
	outline: none;
}

.wccto-font-option.is-selected {
	color: inherit;
	opacity: 1;
	-webkit-text-stroke: 0.35px currentColor;
	text-shadow: 0 0 0 currentColor;
}

.wccto-font-option.is-selected::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.wccto-font-sample {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-size: 0.95rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wccto-preview {
	margin-top: 0.9rem;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 8px;
	background: #ffffff;
	background:
		linear-gradient(135deg, color-mix(in srgb, Canvas 92%, currentColor 8%), Canvas 62%),
		Canvas;
}

.wccto-preview-meta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	color: inherit;
	font: inherit;
	font-size: 0.82em;
	font-weight: 650;
	opacity: 0.78;
}

.wccto-preview-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 92px;
	padding: 1rem;
	text-align: center;
}

.wccto-preview-text {
	display: block;
	max-width: 100%;
	color: #111111;
	font-size: clamp(1.5rem, 8vw, 2.8rem);
	font-weight: 700;
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

@media (max-width: 640px) {
	.wccto-panel {
		padding: 0.85rem;
	}

	.wccto-panel-header,
	.wccto-preview-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.4rem;
	}

	.wccto-grid {
		grid-template-columns: 1fr;
	}
}
