/*
 * Powiadomienia o dostępności – przycisk na kartach produktów i formularz na stronie produktu.
 * Kolory z palety motywu wc-sklep (zmienne --wcs-*), z wartościami zapasowymi na wypadek innego motywu.
 */

/* ---------- Karta produktu: „Powiadom o dostępności” z ikoną dzwonka ---------- */

ul.products li.product .button.wcs-notify-button {
	align-items: center;
	display: inline-flex;
	gap: 0.5em;
	justify-content: center;
}

ul.products li.product .button.wcs-notify-button::before {
	background-color: currentColor;
	content: "";
	flex: none;
	height: 1.15em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 1.15em;
}

/* ---------- Strona produktu: formularz zapisu ---------- */

.wcs-notify {
	background: var(--wcs-cream, #f5f6f6);
	border-radius: 16px;
	margin: 0 0 2em;
	padding: 1.25rem 1.5rem;
	scroll-margin-top: 2rem;
}

.wcs-notify__title {
	font-size: 1.15rem;
	margin: 0 0 0.4rem;
}

.wcs-notify__lead {
	margin: 0 0 0.9rem;
}

.wcs-notify__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.wcs-notify__email {
	border-radius: 999px;
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.6em 1.1em;
}

.wcs-notify__submit {
	flex: 0 0 auto;
}

.wcs-notify__consent {
	display: block;
	font-size: 0.85rem;
	line-height: 1.45;
}

.wcs-notify__consent input {
	margin-right: 0.35em;
}

.wcs-notify__message {
	border-radius: 10px;
	font-weight: 600;
	margin: 0.5rem 0 0.9rem;
	padding: 0.6rem 0.9rem;
}

.wcs-notify__message--success {
	background: #e4f1fb;
	color: var(--wcs-green-dark, #12649a);
}

.wcs-notify__message--info {
	background: #fff;
	color: var(--wcs-ink, #23343b);
}

.wcs-notify__message--error {
	background: #fde8e4;
	color: #a1271a;
}

/* Pole-pułapka na boty – niewidoczne dla ludzi */
.wcs-notify__hp {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* ---------- Okienko zapisu z kart produktów (wygląd okienka: .wcs-modal z motywu) ---------- */

.wcs-notify-modal__icon {
	background-color: var(--wcs-green, #1a87c9);
	display: inline-block;
	height: 2.75rem;
	margin-bottom: 0.75rem;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 2.75rem;
}

.wcs-notify-modal__product {
	color: var(--wcs-ink, #23343b);
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.wcs-notify-modal .wcs-notify__form {
	text-align: left;
}

.wcs-notify-modal .wcs-notify__email,
.wcs-notify-modal .wcs-notify__submit {
	flex: 1 1 100%;
}

.wcs-notify-modal [hidden] {
	display: none;
}
