/* =========================================================
   Wolf Custom Auth (wcauth) — scoped, theme-proof, responsive
   Every visual/layout declaration is !important on purpose:
   many WP themes / page builders ship generic button/input/flex
   rules with !important, which otherwise wins over class
   selectors of equal specificity. This guarantees the modal
   always renders exactly the same regardless of host theme,
   on both mobile and desktop.
   ========================================================= */

.wcauth-scope {
	--wcauth-radius: 16px;
	--wcauth-radius-sm: 10px;
	--wcauth-bg: #ffffff;
	--wcauth-fg: #18151d;
	--wcauth-muted: #77727f;
	--wcauth-muted-bg: #f6f4f8;
	--wcauth-border: #e5e1e9;
	--wcauth-input: #ffffff;
	--wcauth-ring: rgb(104, 62, 164);
	--wcauth-primary: rgb(104, 62, 164);
	--wcauth-primary-fg: #ffffff;
	--wcauth-primary-hover: rgb(87, 47, 143);
	--wcauth-destructive: #e5484d;
	--wcauth-shadow-lg: 0 24px 70px rgba(31, 20, 43, .22), 0 3px 12px rgba(31, 20, 43, .08);
	--wcauth-font: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

html.wp-dark-mode-active .wcauth-scope {
	--wcauth-bg: #121214;
	--wcauth-fg: #fafafa;
	--wcauth-muted: #a1a1aa;
	--wcauth-muted-bg: #1c1c1f;
	--wcauth-border: #2a2a2e;
	--wcauth-input: #19191c;
}

html.wcauth-no-scroll,
body.wcauth-no-scroll { overflow: hidden !important; }

/* ---- Header trigger: bare button, lets the Woodmart .wd-tools-icon glyph show ---- */
.wcauth-account-tool.wcauth-account-tool {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	vertical-align: middle !important;
}
.wcauth-account-tool .wd-tools-icon {
	margin: 0 !important;
	padding: 0 !important;
}
.wcauth-trigger,
.wcauth-trigger-login,
.wcauth-trigger-account {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #333 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	vertical-align: middle !important;
	text-decoration: none !important;
}
.wcauth-trigger .wd-tools-icon,
.wcauth-trigger-login .wd-tools-icon,
.wcauth-trigger-account .wd-tools-icon,
.wcauth-trigger .wd-tools-icon::before,
.wcauth-trigger-login .wd-tools-icon::before,
.wcauth-trigger-account .wd-tools-icon::before {
	color: #333 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

/* Match other header icons in WP Dark Mode */
html.wp-dark-mode-active .wcauth-account-tool,
html.wp-dark-mode-active .wcauth-trigger,
html.wp-dark-mode-active .wcauth-trigger-login,
html.wp-dark-mode-active .wcauth-trigger-account,
html.wp-dark-mode-active .wcauth-trigger .wd-tools-icon,
html.wp-dark-mode-active .wcauth-trigger-login .wd-tools-icon,
html.wp-dark-mode-active .wcauth-trigger-account .wd-tools-icon,
html.wp-dark-mode-active .wcauth-trigger .wd-tools-icon::before,
html.wp-dark-mode-active .wcauth-trigger-login .wd-tools-icon::before,
html.wp-dark-mode-active .wcauth-trigger-account .wd-tools-icon::before {
	color: #cfc9bf !important;
	background: transparent !important;
	background-color: transparent !important;
	filter: none !important;
	-webkit-filter: none !important;
}
.wcauth-trigger:hover,
.wcauth-trigger-login:hover,
.wcauth-trigger-account:hover {
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}
.wcauth-trigger:focus-visible,
.wcauth-trigger-login:focus-visible,
.wcauth-trigger-account:focus-visible {
	outline: 3px solid rgba(104, 62, 164, .22);
	outline-offset: 2px;
}

/* Reset real elements only. Resetting pseudo-elements removes Remix Icon glyphs. */
.wcauth-scope, .wcauth-scope * {
	all: revert !important;
	box-sizing: border-box !important;
	font-family: var(--wcauth-font) !important;
	text-align: right !important;
	direction: rtl !important;
	line-height: normal !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	list-style: none !important;
	float: none !important;
	max-width: none !important;
	white-space: normal !important;
}
.wcauth-scope i[class^="ri-"],
.wcauth-scope i[class*=" ri-"],
.wcauth-scope i[class^="ri-"]::before,
.wcauth-scope i[class*=" ri-"]::before {
	font-family: "remixicon" !important;
	font-style: normal !important;
	font-weight: 400 !important;
	font-variant: normal !important;
	line-height: 1 !important;
	text-transform: none !important;
	display: inline-block !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
}
.wcauth-scope button { cursor: pointer !important; -webkit-appearance: none !important; appearance: none !important; }
.wcauth-scope a { cursor: pointer !important; }

/* ---- Overlay / Modal shell ---- */
.wcauth-overlay {
	position: fixed !important;
	inset: 0 !important;
	background: rgba(18, 14, 24, .58) !important;
	-webkit-backdrop-filter: blur(3px) !important;
	backdrop-filter: blur(3px) !important;
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 999999 !important;
	padding: 24px !important;
	margin: 0 !important;
	border: 0 !important;
}
.wcauth-overlay.is-open { display: flex !important; }

/* Guest My Account: auth UI sits in page content (no floating overlay) */
.wcauth-account-login-root {
	display: flex !important;
	justify-content: center !important;
	align-items: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 12px 0 32px !important;
	min-height: 280px !important;
}
.wcauth-account-login-fallback {
	margin: 48px auto !important;
	text-align: center !important;
	color: #777 !important;
	font-family: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif !important;
}
.wcauth-overlay.wcauth-is-page {
	position: relative !important;
	inset: auto !important;
	background: transparent !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	z-index: 1 !important;
	padding: 0 !important;
	margin: 0 auto !important;
	width: 100% !important;
	max-width: 424px !important;
	pointer-events: auto !important;
}
.wcauth-overlay.wcauth-is-page .wcauth-modal {
	max-width: 100% !important;
	width: 100% !important;
	box-shadow: 0 12px 40px rgba(31, 20, 43, .12), 0 2px 8px rgba(31, 20, 43, .06) !important;
	animation: none !important;
}
.wcauth-overlay.wcauth-is-page .wcauth-close {
	display: none !important;
}

.wcauth-modal {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 424px !important;
	background: var(--wcauth-bg) !important;
	color: var(--wcauth-fg) !important;
	border: 1px solid var(--wcauth-border) !important;
	border-radius: var(--wcauth-radius) !important;
	padding: 32px !important;
	box-shadow: var(--wcauth-shadow-lg) !important;
	max-height: 92vh !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	animation: wcauth-modal-in .2s ease-out both !important;
}
.wcauth-modal.is-country-open { overflow: visible !important; }

.wcauth-close {
	position: absolute !important;
	top: 16px !important;
	left: 16px !important;
	width: 32px !important; height: 32px !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	border: 1px solid transparent !important;
	border-radius: var(--wcauth-radius-sm) !important;
	color: var(--wcauth-muted) !important;
	background: transparent !important;
	font-size: 19px !important;
	padding: 0 !important;
	flex: none !important;
}
.wcauth-close:hover { color: var(--wcauth-fg) !important; background: var(--wcauth-muted-bg) !important; }
.wcauth-close:focus-visible,
.wcauth-back:focus-visible,
.wcauth-btn:focus-visible,
.wcauth-link:focus-visible,
.wcauth-avatar-btn:focus-visible {
	outline: 3px solid rgba(104,62,164,.22) !important;
	outline-offset: 2px !important;
}

.wcauth-step { display: none !important; }
.wcauth-step[data-wcauth-active="1"] { display: block !important; }

.wcauth-head {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	margin: 0 0 26px !important;
	width: 100% !important;
	padding-left: 32px !important;
}
.wcauth-head h3 { display: block !important; margin: 0 !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.4 !important; color: var(--wcauth-fg) !important; }
.wcauth-sub { display: block !important; color: var(--wcauth-muted) !important; font-size: 13.5px !important; line-height: 1.6 !important; margin: 2px 0 0 !important; word-break: break-word !important; }

.wcauth-badge {
	width: 50px !important; height: 50px !important;
	flex: none !important;
	border-radius: 999px !important;
	background: rgba(104,62,164,.09) !important;
	color: var(--wcauth-primary) !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	font-size: 24px !important;
}

.wcauth-back {
	width: 46px !important; height: 46px !important;
	flex: none !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(104,62,164,.09) !important;
	color: var(--wcauth-primary) !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	font-size: 21px !important;
	padding: 0 !important;
}
.wcauth-back:hover { background: rgba(104,62,164,.16) !important; }

.wcauth-label {
	display: block !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	margin: 18px 0 8px !important;
	color: var(--wcauth-fg) !important;
}
.wcauth-optional { font-weight: 400 !important; color: var(--wcauth-muted) !important; font-size: 12px !important; }

.wcauth-input-wrap { position: relative !important; display: block !important; width: 100% !important; min-width: 0 !important; }
.wcauth-input-icon {
	position: absolute !important;
	top: 50% !important; right: 13px !important;
	transform: translateY(-50%) !important;
	color: var(--wcauth-muted) !important;
	font-size: 16px !important;
	pointer-events: none !important;
	display: flex !important;
}
.wcauth-input-wrap .wcauth-input { padding-right: 38px !important; }
.wcauth-phone-input-wrap .wcauth-input {
	padding: 0 14px !important;
	text-align: left !important;
}
.wcauth-phone-input-wrap .wcauth-input::placeholder { text-align: left !important; }

.wcauth-input {
	display: block !important;
	width: 100% !important;
	height: 42px !important;
	background: var(--wcauth-input) !important;
	border: 1px solid var(--wcauth-border) !important;
	border-radius: var(--wcauth-radius-sm) !important;
	padding: 0 14px !important;
	margin: 0 !important;
	font-size: 14px !important;
	direction: ltr !important;
	text-align: right !important;
	outline: none !important;
	box-shadow: none !important;
}
.wcauth-input::placeholder { color: var(--wcauth-muted) !important; opacity: 1 !important; }
.wcauth-input:focus {
	border-color: var(--wcauth-ring) !important;
	box-shadow: 0 0 0 3px rgba(104,62,164,.22) !important;
}
.wcauth-input:hover,
.wcauth-country-trigger:hover { border-color: #cec8d5 !important; }

.wcauth-select-wrap {
	position: relative !important;
	flex: 0 0 118px !important;
	width: 118px !important;
	height: 42px !important;
	min-width: 0 !important;
	direction: ltr !important;
}
.wcauth-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.wcauth-country-trigger {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	background: var(--wcauth-input) !important;
	border: 1px solid var(--wcauth-border) !important;
	border-radius: var(--wcauth-radius-sm) !important;
	padding: 0 9px !important;
	margin: 0 !important;
	font-size: 13px !important;
	direction: ltr !important;
	text-align: left !important;
	outline: none !important;
	cursor: pointer !important;
}
.wcauth-country-trigger img,
.wcauth-country-option img {
	width: 22px !important;
	height: 16px !important;
	border-radius: 2px !important;
	object-fit: cover !important;
	flex: none !important;
	box-shadow: 0 0 0 1px rgba(0,0,0,.08) !important;
}
.wcauth-country-trigger span { flex: 0 0 auto !important; font-weight: 600 !important; direction: ltr !important; }
.wcauth-country-trigger i {
	color: var(--wcauth-muted) !important;
	font-size: 17px !important;
	flex: none !important;
	margin: 0 !important;
	transition: transform .15s ease !important;
}
.wcauth-country-trigger[aria-expanded="true"] i { transform: rotate(180deg) !important; }
.wcauth-country-trigger:focus-visible {
	border-color: var(--wcauth-ring) !important;
	box-shadow: 0 0 0 3px rgba(104,62,164,.22) !important;
}
.wcauth-country-menu {
	position: absolute !important;
	top: calc(100% + 7px) !important;
	left: 0 !important;
	z-index: 20 !important;
	display: flex !important;
	flex-direction: column !important;
	width: 172px !important;
	max-height: none !important;
	padding: 5px !important;
	overflow: hidden !important;
	background: var(--wcauth-bg) !important;
	border: 1px solid var(--wcauth-border) !important;
	border-radius: var(--wcauth-radius-sm) !important;
	box-shadow: 0 14px 34px rgba(31,20,43,.18) !important;
	direction: rtl !important;
}
.wcauth-country-menu[hidden] { display: none !important; }
.wcauth-country-option {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 6px !important;
	width: 100% !important;
	min-height: 34px !important;
	padding: 5px 8px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: var(--wcauth-fg) !important;
	font-size: 13px !important;
	direction: ltr !important;
}
.wcauth-country-option img { margin-right: auto !important; }
.wcauth-country-option span { flex: 0 0 auto !important; text-align: right !important; }
.wcauth-country-option bdi { color: var(--wcauth-muted) !important; font-size: 12.5px !important; direction: ltr !important; }
.wcauth-country-option:hover,
.wcauth-country-option[aria-selected="true"] { background: var(--wcauth-muted-bg) !important; }
.wcauth-country-option[aria-selected="true"] { color: var(--wcauth-primary) !important; font-weight: 600 !important; }
.wcauth-country-option:focus-visible {
	outline: 2px solid rgba(104,62,164,.35) !important;
	outline-offset: -2px !important;
}

.wcauth-phone-row {
	display: flex !important;
	flex-direction: row !important;
	direction: ltr !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
}
.wcauth-phone-row .wcauth-input-wrap { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }

.wcauth-btn {
	position: relative !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	height: 48px !important;
	border: 1px solid transparent !important;
	border-radius: var(--wcauth-radius-sm) !important;
	padding: 0 18px !important;
	margin: 22px 0 0 !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	line-height: normal !important;
	box-shadow: 0 6px 14px rgba(104,62,164,.16) !important;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease !important;
}
.wcauth-btn i { font-size: 16px !important; }
.wcauth-btn-content {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
}
.wcauth-scope .wcauth-btn i.wcauth-btn-loading {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	display: none !important;
	color: var(--wcauth-primary-fg) !important;
	font-size: 21px !important;
	transform: translate(-50%, -50%) !important;
}
.wcauth-scope .wcauth-btn i.wcauth-btn-loading[hidden] { display: none !important; }
.wcauth-btn.is-loading {
	cursor: wait !important;
	transform: none !important;
}
.wcauth-scope .wcauth-btn.is-loading .wcauth-btn-content { visibility: hidden !important; opacity: 0 !important; }
.wcauth-scope .wcauth-btn.is-loading i.wcauth-btn-loading {
	display: inline-block !important;
	animation: wcauth-btn-spin .7s linear infinite !important;
}
.wcauth-btn-primary {
	background: var(--wcauth-primary) !important;
	color: var(--wcauth-primary-fg) !important;
}
.wcauth-btn-primary:hover { background: var(--wcauth-primary-hover) !important; color: var(--wcauth-primary-fg) !important; box-shadow: 0 8px 18px rgba(104,62,164,.22) !important; transform: translateY(-1px) !important; }
.wcauth-btn-primary:active { transform: translateY(0) !important; box-shadow: 0 4px 10px rgba(104,62,164,.16) !important; }
.wcauth-btn-primary:disabled { opacity: .55 !important; cursor: not-allowed !important; }

.wcauth-error {
	display: block !important;
	color: var(--wcauth-destructive) !important;
	font-size: 12px !important;
	min-height: 17px !important;
	margin: 6px 0 0 !important;
	line-height: 1.5 !important;
}

.wcauth-otp-row {
	display: flex !important;
	flex-direction: row !important;
	gap: 10px !important;
	direction: ltr !important;
	margin: 4px 0 0 !important;
	width: 100% !important;
}
.wcauth-otp-box {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	height: 52px !important;
	text-align: center !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	background: var(--wcauth-input) !important;
	border: 1px solid var(--wcauth-border) !important;
	border-radius: var(--wcauth-radius-sm) !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	padding: 0 !important;
	outline: none !important;
}
.wcauth-otp-box:focus {
	border-color: var(--wcauth-ring) !important;
	box-shadow: 0 0 0 3px rgba(104,62,164,.22) !important;
}

.wcauth-resend { display: block !important; text-align: center !important; font-size: 12.5px !important; color: var(--wcauth-muted) !important; margin: 14px 0 0 !important; }
.wcauth-link {
	display: inline !important;
	color: var(--wcauth-primary) !important;
	font-weight: 700 !important;
	font-size: 12.5px !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
}
.wcauth-link:disabled { color: var(--wcauth-muted) !important; cursor: default !important; }

.wcauth-avatar-carousel {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	min-height: 120px !important;
}
.wcauth-avatars {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	min-height: 112px !important;
}
.wcauth-avatar-btn {
	width: 80px !important; height: 80px !important;
	border-radius: 999px !important;
	overflow: hidden !important;
	border: 2px solid var(--wcauth-bg) !important;
	background: var(--wcauth-muted-bg) !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: none !important;
	display: none !important;
	opacity: .42 !important;
	transform: scale(.88) !important;
	transition: width .2s ease, height .2s ease, opacity .2s ease, transform .2s ease, border-color .2s ease !important;
	position: relative !important;
	line-height: 0 !important;
	font-size: 0 !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}
.wcauth-avatar-btn.is-prev,
.wcauth-avatar-btn.is-next { display: block !important; }
.wcauth-avatar-btn.is-prev { order: 1 !important; }
.wcauth-avatar-btn.is-selected { order: 2 !important; }
.wcauth-avatar-btn.is-next { order: 3 !important; }
.wcauth-avatar-btn img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	border-radius: 999px !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	vertical-align: top !important;
}
.wcauth-avatar-btn.is-selected {
	display: block !important;
	width: 112px !important;
	height: 112px !important;
	opacity: 1 !important;
	transform: scale(1) !important;
	border-color: var(--wcauth-primary) !important;
	box-shadow: 0 0 0 3px rgba(104,62,164,.18) !important;
}
.wcauth-avatar-btn.is-prev:hover,
.wcauth-avatar-btn.is-next:hover { opacity: .72 !important; transform: scale(.94) !important; }
.wcauth-avatar-nav {
	width: 34px !important;
	height: 34px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--wcauth-fg) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: none !important;
	font-size: 22px !important;
	padding: 0 !important;
}
.wcauth-avatar-nav:hover { background: var(--wcauth-muted-bg) !important; color: var(--wcauth-primary) !important; }
.wcauth-avatar-nav:focus-visible {
	outline: 3px solid rgba(104,62,164,.22) !important;
	outline-offset: 2px !important;
}

.wcauth-checkbox-row {
	display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 9px !important;
	margin: 18px 0 0 !important;
	font-size: 13px !important;
	color: var(--wcauth-fg) !important;
}
.wcauth-checkbox-row input[type="checkbox"] {
	all: revert !important;
	width: 17px !important; height: 17px !important;
	margin: 2px 0 0 !important;
	flex: none !important;
	accent-color: var(--wcauth-primary) !important;
}
.wcauth-terms-link { color: var(--wcauth-primary) !important; font-weight: 700 !important; text-decoration: underline !important; display: inline !important; }

.wcauth-loading {
	position: absolute !important; inset: 0 !important;
	background: rgba(255,255,255,.7) !important;
	display: none !important;
	align-items: center !important; justify-content: center !important;
	border-radius: inherit !important;
}
html.wp-dark-mode-active .wcauth-loading { background: rgba(18,18,20,.7) !important; }
.wcauth-loading.is-active { display: flex !important; }
.wcauth-spinner {
	width: 30px !important; height: 30px !important;
	border: 3px solid var(--wcauth-border) !important;
	border-top-color: var(--wcauth-primary) !important;
	border-radius: 999px !important;
	display: block !important;
	animation: wcauth-spin .7s linear infinite !important;
}
@keyframes wcauth-spin { to { transform: rotate(360deg); } }
@keyframes wcauth-btn-spin {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes wcauth-modal-in {
	from { opacity: 0; transform: translateY(8px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wcauth-sheet-in {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* ===== Account side sheet — inherits Woodmart .wd-heading / close styles ===== */
@keyframes wcauth-drawer-in {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}
#wcauth-account-overlay.wcauth-account-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 100000 !important;
	display: none !important;
	direction: ltr !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(0, 0, 0, .5) !important;
	box-sizing: border-box !important;
}
#wcauth-account-overlay.wcauth-account-overlay.is-open {
	display: flex !important;
}
#wcauth-account-overlay .wcauth-drawer {
	display: flex !important;
	flex-direction: column !important;
	width: min(var(--wd-side-hidden-w, 340px), 100vw) !important;
	max-width: min(var(--wd-side-hidden-w, 340px), 100vw) !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	position: relative !important;
	left: 0 !important;
	right: auto !important;
	background-color: var(--bgcolor-white, #fff) !important;
	color: var(--wd-text-color, #777) !important;
	font-family: var(--wd-text-font, "IBM Plex Sans Arabic", Arial, Helvetica, sans-serif) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	animation: wcauth-drawer-in .5s cubic-bezier(.19, 1, .22, 1) both !important;
	direction: rtl !important;
	box-sizing: border-box !important;
}
@media (max-width: 1024px) {
	#wcauth-account-overlay .wcauth-drawer {
		/* Same as theme cart sheet on mobile/tablet */
		--wd-side-hidden-w: min(300px, 80vw);
		width: min(var(--wd-side-hidden-w), 100vw) !important;
		max-width: min(var(--wd-side-hidden-w), 100vw) !important;
	}
}

/* Let theme style .wd-heading / .close-side-widget — only keep layout intact */
#wcauth-account-overlay .wd-heading {
	flex: 0 0 auto !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.wcauth-drawer-user {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 20px 15px 16px !important;
	flex: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	border-bottom: 0px solid var(--brdcolor-gray-300, rgba(0,0,0,.105)) !important;
	direction: rtl !important;
}
.wcauth-drawer-avatar {
	width: 52px !important;
	height: 52px !important;
	border-radius: 999px !important;
	object-fit: cover !important;
	border: 1px solid var(--brdcolor-gray-300, rgba(0,0,0,.105)) !important;
	display: block !important;
	flex: none !important;
}
.wcauth-drawer-hi {
	display: block !important;
	font-size: 12px !important;
	color: var(--wd-text-color, #777) !important;
	margin: 0 0 2px !important;
}
.wcauth-drawer-user strong {
	display: block !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	color: var(--wd-title-color, #242424) !important;
}

/* Flat menu list — no outer border, no item dividers */
.wcauth-drawer-nav {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	flex: 1 1 auto !important;
	direction: rtl !important;
}
.wcauth-drawer-nav a,
.wcauth-drawer-nav .wcauth-drawer-link {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 14px 15px !important;
	border-radius: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--wd-title-color, #242424) !important;
	text-decoration: none !important;
	width: 100% !important;
	transition: background .2s ease, color .2s ease !important;
	background: transparent !important;
	box-sizing: border-box !important;
}
.wcauth-drawer-nav a::before,
.wcauth-drawer-nav .wcauth-drawer-link::before {
	content: "" !important;
	width: 20px !important;
	height: 20px !important;
	flex-shrink: 0 !important;
	background-color: #242424 !important;
	background-image: none !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	opacity: 1 !important;
	transition: background-color .2s ease !important;
}
.wcauth-drawer-nav a:hover,
.wcauth-drawer-nav .wcauth-drawer-link:hover {
	background: var(--color-gray-100, #f7f7f7) !important;
	color: var(--wd-primary-color, #683ea4) !important;
}
.wcauth-drawer-nav a:hover::before,
.wcauth-drawer-nav .wcauth-drawer-link:hover::before {
	background-color: var(--wd-primary-color, #683ea4) !important;
}
.wcauth-drawer-link-text {
	flex: 1 1 auto !important;
	text-align: right !important;
}

/* Mask icons — dark by default, purple on hover */
.wcauth-drawer-dashboard::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-orders::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-downloads::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-edit-address::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-edit-account::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a8 8 0 0 1 16 0v1'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a8 8 0 0 1 16 0v1'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-wishlist::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") !important;
}
.wcauth-drawer-customer-logout::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") !important;
	background-color: #dc2626 !important;
}
.wcauth-drawer-nav a.wcauth-logout,
.wcauth-drawer-nav .wcauth-drawer-customer-logout {
	color: #dc2626 !important;
	margin-top: 0 !important;
}
.wcauth-drawer-nav a.wcauth-logout:hover,
.wcauth-drawer-nav .wcauth-drawer-customer-logout:hover {
	color: #dc2626 !important;
	background: #fef1f4 !important;
}
.wcauth-drawer-nav a.wcauth-logout:hover::before,
.wcauth-drawer-nav .wcauth-drawer-customer-logout:hover::before {
	background-color: #dc2626 !important;
}

/* Dark mode sheet icons — #cfc9bf default (JS adds .wcauth-is-dark when WPDM is on) */
html.wp-dark-mode-active #wcauth-account-overlay .wcauth-drawer-nav a::before,
html.wp-dark-mode-active #wcauth-account-overlay .wcauth-drawer-nav .wcauth-drawer-link::before,
html.wcauth-dark-mode #wcauth-account-overlay .wcauth-drawer-nav a::before,
html.wcauth-dark-mode #wcauth-account-overlay .wcauth-drawer-nav .wcauth-drawer-link::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-nav a::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-nav .wcauth-drawer-link::before {
	background-color: #cfc9bf !important;
	background-image: none !important;
	filter: none !important;
	-webkit-filter: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	box-shadow: none !important;
	border: 0 !important;
}
html.wp-dark-mode-active #wcauth-account-overlay .wcauth-drawer-nav a:hover::before,
html.wcauth-dark-mode #wcauth-account-overlay .wcauth-drawer-nav a:hover::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-nav a:hover::before {
	background-color: var(--wd-primary-color, #c8a1ff) !important;
	background-image: none !important;
}
html.wp-dark-mode-active #wcauth-account-overlay .wcauth-drawer-customer-logout::before,
html.wp-dark-mode-active #wcauth-account-overlay .wcauth-drawer-nav a.wcauth-logout::before,
html.wcauth-dark-mode #wcauth-account-overlay .wcauth-drawer-customer-logout::before,
html.wcauth-dark-mode #wcauth-account-overlay .wcauth-drawer-nav a.wcauth-logout::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-customer-logout::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-nav a.wcauth-logout::before,
#wcauth-account-overlay.wcauth-is-dark .wcauth-drawer-nav a.wcauth-logout:hover::before {
	background-color: #dc2626 !important;
	background-image: none !important;
}

/* Header account glyph matches other icons in dark mode */
html.wp-dark-mode-active .wcauth-account-tool,
html.wp-dark-mode-active .wcauth-account-tool .wd-tools-icon,
html.wp-dark-mode-active .wcauth-account-tool .wd-tools-icon::before,
html.wcauth-dark-mode .wcauth-account-tool,
html.wcauth-dark-mode .wcauth-account-tool .wd-tools-icon,
html.wcauth-dark-mode .wcauth-account-tool .wd-tools-icon::before,
.wcauth-account-tool.wcauth-is-dark,
.wcauth-account-tool.wcauth-is-dark .wd-tools-icon,
.wcauth-account-tool.wcauth-is-dark .wd-tools-icon::before {
	color: #cfc9bf !important;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
	/* Login/register modal becomes a bottom sheet on mobile.
	   Scoped to :not(.wcauth-account-overlay) so the account drawer
	   keeps its own left-side slide-in behaviour. */
	.wcauth-overlay:not(.wcauth-account-overlay) {
		padding: 0 !important;
		align-items: flex-end !important;
		justify-content: center !important;
	}
	.wcauth-overlay:not(.wcauth-account-overlay) .wcauth-modal {
		max-width: 100% !important;
		width: 100% !important;
		border-radius: 20px 20px 0 0 !important;
		border-bottom: 0 !important;
		max-height: 92vh !important;
		padding: 30px 20px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
		animation: wcauth-sheet-in .28s cubic-bezier(.22, 1, .36, 1) both !important;
	}
	/* Grab handle at the top of the sheet */
	.wcauth-overlay:not(.wcauth-account-overlay) .wcauth-modal::before {
		content: "" !important;
		position: absolute !important;
		top: 9px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: 40px !important;
		height: 4px !important;
		border-radius: 999px !important;
		background: var(--wcauth-border) !important;
	}
	.wcauth-drawer,
	#wcauth-account-overlay .wcauth-drawer {
		/* Match Woodmart mobile side sheet: --wd-side-hidden-w: min(300px, 80vw) */
		--wd-side-hidden-w: min(300px, 80vw);
		width: min(var(--wd-side-hidden-w), 100vw) !important;
		max-width: min(var(--wd-side-hidden-w), 100vw) !important;
	}
	.wcauth-otp-box { font-size: 17px !important; }
	.wcauth-select-wrap { flex-basis: 108px !important; width: 108px !important; }
	.wcauth-country-trigger { font-size: 12.5px !important; gap: 5px !important; padding: 0 7px !important; }
	.wcauth-country-trigger img { width: 20px !important; height: 14px !important; }
	/* Open the country menu upward inside the bottom sheet so its
	   options are never clipped by the sheet / screen bottom edge. */
	.wcauth-country-menu {
		top: auto !important;
		bottom: calc(100% + 7px) !important;
		width: min(230px, calc(100vw - 56px)) !important;
		max-height: 40vh !important;
		overflow-y: auto !important;
		box-shadow: 0 -14px 34px rgba(31, 20, 43, .18) !important;
	}
	.wcauth-country-option {
		min-height: 44px !important;
		padding: 8px 10px !important;
		font-size: 14px !important;
	}
	.wcauth-country-option bdi { font-size: 13px !important; }
	.wcauth-head h3 { font-size: 18px !important; }
	.wcauth-avatar-btn { width: 68px !important; height: 68px !important; }
	.wcauth-avatar-btn.is-selected { width: 92px !important; height: 92px !important; }
	.wcauth-avatar-carousel { min-height: 104px !important; }
	.wcauth-avatars { min-height: 96px !important; gap: 10px !important; }
}

@media (min-width: 481px) and (max-width: 782px) {
	.wcauth-modal { max-width: 420px !important; }
}

@media (min-width: 783px) {
	.wcauth-modal { max-width: 424px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.wcauth-modal,
	.wcauth-spinner,
	.wcauth-btn { animation: none !important; transition: none !important; }
}

/* ---- My Account → Edit account (avatar + locked WhatsApp) ----
   Match Woodmart form tokens: --wd-form-brd-radius (35px), --wd-form-height, etc.
   Use div.form-row (not p) so nested carousel markup is not broken by browsers. */
.wcauth-edit-account {
	--wcauth-primary: var(--wd-primary-color, rgb(104, 62, 164));
	--wcauth-muted: var(--wd-text-color, #777);
	--wcauth-muted-bg: var(--color-gray-100, #f7f7f7);
	--wcauth-border: var(--wd-form-brd-color, rgba(0, 0, 0, .1));
	--wcauth-fg: var(--wd-title-color, #242424);
	--wcauth-bg: var(--wd-form-bg, #fff);
	display: block;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
}
.wcauth-edit-account .wcauth-edit-avatar-row,
.wcauth-edit-account .wcauth-edit-phone-row {
	margin: 0 0 1.41575em;
}

/* Edit-account avatar picker reuses the exact same markup/classes as the
   login/register modal's avatar carousel (.wcauth-avatar-carousel,
   .wcauth-avatar-nav, .wcauth-avatars, .wcauth-avatar-btn) so it renders
   identically: both chevrons visible, avatars centered, even gaps.
   This wrapper only supplies the CSS variables those shared rules need —
   no layout overrides, so the proven centered flex layout is left intact. */
.wcauth-edit-carousel-wrap {
	--wcauth-bg: #ffffff;
	--wcauth-fg: var(--wd-title-color, #242424);
	--wcauth-muted: var(--wd-text-color, #777);
	--wcauth-muted-bg: var(--color-gray-100, #f7f7f7);
	--wcauth-border: var(--wd-form-brd-color, rgba(0,0,0,.1));
	--wcauth-primary: var(--wd-primary-color, rgb(104,62,164));
	--wcauth-ring: var(--wd-primary-color, rgb(104,62,164));
}
.wcauth-edit-carousel-wrap .wcauth-avatar-carousel {
	margin-top: 8px !important;
}
.wcauth-edit-avatar-preview {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
	margin: 10px 0 0;
	border: 2px solid var(--wd-primary-color, rgb(104, 62, 164));
}

/* Phone field: same Woodmart pill input; LTR number; lock inside left edge. */
.wcauth-edit-account .wcauth-edit-phone-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}
.woocommerce-EditAccountForm .wcauth-edit-phone-wrap .show-password-input,
.wcauth-edit-account .wcauth-edit-phone-wrap .show-password-input {
	display: none !important;
}
.woocommerce-EditAccountForm #wcauth_account_phone {
	width: 100% !important;
	max-width: 100% !important;
	height: var(--wd-form-height, 42px) !important;
	min-height: var(--wd-form-height, 42px) !important;
	box-sizing: border-box !important;
	border-radius: var(--wd-form-brd-radius, 35px) !important;
	border-width: var(--wd-form-brd-width, 1px) !important;
	border-style: solid !important;
	border-color: var(--wd-form-brd-color, rgba(0, 0, 0, .1)) !important;
	background-color: var(--wd-form-bg, #fff) !important;
	color: var(--wd-title-color, #333) !important;
	/* Keep +212… readable (not 212…+) inside RTL page */
	direction: ltr !important;
	unicode-bidi: isolate !important;
	text-align: right !important;
	padding: 0 18px !important;
	padding-left: 46px !important;
	padding-right: 18px !important;
	box-shadow: none !important;
	opacity: 1 !important;
	cursor: default !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: var(--wd-form-height, 42px) !important;
}
.woocommerce-EditAccountForm #wcauth_account_phone:focus {
	border-color: var(--wd-form-brd-color-focus, rgba(0, 0, 0, .15)) !important;
	outline: none !important;
	box-shadow: none !important;
}
.wcauth-edit-phone-lock {
	position: absolute !important;
	left: 16px !important;
	right: auto !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	color: var(--color-gray-400, #a5a5a5) !important;
	pointer-events: none !important;
	z-index: 2 !important;
}
.wcauth-edit-phone-lock i {
	display: block !important;
	font-size: 15px !important;
	line-height: 1 !important;
	margin: 0 !important;
}
.wcauth-edit-account #wcauth_account_phone_description {
	display: block;
	margin-top: 6px;
	font-size: .9em;
	color: var(--wd-text-color, #777);
}
.wcauth-edit-account #wcauth_account_phone_description em {
	font-style: italic;
}
