@font-face {
	font-family: "HMH GT Walsheim";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/GT-Walsheim-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "HMH GT Walsheim";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/GT-Walsheim-Medium.woff2") format("woff2");
}

@font-face {
	font-family: "HMH Clearface";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/wp-content/themes/homemadehomes/src/assets/fonts/3B107E_0_0.woff2") format("woff2");
}

:where(.hmh-alerts) {
	--hmh-alert-raspberry: #db365e;
	--hmh-alert-navy: #2e4066;
	--hmh-alert-yellow: #faeb89;
	--hmh-alert-ink: #201e28;
	--hmh-alert-white: #fff;
	--hmh-alert-surface: #f4f3f0;
	--hmh-alert-line: rgba(46, 64, 102, 0.25);
	--hmh-alert-serif: "HMH Clearface", "ClearfaceStd-Regular", "Clearface Std", Georgia, serif;
	--hmh-alert-sans: "HMH GT Walsheim", "GT Walsheim", Arial, sans-serif;
}

.hmh-alerts *,
.hmh-alerts *::before,
.hmh-alerts *::after {
	box-sizing: border-box;
}

/*
 * The Superchat launcher uses the same fixed bottom-right position. This
 * stylesheet is loaded only when an availability alert is rendered, so hide
 * Superchat on those pages and leave it untouched everywhere else.
 */
#superchat-widget-content-root {
	display: none !important;
}

.hmh-alerts__trigger {
	position: fixed;
	z-index: 99980;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	gap: 10px;
	border: 2px solid var(--hmh-alert-raspberry);
	border-radius: 999px;
	padding: 13px 22px;
	color: var(--hmh-alert-white);
	background: var(--hmh-alert-raspberry);
	box-shadow: 0 14px 34px rgba(32, 30, 40, 0.24);
	cursor: pointer;
	font-family: var(--hmh-alert-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hmh-alerts__trigger:hover,
.hmh-alerts__trigger:focus-visible {
	border-color: var(--hmh-alert-navy);
	background: var(--hmh-alert-navy);
	transform: translateY(-2px);
}

.hmh-alerts__trigger svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hmh-alerts__backdrop[hidden] {
	display: none !important;
}

.hmh-alerts__backdrop {
	position: fixed;
	z-index: 999990;
	inset: 0;
	display: grid;
	place-items: center;
	overflow-y: auto;
	padding: 24px;
	background: rgba(32, 30, 40, 0.7);
	backdrop-filter: blur(4px);
}

.hmh-alerts__dialog {
	position: relative;
	width: min(620px, 100%);
	border-top: 6px solid var(--hmh-alert-raspberry);
	border-radius: 14px;
	padding: 38px;
	color: var(--hmh-alert-ink);
	background: var(--hmh-alert-white);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
	font-family: var(--hmh-alert-sans);
}

.hmh-alerts__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: var(--hmh-alert-navy);
	background: var(--hmh-alert-surface);
	cursor: pointer;
}

.hmh-alerts__close:hover,
.hmh-alerts__close:focus-visible {
	color: var(--hmh-alert-white);
	background: var(--hmh-alert-navy);
}

.hmh-alerts__close svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.hmh-alerts__eyebrow {
	margin: 0 48px 8px 0 !important;
	color: var(--hmh-alert-raspberry) !important;
	font-family: var(--hmh-alert-sans) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hmh-alerts__dialog h2 {
	margin: 0 48px 14px 0 !important;
	color: var(--hmh-alert-navy) !important;
	font-family: var(--hmh-alert-serif) !important;
	font-size: clamp(30px, 5vw, 42px) !important;
	font-weight: 400 !important;
	line-height: 1.08 !important;
	letter-spacing: 0 !important;
}

.hmh-alerts__intro {
	margin: 0 0 24px !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
}

.hmh-alerts__form {
	display: grid;
	gap: 17px;
}

.hmh-alerts__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.hmh-alerts__form label:not(.hmh-alerts__consent):not(.hmh-alerts__honeypot) {
	display: grid;
	gap: 7px;
	color: var(--hmh-alert-navy);
	font-size: 15px;
	font-weight: 700;
}

.hmh-alerts__form input[type="text"],
.hmh-alerts__form input[type="email"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--hmh-alert-line);
	border-radius: 8px;
	padding: 10px 13px;
	color: var(--hmh-alert-ink);
	background: var(--hmh-alert-white);
	font: 400 16px/1.3 var(--hmh-alert-sans);
}

.hmh-alerts__form input:focus {
	border-color: var(--hmh-alert-raspberry);
	outline: 3px solid rgba(219, 54, 94, 0.17);
}

.hmh-alerts__form input[aria-invalid="true"] {
	border-color: var(--hmh-alert-raspberry) !important;
	outline: 3px solid rgba(219, 54, 94, 0.17) !important;
}

.hmh-alerts__consent {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 11px;
	align-items: start;
	color: var(--hmh-alert-ink);
	font-size: 14px;
	line-height: 1.5;
}

.hmh-alerts__consent input {
	width: 19px;
	height: 19px;
	margin: 2px 0 0;
	accent-color: var(--hmh-alert-raspberry);
}

.hmh-alerts__consent a {
	color: var(--hmh-alert-navy);
	font-weight: 700;
}

.hmh-alerts__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.hmh-alerts__submit {
	appearance: none !important;
	justify-self: start !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 46px !important;
	margin: 0 !important;
	border: 2px solid var(--hmh-alert-raspberry) !important;
	border-radius: 999px !important;
	padding: 10px 22px !important;
	color: var(--hmh-alert-white) !important;
	background: var(--hmh-alert-raspberry) !important;
	box-shadow: none !important;
	cursor: pointer;
	font-family: var(--hmh-alert-sans) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.hmh-alerts__submit:hover,
.hmh-alerts__submit:focus-visible {
	border-color: var(--hmh-alert-navy) !important;
	background: var(--hmh-alert-navy) !important;
}

.hmh-alerts__submit:disabled {
	cursor: wait;
	opacity: 0.65;
}

.hmh-alerts__message:empty {
	display: none;
}

.hmh-alerts__message {
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.45;
}

.hmh-alerts__message.is-success {
	color: #163f2a;
	background: #e5f5ec;
}

.hmh-alerts__message.is-error {
	position: relative;
	border-left: 4px solid var(--hmh-alert-raspberry);
	padding-left: 40px;
	color: #7e2036;
	background: #fde8ed;
}

.hmh-alerts__message.is-error::before {
	position: absolute;
	top: 50%;
	left: 14px;
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border-radius: 50%;
	color: var(--hmh-alert-white);
	background: var(--hmh-alert-raspberry);
	content: "!";
	font: 700 13px/1 var(--hmh-alert-sans);
	transform: translateY(-50%);
}

html.hmh-alerts-open,
html.hmh-alerts-open body {
	overflow: hidden;
}

@media (max-width: 640px) {
	.hmh-alerts__trigger {
		right: 14px;
		bottom: 14px;
		max-width: calc(100vw - 28px);
	}

	.hmh-alerts__backdrop {
		align-items: end;
		padding: 0;
	}

	.hmh-alerts__dialog {
		width: 100%;
		max-height: 94vh;
		max-height: 94dvh;
		overflow-y: auto;
		border-radius: 14px 14px 0 0;
		padding: 30px 22px max(28px, env(safe-area-inset-bottom));
	}

	.hmh-alerts__grid {
		grid-template-columns: 1fr;
	}

	.hmh-alerts__submit {
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmh-alerts__trigger {
		transition: none;
	}
}
