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

/* Forms All - Start */
::-webkit-input-placeholder {
	color: var(--dark-gray);
	transform: translateY(2px);
}
:-moz-placeholder {
	color: var(--dark-gray);
	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: 12px 30px 12px 12px;
	border: none;
	background: var(--light-gray);
	border-radius: var(--radius-small);
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 17px;
	resize: vertical;
}
@media (max-width: 1279px) {
	input,
	textarea,
	select.op-select,
	.op-select-toggle {
		font-size: 16px;
		line-height: 19px;
	}
}
.checkbox-custom {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.checkbox-custom input {
	display: none;
}
.checkbox-custom input + span {
	position: relative;
	display: flex;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-max);
	transition: all 0.3s ease-in-out;
}
.checkbox-custom input:checked + span {
	border: 1px solid var(--primary);
}
.checkbox-custom input + span::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 10px;
	height: 10px;
	border-radius: var(--radius-max);
	background: var(--primary);
	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;
}
.privacy-policy span a:hover {
	color: var(--dark-gray);
}
input.error {
	background: rgb(255 0 0 / 30%) !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: rgba(65, 65, 65, 0.3);
	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: 750px;
	max-width: 100%;
	max-height: calc(100vh - var(--header-height));
	padding: 40px 20px 40px 40px;
	margin-top: var(--header-height);
	background: var(--white);
	border-radius: var(--radius-medium);
	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;
}
.close-lightbox img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.lightbox-content {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	height: 100%;
	max-height: calc(100dvh - var(--header-height) - 60px - 40px);
	overflow-y: auto;
	padding-right: 20px;
}
.form-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.form-head .h2 {
	transform: translateY(7px);
}
.form-description {
	display: flex;
	max-width: 360px;
	color: var(--gray-text);
	line-height: 20px;
}
.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 {
		padding: 30px 10px 30px 30px;
	}
	.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: rgba(65, 65, 65, 0.3);
	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: 10px;
}
#login-lightbox .form-row-half .form-input {
	flex: 1;
}
.user-ajax-wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--blocks-indent);
}
.user-ajax-wrapper .h2 {
	text-align: center;
}
.user-ajax-wrapper p {
	font-size: 16px;
	line-height: 21px;
	color: var(--gray);
	text-align: center;
	max-width: 480px;
	margin: 0px auto 20px auto;
}
.user-ajax-wrapper input {
	border: 1px solid var(--border);
	padding: 15px 15px 15px 15px;
}
#forgot-password {
	font-size: 16px;
	line-height: 19px;
	color: var(--gray);
	margin-bottom: 15px;
}
.user-ajax-wrapper .btn {
	color: var(--white);
}
.user-navigation {
	font-family: var(--font-family-1);
	font-size: 18px;
	line-height: 18px;
	text-align: center;
}
.pc-text {
	font-size: 16px;
	line-height: 19px;
	color: var(--black);
	text-align: center;
	margin-top: 10px;
}
#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: red;
	margin-top: -10px;
}
@media (max-width: 1279px) {
	.user-ajax-wrapper p {
		font-size: 14px;
		line-height: 17px;
		margin: 0px auto 10px auto;
	}
	.user-navigation {
		font-size: 16px;
	}
	.pc-text {
		font-size: 14px;
		line-height: 17px;
	}
}
/* User Account Lightbox - End */

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