@font-face {
	font-family: "Oboor IRANSans";
	src: url("../fonts/IRANSans-FaNum-UltraLight.ttf") format("truetype");
	font-style: normal;
	font-weight: 200;
	font-display: swap;
}

@font-face {
	font-family: "Oboor IRANSans";
	src: url("../fonts/IRANSans-FaNum-Light.ttf") format("truetype");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "Oboor IRANSans";
	src: url("../fonts/IRANSans-FaNum-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Oboor IRANSans";
	src: url("../fonts/IRANSans-FaNum-Medium.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Oboor IRANSans";
	src: url("../fonts/IRANSans-FaNum-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

.hamrah-login {
	--hl-primary: #2271b1;
	--hl-primary-hover: #135e96;
	--hl-input-border: #cbd5e1;
	--hl-input-focus: #2271b1;
	--hl-input-background: #fff;
	--hl-background: #fff;
	--hl-text: #172033;
	--hl-muted: #64748b;
	--hl-error: #b42318;
	--hl-success: #067647;
	--hl-max-width: 430px;
	--hl-padding: 28px;
	--hl-radius: 14px;
	--hl-font-size: 16px;
	--hl-shadow: 0 18px 45px rgba(15, 23, 42, .10);
	box-sizing: border-box;
	width: 100%;
	max-width: var(--hl-max-width);
	margin: 24px auto;
	color: var(--hl-text);
	font-family: "Oboor IRANSans", Tahoma, Arial, sans-serif;
	font-size: var(--hl-font-size);
}

.hamrah-login button,
.hamrah-login input,
.hamrah-login select,
.hamrah-login textarea {
	font-family: inherit;
}

.hamrah-login *,
.hamrah-login *::before,
.hamrah-login *::after {
	box-sizing: inherit;
}

.hamrah-login__panel {
	padding: var(--hl-padding);
	border: 1px solid var(--hl-input-border);
	border-radius: var(--hl-radius);
	background: var(--hl-background);
	box-shadow: var(--hl-shadow);
}

.hamrah-login--minimal .hamrah-login__panel { border-color: transparent; box-shadow: none; }
.hamrah-login--bordered .hamrah-login__panel { box-shadow: none; }

.hamrah-login__title {
	margin: 0 0 8px;
	font-size: 1.45rem;
	line-height: 1.5;
}

.hamrah-login__intro,
.hamrah-login__sent-to {
	margin: 0 0 20px;
	color: var(--hl-muted);
	font-size: 0.95rem;
	line-height: 1.8;
}

.hamrah-login__method-tabs,
.hamrah-login__password-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 0 0 20px;
	padding: 5px;
	border-radius: 10px;
	background: #f1f5f9;
}

.hamrah-login__method-tabs button,
.hamrah-login__password-switch button {
	min-height: 40px;
	padding: 7px 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--hl-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.hamrah-login__method-tabs button.is-active,
.hamrah-login__password-switch button.is-active {
	background: var(--hl-background);
	color: var(--hl-primary);
	box-shadow: 0 2px 8px rgba(15, 23, 42, .09);
}

.hamrah-login__password-switch {
	margin-bottom: 14px;
}

.hamrah-login__password-title {
	margin: 0 0 15px;
	font-size: 1.1em;
}

.hamrah-login__step label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
}

.hamrah-login__input {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0 0 14px;
	padding: 9px 12px;
	border: 1px solid var(--hl-input-border);
	border-radius: 8px;
	background: var(--hl-input-background);
	color: var(--hl-text);
	font: inherit;
	line-height: 1.5;
}

.hamrah-login__input:focus {
	border-color: var(--hl-input-focus);
	outline: 2px solid rgba(34, 113, 177, 0.18);
	outline-offset: 1px;
}

.hamrah-login__input--ltr,
.hamrah-login__input--code {
	direction: ltr;
	text-align: left;
}

.hamrah-login__profile-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 0 12px;
}

.hamrah-login__field--billing_address_1,
.hamrah-login__field--billing_company {
	grid-column: 1 / -1;
}

.hamrah-login__required {
	color: var(--hl-error);
	font-size: 1.1em;
	font-weight: 800;
}

.hamrah-login__input.is-invalid,
.hamrah-login__input:invalid:focus {
	border-color: var(--hl-error);
	box-shadow: 0 0 0 2px rgba(180, 35, 24, .12);
}

.hamrah-login__otp-title {
	margin: 0 0 8px;
	font-size: 1.15em;
}

.hamrah-login__input--code {
	letter-spacing: 0.35em;
	text-align: center;
}

.hamrah-login__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 9px 18px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.hamrah-login__button--primary {
	background: var(--hl-primary);
	color: #fff;
}

.hamrah-login__button--primary:hover,
.hamrah-login__button--primary:focus-visible {
	background: var(--hl-primary-hover);
}

.hamrah-login__button--secondary {
	margin-top: 10px;
	border: 1px solid var(--hl-primary);
	background: #fff;
	color: var(--hl-primary);
}

.hamrah-login__button--secondary:hover,
.hamrah-login__button--secondary:focus-visible {
	background: #f0f6fc;
	color: var(--hl-primary-hover);
}

.hamrah-login__button:disabled,
.hamrah-login__link:disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

.hamrah-login__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
}

.hamrah-login .cf-turnstile {
	min-height: 65px;
	margin-top: 14px;
	overflow: hidden;
}

.hamrah-login__remember {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 0.92rem;
	font-weight: 400 !important;
}

.hamrah-login__remember input {
	margin: 0;
}

.hamrah-login__account {
	margin: 12px 0 20px;
	color: var(--hl-muted);
}

.hamrah-login__link {
	padding: 3px 0;
	border: 0;
	background: transparent;
	color: var(--hl-primary);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.hamrah-login__message {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-right: 4px solid currentColor;
	border-radius: 6px;
	background: #f6f7f7;
	font-size: 0.92rem;
	line-height: 1.7;
}

.hamrah-login__message.is-error {
	color: var(--hl-error);
}

.hamrah-login__message.is-success,
.hamrah-login__success {
	color: var(--hl-success);
}

.hamrah-login__success {
	font-weight: 600;
	text-align: center;
}

.hamrah-login__honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
}

.hamrah-login__captcha {
	display: flex;
	justify-content: center;
	max-width: 100%;
	margin: 4px 0 12px;
	overflow: hidden;
}

.hamrah-login [hidden] {
	display: none !important;
}

.hamrah-login-woocommerce__note {
	max-width: 430px;
	margin: -12px auto 24px;
	color: #646970;
	font-size: 0.9rem;
	line-height: 1.8;
	text-align: center;
}

.hamrah-woocommerce-otp {
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

.hamrah-woocommerce-otp > h3 {
	margin: 0 0 8px;
}

.hamrah-woocommerce-otp > p {
	margin: 0 0 16px;
	color: #64748b;
}

.hamrah-login-popup__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 20px;
	border: 0;
	border-radius: 8px;
	background: #2271b1;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.hamrah-login-popup {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.hamrah-login-popup[hidden] { display: none !important; }

.hamrah-login-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .68);
}

.hamrah-login-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 720px);
	max-height: calc(100vh - 40px);
	overflow: auto;
}

.hamrah-login-popup__dialog .hamrah-login { margin: 0 auto; }

.hamrah-login-popup__close {
	position: absolute;
	z-index: 2;
	top: 8px;
	left: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

body.hamrah-login-popup-open { overflow: hidden; }

@media (max-width: 480px) {
	.hamrah-login {
		margin: 16px auto;
	}

	.hamrah-login__panel {
		border-radius: 10px;
	}

	.hamrah-login__actions {
		flex-direction: column;
		align-items: flex-start;
	}
}
