/**
 * Tik4 Whatsapp Login — scoped to .solmaz-auth-* so site styles stay intact.
 */

.solmaz-auth-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.solmaz-auth-overlay {
	--solmaz-auth-noir: #121315;
	--solmaz-auth-sage: #aabca3;
	--solmaz-auth-cream: #f4f6f3;
	--solmaz-auth-paper: #fafbf9;
	--solmaz-auth-muted: rgba(18, 19, 21, 0.55);
	--solmaz-auth-border: rgba(18, 19, 21, 0.1);
	--solmaz-auth-radius: 1.25rem;
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	font-family: "DM Sans", system-ui, sans-serif;
	color: var(--solmaz-auth-noir);
}

.solmaz-auth-overlay[hidden] {
	display: none;
}

.solmaz-auth-overlay.solmaz-auth-inline {
	position: relative;
	inset: auto;
	z-index: 1;
	display: flex;
	padding: 0;
	background: transparent;
}

.solmaz-auth-overlay.solmaz-auth-inline .solmaz-auth-dialog {
	width: min(100%, 26.5rem);
	max-height: none;
	margin: 0 auto;
}

.solmaz-auth-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 19, 21, 0.42);
	backdrop-filter: blur(8px);
}

.solmaz-auth-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 26.5rem);
	max-height: min(92vh, 40rem);
	overflow: auto;
	padding: 2rem 1.75rem 1.75rem;
	border: 1px solid rgba(18, 19, 21, 0.08);
	border-radius: var(--solmaz-auth-radius);
	background: #fff;
	box-shadow: 0 16px 48px -12px rgba(18, 19, 21, 0.28);
}

.solmaz-auth-close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--solmaz-auth-muted);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.solmaz-auth-close:hover,
.solmaz-auth-close:focus-visible {
	color: var(--solmaz-auth-noir);
	background: var(--solmaz-auth-cream);
	outline: none;
}

.solmaz-auth-close:focus-visible {
	box-shadow: 0 0 0 2px rgba(170, 188, 163, 0.7);
}

.solmaz-auth-brand {
	display: flex;
	justify-content: center;
	margin: 0.25rem 0 1.25rem;
}

.solmaz-auth-logo {
	height: 2.75rem;
	width: auto;
	object-fit: contain;
}

.solmaz-auth-brand-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.solmaz-auth-title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	font-weight: 650;
	letter-spacing: -0.02em;
	text-align: center;
}

.solmaz-auth-desc,
.solmaz-auth-masked {
	margin: 0 0 1.25rem;
	color: var(--solmaz-auth-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	text-align: center;
}

.solmaz-auth-masked {
	margin-top: -0.65rem;
	font-weight: 600;
	color: var(--solmaz-auth-noir);
}

.solmaz-auth-phone-row {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 0.55rem;
	margin-bottom: 0.85rem;
}

.solmaz-auth-country-picker {
	position: relative;
	min-width: 0;
}

.solmaz-auth-country-trigger {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.4rem;
	width: auto;
	min-width: 6.6rem;
	min-height: 2.85rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--solmaz-auth-border);
	border-radius: 0.85rem;
	background: #fff;
	color: var(--solmaz-auth-noir);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	text-align: start;
}

.solmaz-auth-country-trigger:hover,
.solmaz-auth-country-picker.is-open .solmaz-auth-country-trigger {
	border-color: rgba(18, 19, 21, 0.22);
	background: var(--solmaz-auth-paper);
}

.solmaz-auth-flag {
	flex: 0 0 1.25em;
	width: 1.25em;
	overflow: hidden;
	font-size: 1.15rem;
	line-height: 1;
	font-variant-emoji: emoji;
}

.solmaz-auth-dial {
	flex: 0 0 auto;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.solmaz-auth-chevron {
	margin-inline-start: auto;
	flex-shrink: 0;
	color: var(--solmaz-auth-muted);
	transition: transform 0.18s ease;
}

.solmaz-auth-country-picker.is-open .solmaz-auth-chevron {
	transform: rotate(180deg);
}

.solmaz-auth-country-panel {
	position: absolute;
	z-index: 5;
	top: calc(100% + 0.4rem);
	inset-inline-start: 0;
	width: min(20.5rem, calc(100vw - 3rem));
	overflow: hidden;
	border: 1px solid rgba(18, 19, 21, 0.08);
	border-radius: 0.95rem;
	background: #fff;
	box-shadow: 0 16px 40px -16px rgba(18, 19, 21, 0.35);
}

.solmaz-auth-country-panel[hidden] {
	display: none;
}

.solmaz-auth-country-search {
	display: block;
	width: calc(100% - 1rem);
	margin: 0.5rem;
	box-sizing: border-box;
	min-height: 2.5rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--solmaz-auth-border);
	border-radius: 0.7rem;
	background: var(--solmaz-auth-cream);
	color: var(--solmaz-auth-noir);
	font: inherit;
	font-size: 0.92rem;
}

.solmaz-auth-country-list {
	max-height: 14.5rem;
	margin: 0;
	padding: 0.2rem;
	overflow: auto;
	list-style: none;
}

.solmaz-auth-country-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.65rem;
	cursor: pointer;
	font-size: 0.92rem;
}

.solmaz-auth-country-option[hidden] {
	display: none;
}

.solmaz-auth-country-option:hover,
.solmaz-auth-country-option.is-active {
	background: var(--solmaz-auth-cream);
}

.solmaz-auth-country-option.is-selected {
	background: rgba(170, 188, 163, 0.28);
	font-weight: 650;
}

.solmaz-auth-country-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.solmaz-auth-country-option .solmaz-auth-dial {
	color: var(--solmaz-auth-muted);
	font-size: 0.84rem;
	font-weight: 650;
}

.solmaz-auth-country-empty {
	margin: 0;
	padding: 0.85rem 0.75rem 1rem;
	color: var(--solmaz-auth-muted);
	font-size: 0.88rem;
	text-align: center;
}

.solmaz-auth-country-empty[hidden] {
	display: none;
}

.solmaz-auth-dialog:has(.solmaz-auth-country-picker.is-open) {
	overflow: visible;
}

.solmaz-auth-country,
.solmaz-auth-phone,
.solmaz-auth-otp-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--solmaz-auth-border);
	border-radius: 0.85rem;
	background: #fff;
	color: var(--solmaz-auth-noir);
	font: inherit;
}

.solmaz-auth-country,
.solmaz-auth-phone {
	min-height: 2.85rem;
	padding: 0.55rem 0.75rem;
}

.solmaz-auth-country {
	max-width: 100%;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23121315'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.65rem center;
	background-size: 0.9rem;
	padding-right: 1.8rem;
}

.solmaz-auth-country:focus-visible,
.solmaz-auth-phone:focus-visible,
.solmaz-auth-otp-input:focus-visible,
.solmaz-auth-submit:focus-visible,
.solmaz-auth-header-btn:focus-visible,
.solmaz-auth-mobile-btn:focus-visible,
.solmaz-auth-text-btn:focus-visible,
.solmaz-auth-shortcode-btn:focus-visible {
	outline: 2px solid rgba(170, 188, 163, 0.85);
	outline-offset: 1px;
}

.solmaz-auth-otp {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin: 0 0 1rem;
	border: 0;
	padding: 0;
}

.solmaz-auth-otp-input {
	width: 2.55rem;
	height: 3rem;
	padding: 0;
	text-align: center;
	font-size: 1.2rem;
	font-weight: 650;
}

.solmaz-auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 2.9rem;
	margin-top: 0.35rem;
	padding: 0.7rem 1.1rem;
	border: 1px solid rgba(170, 188, 163, 0.5);
	border-radius: 999px;
	background: rgba(170, 188, 163, 0.18);
	color: var(--solmaz-auth-noir);
	font-size: 0.95rem;
	font-weight: 650;
	cursor: pointer;
	transition: background 0.18s ease;
}

.solmaz-auth-submit:hover:not(:disabled) {
	background: rgba(170, 188, 163, 0.32);
}

.solmaz-auth-submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

.solmaz-auth-spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(18, 19, 21, 0.15);
	border-top-color: var(--solmaz-auth-noir);
	border-radius: 50%;
	animation: solmaz-auth-spin 0.7s linear infinite;
}

.solmaz-auth-submit.is-loading .solmaz-auth-spinner {
	display: inline-block;
}

.solmaz-auth-error,
.solmaz-auth-success {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.75rem;
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: center;
}

.solmaz-auth-error {
	background: #f8ecec;
	color: #8a2f2f;
}

.solmaz-auth-success {
	background: rgba(170, 188, 163, 0.22);
	color: var(--solmaz-auth-noir);
}

.solmaz-auth-error[hidden],
.solmaz-auth-success[hidden],
.solmaz-auth-form[hidden] {
	display: none;
}

.solmaz-auth-secondary {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: 1rem;
}

.solmaz-auth-text-btn {
	border: 0;
	background: transparent;
	padding: 0.25rem 0;
	color: var(--solmaz-auth-muted);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.solmaz-auth-text-btn:hover:not(:disabled),
.solmaz-auth-text-btn:focus-visible {
	color: var(--solmaz-auth-noir);
}

.solmaz-auth-sms-btn {
	display: block;
	width: 100%;
	margin-top: 0.75rem;
	text-align: center;
}

.solmaz-auth-sms-btn[hidden] {
	display: none;
}

.solmaz-auth-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.solmaz-auth-header-btn,
.solmaz-auth-shortcode-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.5rem;
	padding: 0.625rem 1.25rem;
	border: 1px solid rgba(170, 188, 163, 0.5);
	border-radius: 999px;
	background: rgba(170, 188, 163, 0.15);
	color: #121315;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease;
}

.solmaz-auth-header-btn:hover,
.solmaz-auth-shortcode-btn:hover {
	background: rgba(170, 188, 163, 0.3);
}

.solmaz-auth-header-account {
	position: relative;
}

.solmaz-auth-header-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	min-width: 10.5rem;
	padding: 0.4rem;
	border: 1px solid rgba(18, 19, 21, 0.08);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 16px 48px -12px rgba(18, 19, 21, 0.28);
}

.solmaz-auth-header-menu[hidden] {
	display: none;
}

.solmaz-auth-header-menu a {
	display: block;
	padding: 0.65rem 0.85rem;
	border-radius: 0.75rem;
	color: rgba(18, 19, 21, 0.72);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.solmaz-auth-header-menu a:hover,
.solmaz-auth-header-menu a:focus-visible {
	background: rgba(18, 19, 21, 0.04);
	color: #121315;
	outline: none;
}

.solmaz-auth-header-chevron {
	opacity: 0.45;
}

.solmaz-auth-mobile-account,
.solmaz-auth-mobile-btn {
	width: 100%;
}

.solmaz-auth-mobile-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.85rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(170, 188, 163, 0.5);
	border-radius: 999px;
	background: rgba(170, 188, 163, 0.15);
	color: #121315;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.solmaz-auth-mobile-btn:hover {
	background: rgba(170, 188, 163, 0.3);
}

.solmaz-auth-mobile-logout {
	display: block;
	margin-top: 0.65rem;
	color: rgba(18, 19, 21, 0.55);
	font-size: 0.88rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.solmaz-auth-mobile-account + a.mobile-nav-link,
.solmaz-auth-mobile-btn + a.mobile-nav-link {
	margin-top: 0.75rem;
}

body.solmaz-auth-open {
	overflow: hidden;
}

@keyframes solmaz-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 420px) {
	.solmaz-auth-phone-row {
		grid-template-columns: 1fr;
	}

	.solmaz-auth-otp-input {
		width: 2.2rem;
		height: 2.7rem;
	}
}

[dir="rtl"] .solmaz-auth-close {
	right: auto;
	left: 0.85rem;
}

[dir="rtl"] .solmaz-auth-header-menu {
	right: auto;
	left: 0;
}

[dir="rtl"] .solmaz-auth-country {
	background-position: left 0.65rem center;
	padding-right: 0.75rem;
	padding-left: 1.8rem;
}

