.tx-config { display: grid; gap: 1.25rem; width: 100%; margin-bottom: 1.5rem; }
.tx-preview {
	display: grid; place-items: center; min-height: 9rem; padding: 1rem;
	border-radius: .75rem; background: #f5f5f4; border: 1px solid rgba(12, 10, 9, .15); overflow: hidden;
}
.tx-preview__text {
	font: 500 clamp(2.2rem, 6vw, 3.5rem)/1.1 "EB Garamond", Georgia, serif; text-align: center; overflow-wrap: anywhere;
	background: repeating-linear-gradient(0deg, var(--tx-color) 0 3px, color-mix(in srgb, var(--tx-color) 82%, #000) 3px 4px);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	-webkit-text-stroke: 1px rgba(12, 10, 9, .2);
}
.tx-field { margin: 0; display: grid; gap: .4rem; border: 0; padding: 0; }
p.tx-field > label, .tx-field legend { font-weight: 700; padding: 0; margin-bottom: .1rem; }
.tx-field input[type="text"] {
	width: 100%; padding: .8rem 1rem; font: inherit; border: 1px solid rgba(12, 10, 9, .35); border-radius: 99px; background: #fff;
}
.tx-field textarea { width: 100%; padding: .8rem 1rem; font: inherit; border: 1px solid rgba(12, 10, 9, .35); border-radius: .75rem; background: #fff; resize: vertical; }
.tx-field small { color: #57534e; }
.tx-colors { display: flex; flex-wrap: wrap; gap: .5rem; }
.tx-colors legend { margin-bottom: .5rem; }
.tx-swatch {
	position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem .4rem .45rem;
	border: 1px solid rgba(12, 10, 9, .25); border-radius: 99px; font-weight: 500 !important; cursor: pointer; background: #fff;
}
.tx-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tx-swatch__dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.tx-swatch:has(input:checked) { border-color: #0c0a09; box-shadow: inset 0 0 0 1px #0c0a09; }
.tx-swatch:has(input:focus-visible) { outline: 2px solid #0c0a09; outline-offset: 2px; }
.tx-swatch.is-out { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.tx-swatch.is-out input { cursor: not-allowed; }
.tx-swatch.is-out .tx-swatch__dot { filter: grayscale(.75); }
