/* ============================================================
   Milau — stock
   ------------------------------------------------------------
   The line that says how little is left, and the box that catches
   a shopper who came too late.

   Two colours only, and they mean what they mean everywhere else
   in the theme: red is a notice, green is good news. Running low
   is a notice, so it is red.
   ============================================================ */

/* ------------------------------------------------------------ the line */

.milau-stock {
	display: block;
	margin: 8px 0 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--milau-notice);
}

/* On a card the line sits under the price, so it is a touch smaller
   than the one on the product page and carries a dot instead of a
   line of its own. */
.milau-card .milau-stock {
	margin: 6px 0 0;
	font-size: 11px;
	letter-spacing: .1em;
}

.milau-card .milau-stock::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--milau-notice);
	vertical-align: middle;
}

/* On the product page the line is bigger and sits under the price. */
.milau-pdp .milau-stock {
	margin: 12px 0 0;
	font-size: 12px;
	letter-spacing: .14em;
}

/* ------------------------------------------------------- the wait list */

.milau-stock__notify {
	margin-top: 20px;
	padding: 22px 22px 20px;
	background: var(--milau-panel);
	border: 1px solid var(--milau-line);
}

.milau-stock__notifytitle {
	margin: 0;
	font-family: var(--milau-serif);
	font-size: 19px;
	line-height: 1.3;
	color: var(--milau-ink);
}

.milau-stock__notecopy {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--milau-muted);
}

.milau-stock__notifyform {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.milau-stock__notifyinput {
	flex: 1 1 220px;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 14px;
	font-family: var(--milau-sans);
	font-size: 14px;
	color: var(--milau-ink);
	background: var(--milau-panel);
	border: 1px solid var(--milau-line);
	border-radius: var( --milau-radius );
}

.milau-stock__notifyinput::placeholder {
	color: var(--milau-muted);
}

.milau-stock__notifyinput:focus {
	outline: none;
	border-color: var(--milau-ink);
}

.milau-stock__notifyinput[aria-invalid='true'] {
	border-color: var(--milau-notice);
}

/* The notify button is the house button; the row beside the field
   is what belongs to this sheet. */
.milau-stock__notifybutton {
	flex: 0 0 auto;
	font-family: var(--milau-sans);
}

.milau-stock__notifybutton:disabled {
	opacity: .55;
	cursor: default;
}

.milau-stock__notifymsg {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--milau-muted);
}

.milau-stock__notifymsg.is-error {
	color: var(--milau-notice);
}

.milau-stock__notifymsg.is-success {
	color: var(--milau-ok);
}

/* A short note under the button once the address is on the list, so
   the form does not sit there empty with nothing to say. */
.milau-stock__notify.is-done .milau-stock__notifyform {
	display: none;
}

@media (max-width: 560px) {
	.milau-stock__notifyform {
		gap: 8px;
	}

	.milau-stock__notifyinput,
	.milau-stock__notifybutton {
		flex: 1 1 100%;
	}
}
