/* alavi-core kit, part 2 (0.3.23, split from kit.css for size): step bar, review step, contact field with the country
   selector. Loaded right after kit.css. */

/* ── 0.3.23 step bar + review step (owner-approved board v2, 01 REQ-20261121-1430 / 1445 / 1600) ────────────────────────
   One component for every service plugin: estefta (3 or 4 steps) and vojuhat (5 steps).
   Markup: <ol class="ac-steps"><li data-n="1" class="is-now"><span class="ac-st-n">۱</span><span class="ac-st-t">…</span></li>…</ol>
   The gold frame is on the current step only; a done step shows ✓. On a phone the bar is compact: the current step keeps
   its label and the others are numbered circles, all inside the card width (no scroll). Desktop: every step shrinks to fit
   (labels may wrap inside their own step, never past the card edge). */
.ac-portal .ac-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; min-width: 0; }
.ac-portal .ac-steps[hidden] { display: none; }
.ac-portal .ac-steps li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--ac-line); border-radius: 12px; background: #fff; color: var(--ac-muted); font-size: 14px; line-height: 1.5; }
/* 0.3.23 (owner's standing rule, 01 REQ-20261121-1545 A.1): the number / ✓ sits exactly centred in its circle and the label
   in its box. Abar's digits sit high (glyph centre ≈ .19em above the box centre at line-height 1, measured on the site)
   → padding-top .46em (the flex box centres the rest, so it moves by half); Inter
   (English) needs none. The ✓ is an inline stroke SVG (Abar has no ✓), centred geometrically. */
.ac-portal .ac-steps .ac-st-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px;
	box-sizing: border-box; padding: .46em 0 0; border-radius: 50%; background: var(--ac-soft); color: var(--ac-link); font-weight: 700;
	font-size: 14px; line-height: 1; }
.ac-portal[lang="en"] .ac-steps .ac-st-n { padding-top: 0; }
.ac-portal[lang="ar"] .ac-steps .ac-st-n { padding-top: .34em; } /* Arabic digits come from the Noto cut, which sits lower. */
.ac-portal .ac-steps .ac-st-ok { display: none; }
.ac-portal .ac-steps .ac-st-t { min-width: 0; padding-top: .3em; overflow-wrap: normal; text-align: center; } /* Abar sits high, as on buttons. */
.ac-portal[lang="en"] .ac-steps .ac-st-t { padding-top: 0; }
.ac-portal .ac-steps li.is-now { border-color: var(--ac-gold); background: var(--ac-cream); color: var(--ac-title); font-weight: 700; }
.ac-portal .ac-steps li.is-now .ac-st-n { background: var(--ac-primary); color: #fff; }
.ac-portal .ac-steps li.is-done .ac-st-n { padding: 0; background: #e3f1e6; color: #2f7a45; }
.ac-portal .ac-steps li.is-done .ac-st-d { display: none; }
.ac-portal .ac-steps li.is-done .ac-st-ok { display: block; }
@media ( max-width: 640px ) {
	.ac-portal .ac-steps { gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--ac-line); border-radius: 14px; background: #fff; }
	.ac-portal .ac-steps li { flex: none; width: 30px; justify-content: center; padding: 0; border: 0; background: none; }
	.ac-portal .ac-steps li .ac-st-t { display: none; }
	.ac-portal .ac-steps li.is-now { flex: 1 1 auto; width: auto; justify-content: center; padding: 6px 10px; border: 1px solid var(--ac-gold);
		border-radius: 10px; background: var(--ac-cream); }
	.ac-portal .ac-steps li.is-now .ac-st-t { display: inline; }
}

/* Review page: a list of blocks (label + value + «اصلاح»), optional section heads, items with amounts and a total, the warning
   and one required checkbox. Contact values are isolated left-to-right and never break (.ac-nw); a long name or text wraps
   between words only. Markup and JS helper: docs/UI-KIT.md («بازبینی»). */
.ac-portal .ac-rv { display: flex; flex-direction: column; border: 1px solid var(--ac-line); border-radius: 14px; overflow: hidden; background: #fff;
	}
.ac-portal .ac-rv-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px;
	border-top: 1px solid var(--ac-line); }
.ac-portal .ac-rv > :first-child { border-top: 0; }
.ac-portal .ac-rv-k { grid-column: 1; font-size: 13px; color: var(--ac-muted); }
.ac-portal .ac-rv-b > .ac-fx { grid-column: 2; grid-row: 1; }
.ac-portal .ac-rv-v { grid-column: 1 / -1; font-size: 16px; font-weight: 600; color: var(--ac-title); line-height: 1.9; overflow-wrap: normal;
	word-break: normal; }
.ac-portal .ac-rv-v.is-big { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.ac-portal .ac-rv-v.is-mail { font-size: 17px; }
.ac-portal .ac-rv-v.is-txt { font-size: 15px; font-weight: 400; line-height: 2.1; white-space: pre-wrap; overflow-wrap: break-word; }
.ac-portal .ac-rv-v.is-none { font-size: 14px; font-weight: 400; color: var(--ac-muted); }
.ac-portal .ac-nw { white-space: nowrap; unicode-bidi: isolate; direction: ltr; display: inline-block; max-width: 100%; }
.ac-portal .ac-rv-v .ac-nw > span { display: inline-block; }
.ac-portal .ac-rv-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--ac-line); }
.ac-portal .ac-rv-pair > .ac-rv-b { border-top: 0; }
.ac-portal .ac-rv-pair > .ac-rv-b + .ac-rv-b { border-inline-start: 1px solid var(--ac-line); }
.ac-portal .ac-rv-sec { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px;
	border-top: 1px solid var(--ac-line);
	background: var(--ac-cream); font-size: 14px; font-weight: 700; color: var(--ac-title); }
.ac-portal .ac-rv-it { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 16px;
	border-top: 1px solid var(--ac-line); }
.ac-portal .ac-rv-it b { display: block; color: var(--ac-title); }
.ac-portal .ac-rv-it small { color: var(--ac-muted); font-size: 13px; }
.ac-portal .ac-rv-am { font-weight: 700; color: var(--ac-title); white-space: nowrap; flex: none; }
.ac-portal .ac-rv-tot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px;
	border-top: 2px solid var(--ac-gold); background: #fffdf7; }
.ac-portal .ac-rv-tot b { font-size: 20px; color: var(--ac-title); white-space: nowrap; }
.ac-portal .ac-rv-tot small { display: block; color: var(--ac-muted); font-size: 13px; text-align: end; }
.ac-portal .ac-fx:not(#ac-x) { display: inline-flex; align-items: center; gap: 6px; min-height: 0; height: auto; margin: 0; padding: .3em 14px .05em;
	border: 1px solid var(--ac-gold); border-radius: 999px; background: #fff; color: var(--ac-link); font: inherit; font-size: 13px; font-weight: 600;
	line-height: 1.8; white-space: nowrap; cursor: pointer; box-shadow: none; }
.ac-portal .ac-fx:not(#ac-x):hover, .ac-portal .ac-fx:not(#ac-x):focus-visible { background: var(--ac-cream); color: var(--ac-link);
	border-color: var(--ac-primary); }
.ac-portal .ac-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e8c98f; border-radius: 12px;
	background: #fff6e8; color: #7a4b06; font-size: 14px; line-height: 1.9; }
.ac-portal .ac-ck { display: flex; gap: 12px; align-items: center; margin: 0; padding: 16px; border: 2px solid var(--ac-line); border-radius: 14px;
	background: #fff; color: var(--ac-title); font-size: 15px; font-weight: 600; line-height: 1.9; cursor: pointer; }
.ac-portal .ac-ck input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ac-primary); cursor: pointer; }
.ac-portal .ac-ck:has(input:checked) { border-color: var(--ac-gold); background: var(--ac-cream); }
.ac-portal .ac-ck:focus-within { box-shadow: 0 0 0 3px rgba(204, 153, 82, .35); }
.ac-portal .ac-in.ac-hl:not(#ac-x) { border-color: var(--ac-gold); box-shadow: 0 0 0 3px #e9c46a; }
.ac-portal .ac-rv-note { margin: 0; font-size: 13px; color: var(--ac-muted); text-align: center; }
@media ( max-width: 640px ) {
	.ac-portal .ac-rv-pair { grid-template-columns: minmax(0, 1fr); }
	.ac-portal .ac-rv-pair > .ac-rv-b + .ac-rv-b { border-inline-start: 0; border-top: 1px solid var(--ac-line); }
	.ac-portal .ac-rv-v.is-big { font-size: 20px; }
	.ac-portal .ac-rv-v.is-mail { font-size: 16px; }
}

/* 0.3.23 — mobile field with a country-code selector in the same box (01 REQ-20261121-1545 B; owner's UI board v61): the box
   is left-to-right in every language — selector left, number right. The list opens under the box, searchable, names in the
   page language and direction. .ac-req = the «الزامی» badge on the e-mail label when the number is not Iranian. */
.ac-portal .ac-tel { position: relative; display: flex; direction: ltr; align-items: stretch; min-height: 48px; border: 1px solid var(--ac-line);
	border-radius: 12px; background: #fff; }
.ac-portal .ac-tel:focus-within { border-color: var(--ac-gold); box-shadow: 0 0 0 3px rgba(204, 153, 82, .25); }
.ac-portal .ac-tel.ac-hl { border-color: var(--ac-gold); box-shadow: 0 0 0 3px #e9c46a; }
.ac-portal .ac-tel[aria-invalid="true"] { border-color: var(--ac-danger, #b3261e); }
.ac-portal .ac-tel .ac-tel-cc:not(#ac-x) { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 55%; min-height: 0;
	height: auto; margin: 0; padding: .3em 12px 0; border: 0; border-right: 1px solid var(--ac-line); border-radius: 11px 0 0 11px;
	background: var(--ac-cream); color: var(--ac-title); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5;
	white-space: nowrap; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.ac-portal[lang="en"] .ac-tel .ac-tel-cc:not(#ac-x) { padding-top: 0; }
.ac-portal .ac-tel .ac-tel-cc:not(#ac-x):hover,
.ac-portal .ac-tel .ac-tel-cc:not(#ac-x):focus { background: #f6eee2; color: var(--ac-title); outline: none; }
.ac-portal .ac-tel .ac-tel-cn { overflow: hidden; text-overflow: ellipsis; }
.ac-portal .ac-tel .ac-tel-cc svg { flex: none; margin-top: -.3em; color: var(--ac-primary); }
.ac-portal[lang="en"] .ac-tel .ac-tel-cc svg { margin-top: 0; }
.ac-portal .ac-tel .ac-tel-in:not(#ac-x) { flex: 1 1 auto; min-width: 0; width: auto; height: auto; min-height: 46px; margin: 0;
	padding: .3em 14px 0; border: 0; border-radius: 0 11px 11px 0; background: transparent; box-shadow: none; text-align: left;
	direction: ltr; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ac-title); }
.ac-portal[lang="en"] .ac-tel .ac-tel-in:not(#ac-x) { padding-top: 0; }
.ac-portal .ac-tel .ac-tel-in:focus { outline: none; }
/* 0.3.28 (01 REQ-20261121-2135, owner on the live site; board v61 «.ccl»): the list is a fixed layer on <body> (class
   .ac-portal.ac-ccl, placed by kit-steps.js), above the theme's header / footer, never clipped by a parent. Every rule is
   (1,2,0)+ so a theme's ul / li / input styles cannot touch it. */
.ac-portal.ac-ccl:not(#ac-x) { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; max-width: none; min-height: 0;
	margin: 0; padding: 0; border: 1px solid var(--ac-line); border-radius: 12px; background: #fff;
	box-shadow: 0 8px 24px rgba(60, 40, 10, .12); overflow: hidden; color: var(--ac-body); font-size: 14px; line-height: 1.6; text-align: start; }
.ac-portal.ac-ccl[hidden]:not(#ac-x) { display: none; }
.ac-portal.ac-ccl:not(#ac-x) .ac-ccl-s { display: block; flex: none; width: calc(100% - 16px); min-height: 40px; height: 40px;
	margin: 8px; padding: .25em 12px 0; border: 1px solid var(--ac-ctl-line); border-radius: 10px; background: #fff; box-shadow: none;
	color: var(--ac-title); font: inherit; font-size: 14px; line-height: 1.5; text-align: start; -webkit-appearance: none; appearance: none; outline: none; }
.ac-portal.ac-ccl[lang="en"]:not(#ac-x) .ac-ccl-s { padding-top: 0; }
.ac-portal.ac-ccl:not(#ac-x) .ac-ccl-s:focus { border-color: var(--ac-gold); box-shadow: 0 0 0 3px rgba(204, 153, 82, .2); }
.ac-portal.ac-ccl:not(#ac-x) .ac-ccl-s::placeholder { color: #9a948a; opacity: 1; }
.ac-portal.ac-ccl:not(#ac-x) ul { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 0 4px; list-style: none; overflow-y: auto;
	overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #d9ccb8 transparent; background: none; border: 0; }
.ac-portal.ac-ccl:not(#ac-x) ul li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px;
	margin: 0; padding: .3em 14px 0; border: 0; border-top: 1px solid #f1e8da; background: #fff; color: var(--ac-title);
	font-size: 14px; font-weight: 400; line-height: 1.5; list-style: none; text-align: start; cursor: pointer; }
.ac-portal.ac-ccl[lang="en"]:not(#ac-x) ul li { padding-top: 0; }
.ac-portal.ac-ccl:not(#ac-x) ul li::before,
.ac-portal.ac-ccl:not(#ac-x) ul li::marker { content: none; display: none; }
.ac-portal.ac-ccl:not(#ac-x) ul li:hover { background: #fdfaf5; }
.ac-portal.ac-ccl:not(#ac-x) ul li[aria-selected="true"],
.ac-portal.ac-ccl:not(#ac-x) ul li.is-act { background: var(--ac-cream); font-weight: 700; }
.ac-portal.ac-ccl:not(#ac-x) ul li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-portal.ac-ccl:not(#ac-x) ul li bdi { flex: none; direction: ltr; unicode-bidi: isolate; color: var(--ac-muted); }
.ac-portal.ac-ccl:not(#ac-x) ul li.ac-ccl-none { justify-content: center; color: var(--ac-muted); cursor: default; }
.ac-portal .ac-req { display: inline-block; margin-inline-start: 6px; padding: .2em 8px 0; border-radius: 6px; background: #f7e1df; color: #8c1d18;
	font-size: 12px; font-weight: 600; vertical-align: middle; }
.ac-portal .ac-req[hidden] { display: none; }
