/* Word of Life Personalization */
.wlps { --wlps-accent: #670769; --wlps-line: #e6d3e8; box-sizing: border-box; width: 100%; margin: 0 0 1.25rem; padding: 16px 18px; background: #fbf5fb; border: 1px solid var(--wlps-line); border-radius: 16px; }
.wlps *, .wlps *::before, .wlps *::after { box-sizing: border-box; }
.wlps-title { margin: 0 0 .75rem; font-weight: 700; color: var(--wlps-accent); font-style: normal; }
.wlps-field { margin: 0 0 .9rem; }
.wlps-field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .95rem; color: #2d3748; }
.wlps-req { color: #b42318; }
.wlps-field input, .wlps-field textarea { width: 100%; max-width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; font-style: normal; border: 1px solid #cfc3d1; border-radius: 10px; background: #fff; color: #2d3748; }
.wlps-field input:focus, .wlps-field textarea:focus { outline: 2px solid var(--wlps-accent); outline-offset: 1px; border-color: var(--wlps-accent); }
.wlps--checked .wlps-field input:invalid, .wlps--checked .wlps-field textarea:invalid { border-color: #b42318; background: #fff6f5; }
.wlps-count { display: block; margin-top: 3px; font-size: .8rem; color: #6b7280; min-height: 1em; }
.wlps-count.is-low { color: #b42318; }

.wlps-preview { margin-top: .5rem; }
.wlps-preview[hidden] { display: none !important; }
.wlps-preview__label { margin: 0 0 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--wlps-accent); }
.wlps-preview__stage { position: relative; max-width: 360px; container-type: inline-size; border-radius: 12px; overflow: hidden; border: 1px solid var(--wlps-line); background: #fff; }
.wlps-preview__stage img { display: block; width: 100%; height: auto; margin: 0; }
.wlps-preview__text {
	position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
	width: var(--tw, 86%); text-align: center; pointer-events: none;
	font-family: var(--font); color: var(--color); font-style: normal; line-height: 1.15;
}
.wlps-line1, .wlps-line2 { white-space: pre-line; }
.wlps-line1 { display: block; font-size: calc(var(--size) * 1cqw); overflow-wrap: normal; word-break: normal; }
.wlps-line2 { display: block; font-size: calc(var(--size) * var(--s2, .5) * 1cqw); margin-top: .2em; overflow-wrap: normal; font-family: var(--font2, var(--font)); color: var(--color2, var(--color)); }
.wlps-line2:empty { display: none; }
.wlps-preview__note { margin: 6px 0 0; font-size: .8rem; color: #6b7280; max-width: 360px; }

/* The theme sets line-height: 0 on text and form fields; give this box its own spacing. */
.wlps { line-height: 1.45; }
.wlps .wlps-title, .wlps .wlps-field label, .wlps .wlps-count, .wlps .wlps-preview__label, .wlps .wlps-preview__note { line-height: 1.4; }
.wlps .wlps-field input, .wlps .wlps-field textarea { line-height: 1.4; height: auto; min-height: 46px; padding: 10px 12px; box-sizing: border-box; }
.wlps .wlps-preview__text { line-height: 1.15; }

/* Line 2 on its own spot (e.g. a date below a printed line): same width and centre as line 1, its own height. */
.wlps .wlps-preview__text--2 { top: var(--y2); transform: translate(-50%, -50%); }
.wlps .wlps-preview__text--2 .wlps-line2 { margin-top: 0; }
