/*!
 * Products For Home — the waitlist (PFH_Widgets_Waitlist).
 *
 * A sold-out product's button, in the place and the colours of the cart
 * button it stands in for, and the small form it opens: a centred card over
 * a dimmed page, a bottom sheet on a phone. The form is moved to the end of
 * the page when it opens, so its rules do not depend on where it was drawn.
 */

.pfh-wl,
.pfh-wl__modal {
	--pfh-wl-accent: var(--pfh-pdp-accent, var(--pfh-bc-button, #557f82));
	--pfh-wl-ink: var(--pfh-pdp-accent-ink, var(--pfh-bc-button-ink, #ffffff));
	--pfh-wl-radius: var(--pfh-pdp-radius, 8px);

	font-family: var(--pfh-font);
}

.pfh-wl { margin-top: 16px; }

.pfh-bcart .pfh-wl { margin-top: 0; }

.pfh-wl .pfh-wl__open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	padding: 12px 24px;
	border: 1px solid var(--pfh-wl-accent);
	border-radius: var(--pfh-wl-radius);
	background: transparent;
	color: var(--pfh-wl-accent);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.pfh-wl .pfh-wl__open:hover,
.pfh-wl .pfh-wl__open:focus-visible {
	background: var(--pfh-wl-accent);
	color: var(--pfh-wl-ink);
}

.pfh-wl .pfh-wl__bell {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.pfh-wl.is-joined .pfh-wl__open {
	border-color: transparent;
	background: rgba(85, 127, 130, .1);
	color: var(--pfh-wl-accent);
	cursor: default;
}

/* ---------- the form ---------- */

.pfh-wl__modal {
	position: fixed;
	inset: 0;
	/* Over everything, the WebwinkelKeur badge (99980) included: it is a
	   dialog, and the badge sat on the email field on a phone. */
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.pfh-wl__modal[hidden] { display: none; }

.pfh-wl__scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 27, .45);
	animation: pfh-wl-fade .2s ease;
}

.pfh-wl__modal .pfh-wl__panel {
	position: relative;
	display: grid;
	gap: 14px;
	width: min(100%, 440px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	margin: 0;
	padding: 32px 28px 28px;
	border-radius: 16px;
	background: #ffffff;
	color: var(--pfh-ink, #14181b);
	box-shadow: 0 24px 60px rgba(20, 24, 27, .22);
	animation: pfh-wl-rise .24s var(--pfh-ease, ease);
}

.pfh-wl__modal .pfh-wl__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.pfh-wl__modal .pfh-wl__close:hover { background: #f4f4f4; }
.pfh-wl__modal .pfh-wl__close svg { width: 20px; height: 20px; }

.pfh-wl__modal .pfh-wl__eyebrow {
	margin: 0;
	padding-right: 32px;
	color: var(--pfh-wl-accent);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.pfh-wl__modal .pfh-wl__title {
	margin: 0;
	color: inherit;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.pfh-wl__modal .pfh-wl__lede {
	margin: 0;
	color: #5c6560;
	font-size: 14px;
	line-height: 1.6;
}

.pfh-wl__field {
	display: grid;
	gap: 6px;
	margin-top: 4px;
}

.pfh-wl__modal .pfh-wl__label {
	color: #14181b;
	font-size: 13px;
	font-weight: 500;
}

.pfh-wl__modal .pfh-wl__field input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid rgba(20, 24, 27, .18);
	border-radius: var(--pfh-wl-radius);
	background: #ffffff;
	color: #14181b;
	font-family: inherit;
	font-size: 16px;
	box-shadow: none;
}

.pfh-wl__modal .pfh-wl__field input:focus {
	border-color: var(--pfh-wl-accent);
	outline: 2px solid rgba(85, 127, 130, .25);
	outline-offset: 0;
}

/* Out of sight and out of reach: only a script fills it in. */
.pfh-wl__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pfh-wl__modal .pfh-wl__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #3d4541;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}

.pfh-wl__modal .pfh-wl__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--pfh-wl-accent);
}

.pfh-wl__modal .pfh-wl__submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 4px;
	padding: 12px 24px;
	overflow: hidden;
	border: 0;
	border-radius: var(--pfh-wl-radius);
	background: var(--pfh-wl-accent);
	color: var(--pfh-wl-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: filter .18s ease;
}

.pfh-wl__modal .pfh-wl__submit:hover { filter: brightness(.94); }

.pfh-wl__submit-label { transition: opacity .18s ease; }

.pfh-wl__spin {
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	opacity: 0;
}

.pfh-wl__panel.is-busy .pfh-wl__submit { cursor: progress; }
.pfh-wl__panel.is-busy .pfh-wl__submit-label { opacity: 0; }
.pfh-wl__panel.is-busy .pfh-wl__spin { opacity: 1; animation: pfh-wl-spin .7s linear infinite; }

.pfh-wl__modal .pfh-wl__message {
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--pfh-wl-radius);
	background: #fbeeee;
	color: #8a2b2b;
	font-size: 13px;
	line-height: 1.5;
}

.pfh-wl__modal .pfh-wl__message.is-ok {
	background: rgba(85, 127, 130, .12);
	color: #2f5154;
}

/* After joining, the form gives way to the confirmation. */
.pfh-wl__panel.is-done .pfh-wl__field,
.pfh-wl__panel.is-done .pfh-wl__consent,
.pfh-wl__panel.is-done .pfh-wl__submit,
.pfh-wl__panel.is-done .pfh-wl__lede { display: none; }

@keyframes pfh-wl-spin { to { transform: rotate(360deg); } }
@keyframes pfh-wl-fade { from { opacity: 0; } }
@keyframes pfh-wl-rise { from { opacity: 0; transform: translateY(12px); } }

/* A bottom sheet on a phone, where the keyboard comes up under it. */
@media (max-width: 575px) {
	.pfh-wl__modal {
		place-items: end center;
		padding: 0;
	}

	.pfh-wl__modal .pfh-wl__panel {
		width: 100%;
		max-height: 92dvh;
		padding: 28px 20px calc(20px + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
	}

	.pfh-wl__modal .pfh-wl__title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.pfh-wl__scrim,
	.pfh-wl__modal .pfh-wl__panel { animation: none; }
}

/* ---------- My Account ---------- */

.pfh-wl-list__lede { margin: 0 0 16px; }

.pfh-wl-list__items {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfh-wl-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding: 12px 16px;
	border: 1px solid rgba(20, 24, 27, .1);
	border-radius: 10px;
}

.pfh-wl-list__item a { flex: 1 1 200px; font-weight: 500; }

.pfh-wl-list__date {
	color: #5c6560;
	font-size: 13px;
}

.pfh-wl-list .pfh-wl-list__leave {
	padding: 6px 12px;
	border: 1px solid rgba(20, 24, 27, .16);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.pfh-wl-list .pfh-wl-list__leave:hover { border-color: #8a2b2b; color: #8a2b2b; }
