/* Inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ns_form .woocommerce-input-wrapper > strong,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
	font-family: inherit;
	font-size: 16px;
	line-height: 46px;
	outline: 0;
	padding: 0px 16px;
	border: 2px solid var(--hipnos-color-secondary-3);
	border-radius: var(--hipnos-border-radius);
	background: var(--hipnos-color-neutral-4);
	color: color: var(--hipnos-color-neutral-2);
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-appearance: none;
	height: auto;

	-webkit-transition: background-color var(--hipnos-transition-ease), background-color var(--hipnos-transition-ease), color var(--hipnos-transition-ease), border-color var(--hipnos-transition-ease);
	-o-transition: opacity var(--hipnos-transition-ease), background-color var(--hipnos-transition-ease), color var(--hipnos-transition-ease), border-color var(--hipnos-transition-ease);
	transition: opacity var(--hipnos-transition-ease), background-color var(--hipnos-transition-ease), color var(--hipnos-transition-ease), border-color var(--hipnos-transition-ease);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
	border: 2px solid var(--hipnos-color-neutral-3);
}

/* Input - Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

/* Forms */
.ns_form {
	width: 100%;
}

.ns_form label,
.ns_form input[type="text"],
.ns_form input[type="password"],
.ns_form input[type="number"],
.ns_form input[type="date"],
.ns_form input[type="datetime"],
.ns_form input[type="datetime-local"],
.ns_form input[type="time"],
.ns_form input[type="month"],
.ns_form input[type="week"],
.ns_form input[type="email"],
.ns_form input[type="search"],
.ns_form input[type="tel"],
.ns_form input[type="url"],
.ns_form select,
.ns_form textarea {
	display: block;
	width: 100%;
}

input[disabled=""] {
	color: var(--hipnos-color-secondary-2);
	background-color: var(--hipnos-color-secondary-3);
}

select,
.ns_form select {
	cursor: pointer;
	background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 10L12 14L16 10" stroke="grey" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-repeat: no-repeat;
	background-position-x: 100%;
	background-position-y: 50%;
}

.ns_form label {
	font-weight: var(--hipnos-font-weight-bold);
	color: var(--hipnos-color-secondary-1);
	font-size: 16px;
	line-height: 22px;
	margin-bottom: 8px;
}

.ns_form-wrapper {
	display: flex;
	width: 100%;
	max-width: 500px;
	margin: auto;
}

.ns_form-intro {
	position: relative;
	margin-bottom: 32px;
}

.ns_form .form-row,
.ns_form-field {
	position: relative;
	margin-bottom: 18px;
}

.ns_form-button {
	position: relative;
	margin-top: 18px;
}

.ns_form-title {
	font-weight: var(--hipnos-font-weight-bold);
	font-size: 24px;
	line-height: 32px;
	margin-bottom: 32px;
	color: var(--hipnos-color-secondary-1);
}

.ns_form-intro .ns_form-title {
	margin-bottom: 4px;
}

.ns_form-wrapper .ns_form-title {
	margin-top: 24px;
}

.ns_form a:not(.ns_button) {
	text-decoration: underline;
}

.ns_form .ns_input {
	position: relative;
}

.ns_form .ns_input > .ns_input-placeholder {
	position: absolute;
	right: 16px;
	top: 0px;
	font-size: 16px;
	line-height: 46px;
	text-align: right;
	width: 32px;
	color: var(--hipnos-color-neutral-3);
	pointer-events: none;
}

.ns_form .ns_input > .ns_input-placeholder + input[type="text"] {
	padding-right: 48px;
}

@media only screen and (max-width: 767px) {
	.ns_form-title {
		font-size: 20px;
		line-height: 28px;
	}

	.ns_form-subtitle,
	.ns_form-extra > p {
		font-size: 14px;
		line-height: 20px;
	}
}

/* Fieldset */
.ns_form fieldset {
	background: var(--hipnos-color-neutral-4);
	padding: 16px;
	border: none;
	border-radius: var(--hipnos-border-radius);
}

.ns_form fieldset input {
	background: var(--hipnos-color-neutral-5);
}

.ns_form fieldset legend {
	color: var(--hipnos-color-secondary-1);
	font-weight: var(--hipnos-font-weight-bold);
}

/* Select */
.ns_form .woocommerce-input-wrapper > strong {
	display: flex;
	font-weight: var(--hipnos-font-weight-normal);
	background: transparent;
	border-color: var(--hipnos-color-neutral-3);
	color: var(--hipnos-color-neutral-3);
}

/* Checkbox */
main.checkoutwc input[type=checkbox]:checked:after {
	display: none;
}

main.checkoutwc input[type=checkbox],
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"],
.ns_checkbox-group input[type="checkbox"] {
	position: absolute;
	visibility: hidden;
	pointer-events: none;
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > label,
main.checkoutwc input[type=checkbox] + .woocommerce-terms-and-conditions-checkbox-text,
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"] + span,
.ns_checkbox-group input[type="checkbox"] + label {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: flex-start;
	cursor: pointer;
	font-size: 12px;
	line-height: 16px;
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > label:before,
main.checkoutwc input[type=checkbox] + .woocommerce-terms-and-conditions-checkbox-text:before,
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"] + span:before,
.ns_checkbox-group input[type="checkbox"] + label:before {
	content: "";
	position: relative;
	display: inline-block;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	border: 2px solid var(--hipnos-color-primary-1);
	border-radius: var(--hipnos-border-radius-mini);
	margin-right: 8px;
	-webkit-transition: background var(--hipnos-transition-ease);
	-o-transition: background var(--hipnos-transition-ease);
	transition: background var(--hipnos-transition-ease);
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > label:after,
main.checkoutwc input[type=checkbox] + .woocommerce-terms-and-conditions-checkbox-text:after,
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"] + span:after,
.ns_checkbox-group input[type="checkbox"] + label:after {
	content: "";
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 1px;
	border: none !important;
	margin: 0px !important;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMC4zIiBoZWlnaHQ9IjgiIHZpZXdCb3g9IjguOSAwLjMgMTAuMyA4Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTIuNiA4LjFMOC45IDQuM2wxLTEuMSAyLjcgMi43TDE4LjEuNWwxIDF6Ii8+PC9zdmc+), none;
	background-position: center;
	background-repeat: no-repeat;
	transform: translateY(-50%);
	-webkit-transition: opacity var(--hipnos-transition-ease);
	-o-transition: opacity var(--hipnos-transition-ease);
	transition: opacity var(--hipnos-transition-ease);
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > input[type="checkbox"] + label:after,
main.checkoutwc input[type=checkbox] + .woocommerce-terms-and-conditions-checkbox-text:after,
.ns_checkbox-group input[type="checkbox"]:checked + label:after {
	left: 0px;
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > input[type="checkbox"]:checked + label:before,
main.checkoutwc input[type=checkbox]:checked + .woocommerce-terms-and-conditions-checkbox-text:before,
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"]:checked + span:before,
.ns_checkbox-group input[type="checkbox"]:checked + label:before {
	background: var(--hipnos-color-primary-1);
}

body.ns_cfw-register-not-required #cfw #cfw-account-details #cfw-account-password-slide + .cfw-input-wrap.cfw-check-input > input[type="checkbox"]:checked + label:after,
main.checkoutwc input[type=checkbox]:checked + .woocommerce-terms-and-conditions-checkbox-text:after,
main.checkoutwc .ns_mc4wp-cfw-checkbox .mc4wp-checkbox input[type="checkbox"]:checked + span:after,
.ns_checkbox-group input[type="checkbox"]:checked + label:after {
	opacity: 1;
}

.ns_checkbox-group input[type="checkbox"] + label > span {
	font-weight: var(--hipnos-font-weight-normal);
	color: var(--hipnos-color-neutral-2);
}

/* Error */
.ns_form input.parsley-error,
.ns_form select.parsley-error {
	color: var(--hipnos-color-state-error-1) !important;
	border-color: var(--hipnos-color-state-error-1) !important;
	background-color: var(--hipnos-color-background-input) !important;
}

.ns_form .parsley-errors-list {
	list-style: none;
}

.ns_form em,
.ns_form .parsley-errors-list li {
	color: var(--hipnos-color-state-error-1);
	font-size: 14px;
	line-height: 20px;
	margin: .3em 0 .6em 0;
}

.ns_form .parsley-errors-list li {
	font-size: 12px;
	line-height: 18px;
	margin: 0.3em 0 0.6em 0;
	margin-left: 16px;
}

.ns_form em {
	font-style: normal;
	display: block;
	color: var(--hipnos-color-neutral-2);
}

/* Required */
.required {
	color: var(--hipnos-color-state-error-1);
}

.validate-required .woocommerce-form__label-for-checkbox span:after,
.ns_form .ns_form-field-required label:after {
	content: "*";
	margin-left: 3px;
	color: var(--hipnos-color-state-error-1);
}

.ns_form .ns_form-field-required label:after {
	margin-left: 0px;
}

.ns_form .form-row .required {
	color: var(--hipnos-color-state-error-1);
	text-decoration: none;
}

.ns_form .form-row.ns_form-row-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	align-content: center;
}

.ns_form .form-row.ns_form-row-flex .ns_checkbox-group {
	display: flex;
	align-items: center;
	align-content: center;
}

.ns_form .form-row.ns_form-row-flex .ns_checkbox-group input[type="checkbox"] + label {
	margin-bottom: 0px;
}

/* Password */
.ns_form-input-password {
	position: relative;

}

.ns_form-input-password > input {
	padding-right: 48px;
}

.ns_form-input-password > span {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 48px;
	height: 48px;
	cursor: pointer;
}

.ns_form-input-password > span > .ns_icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.ns_form-input-password > span > .ns_icon:first-child,
.ns_form-input-password > span.visible > .ns_icon:last-child {
	display: block;
}

.ns_form-input-password > span.visible > .ns_icon:first-child,
.ns_form-input-password > span > .ns_icon:last-child {
	display: none;
}

/* Extra */
.ns_form .ns_form-extra {
	text-align: center;
}

.ns_form .ns_form-extra > p:first-child {
	margin-top: 64px;
	margin-bottom: 18px;
}

.ns_form .ns_form-extra > p:last-child {
	margin-top: 8px;
	font-size: 14px;
	line-break: 20px;
}

.ns_form .ns_form-extra > p:last-child a {
	color: var(--hipnos-color-neutral-1);
}