/*
 * Notes to Erin: the card under a note and its pop-up. Rose, like the
 * Masterclass waitlist card. The dialog moves to <body>, so it is styled on
 * its own class, not under .fpl-erin.
 */

.fpl-letter {
	padding: 0 clamp(20px, 5vw, 64px) 44px;
}
.fpl-letter *,
.fpl-letter-dialog,
.fpl-letter-dialog * {
	box-sizing: border-box;
}
.fpl-letter [hidden],
.fpl-letter-dialog [hidden] {
	display: none !important;
}
.fpl-letter__card {
	max-width: 680px;
	margin: 0 auto;
	background: linear-gradient(160deg, #f4e6e1, #eed8d1);
	color: #5c4247;
	border-radius: 8px;
	padding: 30px clamp(22px, 4vw, 38px);
	box-shadow: 0 12px 30px rgba(58, 47, 36, 0.12);
	text-align: center;
}
.fpl-letter__kicker {
	margin: 0;
	font-weight: 700;
	letter-spacing: 3px;
	font-size: 12.5px;
	color: #a05c66;
}
.fpl-erin .fpl-letter__heading {
	font-family: "Caveat", "Bradley Hand", cursive;
	font-weight: 700;
	font-size: clamp(32px, 4vw, 40px);
	line-height: 1.1;
	letter-spacing: 0;
	margin: 6px 0 8px;
	color: #4a343a;
	transform: rotate(-1deg);
}
.fpl-letter__text {
	margin: 0 auto 20px;
	max-width: 480px;
	font-size: 15.5px;
	line-height: 1.6;
	color: #6d5054;
}
.fpl-letter__open,
.fpl-letter-dialog__submit {
	display: inline-block;
	font-family: "Figtree", sans-serif;
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13.5px;
	line-height: 1.2;
	padding: 14px 26px;
	border: 0;
	border-radius: 6px;
	background: #a05c66;
	color: #fffdf7;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}
.fpl-letter__open:hover,
.fpl-letter-dialog__submit:hover {
	background: #8a4a54;
	color: #fffdf7;
}
.fpl-letter-dialog__submit[disabled] {
	opacity: 0.65;
	cursor: wait;
}
.fpl-letter__done {
	margin: 0;
	font-family: "Caveat", "Bradley Hand", cursive;
	font-size: 26px;
	color: #a05c66;
}

/* Pop-up */
.fpl-letter-dialog {
	width: calc(100% - 32px);
	max-width: 480px;
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #fffdf7;
	color: #3a2f24;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	text-align: left;
	overflow: auto;
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
.fpl-letter-dialog::backdrop {
	background: rgba(28, 21, 16, 0.62);
}
.fpl-letter-dialog.is-fallback {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: block;
	box-shadow: 0 0 0 100vmax rgba(28, 21, 16, 0.62), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.fpl-letter-dialog__box {
	position: relative;
	padding: 28px clamp(20px, 4vw, 36px) 30px;
}
.fpl-letter-dialog__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: none;
	border: 0;
	border-radius: 50%;
	padding: 0;
	margin: 0;
	color: #7a6248;
}
.fpl-letter-dialog__close:hover {
	background: rgba(122, 98, 72, 0.1);
	color: #3a2f24;
}
.fpl-letter-dialog__hand {
	font-family: "Caveat", "Bradley Hand", cursive;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.1;
	color: #a05c66;
	margin: 0 34px 0 0;
	transform: rotate(-1deg);
	text-transform: none;
	letter-spacing: 0;
}
.fpl-letter-dialog__text {
	font-size: 14px;
	line-height: 1.6;
	color: #6d5054;
	margin: 6px 0 16px;
}
.fpl-letter-dialog__form {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.fpl-letter__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6d5054;
	margin: 0 0 6px;
}
.fpl-letter__label span {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.fpl-letter__input {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	padding: 11px 13px;
	border: 2px solid #e5cdc7;
	border-radius: 8px;
	background: #fff;
	color: #3a2f24;
	box-shadow: none;
}
.fpl-letter__input:focus {
	outline: none;
	border-color: #a05c66;
}
.fpl-letter__input[aria-invalid="true"] {
	border-color: #b32d2e;
}
.fpl-letter__textarea {
	resize: vertical;
	min-height: 130px;
}
.fpl-letter__fine {
	margin: -6px 0 12px;
	font-size: 12.5px;
	color: #8a7270;
}
.fpl-letter__human:not(:empty) {
	margin: 0 0 12px;
}
.fpl-letter-dialog__error {
	margin: 0 0 10px;
	font-size: 14px;
	color: #b32d2e;
}
.fpl-letter-dialog__error:empty {
	display: none;
}
.fpl-letter-dialog button:focus-visible,
.fpl-letter__open:focus-visible {
	outline: 3px solid #a05c66;
	outline-offset: 2px;
}
.fpl-letter__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
