/*
 * Arizo Pay - Storefront design system
 * @author Alireza Khosrozadian (علیرضا خسروزادیان) - https://khosrozadian.ir
 *
 * Everything is scoped to .arzp-root / .arzp-modal / .arzp-toast so themes stay untouched.
 */

.arzp-root,
.arzp-modal,
.arzp-toast {
	--arzp-primary: #0a5cff;
	--arzp-accent: #00b25d;
	--arzp-card: #ffffff;
	--arzp-line: #e4e9f2;
	--arzp-ink: #0f172a;
	--arzp-ink-2: #334155;
	--arzp-muted: #64748b;
	--arzp-soft: #f5f7fb;
	--arzp-danger: #dc2626;
	--arzp-warn: #b45309;
	--arzp-radius: 16px;
	--arzp-font: Vazirmatn, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--arzp-tint: rgba(10, 92, 255, .07);
	--arzp-tint-2: rgba(10, 92, 255, .14);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.arzp-root,
	.arzp-modal {
		--arzp-tint: color-mix(in srgb, var(--arzp-primary) 7%, transparent);
		--arzp-tint-2: color-mix(in srgb, var(--arzp-primary) 15%, transparent);
	}
}

/* ---------- Isolation reset ---------- */
.arzp-root,
.arzp-modal {
	font-family: var(--arzp-font);
	direction: rtl;
	text-align: right;
	color: var(--arzp-ink);
	font-size: 14px;
	line-height: 1.7;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
}
.arzp-root *,
.arzp-root *::before,
.arzp-root *::after,
.arzp-modal *,
.arzp-modal *::before,
.arzp-modal *::after {
	box-sizing: border-box;
}
.arzp-root :where(h2, h3, h4, p, ol, ul, li, dl, dt, dd, fieldset, legend, figure),
.arzp-modal :where(h2, h3, h4, p, ol, ul, li, dl, dt, dd, fieldset, legend, figure) {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	color: inherit;
	list-style: none;
	text-transform: none;
	letter-spacing: 0;
}
.arzp-root img,
.arzp-modal img {
	display: block;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.arzp-root button,
.arzp-modal button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-height: 0;
	min-width: 0;
	font: inherit;
	line-height: inherit;
	text-transform: none;
	letter-spacing: 0;
	text-shadow: none;
	box-shadow: none;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	width: auto;
	height: auto;
}
.arzp-root a,
.arzp-modal a {
	text-decoration: none !important;
	box-shadow: none;
}
.arzp-root [hidden],
.arzp-modal [hidden] {
	display: none !important;
}
.arzp-muted {
	color: var(--arzp-muted);
}

/* ---------- Buttons ---------- */
.arzp-root .arzp-btn,
.arzp-modal .arzp-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: transform .15s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.arzp-root .arzp-btn--primary,
.arzp-modal .arzp-btn--primary {
	background: var(--arzp-primary);
	color: #fff;
	box-shadow: 0 6px 16px -6px var(--arzp-primary);
}
.arzp-root .arzp-btn--primary:hover,
.arzp-modal .arzp-btn--primary:hover {
	filter: brightness(1.06);
	color: #fff;
}
.arzp-root .arzp-btn--primary:active,
.arzp-modal .arzp-btn--primary:active {
	transform: translateY(1px);
}
.arzp-root .arzp-btn--ghost,
.arzp-modal .arzp-btn--ghost {
	background: var(--arzp-tint);
	color: var(--arzp-primary);
}
.arzp-root .arzp-btn--ghost:hover,
.arzp-modal .arzp-btn--ghost:hover {
	background: var(--arzp-tint-2);
}
.arzp-root .arzp-btn--block,
.arzp-modal .arzp-btn--block {
	display: flex;
	width: 100%;
}
.arzp-root .arzp-btn--lg,
.arzp-modal .arzp-btn--lg {
	height: 52px;
	font-size: 15px;
	border-radius: 14px;
}
.arzp-root .arzp-btn--sm,
.arzp-modal .arzp-btn--sm {
	height: 34px;
	padding: 0 12px;
	font-size: 12.5px;
	border-radius: 10px;
}
.arzp-root .arzp-btn:disabled,
.arzp-modal .arzp-btn:disabled {
	opacity: .7;
	cursor: default;
}
.arzp-btn.is-loading {
	color: transparent !important;
}
.arzp-btn.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: arzp-spin .7s linear infinite;
}
.arzp-btn--ghost.is-loading::after {
	border-color: var(--arzp-tint-2);
	border-top-color: var(--arzp-primary);
}
@keyframes arzp-spin {
	to { transform: rotate(360deg); }
}
.arzp-root :focus-visible,
.arzp-modal :focus-visible {
	outline: 2px solid var(--arzp-primary);
	outline-offset: 2px;
}

/* ---------- Product box ---------- */
.arzp-boxwrap {
	container-type: inline-size;
	container-name: arzpbox;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 12px 0;
	clear: both;
	flex-basis: 100%;
}
.arzp-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	background-color: var(--arzp-card);
	background-image: linear-gradient(270deg, var(--arzp-tint) 0%, transparent 65%);
	border: 1px solid var(--arzp-line);
	border-radius: var(--arzp-radius);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.arzp-box:hover {
	border-color: var(--arzp-primary);
	box-shadow: 0 8px 22px -14px var(--arzp-primary);
}
.arzp-box:focus-visible {
	outline: 2px solid var(--arzp-primary);
	outline-offset: 2px;
}
.arzp-box__logo {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--arzp-line);
}
.arzp-box__logo img {
	width: 26px !important;
	height: 26px !important;
	object-fit: contain;
}
.arzp-box__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.arzp-box__title {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--arzp-muted);
	line-height: 1.6;
}
.arzp-box__sub {
	display: block;
	font-size: 14px;
	font-weight: 800;
	color: var(--arzp-primary);
	line-height: 1.6;
}
.arzp-box__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--arzp-accent);
	line-height: 1.6;
}
.arzp-box__badge svg {
	flex: none;
}
.arzp-box__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 30px;
	padding: 0 10px 0 8px;
	border-radius: 999px;
	background: var(--arzp-tint);
	color: var(--arzp-primary);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .2s ease;
}
.arzp-box:hover .arzp-box__cta {
	background: var(--arzp-tint-2);
}
.arzp-box__cta-long,
.arzp-box__segs {
	display: none;
}
.arzp-box__segs {
	gap: 4px;
	width: 100%;
	max-width: 168px;
	margin: 6px 0 2px;
}
.arzp-box__segs i {
	flex: 1;
	height: 4px;
	border-radius: 4px;
	background: var(--arzp-tint-2);
}
.arzp-box__segs i:first-child {
	background: var(--arzp-primary);
}

/* Narrow column / mobile: two-tier card with a full-width action */
@container arzpbox (max-width: 460px) {
	.arzp-box {
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
		padding: 14px;
		border-radius: 18px;
		background-image: linear-gradient(200deg, var(--arzp-tint-2) 0%, var(--arzp-tint) 35%, transparent 75%);
	}
	.arzp-box:hover {
		transform: none;
	}
	.arzp-box__logo {
		width: 46px;
		height: 46px;
		border-radius: 14px;
		box-shadow: 0 8px 18px -14px var(--arzp-primary);
	}
	.arzp-box__logo img {
		width: 28px !important;
		height: 28px !important;
	}
	.arzp-box__body {
		flex: 1 1 0;
	}
	.arzp-box__title {
		font-size: 12px;
	}
	.arzp-box__sub {
		font-size: 15px;
		line-height: 1.55;
	}
	.arzp-box__segs {
		display: flex;
	}
	.arzp-box__badge {
		font-size: 11.5px;
	}
	.arzp-box__cta {
		flex: 1 1 100%;
		justify-content: center;
		gap: 6px;
		height: 42px;
		padding: 0 14px;
		border-radius: 13px;
		background: var(--arzp-primary);
		color: #fff;
		font-size: 13px;
		box-shadow: 0 10px 20px -14px var(--arzp-primary);
	}
	.arzp-box:hover .arzp-box__cta {
		background: var(--arzp-primary);
		filter: brightness(1.06);
	}
	.arzp-box__cta-text {
		display: none;
	}
	.arzp-box__cta-long {
		display: inline;
	}
}
@container arzpbox (max-width: 240px) {
	.arzp-box__logo {
		display: none;
	}
}
/* Always take a full row of its own, whatever layout the theme uses for the add-to-cart area. */
body :has(> .arzp-boxwrap) {
	flex-wrap: wrap !important;
}
.arzp-boxwrap {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	order: 999;
	align-self: stretch;
	grid-column: 1 / -1;
	margin: 12px 0 !important;
	padding: 0 !important;
	float: none !important;
}
.arzp-attention {
	animation: arzp-pulse 1.4s ease;
	border-radius: 12px;
}
@keyframes arzp-pulse {
	0%, 100% { box-shadow: 0 0 0 0 transparent; }
	30% { box-shadow: 0 0 0 6px rgba(10, 92, 255, .18); }
}

/* ---------- Modal ---------- */
html.arzp-lock,
html.arzp-lock body {
	overflow: hidden !important;
}
.arzp-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	visibility: hidden;
	pointer-events: none;
}
.arzp-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}
.arzp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .48);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .22s ease;
}
.arzp-modal.is-open .arzp-modal__backdrop {
	opacity: 1;
}
.arzp-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	max-height: min(88vh, 760px);
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45);
	overflow: hidden;
	outline: none;
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
}
.arzp-modal.is-open .arzp-modal__dialog {
	opacity: 1;
	transform: none;
}
@media (max-width: 560px) {
	.arzp-modal {
		align-items: flex-end;
		padding: 0;
	}
	.arzp-modal__dialog {
		width: 100%;
		max-height: 92vh;
		border-radius: 22px 22px 0 0;
		transform: translateY(40px);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.arzp-modal__dialog::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: #dbe1ea;
	}
}
@media (prefers-reduced-motion: reduce) {
	.arzp-modal__dialog,
	.arzp-modal__backdrop,
	.arzp-box,
	.arzp-returnbar {
		transition: none;
	}
}

.arzp-mh {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 18px 12px;
}
.arzp-mh__logo {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid var(--arzp-line);
}
.arzp-mh__logo img {
	width: 24px !important;
	height: 24px !important;
}
.arzp-modal .arzp-mh__title {
	flex: 1;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--arzp-ink);
	line-height: 1.5;
}
.arzp-modal .arzp-mh__close {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	color: var(--arzp-muted);
	background: var(--arzp-soft);
	transition: background-color .15s ease, color .15s ease;
}
.arzp-modal .arzp-mh__close:hover {
	color: var(--arzp-ink);
	background: #eceff5;
}
.arzp-mb {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	scrollbar-width: thin;
}
.arzp-mf {
	flex: none;
	padding: 12px 18px 18px;
	border-top: 1px solid #eef1f6;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fff;
}

.arzp-prod {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.arzp-prod__name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--arzp-ink-2);
	line-height: 1.6;
}
.arzp-prod__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.arzp-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 8px;
	background: var(--arzp-soft);
	color: var(--arzp-muted);
	font-size: 12px;
	font-weight: 500;
}

.arzp-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 18px 14px 16px;
	border-radius: 18px;
	background: linear-gradient(160deg, var(--arzp-tint-2), var(--arzp-tint) 70%);
	text-align: center;
}
.arzp-hero__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-muted);
}
.arzp-hero__value {
	font-size: 28px;
	font-weight: 800;
	color: var(--arzp-primary);
	line-height: 1.35;
}
.arzp-hero__value small {
	font-size: 14px;
	font-weight: 700;
}
.arzp-hero__sub {
	font-size: 12.5px;
	color: var(--arzp-ink-2);
	font-weight: 500;
}

.arzp-timeline {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	gap: 8px;
}
.arzp-timeline li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 8px;
	border-radius: 12px;
	border: 1px solid var(--arzp-line);
	background: #fff;
}
.arzp-timeline li i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--arzp-tint-2);
	margin-bottom: 2px;
}
.arzp-timeline li.is-now {
	border-color: var(--arzp-primary);
	background: var(--arzp-tint);
}
.arzp-timeline li.is-now i {
	background: var(--arzp-primary);
	box-shadow: 0 0 0 4px var(--arzp-tint-2);
}
.arzp-timeline span {
	font-size: 11.5px;
	color: var(--arzp-muted);
	font-weight: 500;
}
.arzp-timeline b {
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-ink);
}

.arzp-rows {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 12px;
	border-radius: 14px;
	background: var(--arzp-soft);
}
.arzp-rows > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 13px;
}
.arzp-rows > div + div {
	border-top: 1px dashed #e2e7f0;
}
.arzp-rows dt {
	color: var(--arzp-muted);
	font-weight: 500;
}
.arzp-rows dd {
	color: var(--arzp-ink);
	font-weight: 700;
	text-align: left;
}

.arzp-ship {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.arzp-ship legend {
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-ink-2);
	margin-bottom: 6px;
}
.arzp-modal .arzp-ship__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--arzp-line);
	border-radius: 12px;
	background: #fff;
	text-align: right;
	transition: border-color .15s ease, background-color .15s ease;
}
.arzp-modal .arzp-ship__opt.is-on {
	border-color: var(--arzp-primary);
	background: var(--arzp-tint);
}
.arzp-ship__radio {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	transition: border .15s ease;
}
.arzp-ship__opt.is-on .arzp-ship__radio {
	border: 5px solid var(--arzp-primary);
}
.arzp-ship__name {
	flex: 1;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}
.arzp-ship__name small {
	font-size: 11.5px;
	font-weight: 400;
	color: var(--arzp-muted);
}
.arzp-ship__cost {
	flex: none;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--arzp-ink-2);
}

.arzp-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-accent);
}

/* Variation picker */
.arzp-optgroup {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.arzp-optgroup__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-ink-2);
}
.arzp-optgroup__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.arzp-modal .arzp-opt {
	padding: 8px 14px;
	border-radius: 11px;
	border: 1px solid var(--arzp-line);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--arzp-ink-2);
	line-height: 1.4;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.arzp-modal .arzp-opt:hover {
	border-color: var(--arzp-primary);
}
.arzp-modal .arzp-opt.is-on {
	border-color: var(--arzp-primary);
	background: var(--arzp-primary);
	color: #fff;
}
.arzp-modal .arzp-opt:disabled {
	opacity: .4;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* ---------- Support chips ---------- */
.arzp-support {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.arzp-support__title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-muted);
}
.arzp-support--compact {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.arzp-support__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.arzp-root .arzp-chip,
.arzp-modal .arzp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--arzp-line);
	background: #fff;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-ink-2);
	transition: border-color .15s ease, color .15s ease;
}
.arzp-root .arzp-chip:hover,
.arzp-modal .arzp-chip:hover {
	border-color: var(--arzp-primary);
	color: var(--arzp-primary);
}
.arzp-chip img {
	width: 18px !important;
	height: 18px !important;
	border-radius: 5px;
}

/* ---------- Alerts & toast ---------- */
.arzp-alert {
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
	background: var(--arzp-soft);
	color: var(--arzp-ink-2);
}
.arzp-alert--success {
	background: #ecfdf3;
	color: #067647;
}
.arzp-alert--error {
	background: #fef2f2;
	color: #b42318;
}
.arzp-alert--warn {
	background: #fffaeb;
	color: var(--arzp-warn);
}
.arzp-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 2147483600;
	max-width: calc(100% - 32px);
	padding: 11px 16px;
	border-radius: 14px;
	background: #0f172a;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.6;
	font-family: var(--arzp-font);
	direction: rtl;
	text-align: center;
	box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .5);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.arzp-toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}
.arzp-toast--success {
	background: #065f46;
}
.arzp-toast--error {
	background: #991b1b;
}

/* ---------- Checkout gateway ---------- */
.arzp-gw-logo {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 6px !important;
	vertical-align: middle;
	border-radius: 9px;
	border: 1px solid #e4e9f2;
	background: #fff;
	float: none !important;
}
.arzp-gw-logo img {
	width: 20px !important;
	height: 20px !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.arzp-gw {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}
.arzp-gw__desc {
	font-weight: 600;
	color: var(--arzp-ink);
}
.arzp-gw__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--arzp-tint);
	color: var(--arzp-primary);
	font-size: 12.5px;
	font-weight: 700;
}
.arzp-gw__note {
	font-size: 12px;
	color: var(--arzp-muted);
}

/* ---------- Order panel ---------- */
.arzp-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid var(--arzp-line);
	border-radius: 20px;
	background: var(--arzp-card);
	box-shadow: 0 16px 40px -28px rgba(15, 23, 42, .35);
}
.arzp-panel__head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.arzp-panel__logo {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 1px solid var(--arzp-line);
	background: #fff;
}
.arzp-panel__logo img {
	width: 30px !important;
	height: 30px !important;
}
.arzp-panel__titles {
	flex: 1;
	min-width: 160px;
}
.arzp-root .arzp-panel__title {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--arzp-ink);
}
.arzp-panel__meta {
	font-size: 12.5px;
	color: var(--arzp-muted);
}
.arzp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.arzp-badge i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.arzp-badge--awaiting { background: #fff7e6; color: #b45309; }
.arzp-badge--reviewing { background: #e8efff; color: #1d4ed8; }
.arzp-badge--approved { background: #e8f8ef; color: #067647; }
.arzp-badge--rejected { background: #fdecec; color: #b42318; }

.arzp-amount {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(160deg, var(--arzp-tint-2), var(--arzp-tint) 70%);
}
.arzp-amount__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-muted);
}
.arzp-amount__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.arzp-amount__value {
	font-size: 26px;
	font-weight: 800;
	color: var(--arzp-primary);
	line-height: 1.4;
}
.arzp-amount__value small {
	font-size: 14px;
}
.arzp-amount__hint {
	font-size: 12.5px;
	color: var(--arzp-ink-2);
}

.arzp-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.arzp-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 12px;
	background: var(--arzp-soft);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-ink-2);
	line-height: 1.5;
}
.arzp-steps b {
	flex: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: #fff;
	color: var(--arzp-primary);
	font-size: 12px;
	font-weight: 800;
}
@media (max-width: 600px) {
	.arzp-panel {
		padding: 16px;
	}
	.arzp-steps {
		grid-template-columns: 1fr;
	}
}

.arzp-state {
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.8;
}
.arzp-state--info { background: #eef3ff; color: #1e3a8a; }
.arzp-state--success { background: #ecfdf3; color: #067647; }
.arzp-state--error { background: #fef2f2; color: #b42318; }
.arzp-state__meta {
	margin-top: 6px !important;
	font-size: 12.5px;
}
.arzp-state code {
	padding: 1px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .7);
	font-family: inherit;
}
.arzp-root .arzp-linkbtn {
	align-self: flex-start;
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Upload form & fields */
.arzp-upload {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--arzp-line);
	border-radius: 16px;
}
.arzp-root .arzp-upload__title {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--arzp-ink);
}
.arzp-upload__help {
	font-size: 12px;
	color: var(--arzp-muted);
}
.arzp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.arzp-field__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--arzp-ink-2);
}
.arzp-root .arzp-input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--arzp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--arzp-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.arzp-root .arzp-input:focus {
	outline: none;
	border-color: var(--arzp-primary);
	box-shadow: 0 0 0 4px var(--arzp-tint);
}
.arzp-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 14px;
	border: 1.5px dashed #cdd6e4;
	border-radius: 14px;
	background: var(--arzp-soft);
	color: var(--arzp-muted);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.arzp-drop:hover,
.arzp-drop.is-drag {
	border-color: var(--arzp-primary);
	background: var(--arzp-tint);
	color: var(--arzp-primary);
}
.arzp-drop.has-file {
	border-style: solid;
	border-color: var(--arzp-accent);
	color: var(--arzp-accent);
}
.arzp-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.arzp-drop__text {
	font-size: 13px;
	font-weight: 700;
	word-break: break-all;
}
.arzp-drop__hint {
	font-size: 11.5px;
	color: var(--arzp-muted);
}

/* ---------- Receipt page ---------- */
.arzp-rpage {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 620px;
	margin: 24px auto;
}
.arzp-rpage .arzp-panel {
	margin: 0;
}
.arzp-rpage__back {
	align-self: center;
	color: var(--arzp-muted) !important;
	font-size: 13px;
	font-weight: 600;
}
.arzp-rpage__back:hover {
	color: var(--arzp-primary) !important;
}
.arzp-lookup {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px 24px 24px;
	border: 1px solid var(--arzp-line);
	border-radius: 22px;
	background: var(--arzp-card);
	box-shadow: 0 20px 48px -32px rgba(15, 23, 42, .4);
}
.arzp-lookup__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}
.arzp-lookup__logo {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 4px;
	border-radius: 18px;
	border: 1px solid var(--arzp-line);
	background: #fff;
	box-shadow: 0 10px 24px -16px var(--arzp-primary);
}
.arzp-lookup__logo img {
	width: 34px !important;
	height: 34px !important;
}
.arzp-root .arzp-lookup__title {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--arzp-ink);
}
.arzp-lookup__sub {
	max-width: 440px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--arzp-muted);
}
.arzp-lookup__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.arzp-lookup__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.arzp-lookup__note {
	font-size: 12px;
	color: var(--arzp-muted);
	text-align: center;
}
.arzp-myorders {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.arzp-myorders__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-ink-2);
}
.arzp-root .arzp-myorders__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--arzp-line);
	border-radius: 14px;
	color: var(--arzp-ink);
	transition: border-color .15s ease, background-color .15s ease;
}
.arzp-root .arzp-myorders__row:hover {
	border-color: var(--arzp-primary);
	background: var(--arzp-tint);
}
.arzp-myorders__row > span:first-child {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.arzp-myorders__row b {
	font-size: 13.5px;
	font-weight: 800;
}
.arzp-myorders__row small {
	font-size: 12px;
	color: var(--arzp-muted);
}
.arzp-myorders__amount {
	font-size: 13px;
	font-weight: 700;
	color: var(--arzp-primary);
	white-space: nowrap;
}
.arzp-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--arzp-muted);
	font-size: 12px;
}
.arzp-divider::before,
.arzp-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--arzp-line);
}
.arzp-lookup .arzp-support {
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--arzp-line);
	text-align: center;
}
.arzp-lookup .arzp-support__row {
	justify-content: center;
}
@container (max-width: 480px) {
	.arzp-lookup {
		padding: 22px 16px 18px;
	}
	.arzp-lookup__fields {
		grid-template-columns: 1fr;
	}
	.arzp-rpage .arzp-steps {
		grid-template-columns: repeat(3, 1fr);
	}
	.arzp-rpage .arzp-steps li {
		flex-direction: column;
		text-align: center;
		gap: 4px;
		font-size: 11.5px;
	}
	.arzp-myorders__row {
		flex-wrap: wrap;
	}
}
.arzp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Checkout → SnappPay handoff ---------- */
.arzp-redirect {
	position: fixed;
	inset: 0;
	z-index: 2147483500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, .5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: var(--arzp-font, inherit);
	animation: arzp-fade .2s ease;
}
.arzp-redirect__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: min(380px, 100%);
	padding: 26px 22px 22px;
	border-radius: 22px;
	background: #fff;
	color: #0f172a;
	text-align: center;
	box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45);
}
.arzp-redirect__logo {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	border: 1px solid #e4e9f2;
}
.arzp-redirect__logo img {
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
}
.arzp-redirect__card b {
	font-size: 15px;
	font-weight: 800;
}
.arzp-redirect__amount {
	font-size: 26px;
	font-weight: 800;
	color: var(--arzp-primary, #0a5cff);
	line-height: 1.4;
}
.arzp-redirect__card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: #475569;
}
.arzp-redirect__spin {
	width: 22px;
	height: 22px;
	margin-top: 6px;
	border: 2.5px solid #dbe5ff;
	border-top-color: var(--arzp-primary, #0a5cff);
	border-radius: 50%;
	animation: arzp-spin .7s linear infinite;
}
@keyframes arzp-fade {
	from { opacity: 0; }
}
