/* =========================================================================
   Jackery — overrides ładowane PO Salient dynamic styles (PDP waitlist)
   ========================================================================= */

/* Salient: body input[type="email"] { background/color/placeholder: accent } — psuje waitlist */
body.single-product .jp-product__buybox .jp-spec-strip:has(+ .jp-product__price-unavailable) {
	border-bottom: 0;
	padding-bottom: 12px;
}

body.single-product .jp-product__buybox .jp-product__price-unavailable {
	margin: 4px 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--jp-display) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--jp-ink-mid) !important;
	line-height: 1.55 !important;
}

body.single-product .jp-product__buybox .wc-waitlist-container {
	margin: 0 0 8px;
	border-top: 1px solid var(--jp-line);
	padding-top: 20px;
}

body.single-product .jp-product__buybox .wc-waitlist-title {
	font-family: var(--jp-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--jp-ink);
	margin: 0 0 18px;
}

body.single-product .jp-product__buybox .wc-waitlist-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

body.single-product .jp-product__buybox .wc-waitlist-form > p:has(> .wc-waitlist-input) {
	position: relative;
	margin: 0 !important;
}

/* Salient: #ajax-content-wrap input::-webkit-input-placeholder { color: white } — wymaga ID w selektorze */
#ajax-content-wrap #jp-product-buybox input.wc-waitlist-input[type="email"],
body.single-product .jp-product__buybox input.wc-waitlist-input[type="email"] {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	font-family: var(--jp-display) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--jp-ink) !important;
	-webkit-text-fill-color: var(--jp-ink) !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	border: 1px solid var(--jp-line) !important;
	border-radius: var(--jp-radius-sm) !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

#ajax-content-wrap #jp-product-buybox input.wc-waitlist-input[type="email"]::placeholder,
#ajax-content-wrap #jp-product-buybox input.wc-waitlist-input[type="email"]::-webkit-input-placeholder,
#ajax-content-wrap #jp-product-buybox input.wc-waitlist-input[type="email"]::-moz-placeholder,
body.single-product .jp-product__buybox input.wc-waitlist-input[type="email"]::placeholder,
body.single-product .jp-product__buybox input.wc-waitlist-input[type="email"]::-webkit-input-placeholder,
body.single-product .jp-product__buybox input.wc-waitlist-input[type="email"]::-moz-placeholder {
	color: #93939b !important;
	color: var(--jp-ink-soft) !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #93939b !important;
	-webkit-text-fill-color: var(--jp-ink-soft) !important;
}

#ajax-content-wrap #jp-product-buybox input.wc-waitlist-input[type="email"]:focus,
body.single-product .jp-product__buybox input.wc-waitlist-input[type="email"]:focus {
	border-color: rgb(242 88 28 / 0.55) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgb(242 88 28 / 0.12) !important;
}

body.single-product .jp-product__buybox .wc-waitlist-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	font-size: 12px;
	line-height: 1.55;
	color: var(--jp-ink-mid);
}

body.single-product .jp-product__buybox .wc-waitlist-checkbox-wrapper input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 2px 0 0 !important;
	accent-color: var(--jp-accent);
}

body.single-product .jp-product__buybox .wc-waitlist-checkbox-wrapper label {
	cursor: pointer;
}

body.single-product .jp-product__buybox .wc-waitlist-checkbox-wrapper a {
	color: var(--jp-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.single-product .jp-product__buybox button.wc-waitlist-btn[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 48px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 22px !important;
	font-family: var(--jp-display) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: -0.005em !important;
	text-transform: none !important;
	color: #fff !important;
	background: var(--jp-ink, #111114) !important;
	background-color: var(--jp-ink, #111114) !important;
	background-image: none !important;
	border: 1px solid var(--jp-ink, #111114) !important;
	border-radius: var(--jp-radius-sm) !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background var(--jp-dur) var(--jp-ease), border-color var(--jp-dur) var(--jp-ease);
}

body.single-product .jp-product__buybox button.wc-waitlist-btn[type="submit"]:hover {
	background: #2a2a30 !important;
	background-color: #2a2a30 !important;
	border-color: #2a2a30 !important;
	color: #fff !important;
}

/* WooCommerce Back in Stock (wc_bis_form) — gdy włączony zamiast waitlist */
body.single-product .jp-product__buybox .wc_bis_form {
	margin: 20px 0 0;
}

body.single-product .jp-product__buybox .wc_bis_form h3 {
	font-family: var(--jp-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--jp-ink);
	margin: 0 0 18px;
}

body.single-product .jp-product__buybox .wc_bis_form form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

body.single-product .jp-product__buybox .wc_bis_form__form-row {
	display: contents;
}

body.single-product .jp-product__buybox input.wc_bis_form__input[type="email"] {
	order: 1;
	box-sizing: border-box;
	width: 100% !important;
	min-height: 48px !important;
	padding: 12px 14px !important;
	font-family: var(--jp-display) !important;
	font-size: 15px !important;
	color: var(--jp-ink) !important;
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid var(--jp-line) !important;
	border-radius: var(--jp-radius-sm) !important;
	box-shadow: none !important;
}

body.single-product .jp-product__buybox input.wc_bis_form__input[type="email"]::placeholder,
body.single-product .jp-product__buybox input.wc_bis_form__input[type="email"]::-webkit-input-placeholder {
	color: var(--jp-ink-soft) !important;
	opacity: 1 !important;
	-webkit-text-fill-color: var(--jp-ink-soft) !important;
}

body.single-product .jp-product__buybox .wc_bis_form__checkbox {
	order: 2;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--jp-ink-mid);
}

body.single-product .jp-product__buybox .wc_bis_form button[type="submit"],
body.single-product .jp-product__buybox .wc_bis_form .button {
	order: 3;
	width: 100% !important;
	min-height: 48px !important;
	padding: 12px 22px !important;
	font-family: var(--jp-display) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #fff !important;
	background: var(--jp-ink, #111114) !important;
	background-color: var(--jp-ink, #111114) !important;
	border: 1px solid var(--jp-ink, #111114) !important;
	border-radius: var(--jp-radius-sm) !important;
}

/* Salient: input[type="search"] + button w formularzu wyszukiwania */
body.jp-search-page .jp-search-form__input[type="search"],
body.jp-error-404 .jp-search-form__input[type="search"],
.jp-search-form__input[type="search"] {
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 48px !important;
	color: var(--jp-ink) !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.jp-search-page .jp-search-form__input[type="search"]::placeholder,
body.jp-error-404 .jp-search-form__input[type="search"]::placeholder,
.jp-search-form__input[type="search"]::placeholder {
	color: var(--jp-ink-soft) !important;
	opacity: 1 !important;
}

body.jp-search-page .jp-search-form__submit,
body.jp-error-404 .jp-search-form__submit,
.jp-search-form__submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 22px !important;
	font-family: var(--jp-display) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	color: var(--jp-accent-ink) !important;
	background: var(--jp-accent) !important;
	background-color: var(--jp-accent) !important;
	background-image: none !important;
	border: 0 !important;
	border-left: 1px solid var(--jp-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: -0.005em !important;
}

body.jp-search-page .jp-search-form__submit:hover,
body.jp-search-page .jp-search-form__submit:focus-visible,
body.jp-error-404 .jp-search-form__submit:hover,
body.jp-error-404 .jp-search-form__submit:focus-visible,
.jp-search-form__submit:hover,
.jp-search-form__submit:focus-visible {
	color: #fff !important;
	background: #d94613 !important;
	background-color: #d94613 !important;
	border-color: #d94613 !important;
}
