/**
 * OOS-004: canonical OOS Notify Purchase Surface (PDP).
 *
 * Measured from the committed canonical component `pdp-notify-v1.2.jsx` (ZZN_CSS) in
 * zigzag-design @ c98460e (Finals v1.64 / v1.13 / v2.2.42, sheet "Notify Surface States R1").
 * Every dimension below is copied from that component; tokens are resolved to their
 * design-system values (--text-heading #2f2f2f, --text-muted #6b7280, --zz-input-bg #fafafa,
 * --zz-input-border #e5e7eb, --zz-catalog-card-border #ececec, --zz-focus-color #ed0678,
 * --zz-success-color #16a34a, --zz-button-radius 12px, Lato).
 *
 * Markup: back-in-stock-notifier-for-woocommerce/templates/default-form.php (`.zz-notify`).
 * Only `.zz-notify` is styled here, so Back-in-stock output that does not use this template
 * is unaffected. Theme/plugin element resets (Flatsome inputs/buttons, plugin frontend.css
 * `.cwgstock_button`) are neutralised explicitly per control, scoped under `.zz-notify`.
 */
.zz-notify {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 18px;
	box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
	padding: 16px;
	margin: 0 0 14px;
	font-family: Lato, sans-serif;
	color: #2f2f2f;
	text-align: left;
}

.zz-notify *,
.zz-notify *::before,
.zz-notify *::after {
	box-sizing: border-box;
}

.zz-notify [hidden] {
	display: none !important;
}

.zz-notify .zz-notify__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.zz-notify .zz-notify__h {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	font: 700 18px/1.25 Lato, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	color: #2f2f2f;
}

.zz-notify .zz-notify__h svg {
	flex: 0 0 auto;
}

.zz-notify .zz-notify__p {
	margin: 6px 0 0;
	padding: 0;
	font: 400 14.5px/1.45 Lato, sans-serif;
	color: #6b7280;
	text-wrap: pretty;
}

.zz-notify .zz-notify__v {
	margin-top: 14px;
	background: #fafafa;
	border-radius: 14px;
	padding: 10px 14px;
}

.zz-notify .zz-notify__v small {
	display: block;
	font: 400 12.5px/1.3 Lato, sans-serif;
	color: #6b7280;
}

.zz-notify .zz-notify__v b {
	display: block;
	margin-top: 2px;
	font: 700 14.5px/1.3 Lato, sans-serif;
	color: #2f2f2f;
	overflow-wrap: break-word;
}

.zz-notify .zz-notify__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
}

.zz-notify .zz-notify__f {
	margin: 0;
	padding: 0;
}

.zz-notify .zz-notify__l {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	font: 600 13px/1.3 Lato, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	color: #2f2f2f;
}

/* `[type]` lifts specificity above Flatsome's `.form-minimal input:not([type=submit])` (the PDP add-to-cart
   container is `.form-minimal`), which would otherwise force a transparent background. */
.zz-notify input.zz-notify__i[type] {
	display: block;
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafafa;
	box-shadow: none;
	font: 400 16px/1.2 Lato, sans-serif;
	text-align: left;
	color: #2f2f2f;
	outline: 0;
	transition: border-color .15s, box-shadow .15s;
}

.zz-notify input.zz-notify__i[type]::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.zz-notify input.zz-notify__i[type]:hover {
	border-color: #cfd3da;
}

.zz-notify input.zz-notify__i[type]:focus,
.zz-notify input.zz-notify__i[type]:focus-visible {
	border-color: #ed0678;
	box-shadow: 0 0 0 3px rgba(237, 6, 120, .2);
	background: #fff;
}

.zz-notify input.zz-notify__i[type].is-err {
	border-color: #b20000;
	background: #fff;
}

.zz-notify input.zz-notify__i[type].is-err:focus,
.zz-notify input.zz-notify__i[type].is-err:focus-visible {
	box-shadow: 0 0 0 3px rgba(178, 0, 0, .18);
}

.zz-notify input.zz-notify__i[type]:disabled {
	color: #6b7280;
}

/* intl-tel-input (plugin phone library) must not narrow the phone control. */
.zz-notify .iti {
	display: block;
	width: 100%;
}

.zz-notify .zz-notify__e {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	margin-top: 5px;
	font: 500 13px/1.35 Lato, sans-serif;
	color: #b20000;
}

.zz-notify .zz-notify__e svg {
	flex: 0 0 auto;
	margin-top: 1px;
}

/* Form-level failure: information only. The primary CTA is the single retry action. */
.zz-notify .zz-notify__fe {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(178, 0, 0, .06);
	font: 500 13.5px/1.35 Lato, sans-serif;
	color: #8f0000;
}

.zz-notify .zz-notify__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 56px;
	min-height: 56px;
	margin: 4px 0 0;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: #1f1f1f;
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	cursor: pointer;
	font: 700 15px/1 Lato, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background .15s;
}

.zz-notify .zz-notify__btn:hover {
	background: #333;
	color: #fff;
}

.zz-notify .zz-notify__btn:active {
	background: #3a3a3a;
}

.zz-notify .zz-notify__btn:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(237, 6, 120, .35);
}

.zz-notify .zz-notify__btn[aria-busy="true"] {
	background: #4b4f56;
	cursor: progress;
}

.zz-notify .zz-notify__spin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: zzNotifySpin .8s linear infinite;
}

@keyframes zzNotifySpin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zz-notify .zz-notify__spin {
		animation-duration: 2.4s;
	}
}

/* Success: in-place; summary (variable) stays below the confirmation. */
.zz-notify .zz-notify__ok {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	order: -1;
}

.zz-notify .zz-notify__ok i {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(22, 163, 74, .12);
	display: grid;
	place-items: center;
	color: #16a34a;
}

.zz-notify .zz-notify__ok b {
	display: block;
	font: 700 16px/1.3 Lato, sans-serif;
	color: #2f2f2f;
	text-wrap: pretty;
}

.zz-notify .zz-notify__ok span {
	display: block;
	margin-top: 4px;
	font: 400 14.5px/1.45 Lato, sans-serif;
	color: #6b7280;
}

/* Legacy plugin output leftovers must never show inside the surface. */
.zz-notify .cwgstock_output {
	display: none;
}

/* "Ship tomorrow" trust promise is hidden while the product/variation is not buyable
   (Buy Box state notify / unavailable, flag set by pdp-buybox-v2.js / decision-core). */
.pdp-purchase-region[data-zz-oos="1"] .shipping-info-message {
	display: none !important;
}
