/* Mother bottom sheet (assets/js/sheet.js) — one look for every sheet of the site, the same as the clinic panel
 * (Mehdi 2026-11-10): a 40×4 handle on top, rounded top corners, room for the iPhone home bar, the page behind locked.
 * Also the one navigation sheet («مسیریابی با») for cards, profile, branches, map and the old card shortcode
 * (moved here from cards-v2.css). */
html.fkz-sheet-lock,
html.fkz-sheet-lock body {
	overflow: hidden !important;
}

html body .fkz-sheet-handle {
	background: #dfe5e8;
	border-radius: 999px;
	display: block;
	flex: none;
	height: 4px;
	margin: 0 auto 12px;
	width: 40px;
}

html body .fkz-sheet-dragging {
	animation: none !important;
	transition: none !important;
}

@media (min-width: 900px) {
	html body .fkz-sheet-handle {
		display: none;
	}
}

/* ---------- navigation sheet ---------- */
html body .fkc-navsheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgba(18,44,58,.5); font-family: inherit; direction: rtl; text-align: start; line-height: 1.6; }
html body .fkc-navsheet, html body .fkc-navsheet * { box-sizing: border-box; }
html body .fkc-navsheet[hidden] { display: none !important; }
html body .fkc-navsheet__box { width: 100%; max-width: 420px; background: var(--fkc-surface, #fff); border-radius: 22px 22px 0 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body .fkc-navsheet__box > .fkz-sheet-handle { grid-column: 1 / -1; margin-bottom: 2px; }
html body .fkc-navsheet__title { grid-column: 1 / -1; text-align: center; color: #122c3a; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
html body .fkc-navsheet__app { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
html body .fkc-navsheet__ic { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
html body .fkc-navsheet__ic--padded { background: #fff; border: 1px solid #e2e5e6; padding: 10px; }
html body .fkc-navsheet__ic img { display: block; width: 100%; height: 100%; object-fit: contain; }
html body .fkc-navsheet__ic--full img { object-fit: cover; border-radius: inherit; }
html body .fkc-navsheet__app:active .fkc-navsheet__ic { transform: scale(.96); }
html body .fkc-navsheet__app span { color: #3d5560; font-size: 12px; font-weight: 600; white-space: nowrap; }
html body .fkc-navsheet :focus-visible { outline: 2px solid #5f7e91; outline-offset: 2px; }

/* desktop: centred window with title and close (Sina 2026-10-31) */
html body .fkc-navsheet__close { display: none; }
@media (min-width: 900px) {
	html body .fkc-navsheet { align-items: center; }
	html body .fkc-navsheet__box { position: relative; border-radius: 22px; padding: 22px 22px 24px; box-shadow: 0 20px 50px rgba(18,44,58,.25); animation: fkc-navsheet-in .16s ease-out; }
	html body .fkc-navsheet__close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 14px; left: 14px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #eef2f4; color: #122c3a; cursor: pointer; }
	html body .fkc-navsheet__close:hover { background: #e8ecee; }
}
@keyframes fkc-navsheet-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body .fkc-navsheet__box { animation: none; } }
