/* ============================================
   Forms — інпути, чекбокси, лайтбокси форм,
   інформер, авторизація, one-click
   ============================================ */

/* Forms All - Start */
::-webkit-input-placeholder {
	color: var(--black);
	transform: translateY(2px);
}
:-moz-placeholder {
	color: var(--black);
	transform: translateY(2px);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}
input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}
input,
textarea,
select.op-select,
.op-select-toggle {
	position: relative;
	width: 100%;
	color: var(--black);
	padding: 16px;
	border: 1px solid var(--input-border);
	background: transparent;
	border-radius: 10px;
	font-family: var(--font-family-1);
	font-size: 18px;
	line-height: 22px;
	resize: vertical;
}
select.op-select,
.op-select-toggle {
	padding-right: 40px;
}
@media (max-width: 1680px) {
	input,
	textarea,
	select.op-select,
	.op-select-toggle {
		font-size: 16px;
		line-height: 19px;
	}
}
@media (max-width: 1279px) {
	input,
	textarea,
	select.op-select,
	.op-select-toggle {
		padding: 12px;
		border-radius: 8px;
		font-size: 16px;
		line-height: 19px;
	}
	select.op-select,
	.op-select-toggle {
		padding-right: 36px;
	}
}
.checkbox-custom {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.checkbox-custom input {
	display: none;
}
.checkbox-custom input + span {
	position: relative;
	display: flex;
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 1px solid var(--black);
	border-radius: 4px;
	transition: all 0.3s ease-in-out;
}
.checkbox-custom input:checked + span {
	background: var(--black);
}
.checkbox-custom input + span::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--white);
	-webkit-mask: url("/wp-content/themes/shop/img/icons/check.svg") no-repeat center / 12px 10px;
	mask: url("/wp-content/themes/shop/img/icons/check.svg") no-repeat center / 12px 10px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease-in-out;
}
.checkbox-custom input:checked + span::after {
	opacity: 1;
	visibility: visible;
}
.checkbox-custom input + span + span {
	transform: translateY(1px);
}
.privacy-policy a {
	text-decoration: underline;
	transition: all 0.3s ease-in-out;
}
@media not all and (pointer: coarse) {
	.privacy-policy span a:hover {
		color: var(--gray-text);
	}
}
input:focus,
textarea:focus,
select.op-select:focus,
.op-select-toggle:focus {
	border-color: var(--black);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--white) inset;
	-webkit-text-fill-color: var(--black);
	caret-color: var(--black);
}
input.error {
	border-color: var(--red) !important;
	background: rgb(255 0 0 / 8%) !important;
}
/* Forms All - End */

/* Forms Lightbox - Start */
.form-lightbox-wrapper {
	position: relative;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 15px;
	z-index: 0;
	opacity: 0;
	transition: all 0.3s ease-in-out;
	pointer-events: none;
}
.form-lightbox-wrapper.ready {
	position: fixed;
	z-index: 99999;
}
.form-lightbox-wrapper.active {
	pointer-events: all;
	opacity: 1;
}
.lightbox-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--overlay-scrim);
	opacity: 0;
	transition: all 0.3s ease-in-out;
	pointer-events: none;
	z-index: 110;
}
.form-lightbox-wrapper.active .lightbox-background {
	pointer-events: all;
	opacity: 1;
}
.lightbox-section {
	position: relative;
	display: flex;
	width: 743px;
	max-width: 100%;
	max-height: calc(100vh - var(--header-height));
	padding: 64px 40px;
	margin-top: var(--header-height);
	background: var(--white);
	border-radius: var(--radius-large);
	box-shadow: 0px 0px 24px 0px var(--shadow-soft);
	z-index: 120;
}
.close-lightbox {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
}
@media not all and (pointer: coarse) {
	.close-lightbox:hover {
		opacity: 0.6;
	}
}
.form-input:focus {
	border-color: var(--black);
}
.close-lightbox img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.lightbox-content {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
	height: 100%;
	max-height: calc(100dvh - var(--header-height) - 60px - 40px);
	overflow-y: auto;
	padding-right: 0;
}
.form-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.form-description {
	display: flex;
	max-width: none;
	color: var(--gray-text);
	line-height: 20px;
	text-align: center;
}
.form-head img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.form-fields {
	display: flex;
	flex-direction: column;
	gap: var(--blocks-indent);
}
.form-data-group {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--blocks-indent);
	width: 100%;
}
.form-data-group > *:where(:not([class^="col-"], [class*=" col-"])) {
	grid-column: 1 / -1;
}
@media (max-width: 1279px) {
	.lightbox-section {
		width: 343px;
		padding: 36px 24px;
	}
	.lightbox-content {
		gap: 36px;
	}
	.close-lightbox {
		top: 5px;
		right: 5px;
	}
	.close-lightbox img {
		width: 18px;
		height: 18px;
	}
	.lightbox-content {
		max-height: calc(100dvh - var(--header-height) - 40px - 40px);
	}
}
/* Form Lightbox - End */

/* Informer Lightbox - Start */
.informer-wrapper {
	position: relative;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 15px;
	z-index: 0;
	opacity: 0;
	transition: all 0.3s ease-in-out;
	pointer-events: none;
}
.informer-wrapper.ready {
	position: fixed;
	z-index: 99999;
}
.informer-wrapper.active {
	pointer-events: all;
	opacity: 1;
}
.informer-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--overlay-scrim);
	opacity: 0;
	transition: all 0.3s ease-in-out;
	pointer-events: none;
	z-index: 110;
}
.informer-wrapper.active .informer-background {
	pointer-events: all;
	opacity: 1;
}
.informer-section {
	position: relative;
	display: flex;
	width: 620px;
	max-width: 100%;
	max-height: calc(100vh - var(--header-height));
	padding: 45px;
	margin-top: var(--header-height);
	background: var(--white);
	border-radius: var(--radius-medium);
	box-shadow: 0px 0px 24px 0px var(--shadow-soft);
	overflow-y: auto;
	z-index: 120;
}
.close-informer {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 15px;
	cursor: pointer;
}
.informer-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	height: 100%;
}
.informer-content-box {
	display: flex;
	flex-direction: column;
}
@media (max-width: 1279px) {
	.informer-section {
		padding: 20px;
		margin-top: 0;
	}
	.close-informer {
		top: 5px;
		right: 5px;
	}
}
/* Informer Lightbox - End */

/* User Account Lightbox - Start */
#login-lightbox .lightbox-section {
	width: 600px;
}
#login-lightbox .form-row-half {
	display: flex;
	gap: var(--blocks-indent);
}
#login-lightbox .form-row-half .form-input {
	flex: 1;
}
.user-ajax-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.user-ajax-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--blocks-indent);
	text-align: center;
}
.user-ajax-head p {
	max-width: 480px;
	margin: 0;
	color: var(--gray-text);
}
#forgot-password {
	font-size: 16px;
	line-height: 19px;
	color: var(--gray-text);
	transition: all 0.3s ease-in-out;
}
@media not all and (pointer: coarse) {
	#forgot-password:hover {
		color: var(--black);
	}
}
.user-navigation {
	font-family: var(--font-family-2);
	font-size: 18px;
	line-height: 18px;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	transition: all 0.3s ease-in-out;
}
@media not all and (pointer: coarse) {
	.user-navigation:hover {
		color: var(--primary-ring);
	}
}
.pc-text {
	font-size: 14px;
	line-height: 17px;
	color: var(--gray-text);
	text-align: center;
}
.pc-text a {
	text-decoration: underline;
}
#login-lightbox input.woocommerce-invalid {
	background: rgb(255 0 0 / 30%) !important;
}
#login-lightbox .error-message {
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 14px;
	color: var(--red);
	margin-top: -10px;
}
@media (max-width: 1279px) {
	#login-lightbox .lightbox-section {
		width: 343px;
	}
	.user-ajax-wrapper {
		gap: var(--blocks-indent);
	}
	.user-ajax-head {
		gap: 8px;
		margin-bottom: 8px;
	}
	.user-navigation {
		font-size: 16px;
	}
	.pc-text {
		font-size: 12px;
		line-height: 15px;
	}
}
/* User Account Lightbox - End */

/* One Click Order - Start */
.one-click-order .lightbox-section {
	max-width: 900px;
}
/* One Click Order - End */
