/* ==========================================================================
   M20 Account — ورود / ثبت‌نام / حساب کاربری
   توکن‌های طراحی: m20zone.ir (Primary #EF4056 · Accent #111827 · Light theme)
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--m20-primary: #EF4056;
	--m20-primary-dark: #DB2C44;
	--m20-primary-soft: rgba(239, 64, 86, .14);
	--m20-accent: #111827;
	--m20-surface: #FFFFFF;
	--m20-elevated: #FFF0F2;
	--m20-text: #111111;
	--m20-muted: #81858B;
	--m20-border: #E3E3E6;

	--m20-r-btn: 11px;
	--m20-r-chip: 16px;
	--m20-r-card: 20px;

	--m20-shadow-1: 0 3px 12px rgba(0, 0, 0, .03);
	--m20-shadow-2: 0 3px 15px rgba(0, 0, 0, .035);
	--m20-shadow-3: 0 14px 34px rgba(17, 24, 39, .10);

	--m20-font: M20Font, IRANYekanWeb, Vazirmatn, Tahoma, sans-serif;
	--m20-ease: cubic-bezier(.65, 0, .25, 1);
}

/* ---------- پایه ---------- */
.m20-auth, .m20-auth *, .m20-account, .m20-account *,
.m20-dialog, .m20-dialog * { box-sizing: border-box; }

.m20-auth, .m20-account, .m20-dialog { font-family: var(--m20-font); color: var(--m20-text); line-height: 1.9; }
.m20-auth button, .m20-auth input, .m20-account button, .m20-account input,
.m20-account select, .m20-account textarea, .m20-dialog button, .m20-dialog input { font-family: inherit; }

.m20-i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
.m20-auth .screen-reader-text, .m20-dialog .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.m20-link, .m20-account a.m20-link, .m20-auth a.m20-link {
	color: var(--m20-primary); text-decoration: none; font-weight: 700; font-size: 13px;
	transition: color .2s;
}
.m20-link:hover { color: var(--m20-primary-dark); text-decoration: underline; text-underline-offset: 4px; }

:where(.m20-auth, .m20-account, .m20-dialog) :focus-visible {
	outline: 2px solid var(--m20-primary); outline-offset: 3px; border-radius: 6px;
}

/* ==========================================================================
   صفحه‌ی ورود / ثبت‌نام
   ========================================================================== */

.m20-auth {
	position: relative; isolation: isolate; overflow: hidden;
	width: 100vw; max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	min-height: max(680px, calc(100svh - 140px));
	padding: 52px 16px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	background: #FFF7F8;
}
.m20-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.m20-auth::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 35%, rgba(255, 247, 248, .65) 100%);
}

/* اعلان‌های ووکامرس بالای کارت */
.m20-notices { width: min(600px, 100%); }
.m20-notices:empty { display: none; }
.m20-notices .woocommerce-notices-wrapper { margin: 0; }

/* ---------- کارت شیشه‌ای با گوشه‌های بریده ---------- */
.m20-shell {
	--cut: 88px;
	--m20-bw: 1.5px;
	position: relative; isolation: isolate;
	width: min(600px, 100%);
}
.m20-shell__shadow, .m20-shell__glass, .m20-shell__edge {
	position: absolute; inset: 0; pointer-events: none;
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
/* سایه: شکل بریده روی ::before و بلور روی خود المان تا لبه‌ی سایه تیز نشود */
.m20-shell__shadow { z-index: -1; clip-path: none; filter: blur(28px); transform: translateY(26px) scale(.95); }
.m20-shell__shadow::before {
	content: ""; position: absolute; inset: 0; background: rgba(17, 24, 39, .17);
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.m20-shell__glass {
	z-index: 0;
	/* بدون backdrop-filter: روی بعضی مرورگرها با clip-path + انیمیشن لکه‌ی کهنه ایجاد می‌کند؛ پس‌زمینه نیمه‌شفاف کافی است */
	background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 245, 247, .90));
}
/* حاشیه‌ی نازک دنبال‌کننده‌ی گوشه‌های بریده (دو حلقه + evenodd) */
.m20-shell__edge {
	z-index: 1;
	background: linear-gradient(135deg, rgba(239, 64, 86, .75), rgba(17, 24, 39, .16) 38%, rgba(17, 24, 39, .10) 62%, rgba(239, 64, 86, .75));
	clip-path: polygon(evenodd,
		var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0,
		calc(var(--cut) + .62px) var(--m20-bw), calc(100% - var(--m20-bw)) var(--m20-bw),
		calc(100% - var(--m20-bw)) calc(100% - var(--cut) - .62px), calc(100% - var(--cut) - .62px) calc(100% - var(--m20-bw)),
		var(--m20-bw) calc(100% - var(--m20-bw)), var(--m20-bw) calc(var(--cut) + .62px), calc(var(--cut) + .62px) var(--m20-bw));
}

.m20-piece {
	position: absolute; z-index: 3; width: calc(var(--cut) * .84); height: calc(var(--cut) * .84);
	pointer-events: none; filter: drop-shadow(0 3px 8px rgba(239, 64, 86, .25));
}
.m20-piece svg { width: 100%; height: 100%; overflow: visible; }
.m20-piece path { fill: rgba(239, 64, 86, .16); stroke: var(--m20-primary); stroke-opacity: .8; stroke-width: 1.6; }
.m20-piece--one { top: 0; left: 0; }
.m20-piece--two { bottom: 0; right: 0; }
.m20-piece--two path { fill: rgba(17, 24, 39, .10); stroke: var(--m20-accent); stroke-opacity: .55; }
.m20-glow {
	position: absolute; z-index: 2; left: 50%; top: 50%; width: 180px; height: 180px;
	transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; pointer-events: none; visibility: hidden;
	background: radial-gradient(circle, rgba(239, 64, 86, .55) 0%, rgba(239, 64, 86, 0) 68%);
}

/* ---------- پنل‌ها (روی هم؛ ارتفاع = بلندترین پنل، بدون پرش) ---------- */
.m20-panels {
	position: relative; z-index: 2; display: grid;
	transition: opacity .24s ease, transform .24s ease;
}
.m20-panel {
	grid-area: 1 / 1; align-self: center; min-width: 0;
	padding: 52px 52px 44px;
	transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.m20-panel--single { grid-area: auto; }
.m20-panel--center { text-align: center; }

.m20-js .m20-shell[data-m20-switchable] .m20-panel { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(6px); }
.m20-js .m20-shell[data-m20-switchable]:not(.is-register) .m20-panel--login,
.m20-js .m20-shell[data-m20-switchable].is-register .m20-panel--register { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
/* بدون جاوااسکریپت: هر دو فرم زیر هم دیده می‌شوند */
html:not(.m20-js) .m20-panels { display: block; }
html:not(.m20-js) .m20-panel + .m20-panel { border-top: 1px dashed var(--m20-border); }
html:not(.m20-js) .m20-switch { display: none; }

.m20-head { margin: 0 0 22px; }
.m20-head h2 {
	margin: 0 0 4px; padding: 0; font-family: inherit; font-size: 32px; font-weight: 700; line-height: 1.5;
	letter-spacing: -.5px; color: var(--m20-text); border: 0;
}
.m20-head h2 span, .m20-dialog h2 span, .m20-hero h2 span { color: var(--m20-primary); }
.m20-head p { margin: 0; color: var(--m20-muted); font-size: 13px; line-height: 2; }

/* ---------- فیلدها ---------- */
.m20-field { margin: 0 0 14px; padding: 0; }
.m20-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--m20-text); }
.m20-field .required { color: var(--m20-primary); text-decoration: none; border: 0; }

.m20-input {
	position: relative; display: flex; align-items: center; height: 50px;
	background: rgba(255, 255, 255, .92); border: 1px solid var(--m20-border); border-radius: var(--m20-r-btn);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.m20-input:hover { border-color: #cfd0d4; }
.m20-input:focus-within { border-color: var(--m20-primary); background: #fff; box-shadow: 0 0 0 4px var(--m20-primary-soft); }
.m20-input__icon { margin-inline: 14px 4px; color: var(--m20-muted); transition: color .2s; }
.m20-input:focus-within .m20-input__icon { color: var(--m20-primary); }

.m20-auth .m20-input input, .m20-dialog .m20-input input {
	flex: 1; min-width: 0; width: 100%; height: 100% !important; margin: 0 !important;
	padding: 0 12px !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important;
	background: transparent !important; box-shadow: none !important;
	color: var(--m20-text); font-size: 14px; line-height: normal;
}
.m20-input input[dir="ltr"] { text-align: right; }
.m20-input input::placeholder { color: #a9acb2; opacity: 1; }

/* پر شدن خودکار مرورگر */
.m20-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset !important; -webkit-text-fill-color: var(--m20-text); }

.m20-eye {
	flex: none; width: 46px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent;
	color: var(--m20-muted); cursor: pointer; transition: color .2s;
}
.m20-eye:hover { color: var(--m20-primary); }
.m20-eye__off { display: none; }
.m20-eye[aria-pressed="true"] .m20-eye__on { display: none; }
.m20-eye[aria-pressed="true"] .m20-eye__off { display: inline-block; }
.m20-auth .show-password-input, .m20-auth .password-input .show-password-input { display: none !important; }

.m20-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: 12px; color: var(--m20-muted); }
.m20-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; white-space: nowrap; font-weight: 400; }
.m20-check input { appearance: auto; width: 18px; height: 18px; margin: 0; accent-color: var(--m20-primary); cursor: pointer; }
.m20-options .lost_password { margin: 0; }
.m20-options .m20-link { font-size: 12px; }
.m20-note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--m20-r-btn); background: var(--m20-elevated); color: var(--m20-text); font-size: 12px; line-height: 2; }

/* متن حریم خصوصی و فیلدهای افزونه‌ها (کپچا، موبایل، ...) */
.m20-auth .woocommerce-privacy-policy-text, .m20-auth .woocommerce-privacy-policy-text p { margin: 0 0 14px; font-size: 11px; line-height: 2; color: var(--m20-muted); }
.m20-auth .woocommerce-privacy-policy-text a { color: var(--m20-primary); }
.m20-auth .form-row:not(.m20-field) { margin: 0 0 14px; padding: 0; float: none; width: 100%; }
.m20-auth .form-row:not(.m20-field) label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.m20-auth .form-row:not(.m20-field) input.input-text {
	width: 100%; height: 50px; padding: 0 14px; background: rgba(255, 255, 255, .92);
	border: 1px solid var(--m20-border); border-radius: var(--m20-r-btn); box-shadow: none; font-size: 14px;
}
.m20-auth .form-row:not(.m20-field) input.input-text:focus { outline: 0; border-color: var(--m20-primary); box-shadow: 0 0 0 4px var(--m20-primary-soft); }

/* ---------- دکمه‌ها ---------- */
.m20-submit, .m20-auth button.m20-submit, .m20-dialog button.m20-submit {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
	width: 100%; height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: var(--m20-r-btn);
	background: var(--m20-primary); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
	box-shadow: 0 8px 22px rgba(239, 64, 86, .30), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .2s, box-shadow .2s, background .2s;
}
.m20-submit:hover { background: var(--m20-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(239, 64, 86, .36), inset 0 1px 0 rgba(255, 255, 255, .25); }
.m20-submit:active { transform: translateY(1px); }
.m20-submit .m20-i { transition: transform .2s; }
.m20-submit:hover .m20-i { transform: translateX(-3px); }
.m20-submit--ghost { background: var(--m20-accent); box-shadow: 0 8px 22px rgba(17, 24, 39, .22); }
.m20-submit--ghost:hover { background: #000; }
.m20-submit.is-loading { pointer-events: none; opacity: .92; }
.m20-submit.is-loading .m20-i { display: none; }
.m20-submit.is-loading::after {
	content: ""; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: m20-spin .7s linear infinite;
}
@keyframes m20-spin { to { transform: rotate(360deg); } }

.m20-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; font-size: 13px; color: var(--m20-muted); }
.m20-switch button { padding: 0; border: 0; background: none; color: var(--m20-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.m20-switch button:hover, .m20-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.m20-bigicon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--m20-elevated); color: var(--m20-primary); }
.m20-bigicon .m20-i { width: 28px; height: 28px; }

/* ---------- انیمیشن تعویض ورود ⇄ ثبت‌نام ---------- */
.m20-shell.is-transitioning .m20-panels { opacity: 0; transform: translateY(8px); pointer-events: none; }
.m20-shell.is-transitioning .m20-piece--one { animation: m20-join-one 1.7s var(--m20-ease) both; }
.m20-shell.is-transitioning .m20-piece--two { animation: m20-join-two 1.7s var(--m20-ease) both; }
.m20-shell.is-transitioning .m20-glow { visibility: visible; animation: m20-flash 1.7s ease both; }
@keyframes m20-join-one { 0%, 10% { transform: translate(0, 0); } 43%, 65% { transform: translate(calc(var(--m20-tx) - 5px), calc(var(--m20-ty) - 5px)); } 100% { transform: translate(0, 0); } }
@keyframes m20-join-two { 0%, 10% { transform: translate(0, 0); } 43%, 65% { transform: translate(calc(-1 * var(--m20-tx) + 5px), calc(-1 * var(--m20-ty) + 5px)); } 100% { transform: translate(0, 0); } }
@keyframes m20-flash { 35% { opacity: 0; } 52% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } 70% { opacity: .5; } 100% { opacity: 0; } }

/* ---------- پنجره‌ی بازیابی رمز ---------- */
.m20-dialog {
	width: 440px; max-width: calc(100% - 32px); padding: 34px 32px 30px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-card);
	background: #fff; color: var(--m20-text); box-shadow: 0 30px 80px rgba(17, 24, 39, .28);
}
.m20-dialog::backdrop { background: rgba(17, 24, 39, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m20-dialog h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; line-height: 1.6; }
.m20-dialog p { margin: 0 0 18px; color: var(--m20-muted); font-size: 13px; line-height: 2; }
.m20-dialog__close {
	position: absolute; top: 12px; left: 14px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--m20-muted); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.m20-dialog__close:hover { background: var(--m20-elevated); color: var(--m20-primary); }

/* ==========================================================================
   چیدمان حساب کاربری
   ========================================================================== */
.m20-account {
	display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start;
	width: 100%; margin: 12px 0 40px; text-align: start;
}
.m20-account .woocommerce-MyAccount-navigation,
.m20-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0; }

/* ---------- منو ---------- */
.m20-nav {
	position: sticky; top: 24px; padding: 12px; background: var(--m20-surface);
	border: .8px solid var(--m20-border); border-radius: var(--m20-r-card); box-shadow: var(--m20-shadow-2);
}
.m20-nav__user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--m20-border); }
.m20-nav__avatar, .m20-hero__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--m20-primary); background: var(--m20-elevated); }
.m20-avatar { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 50%; }
.m20-nav__who { min-width: 0; display: flex; flex-direction: column; line-height: 1.7; }
.m20-nav__who strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m20-nav__who small { color: var(--m20-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: end; }

.m20-nav ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.m20-nav li { margin: 0; padding: 0; border: 0; }
.m20-nav li a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--m20-r-btn);
	color: var(--m20-text); font-size: 14px; text-decoration: none; transition: background .2s, color .2s;
}
.m20-nav li a > .m20-i:first-child { color: var(--m20-muted); transition: color .2s; }
.m20-nav li a span { flex: 1; min-width: 0; }
.m20-nav__chev { width: 16px !important; height: 16px !important; color: var(--m20-primary); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.m20-nav li a:hover { background: #f7f7f8; }
.m20-nav li a:hover .m20-nav__chev { opacity: 1; transform: none; }
.m20-nav li.is-active a { background: var(--m20-elevated); color: var(--m20-primary); font-weight: 700; }
.m20-nav li.is-active a > .m20-i:first-child { color: var(--m20-primary); }
.m20-nav li.is-active .m20-nav__chev { opacity: 1; transform: none; }
.m20-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--m20-border); }
.m20-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--m20-muted); }
.m20-nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: var(--m20-elevated); color: var(--m20-primary); }

/* ---------- محتوا ---------- */
.m20-account .woocommerce-MyAccount-content {
	min-width: 0; padding: 28px; background: var(--m20-surface);
	border: .8px solid var(--m20-border); border-radius: var(--m20-r-card); box-shadow: var(--m20-shadow-2);
	font-size: 14px; line-height: 2;
	animation: m20-rise .45s ease both;
}
.m20-account .woocommerce-MyAccount-content:has(> .m20-dash) { padding: 0; background: none; border: 0; box-shadow: none; }
.m20-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.m20-account .woocommerce-MyAccount-content h2,
.m20-account .woocommerce-MyAccount-content h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--m20-text); }
.m20-account .woocommerce-MyAccount-content a:not(.button):not(.m20-btn):not(.m20-tile):not(.m20-stat):not(.m20-order):not(.m20-link) { color: var(--m20-primary); text-decoration: none; }
.m20-account .woocommerce-MyAccount-content a:not(.button):not(.m20-btn):not(.m20-tile):not(.m20-stat):not(.m20-order):not(.m20-link):hover { text-decoration: underline; text-underline-offset: 4px; }
.m20-account mark { padding: 1px 9px; border-radius: 8px; background: var(--m20-elevated); color: var(--m20-primary); font-weight: 700; }

/* ---------- برچسب وضعیت (فقط رنگ‌های پالت) ---------- */
.m20-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 99px; white-space: nowrap;
	border: 1px solid var(--m20-border); background: #fff; color: var(--m20-muted); font-size: 12px; font-weight: 700; line-height: 1.9;
}
.m20-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m20-badge--completed { background: var(--m20-accent); border-color: var(--m20-accent); color: #fff; }
.m20-badge--processing, .m20-badge--pending, .m20-badge--on-hold { background: var(--m20-elevated); border-color: rgba(239, 64, 86, .25); color: var(--m20-primary); }
.m20-badge--cancelled, .m20-badge--failed, .m20-badge--refunded { background: #fff; color: var(--m20-muted); border-style: dashed; }

/* ---------- دکمه‌ها ---------- */
.m20-btn,
.m20-account a.button, .m20-account button.button, .m20-account .woocommerce-Button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin: 0; padding: 6px 20px;
	border: 1px solid var(--m20-border); border-radius: var(--m20-r-btn); background: #fff; color: var(--m20-text);
	font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.6; text-decoration: none; cursor: pointer;
	transition: transform .2s, border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.m20-btn:hover, .m20-account a.button:hover, .m20-account button.button:hover, .m20-account .woocommerce-Button:hover { border-color: var(--m20-primary); color: var(--m20-primary); background: #fff; }
.m20-btn--primary,
.m20-account button.button[type="submit"], .m20-account .woocommerce-Button[type="submit"], .m20-account a.button.pay, .m20-account a.button.alt, .m20-account button.button.alt {
	min-height: 46px; padding: 8px 32px; border-color: var(--m20-primary); background: var(--m20-primary); color: #fff;
	box-shadow: 0 8px 20px rgba(239, 64, 86, .26);
}
.m20-btn--primary:hover,
.m20-account button.button[type="submit"]:hover, .m20-account .woocommerce-Button[type="submit"]:hover, .m20-account a.button.pay:hover, .m20-account a.button.alt:hover {
	border-color: var(--m20-primary-dark); background: var(--m20-primary-dark); color: #fff; transform: translateY(-1px);
}
.m20-account a.button.cancel { color: var(--m20-muted); }
.m20-account a.button.cancel:hover { color: var(--m20-primary); }
.m20-account a.button.woocommerce-button--next, .m20-account a.button.woocommerce-button--previous { min-width: 110px; }
.woocommerce-pagination { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }

/* ==========================================================================
   داشبورد
   ========================================================================== */
.m20-dash { display: grid; gap: 20px; }
.m20-dash > * { animation: m20-rise .5s ease both; }
.m20-dash > *:nth-child(2) { animation-delay: .06s; }
.m20-dash > *:nth-child(3) { animation-delay: .12s; }
.m20-dash > *:nth-child(4) { animation-delay: .18s; }
.m20-dash > *:nth-child(5) { animation-delay: .24s; }
@keyframes m20-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* هیرو (گوشه‌های بریده هم‌خانواده‌ی صفحه‌ی ورود) */
.m20-hero {
	--cut: 40px; position: relative; overflow: hidden; padding: 28px 30px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, #1f2937 0%, var(--m20-accent) 60%);
	clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.m20-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m20-hero__body { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.m20-hero__avatar { width: 68px; height: 68px; border-color: var(--m20-primary); box-shadow: 0 0 0 5px rgba(239, 64, 86, .22); }
.m20-hero__text { flex: 1; min-width: 220px; }
.m20-account .m20-hero h2 { margin: 0 0 2px; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.6; }
.m20-hero__hello { margin: 0; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 2; }
.m20-hero__hello strong { color: #fff; font-weight: 700; }
.m20-account .m20-hero__hello a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--m20-primary); }
.m20-hero .m20-btn--primary { min-height: 46px; }

/* آمار */
.m20-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.m20-stat {
	display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "icon num" "icon label"; column-gap: 14px; align-items: center;
	padding: 16px 18px; background: var(--m20-surface); border: .8px solid var(--m20-border); border-radius: var(--m20-r-chip);
	box-shadow: var(--m20-shadow-1); color: var(--m20-text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.m20-stat:hover { transform: translateY(-3px); border-color: var(--m20-primary); box-shadow: var(--m20-shadow-3); }
.m20-stat__icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--m20-r-btn); background: var(--m20-elevated); color: var(--m20-primary); }
.m20-stat__num { grid-area: num; font-size: 26px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.m20-stat__num--price { font-size: 16px; line-height: 1.8; }
.m20-stat__num--price .woocommerce-Price-currencySymbol { font-size: 11px; color: var(--m20-muted); margin-inline-start: 3px; }
.m20-stat__label { grid-area: label; color: var(--m20-muted); font-size: 12px; line-height: 1.6; }

/* تکمیل پروفایل */
.m20-profile {
	display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--m20-elevated);
	border: 1px solid rgba(239, 64, 86, .18); border-radius: var(--m20-r-chip);
}
.m20-profile__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--m20-primary); }
.m20-profile__body { flex: 1; min-width: 0; }
.m20-profile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.m20-profile__top strong { font-size: 14px; }
.m20-profile small { display: block; margin-top: 6px; color: var(--m20-muted); font-size: 12px; line-height: 1.9; }
.m20-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #fff; }
.m20-progress span { display: block; height: 100%; width: var(--m20-w); border-radius: inherit; background: linear-gradient(90deg, var(--m20-primary), #ff7a8b); animation: m20-grow 1.1s var(--m20-ease) both .3s; }
@keyframes m20-grow { from { width: 0; } }

/* بخش‌ها */
.m20-block { padding: 22px 24px; background: var(--m20-surface); border: .8px solid var(--m20-border); border-radius: var(--m20-r-card); box-shadow: var(--m20-shadow-2); }
.m20-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.m20-account .m20-block__title, .m20-block__title { position: relative; margin: 0 0 14px; padding-inline-start: 14px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.m20-block__head .m20-block__title { margin: 0; }
.m20-block__title::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 4px; height: 18px; transform: translateY(-50%); border-radius: 4px; background: var(--m20-primary); }

/* دسترسی سریع */
.m20-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m20-tile {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--m20-border);
	border-radius: var(--m20-r-chip); color: var(--m20-text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.m20-tile__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--m20-r-btn); background: var(--m20-elevated); color: var(--m20-primary); transition: background .2s, color .2s; }
.m20-tile__label { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.6; }
.m20-tile__chev { width: 16px !important; height: 16px !important; color: var(--m20-muted); transition: transform .2s, color .2s; }
.m20-tile:hover { transform: translateY(-2px); border-color: var(--m20-primary); box-shadow: var(--m20-shadow-3); }
.m20-tile:hover .m20-tile__icon { background: var(--m20-primary); color: #fff; }
.m20-tile:hover .m20-tile__chev { color: var(--m20-primary); transform: translateX(-4px); }

/* آخرین سفارش‌ها */
.m20-orders { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m20-orders li { margin: 0; padding: 0; }
.m20-order {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(110px, auto) 18px; align-items: center; gap: 16px;
	padding: 12px 16px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); background: #fff;
	color: var(--m20-text); text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.m20-order:hover { border-color: var(--m20-primary); background: #fffafb; transform: translateX(-3px); }
.m20-order__num { font-weight: 700; font-size: 14px; }
.m20-order__date { color: var(--m20-muted); font-size: 12px; }
.m20-order__total { font-weight: 700; font-size: 13px; text-align: end; }
.m20-order__total .woocommerce-Price-currencySymbol { font-size: 11px; color: var(--m20-muted); margin-inline-start: 3px; }
.m20-order__chev { width: 16px !important; height: 16px !important; color: var(--m20-muted); }
.m20-order:hover .m20-order__chev { color: var(--m20-primary); }

.m20-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 12px 10px; text-align: center; color: var(--m20-muted); }
.m20-empty > .m20-i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--m20-elevated); color: var(--m20-primary); }
.m20-empty p { margin: 4px 0 10px; }

.m20-help { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 4px 6px 0; color: var(--m20-muted); font-size: 12.5px; line-height: 2.1; }
.m20-help > .m20-i { margin-top: 5px; width: 18px; height: 18px; }
.m20-help a { color: var(--m20-primary) !important; font-weight: 700; }

/* ==========================================================================
   جدول‌ها (سفارش‌ها، جزئیات سفارش، روش‌های پرداخت)
   ========================================================================== */
.m20-account table.shop_table, .m20-account table.woocommerce-table, .m20-account table.account-orders-table {
	width: 100%; margin: 0 0 20px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip);
	border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 13px; background: #fff;
}
.m20-account .shop_table th, .m20-account .shop_table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--m20-border); text-align: start; vertical-align: middle; background: transparent; }
.m20-account .shop_table thead th { background: var(--m20-elevated); color: var(--m20-muted); font-size: 12px; font-weight: 700; }
.m20-account .shop_table tbody tr:last-child td, .m20-account .shop_table tbody tr:last-child th, .m20-account .shop_table tfoot tr:last-child th, .m20-account .shop_table tfoot tr:last-child td { border-bottom: 0; }
.m20-account .shop_table tbody tr { transition: background .2s; }
.m20-account .shop_table tbody tr:hover { background: #fffafb; }
.m20-account .shop_table tbody th { font-weight: 700; }
.m20-account .shop_table td a:not(.button) { font-weight: 700; }
.m20-account .shop_table tfoot th { color: var(--m20-muted); font-weight: 400; }
.m20-account .shop_table tfoot tr:last-child td { font-weight: 700; color: var(--m20-primary); }
.m20-account .order-actions, .m20-account .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }
.m20-account .order-actions .button, .m20-account .woocommerce-orders-table__cell-order-actions .button { min-height: 34px; padding: 3px 14px; margin-inline-start: 6px; font-size: 12px; }
.m20-account .woocommerce-orders-table__cell-order-actions .button:first-child { margin-inline-start: 0; }

/* ==========================================================================
   فرم‌های حساب (جزئیات حساب، آدرس‌ها)
   ========================================================================== */
.m20-account form.woocommerce-EditAccountForm,
.m20-account .woocommerce-address-fields__field-wrapper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px;
}
.m20-account form.woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.m20-account form.woocommerce-EditAccountForm > .form-row-first,
.m20-account form.woocommerce-EditAccountForm > .form-row-last,
.m20-account .woocommerce-address-fields__field-wrapper > .form-row-first,
.m20-account .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: auto; }
.m20-account .woocommerce-address-fields__field-wrapper > .form-row-wide { grid-column: 1 / -1; }
.m20-account .woocommerce-address-fields { grid-column: 1 / -1; }
.m20-account form .clear { display: none; }
.m20-account .form-row { float: none !important; width: auto !important; margin: 0 0 14px; padding: 0; }
.m20-account .form-row label, .m20-account fieldset legend { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; line-height: 1.8; }
.m20-account .form-row .required { color: var(--m20-primary); text-decoration: none; border: 0; }
.m20-account .form-row em, .m20-account .form-row span em { display: block; margin-top: 4px; color: var(--m20-muted); font-size: 12px; font-style: normal; }

.m20-account input.input-text, .m20-account input[type="text"], .m20-account input[type="email"], .m20-account input[type="tel"],
.m20-account input[type="password"], .m20-account input[type="number"], .m20-account select, .m20-account textarea {
	width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-btn);
	background: #fff; color: var(--m20-text); font-family: inherit; font-size: 14px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.m20-account textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.9; }
.m20-account input:focus, .m20-account select:focus, .m20-account textarea:focus { outline: 0; border-color: var(--m20-primary); box-shadow: 0 0 0 4px var(--m20-primary-soft); }
.m20-account input[type="email"], .m20-account input[type="tel"] { direction: ltr; text-align: right; }
.m20-account input[type="checkbox"], .m20-account input[type="radio"] { width: 18px; height: 18px; accent-color: var(--m20-primary); }

/* نمایش رمز عبور (دکمه‌ی خود ووکامرس) */
.m20-account .password-input { position: relative; display: block; width: 100%; }
.m20-account .password-input input { padding-inline-end: 46px; }
.m20-account .show-password-input { position: absolute; top: 50%; inset-inline-end: 12px; left: auto; right: auto; transform: translateY(-50%); cursor: pointer; opacity: .7; }
.m20-account [dir="rtl"] .show-password-input, html[dir="rtl"] .m20-account .show-password-input { left: 12px; right: auto; }

.m20-account fieldset { margin: 6px 0 18px; padding: 18px 20px 6px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); background: #fffafb; }
.m20-account fieldset legend { width: auto; margin: 0; padding: 2px 14px; border: 1px solid rgba(239, 64, 86, .2); border-radius: 99px; background: var(--m20-elevated); color: var(--m20-primary); font-size: 12px; }
.m20-account fieldset .form-row { margin-bottom: 14px; }

/* select2 (کشور / استان) */
.woocommerce-account .select2-container--default .select2-selection--single { height: 48px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-btn); background: #fff; }
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-inline: 14px 36px; color: var(--m20-text); font-family: inherit; font-size: 14px; }
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; inset-inline-end: 8px; }
.woocommerce-account .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-account .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--m20-primary); box-shadow: 0 0 0 4px var(--m20-primary-soft); }
.select2-dropdown { border-color: var(--m20-border) !important; border-radius: var(--m20-r-btn) !important; overflow: hidden; font-family: var(--m20-font); box-shadow: var(--m20-shadow-3); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--m20-primary) !important; color: #fff !important; }

/* آدرس‌ها */
.m20-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m20-account .woocommerce-Addresses::before, .m20-account .woocommerce-Addresses::after { display: none; }
.m20-account .woocommerce-Address { float: none !important; width: auto !important; padding: 20px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); background: #fff; }
.m20-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--m20-border); }
.m20-account .woocommerce-Address-title h2 { margin: 0; font-size: 16px; }
.m20-account .woocommerce-Address-title a.edit { float: none; padding: 2px 14px; border-radius: 99px; background: var(--m20-elevated); color: var(--m20-primary); font-size: 12px; font-weight: 700; }
.m20-account .woocommerce-Address address { font-style: normal; color: var(--m20-text); line-height: 2.1; }

/* دانلودها */
.m20-account ul.woocommerce-Downloads { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m20-account ul.woocommerce-Downloads li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 18px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); background: #fff; }
.m20-account ul.woocommerce-Downloads li a { font-weight: 700; }
.m20-account .woocommerce-Count { padding: 1px 12px; border-radius: 99px; background: var(--m20-elevated); color: var(--m20-primary); font-size: 12px; font-weight: 700; }

/* جزئیات سفارش */
.m20-account .woocommerce-order-details, .m20-account .woocommerce-customer-details { margin-top: 26px; }
.m20-account .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m20-account .woocommerce-columns--addresses::before, .m20-account .woocommerce-columns--addresses::after { display: none; }
.m20-account .woocommerce-columns--addresses .woocommerce-column { float: none; width: auto; padding: 20px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); }
.m20-account .woocommerce-columns--addresses address { padding: 0; border: 0; font-style: normal; line-height: 2.1; }
.m20-account ol.commentlist.notes { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.m20-account ol.commentlist.notes li { padding: 14px 18px; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); }
.m20-account .woocommerce-OrderUpdate-meta { margin: 0 0 4px; color: var(--m20-muted); font-size: 12px; }
.m20-account .woocommerce-OrderUpdate-description p { margin: 0; }

/* ==========================================================================
   اعلان‌های ووکامرس (فقط رنگ‌های پالت)
   ========================================================================== */
body.woocommerce-account .woocommerce-message, body.woocommerce-account .woocommerce-info, body.woocommerce-account .woocommerce-error {
	position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 18px; padding: 14px 20px;
	border: 1px solid rgba(239, 64, 86, .22); border-inline-start: 4px solid var(--m20-primary); border-radius: var(--m20-r-chip);
	background: var(--m20-elevated); color: var(--m20-text); font-size: 13px; line-height: 2; list-style: none; width: 100%;
}
body.woocommerce-account .woocommerce-message::before, body.woocommerce-account .woocommerce-info::before, body.woocommerce-account .woocommerce-error::before { display: none; }
body.woocommerce-account .woocommerce-message { background: #fff; border-color: var(--m20-border); border-inline-start-color: var(--m20-accent); }
body.woocommerce-account .woocommerce-error { display: block; background: #fff; color: var(--m20-primary); }
body.woocommerce-account .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
body.woocommerce-account .woocommerce-message .button, body.woocommerce-account .woocommerce-info .button { order: 2; margin-inline-start: auto; float: none !important; min-height: 34px; padding: 3px 16px; border-radius: var(--m20-r-btn); background: var(--m20-accent); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.m20-notices .woocommerce-error, .m20-notices .woocommerce-message, .m20-notices .woocommerce-info { margin-bottom: 0; box-shadow: var(--m20-shadow-3); }

/* ==========================================================================
   واکنش‌گرا
   ========================================================================== */
@media (max-width: 1024px) {
	.m20-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.m20-account { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.m20-nav { position: static; padding: 10px; }
	.m20-nav__user { display: none; }
	.m20-nav ul { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.m20-nav ul::-webkit-scrollbar { display: none; }
	.m20-nav li { flex: none; }
	.m20-nav li a { padding: 8px 14px; border: 1px solid var(--m20-border); border-radius: 99px; font-size: 13px; white-space: nowrap; }
	.m20-nav li a .m20-nav__chev { display: none; }
	.m20-nav li a > .m20-i:first-child { width: 18px; height: 18px; }
	.m20-nav li.is-active a { border-color: rgba(239, 64, 86, .3); }
	.m20-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.m20-account .woocommerce-MyAccount-content { padding: 20px; }
	.m20-account .woocommerce-Addresses, .m20-account .woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
	/* جدول‌ها به کارت تبدیل می‌شوند */
	.m20-account table.shop_table_responsive { border: 0; background: transparent; overflow: visible; }
	.m20-account table.shop_table_responsive thead { display: none; }
	.m20-account table.shop_table_responsive tbody, .m20-account table.shop_table_responsive tfoot { display: grid; gap: 12px; }
	.m20-account table.shop_table_responsive tr { display: block; border: 1px solid var(--m20-border); border-radius: var(--m20-r-chip); background: #fff; overflow: hidden; }
	.m20-account table.shop_table_responsive tr:hover { background: #fff; }
	.m20-account table.shop_table_responsive th, .m20-account table.shop_table_responsive td {
		display: flex !important; align-items: center; justify-content: space-between; gap: 12px; width: 100% !important; padding: 11px 16px; text-align: end !important;
	}
	.m20-account table.shop_table_responsive th::before, .m20-account table.shop_table_responsive td::before {
		content: attr(data-title); float: none !important; flex: none; color: var(--m20-muted); font-size: 12px; font-weight: 400; text-align: start;
	}
	.m20-account table.shop_table_responsive td.order-actions::before,
	.m20-account table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions::before { display: none; }
	.m20-account table.shop_table_responsive td.order-actions, .m20-account table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions { justify-content: flex-start; flex-wrap: wrap; }
	.m20-account table.shop_table_responsive td.order-actions .button { margin: 0; }
}

@media (max-width: 600px) {
	.m20-auth { min-height: 0; padding: 28px 12px 40px; justify-content: flex-start; }
	.m20-shell { --cut: 56px; }
	.m20-panel { padding: 44px 24px 30px; }
	.m20-head h2 { font-size: 26px; }
	.m20-options { flex-wrap: wrap; row-gap: 8px; }
	.m20-auth .m20-input input, .m20-dialog .m20-input input,
	.m20-account input.input-text, .m20-account select, .m20-account textarea { font-size: 16px; }
	.m20-dialog { padding: 30px 22px 24px; }

	.m20-hero { --cut: 28px; padding: 22px 20px; }
	.m20-hero__body { gap: 14px; }
	.m20-account .m20-hero h2 { font-size: 21px; }
	.m20-hero .m20-hero__cta { width: 100%; }
	.m20-stats { gap: 10px; }
	.m20-stat { grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 12px; }
	.m20-stat__icon { width: 38px; height: 38px; }
	.m20-stat__num { font-size: 22px; }
	.m20-stat__num--price { font-size: 14px; }
	.m20-profile { flex-wrap: wrap; padding: 16px; }
	.m20-block { padding: 18px 16px; }
	.m20-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.m20-tile { flex-wrap: wrap; padding: 12px; gap: 8px; }
	.m20-tile__chev { display: none; }
	.m20-tile__label { flex-basis: 100%; font-size: 13px; }
	.m20-order { grid-template-columns: 1fr auto; grid-template-areas: "num badge" "date total"; gap: 4px 12px; }
	.m20-order__num { grid-area: num; }
	.m20-order .m20-badge { grid-area: badge; justify-self: end; }
	.m20-order__date { grid-area: date; }
	.m20-order__total { grid-area: total; }
	.m20-order__chev { display: none; }
	.m20-account form.woocommerce-EditAccountForm, .m20-account .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.m20-account form.woocommerce-EditAccountForm > .form-row-first, .m20-account form.woocommerce-EditAccountForm > .form-row-last,
	.m20-account .woocommerce-address-fields__field-wrapper > .form-row-first, .m20-account .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
	.m20-account button.button[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.m20-auth *, .m20-account *, .m20-dialog { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
