/* =====================================================
   Hoorsun customer authentication modal — v1.10.23
   Keeps the current page visible, blurred and dimmed.
   ===================================================== */
body.hst-auth-modal-open {
	overflow: hidden;
}

.hst-auth-modal[hidden] {
	display: none !important;
}

.hst-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
	direction: rtl;
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
}

.hst-auth-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.hst-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(4, 24, 50, .54);
	-webkit-backdrop-filter: blur(9px) saturate(.86);
	backdrop-filter: blur(9px) saturate(.86);
	cursor: default;
}

.hst-auth-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(470px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow-y: auto;
	padding: 28px;
	border: 1px solid rgba(216, 226, 239, .96);
	border-radius: 22px;
	background: rgba(255,255,255,.985);
	box-shadow: 0 32px 90px rgba(3, 23, 49, .28);
	transform: translateY(12px) scale(.985);
	transition: transform .2s ease;
	scrollbar-width: thin;
}

.hst-auth-modal.is-open .hst-auth-modal__dialog {
	transform: translateY(0) scale(1);
}

.hst-auth-modal__close {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid #e2e8f0;
	border-radius: 11px;
	background: #f7f9fc;
	color: #75879c;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: .16s ease;
}

.hst-auth-modal__close:hover,
.hst-auth-modal__close:focus-visible {
	background: #eef3f8;
	color: #0b3264;
	outline: none;
}

.hst-auth-modal__brand {
	display: flex;
	justify-content: center;
	padding: 2px 48px 18px;
}

.hst-auth-modal__brand .hst-brand-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(230px, 72%);
}

.hst-auth-modal__brand .hst-brand-fallback img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.hst-auth-modal__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	margin-bottom: 22px;
	padding: 5px;
	border-radius: 14px;
	background: #eef3f8;
}

.hst-auth-modal__tabs button {
	min-height: 42px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #6e8299;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: .16s ease;
}

.hst-auth-modal__tabs button.is-active {
	background: #fff;
	color: #0b3264;
	box-shadow: 0 5px 16px rgba(8, 47, 96, .08);
}

.hst-auth-modal__notices .woocommerce-error,
.hst-auth-modal__notices .woocommerce-message,
.hst-auth-modal__notices .woocommerce-info {
	margin: 0 0 18px !important;
	padding: 12px 14px !important;
	border-radius: 12px !important;
	font-size: 12px !important;
	line-height: 1.85 !important;
}

.hst-auth-modal__pane[hidden] {
	display: none !important;
}

.hst-auth-modal__heading {
	text-align: center;
}

.hst-auth-modal__heading h2 {
	margin: 0;
	color: #0b3264;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.55;
}

.hst-auth-modal__heading p {
	max-width: 350px;
	margin: 6px auto 0;
	color: #7b8da2;
	font-size: 12.5px;
	line-height: 1.95;
}

.hst-auth-modal__form {
	margin-top: 22px;
	display: grid;
	gap: 14px;
}

.hst-auth-modal__form > label,
.hst-auth-modal__grid > label {
	display: grid;
	gap: 7px;
	margin: 0;
}

.hst-auth-modal__form label > span,
.hst-auth-modal__grid label > span {
	color: #244766;
	font-size: 12.5px;
	font-weight: 800;
}

.hst-auth-modal__input {
	position: relative;
}

.hst-auth-modal__input > i {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 19px;
	height: 19px;
	display: grid;
	place-items: center;
	color: #496984;
	transform: translateY(-50%);
	pointer-events: none;
}

.hst-auth-modal__input > i svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.hst-auth-modal__form input[type="text"],
.hst-auth-modal__form input[type="tel"],
.hst-auth-modal__form input[type="email"],
.hst-auth-modal__form input[type="password"] {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #d9e3ee;
	border-radius: 13px;
	background: #f9fbfd;
	color: #173758;
	font-family: inherit;
	font-size: 13px;
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.hst-auth-modal__input input {
	padding-right: 44px !important;
}

.hst-auth-modal__password input {
	padding-left: 62px !important;
}

.hst-auth-modal__form input:focus {
	border-color: #2b70c9;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(43, 112, 201, .1);
}

.hst-auth-modal__password > button,
.hst-auth-modal__password-toggle {
	position: absolute;
	left: 8px;
	top: 50%;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #71859d;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease;
}

.hst-auth-modal__password-toggle:hover,
.hst-auth-modal__password-toggle:focus-visible {
	background: #edf3f9;
	color: #0b3264;
	outline: none;
}

.hst-auth-modal__password-toggle svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hst-auth-modal__password-toggle .hst-eye-closed {
	display: none;
}

.hst-auth-modal__password-toggle.is-visible .hst-eye-open {
	display: none;
}

.hst-auth-modal__password-toggle.is-visible .hst-eye-closed {
	display: block;
}

.hst-auth-modal__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 11.5px;
}

.hst-auth-modal__remember,
.hst-auth-modal__terms {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: center;
	gap: 7px !important;
	color: #607991;
	font-weight: 600;
}

.hst-auth-modal__remember input,
.hst-auth-modal__terms input {
	width: 16px;
	height: 16px;
	accent-color: #0b3264;
}

.hst-auth-modal__meta a,
.hst-auth-modal__terms a,
.hst-auth-modal__switch button {
	color: #0e62c2;
	font-weight: 800;
}

.hst-auth-modal__submit {
	min-height: 52px;
	margin-top: 2px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #ff8b16 0%, #ff7200 100%);
	box-shadow: 0 12px 24px rgba(255, 116, 0, .20);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease;
}

.hst-auth-modal__submit:hover,
.hst-auth-modal__submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 15px 28px rgba(255, 116, 0, .25);
	outline: none;
}

.hst-auth-modal__switch {
	margin: 18px 0 0;
	text-align: center;
	color: #7a8da3;
	font-size: 11.5px;
}

.hst-auth-modal__switch button {
	border: 0;
	padding: 0 4px;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
}

.hst-auth-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hst-auth-modal__terms {
	margin-top: 2px !important;
	font-size: 11.5px;
	line-height: 1.8;
}

@media (max-width: 600px) {
	.hst-auth-modal {
		padding: 14px;
		align-items: center;
	}

	.hst-auth-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 28px);
		padding: 22px 18px 20px;
		border-radius: 19px;
	}

	.hst-auth-modal__close {
		top: 12px;
		left: 12px;
		width: 34px;
		height: 34px;
	}

	.hst-auth-modal__brand {
		padding: 4px 45px 14px;
	}

	.hst-auth-modal__brand .hst-brand-fallback {
		width: min(205px, 76%);
	}

	.hst-auth-modal__heading h2 {
		font-size: 23px;
	}

	.hst-auth-modal__grid {
		grid-template-columns: 1fr;
	}

	.hst-auth-modal__meta {
		align-items: flex-start;
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hst-auth-modal,
	.hst-auth-modal__dialog,
	.hst-auth-modal__submit {
		transition: none !important;
	}
}
