/* No extra sizing rule needed for the trigger button itself — it already
   carries the theme's own .brado-sticky-atc__cta class (see
   brado_sn_render_trigger_button() in includes/frontend.php), the same
   one the Buy Now/Add To Bag buttons it replaces use. */

/* Popup: scrim + centered panel, same open/close convention as this
   theme's cart drawer and enquiry popover. */
.brado-stock-notify-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.brado-stock-notify-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 23, .5);
	opacity: 0;
	transition: opacity .2s ease;
}

.brado-stock-notify-modal__panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: var(--brado-surface, #fff);
	padding: 24px 20px;
	transform: translateY(16px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}

.brado-stock-notify-modal.is-open .brado-stock-notify-modal__scrim {
	opacity: 1;
}

.brado-stock-notify-modal.is-open .brado-stock-notify-modal__panel {
	transform: translateY(0);
	opacity: 1;
}

.brado-stock-notify-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--brado-muted, #6b6459);
}

.brado-stock-notify-modal__panel h3 {
	margin: 0 0 6px;
	font-family: var(--brado-font-heading, serif);
}

.brado-stock-notify-modal__intro {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--brado-body-text, #5c564b);
}

.brado-stock-notify-modal__field {
	margin: 0 0 12px;
}

.brado-stock-notify-modal__field label {
	display: block;
	margin-bottom: 4px;
	font-size: 12.5px;
	color: var(--brado-muted, #6b6459);
}

.brado-stock-notify-modal__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--brado-border, rgba(28, 26, 23, .1));
	background: var(--brado-surface, #fff);
	font-family: inherit;
	font-size: 14px;
}

.brado-stock-notify-modal__submit {
	width: 100%;
	margin-top: 4px;
}

.brado-stock-notify-modal__result {
	margin-top: 14px;
	font-size: 14px;
}

.brado-stock-notify-modal__result--success {
	color: var(--brado-success, #2e7d4f);
}

.brado-stock-notify-modal__result--error {
	color: #a02b2b;
}
