/* ==========================================================================
   درخواست تعمیرکار — استایل فرانت‌اند
   رنگ، شعاع گوشه و فونت به‌صورت متغیر از قالب سایت ارث می‌برند.
   ========================================================================== */

.afz-rr-scope,
.afz-rr-scope *,
.afz-rr-modal *,
.afz-rr-standalone-scope,
.afz-rr-standalone-scope *,
.afz-rr-scope,
body.afz-rr-standalone {
	box-sizing: border-box;
}

.afz-rr-scope {
	--afz-rr-accent: #2563eb;
	--afz-rr-accent-dark: #1d4ed8;
	--afz-rr-accent-soft: rgba(37, 99, 235, .1);
	--afz-rr-radius: 18px;
	--afz-rr-ink: #0f172a;
	--afz-rr-muted: #64748b;
	--afz-rr-line: #e6ebf2;
	--afz-rr-bg: #f6f8fc;
	--afz-rr-font: inherit;

	color: var(--afz-rr-ink);
	font-family: var(--afz-rr-font);
	font-size: 15px;
	line-height: 1.85;
	direction: rtl;
	text-align: right;
}

.afz-rr-scope [hidden] { display: none !important; }

/* ---------- شورت‌کد دکمه ---------- */

.afz-rr-trigger {
	--afz-rr-accent: #2563eb;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 28px;
	border: 0;
	border-radius: calc(var(--afz-rr-radius, 18px) - 4px);
	background: var(--afz-rr-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--afz-rr-accent) 90%, transparent);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.afz-rr-trigger:hover { transform: translateY(-2px); filter: brightness(1.06); }
.afz-rr-trigger:active { transform: translateY(0); }

/* آیکون: Dashicons یا متن/ایموجی */
.afz-rr-trigger .afz-rr-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15em;
	line-height: 1;
}

.afz-rr-trigger .dashicons {
	width: 1.25em;
	height: 1.25em;
	font-size: 1.25em;
	line-height: 1;
}

.afz-rr-trigger-label { display: inline-block; }

.afz-rr-trigger-small { padding: 9px 18px; font-size: 13.5px; }
.afz-rr-trigger-large { padding: 17px 36px; font-size: 17px; }

/* ---------- پاپ‌آپ ---------- */

.afz-rr-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: block;
	/* اسکرول روی خودِ لایهٔ پس‌زمینه انجام می‌شود، نه داخل فرم */
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 28px 16px 48px;
}

.afz-rr-modal[aria-hidden="true"] { display: none; }

.afz-rr-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .62);
	backdrop-filter: blur(3px);
	animation: afzRRFade .25s ease both;
}

.afz-rr-modal-box {
	position: relative;
	width: min(940px, 100%);
	margin: 0 auto;
	background: #fff;
	border-radius: var(--afz-rr-radius);
	box-shadow: 0 40px 90px -40px rgba(2, 6, 23, .55);
	/* بدون max-height و بدون اسکرول داخلی */
	overflow: visible;
	animation: afzRRPop .3s cubic-bezier(.22, 1, .36, 1) both;
}

/* دکمهٔ بستن همیشه روی صفحه دیده می‌شود */
.afz-rr-modal-close {
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 100000;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--afz-rr-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(2, 6, 23, .4);
	transition: background .15s ease, transform .15s ease;
}

.afz-rr-modal-close:hover { background: var(--afz-rr-bg); transform: rotate(90deg); }

@keyframes afzRRFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes afzRRPop { from { opacity: 0; transform: translateY(18px) scale(.985) } to { opacity: 1; transform: none } }

body.afz-rr-no-scroll { overflow: hidden; }

/* ---------- کارت فرم ---------- */

.afz-rr-inline {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--afz-rr-radius);
	box-shadow: 0 26px 60px -34px rgba(2, 6, 23, .35);
}

.afz-rr-card {
	background: #fff;
	border-radius: var(--afz-rr-radius);
	padding: 0 0 26px;
}

.afz-rr-head {
	padding: 26px 28px 18px;
	text-align: center;
	background:
		linear-gradient(180deg, var(--afz-rr-accent-soft), transparent),
		#fff;
	border-bottom: 1px solid var(--afz-rr-line);
}

.afz-rr-logo {
	max-width: 130px;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto 12px;
}

.afz-rr-title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--afz-rr-ink);
}

.afz-rr-sub {
	margin: 8px auto 0;
	max-width: 62ch;
	font-size: 13.5px;
	color: var(--afz-rr-muted);
}

.afz-rr-now {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--afz-rr-bg);
	border: 1px solid var(--afz-rr-line);
	font-size: 12.5px;
	color: var(--afz-rr-muted);
}

.afz-rr-now strong { color: var(--afz-rr-ink); font-weight: 700; }

/* ---------- تب‌ها ---------- */

.afz-rr-tabs {
	display: flex;
	gap: 6px;
	padding: 14px 28px 0;
	border-bottom: 1px solid var(--afz-rr-line);
}

.afz-rr-tab {
	position: relative;
	padding: 10px 18px;
	border: 0;
	background: transparent;
	color: var(--afz-rr-muted);
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border-radius: 10px 10px 0 0;
	transition: color .15s ease, background .15s ease;
}

.afz-rr-tab.is-active { color: var(--afz-rr-accent); background: var(--afz-rr-accent-soft); }

.afz-rr-tab.is-active::after {
	content: '';
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--afz-rr-accent);
}

.afz-rr-panel { padding: 22px 28px 0; }

/* ---------- گروه‌ها و فیلدها ---------- */

.afz-rr-form,
.afz-rr-track-form { margin: 0; }

.afz-rr-group {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.afz-rr-group-title {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	margin-bottom: 14px;
	padding: 0 0 10px;
	border-bottom: 1px dashed var(--afz-rr-line);
	font-size: 15px;
	font-weight: 800;
	color: var(--afz-rr-ink);
}

.afz-rr-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--afz-rr-accent);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
}

.afz-rr-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.afz-rr-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.afz-rr-field { display: block; min-width: 0; margin-bottom: 0; }
.afz-rr-field-wide { grid-column: 1 / -1; }

.afz-rr-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--afz-rr-ink);
}

.afz-rr-req { color: #dc2626; }

.afz-rr-scope input[type="text"],
.afz-rr-scope input[type="tel"],
.afz-rr-scope input[type="number"],
.afz-rr-scope select,
.afz-rr-scope textarea,
.afz-rr-standalone-scope textarea {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--afz-rr-line);
	border-radius: 12px;
	background: #fff;
	color: var(--afz-rr-ink);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.8;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.afz-rr-scope select {
	background-image: linear-gradient(45deg, transparent 50%, var(--afz-rr-muted) 50%), linear-gradient(135deg, var(--afz-rr-muted) 50%, transparent 50%);
	background-position: left 18px center, left 13px center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-left: 34px;
}

.afz-rr-scope textarea { resize: vertical; min-height: 68px; }

.afz-rr-scope input:focus,
.afz-rr-scope select:focus,
.afz-rr-scope textarea:focus {
	outline: 0;
	border-color: var(--afz-rr-accent);
	box-shadow: 0 0 0 4px var(--afz-rr-accent-soft);
}

.afz-rr-scope .has-error input,
.afz-rr-scope .has-error select,
.afz-rr-scope .has-error textarea { border-color: #dc2626; }

.afz-rr-hint {
	display: block;
	margin-top: 5px;
	font-size: 11.5px;
	color: var(--afz-rr-muted);
}

.afz-rr-error {
	display: none;
	margin-top: 5px;
	font-size: 12px;
	color: #dc2626;
}

.afz-rr-error:not(:empty) { display: block; }
.afz-rr-error-block { margin-top: 10px; }

.afz-rr-counter {
	margin-top: 5px;
	font-size: 11.5px;
	color: var(--afz-rr-muted);
	text-align: left;
}

.afz-rr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- دکمه‌ها ---------- */

.afz-rr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.afz-rr-btn-primary {
	background: var(--afz-rr-accent);
	color: #fff;
	box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--afz-rr-accent) 95%, transparent);
}

.afz-rr-btn-primary:hover { transform: translateY(-2px); background: var(--afz-rr-accent-dark); color: #fff; }

.afz-rr-btn-soft {
	background: var(--afz-rr-accent-soft);
	color: var(--afz-rr-accent);
}

.afz-rr-btn-soft:hover { background: color-mix(in srgb, var(--afz-rr-accent) 18%, #fff); }

.afz-rr-btn-ghost {
	background: transparent;
	color: var(--afz-rr-muted);
	border: 1.5px solid var(--afz-rr-line);
}

.afz-rr-btn-ghost:hover { border-color: var(--afz-rr-accent); color: var(--afz-rr-accent); }

.afz-rr-btn[disabled],
.afz-rr-btn.is-loading { opacity: .65; pointer-events: none; }

.afz-rr-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: afzRRSpin .7s linear infinite;
}

.afz-rr-btn.is-loading .afz-rr-spinner { display: inline-block; }

@keyframes afzRRSpin { to { transform: rotate(360deg) } }

.afz-rr-actions { margin-top: 6px; }
.afz-rr-actions .afz-rr-btn { width: 100%; }

.afz-rr-note {
	margin: 12px 0 0;
	font-size: 11.5px;
	color: var(--afz-rr-muted);
	text-align: center;
}

.afz-rr-form-message {
	margin: 12px 0 0;
	padding: 11px 14px;
	border-radius: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 600;
}

.afz-rr-form-message.is-ok {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #15803d;
}

/* ---------- موقعیت مکانی و نقشه ---------- */

.afz-rr-geo-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.afz-rr-geo-status {
	font-size: 12.5px;
	color: var(--afz-rr-muted);
}

.afz-rr-geo-status.is-error { color: #b91c1c; }
.afz-rr-geo-status.is-ok { color: #15803d; }

.afz-rr-map-wrap { margin-bottom: 16px; }

.afz-rr-map {
	position: relative;
	height: 320px;
	border: 1.5px solid var(--afz-rr-line);
	border-radius: 14px;
	background: var(--afz-rr-bg);
	z-index: 1;
	/* رنگ‌آمیزی پس‌زمینهٔ کاشی‌ها مطابق رنگ فرم */
	background-image: linear-gradient(45deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .02) 75%),
					  linear-gradient(45deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .02) 75%);
	background-size: 18px 18px;
	background-position: 0 0, 9px 9px;
}

.afz-rr-map.is-busy { opacity: .55; pointer-events: none; }

/* قالب‌های وردپرس اغلب برای img مقدار max-width:100% می‌گذارند و کاشی‌های نقشه را خراب می‌کنند */
.afz-rr-map .leaflet-container img,
.afz-rr-map img.leaflet-tile,
.afz-rr-viewmap .leaflet-container img,
.afz-rr-viewmap img.leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

.afz-rr-map .leaflet-container { width: 100%; height: 100%; }

/* نشانگر بارگذاری تا وقتی اولین کاشی باز شود */
.afz-rr-map.is-busy::after {
	content: 'در حال بارگذاری نقشه…';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--afz-rr-muted);
}

/* وقتی هیچ کاشی‌ای باز نشد */
.afz-rr-map.is-failed {
	background: var(--afz-rr-bg);
	background-image: none;
	min-height: 150px;
	height: auto;
}

.afz-rr-map .leaflet-container { background: transparent; font-family: var(--afz-rr-font); }

.afz-rr-map .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, .82);
}

.afz-rr-map .leaflet-bar a {
	color: var(--afz-rr-ink);
	border-bottom-color: var(--afz-rr-line);
}

.afz-rr-map-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 22px 18px;
	text-align: center;
	font-size: 13px;
	color: var(--afz-rr-muted);
}

.afz-rr-map-error strong { color: var(--afz-rr-ink); font-size: 14px; }
.afz-rr-map-error a { color: var(--afz-rr-accent); font-weight: 600; }

.afz-rr-map-help {
	margin: 8px 0 0;
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--afz-rr-accent-soft);
	color: var(--afz-rr-muted);
	font-size: 12.5px;
	line-height: 1.9;
}

/* نوار وضعیت و دکمهٔ تشخیص موقعیت بالای نقشه */
.afz-rr-map-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.afz-rr-map-bar .afz-rr-geo-status {
	flex: 1 1 auto;
	margin: 0;
	min-height: 1em;
}

.afz-rr-map-bar .afz-rr-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.afz-rr-map-bar .afz-rr-btn[disabled] {
	opacity: .6;
	cursor: progress;
}

.afz-rr-geo-status.is-pending::before {
	content: '';
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-left: 6px;
	border-radius: 50%;
	background: var(--afz-rr-accent);
	animation: afz-rr-pulse 1.1s ease-in-out infinite;
}

@keyframes afz-rr-pulse {
	0%, 100% { opacity: .25; }
	50% { opacity: 1; }
}

.afz-rr-inline-search { display: flex; gap: 8px; }
.afz-rr-inline-search .afz-rr-btn { flex: 0 0 auto; white-space: nowrap; }

.afz-rr-field-map-search,
.afz-rr-field-coords { margin-bottom: 14px; }

.afz-rr-field-coords .afz-rr-inline-search input {
	direction: ltr;
	text-align: center;
	letter-spacing: .3px;
}

/* ---------- رسید ---------- */

.afz-rr-receipt { padding: 8px 28px 0; }

.afz-rr-receipt-inner { text-align: center; padding: 14px 0 10px; }

.afz-rr-success-mark { display: flex; justify-content: center; }
.afz-rr-success-mark svg { width: 74px; height: 74px; }

.afz-rr-success-circle {
	fill: none;
	stroke: var(--afz-rr-accent);
	stroke-width: 2.4;
	stroke-dasharray: 152;
	stroke-dashoffset: 152;
	animation: afzRRDraw .7s ease forwards;
}

.afz-rr-success-check {
	fill: none;
	stroke: var(--afz-rr-accent);
	stroke-width: 3.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: afzRRDraw .45s ease .5s forwards;
}

@keyframes afzRRDraw { to { stroke-dashoffset: 0 } }

.afz-rr-receipt-title {
	margin: 14px 0 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--afz-rr-ink);
}

.afz-rr-receipt-text {
	margin: 10px auto 0;
	max-width: 58ch;
	font-size: 13.5px;
	color: var(--afz-rr-muted);
}

.afz-rr-tracking-box {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	margin: 18px 0 6px;
	padding: 16px 34px;
	border: 2px dashed var(--afz-rr-accent);
	border-radius: 16px;
	background: var(--afz-rr-accent-soft);
}

.afz-rr-tracking-label { font-size: 12px; color: var(--afz-rr-muted); }

.afz-rr-tracking-code {
	font-size: 27px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: var(--afz-rr-accent);
	line-height: 1.5;
}

.afz-rr-receipt-datetime { margin: 10px 0 0; font-size: 13px; color: var(--afz-rr-muted); }
.afz-rr-receipt-datetime strong { color: var(--afz-rr-ink); }

.afz-rr-receipt-list {
	max-width: 460px;
	margin: 16px auto 0;
	padding: 14px 18px;
	list-style: none;
	background: var(--afz-rr-bg);
	border: 1px solid var(--afz-rr-line);
	border-radius: 14px;
	text-align: right;
	font-size: 13px;
}

.afz-rr-receipt-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}

.afz-rr-receipt-list span { color: var(--afz-rr-muted); }

.afz-rr-receipt-tip {
	margin: 16px auto 0;
	max-width: 56ch;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	font-size: 12.5px;
}

.afz-rr-receipt-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.afz-rr-share {
	margin-top: 22px;
	padding: 16px;
	border: 1px solid var(--afz-rr-line);
	border-radius: 14px;
	background: #fff;
}

.afz-rr-share-title { margin: 0 0 12px; font-size: 13px; color: var(--afz-rr-muted); }

.afz-rr-share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.afz-rr-share-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--afz-rr-bg);
	border: 1px solid var(--afz-rr-line);
	color: var(--afz-rr-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.afz-rr-share-chip:hover { border-color: var(--afz-rr-accent); color: var(--afz-rr-accent); transform: translateY(-2px); }

.afz-rr-share-hint { margin: 12px 0 0; font-size: 11.5px; color: var(--afz-rr-muted); text-align: center; }

.afz-rr-receipt .afz-rr-btn-ghost { margin-top: 18px; }

/* ---------- پیگیری ---------- */

.afz-rr-track-title { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.afz-rr-track-text { margin: 0 0 14px; font-size: 13px; color: var(--afz-rr-muted); }

.afz-rr-track-result {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--afz-rr-line);
	border-radius: 14px;
	background: var(--afz-rr-bg);
}

.afz-rr-track-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--afz-rr-line);
}

.afz-rr-track-code { font-size: 18px; font-weight: 800; letter-spacing: 1px; direction: ltr; }

.afz-rr-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--afz-rr-badge, #2563eb) 14%, #fff);
	color: var(--afz-rr-badge, #2563eb);
	font-size: 12px;
	font-weight: 700;
}

.afz-rr-track-list { margin: 12px 0 0; font-size: 13px; }
.afz-rr-track-list div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.afz-rr-track-list span { color: var(--afz-rr-muted); }

/* ---------- ورود اجباری ---------- */

.afz-rr-login-card {
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 30px;
	text-align: center;
	background: #fff;
}

.afz-rr-login-icon { font-size: 34px; }

.afz-rr-login-title { margin: 12px 0 0; font-size: 19px; font-weight: 800; }
.afz-rr-login-text { margin: 10px auto 0; max-width: 46ch; font-size: 13.5px; color: var(--afz-rr-muted); }
.afz-rr-login-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.afz-rr-login-note { margin: 18px 0 0; font-size: 11.5px; color: var(--afz-rr-muted); }

/* ---------- صفحهٔ تعمیرکار ---------- */

body.afz-rr-standalone {
	margin: 0;
	padding: 22px 14px;
	background: #f1f5f9;
	font-family: inherit;
}

.afz-rr-standalone-scope { max-width: 720px; margin: 0 auto; }

.afz-rr-share-card {
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 26px 60px -34px rgba(2, 6, 23, .4);
}

.afz-rr-share-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--afz-rr-line); }
.afz-rr-share-head .afz-rr-logo { margin: 0; max-height: 48px; }
.afz-rr-share-title { margin: 0; font-size: 18px; font-weight: 800; }
.afz-rr-share-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--afz-rr-muted); }
.afz-rr-share-head .afz-rr-badge { margin-inline-start: auto; }

.afz-rr-share-code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0;
	padding: 14px 18px;
	border: 2px dashed var(--afz-rr-accent);
	border-radius: 14px;
	background: var(--afz-rr-accent-soft);
	font-size: 13px;
}

.afz-rr-share-code strong { font-size: 20px; letter-spacing: 1.4px; color: var(--afz-rr-accent); }

.afz-rr-share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.afz-rr-share-item { padding: 12px 14px; background: var(--afz-rr-bg); border-radius: 12px; }
.afz-rr-share-label { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--afz-rr-muted); }
.afz-rr-share-item strong { font-size: 14.5px; }
.afz-rr-share-block { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--afz-rr-line); border-radius: 12px; font-size: 13.5px; }
.afz-rr-share-block p { margin: 4px 0 0; }
.afz-rr-share-map-wrap {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--afz-rr-line);
	border-radius: 14px;
	background: var(--afz-rr-bg);
}

.afz-rr-viewmap {
	height: 300px;
	border: 1.5px solid var(--afz-rr-line);
	border-radius: 12px;
	background: var(--afz-rr-bg);
	z-index: 1;
}

.afz-rr-viewmap .leaflet-container { background: transparent; font-family: var(--afz-rr-font); }
.afz-rr-viewmap .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .85); }
.afz-rr-viewmap .leaflet-bar a { color: var(--afz-rr-ink); border-bottom-color: var(--afz-rr-line); }

.afz-rr-share-map { width: 100%; margin-top: 10px; }

.afz-rr-nav-title { margin: 16px 0 8px; font-size: 13px; font-weight: 800; }
.afz-rr-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.afz-rr-nav-btn {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px;
	border: 1.5px solid var(--afz-rr-line); border-radius: 14px;
	background: #fff; color: var(--afz-rr-ink);
	text-decoration: none; cursor: pointer;
	box-shadow: 0 6px 14px -10px rgba(2, 6, 23, .35);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.afz-rr-nav-btn:hover { border-color: var(--afz-rr-accent); transform: translateY(-2px); box-shadow: 0 12px 20px -12px rgba(2, 6, 23, .45); }
.afz-rr-nav-ico {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 38px; height: 38px; border-radius: 11px;
	color: #fff; font-size: 17px; font-weight: 800; line-height: 1;
}
.afz-rr-nav-txt { display: flex; flex-direction: column; min-width: 0; }
.afz-rr-nav-txt strong { font-size: 14px; font-weight: 800; }
.afz-rr-nav-txt small { font-size: 11px; color: var(--afz-rr-muted); }
.afz-rr-nav-note { margin: 12px 0 0; font-size: 11.5px; color: var(--afz-rr-muted); }
.afz-rr-nav-copies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.afz-rr-nav-copy {
	padding: 6px 12px; border: 1.5px solid var(--afz-rr-line); border-radius: 10px;
	background: #fff; color: var(--afz-rr-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.afz-rr-nav-copy:hover { border-color: var(--afz-rr-accent); color: var(--afz-rr-accent); }

.afz-rr-share-noloc {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	font-size: 12.5px;
}

.afz-rr-share-coords { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--afz-rr-muted); }
.afz-rr-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.afz-rr-share-textarea {
	margin-top: 10px;
	font-size: 12.5px;
	background: var(--afz-rr-bg);
}

/* ---------- درخواست‌های من ---------- */

.afz-rr-my-title { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.afz-rr-empty { padding: 26px; text-align: center; color: var(--afz-rr-muted); background: var(--afz-rr-bg); border-radius: 14px; }
.afz-rr-my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.afz-rr-my-item { padding: 16px; border: 1px solid var(--afz-rr-line); border-radius: 14px; background: #fff; }
.afz-rr-my-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.afz-rr-my-code { font-size: 16px; letter-spacing: 1px; direction: ltr; }
.afz-rr-my-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--afz-rr-muted); }
.afz-rr-my-address { margin: 6px 0 0; font-size: 13px; }

/* ---------- واکنش‌گرا ---------- */

@media (max-width: 782px) {
	.afz-rr-modal { padding: 12px 8px 32px; }
	.afz-rr-modal-close { top: 10px; left: 10px; width: 36px; height: 36px; font-size: 21px; }
	.afz-rr-modal-box { border-radius: calc(var(--afz-rr-radius) - 4px); }
	.afz-rr-head { padding: 22px 18px 16px; }
	.afz-rr-tabs { padding: 12px 16px 0; }
	.afz-rr-panel { padding: 18px 16px 0; }
	.afz-rr-receipt { padding: 6px 16px 0; }
	.afz-rr-row, .afz-rr-row-4, .afz-rr-share-grid { grid-template-columns: 1fr; }
	.afz-rr-title { font-size: 18px; }
	.afz-rr-tracking-code { font-size: 21px; }
	.afz-rr-tracking-box { padding: 14px 20px; width: 100%; }
	.afz-rr-map { height: 260px; }
	.afz-rr-map-bar { flex-direction: column; align-items: stretch; }
	.afz-rr-actions .afz-rr-btn { width: 100%; }
	.afz-rr-receipt-actions .afz-rr-btn { flex: 1 1 100%; }
	.afz-rr-inline-search { flex-direction: column; }
	.afz-rr-share-head .afz-rr-badge { margin-inline-start: 0; }
	.afz-rr-geo-actions .afz-rr-btn { flex: 1 1 100%; }
}

/* ---------- چاپ ---------- */

@media print {
	.afz-rr-scope .afz-rr-panel,
	.afz-rr-scope .afz-rr-tabs,
	.afz-rr-scope .afz-rr-modal-close,
	.afz-rr-share-actions,
	.afz-rr-share-textarea,
	.afz-rr-share-map,
	.afz-rr-nav-title,
	.afz-rr-nav-grid,
	.afz-rr-nav-note { display: none !important; }

	body.afz-rr-standalone { background: #fff; padding: 0; }
	.afz-rr-share-card { box-shadow: none; border-radius: 0; padding: 0; }
}