/* 0.10.16 buyer account + mobile buyer access */
.buyer-form .field{display:grid;gap:4px;margin-bottom:12px}
.buyer-form .field input{width:100%;min-height:44px}
.buyer-form .field input[aria-invalid=true]{border-color:var(--destructive,oklch(.55 .2 27));outline-color:var(--destructive,oklch(.55 .2 27))}
.buyer-form .field-error{display:block}
.buyer-form .field-error:empty{display:none}
.buyer-form .req{color:var(--orange,#f47c12);font-weight:700}
.buyer-form input[readonly]{opacity:.75}
.buyer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.form-msg.is-warn{border-inline-start:3px solid var(--orange,#f47c12);padding-inline-start:8px}
.buyer-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.header-actions .buyer-btn{white-space:nowrap}
@media (max-width:900px){
	.buyer-access-grid{grid-template-columns:minmax(0,1fr)}
	.buyer-access-grid #buyer-register{order:-1}
	.header-actions{flex-wrap:nowrap;gap:6px}
	.header-actions .buyer-btn{padding-inline:10px}
	.main-nav .nav-buyer a{font-weight:700}
}
@media (max-width:600px){
	/* phones: the bottom bar carries «حساب مشتري» permanently; the header keeps an icon-only copy */
	.sx-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
	.sx-bottom-nav a{font-size:11px;text-align:center;line-height:1.3}
	.header-actions .buyer-btn{display:none}
}
@media (min-width:601px) and (max-width:1100px){
	/* tablets: keep header actions inside the screen */
	.header-row{gap:10px}
	.header-actions{gap:6px}
	.header-actions .btn-sm{padding-inline:10px}
	.header-actions .btn-sm span{font-size:.8rem}
	.header-actions > a.btn[href*="request"]:not(.buyer-btn) span{display:none}
	.header-actions > a.btn-primary.hide-sm{display:none!important}
	.header-actions .register-menu.show-sm{display:block!important}
	/* collapse the main menu behind the toggle, as on phones */
	.nav-toggle{display:inline-grid;place-items:center}
	.main-nav{position:absolute;inset-inline:0;top:100%;display:none;z-index:950}
	.main-nav.open{display:block}
	.main-nav ul{flex-direction:column;gap:0;padding:6px 16px 12px}
	.main-nav a{display:block;padding:12px 0}
	.main-nav .nav-buyer.show-sm{display:block!important}
}

/* 0.10.17: hide the anti-spam field without any off-screen offset (RTL-safe, never widens the page). */
.buyer-form { position: relative; }
.dzt-hp { position: absolute !important; inset: 0 auto auto 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }
.dzt-hp input { width: 1px; height: 1px; padding: 0; border: 0; }
.buyer-login-hint { margin-top: .75rem; }
