/*
 * AXAMIL RADIUS License Server — customer activation UI.
 * Uses the AXAMIL Store theme design tokens (--ax-*) so it blends into the store in both
 * light and dark (the theme redefines these tokens under [data-ax-scheme="dark"]).
 * Fallbacks keep it readable on any theme.
 */
.arls-wrap, .arls-codes {
	--_bg: var(--ax-surface, #fff);
	--_card: var(--ax-card, #f5f5f7);
	--_text: var(--ax-text, #1d1d1f);
	--_muted: var(--ax-muted, #5c5c61);
	--_border: var(--ax-border, #d2d2d7);
	--_accent: var(--ax-accent, #047DB1); /* 1.1.11: AXAMIL brand fallback */
	--_on-accent: #fff;
	--_radius: var(--ax-radius, 14px);
	/* 1.1.11: status colours as tokens, each ≥4.5:1 on --_bg and --_card. */
	--_ok: #0a7d33;
	--_info: #035f87;
	--_bad: #b0102a;
	--_warn: #8f5500;
	color: var(--_text);
	font-family: var(--ax-font-body, inherit);
}
/* 1.1.11: dark scheme of the AXAMIL Store theme (true black) — lighter status colours. */
[data-ax-scheme="dark"] .arls-wrap,
[data-ax-scheme="dark"] .arls-codes,
.arls-wrap[data-ax-scheme="dark"],
.arls-codes[data-ax-scheme="dark"] {
	--_ok: #5ad987;
	--_info: #6cc4ee;
	--_bad: #ff7a8c;
	--_warn: #ffb648;
}
.arls-title { margin: 0 0 .4rem; font-family: var(--ax-font-heading, inherit); }
.arls-muted { color: var(--_muted); font-size: .9rem; }
.arls-card {
	background: var(--_card);
	border: 1px solid var(--_border);
	border-radius: var(--_radius);
	padding: 1rem 1.1rem;
	margin: 1rem 0;
}
.arls-card h4 { margin: 0 0 .7rem; }
.arls-codes-list, .arls-codes__group { display: grid; gap: .5rem; }
.arls-code-item { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.arls-code-item [hidden] { display: none; }
.arls-pick {
	display: inline-flex; align-items: center; min-height: 40px; /* 1.1.11: touch target */
	background: var(--_bg); border: 1px solid var(--_border); border-radius: 10px;
	padding: .35rem .7rem; cursor: pointer; color: var(--_text);
}
.arls-pick:hover { border-color: var(--_accent); }
.arls-pick code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: transparent; color: inherit; }
.arls-badge { display: inline-block; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--_border); }
.arls-badge--activated { color: var(--_ok); border-color: var(--_ok); }
.arls-badge--issued { color: var(--_info); border-color: var(--_info); }
.arls-badge--revoked { color: var(--_bad); border-color: var(--_bad); }
.arls-badge--suspended { color: var(--_warn); border-color: var(--_warn); }
.arls-form { display: grid; gap: .8rem; }
.arls-field { display: grid; gap: .3rem; }
.arls-field label, .arls-result__label { font-weight: 600; font-size: .9rem; }
.arls-field input {
	width: 100%; box-sizing: border-box; min-height: 40px; padding: .6rem .7rem; border-radius: 10px;
	border: 1px solid var(--_border); background: var(--_bg); color: var(--_text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* 1.1.3: codes keep LTR character order but sit right-aligned like every field in the Persian UI. */
.arls-field input.arls-ltr-input { text-align: right; }
.arls-field input:focus { outline: 2px solid var(--_accent); outline-offset: 1px; border-color: var(--_accent); }
.arls-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
	background: var(--_accent); color: var(--_on-accent); border: 0;
	border-radius: 999px; padding: .55rem 1.3rem; font-weight: 600; cursor: pointer;
}
.arls-button:hover { filter: brightness(1.05); }
.arls-button[disabled] { opacity: .7; cursor: progress; }
/* 1.1.11: visible keyboard focus on every control. */
.arls-button:focus-visible, .arls-pick:focus-visible, .arls-token:focus-visible,
.arls-wrap a:focus-visible, .arls-codes a:focus-visible {
	outline: 2px solid var(--_accent); outline-offset: 2px;
}
.arls-result { display: grid; gap: .5rem; margin-top: .4rem; }
.arls-result[hidden] { display: none; } /* 1.1.9: display:grid beat the hidden attribute */
.arls-token {
	max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all;
	background: var(--ax-code-bg, #0d1117); color: var(--ax-code-fg, #e6edf3);
	border-radius: 10px; padding: .7rem .8rem; margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.5;
}
.arls-error {
	background: color-mix(in srgb, var(--_bad) 10%, transparent); color: var(--_bad);
	border: 1px solid var(--_bad); border-radius: 10px; padding: .55rem .7rem; font-size: .9rem;
}
.arls-error[hidden] { display: none; }
/* 1.1.11: order-received / view-order list of codes (was unstyled). */
.arls-codes {
	background: var(--_card); border: 1px solid var(--_border); border-radius: var(--_radius);
	padding: 1rem 1.1rem; margin: 1.2rem 0;
}
.arls-codes h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.arls-codes__group + .arls-codes__group { margin-top: .9rem; }
.arls-codes__plan { font-weight: 600; margin-bottom: .3rem; }
.arls-codes__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.arls-codes__row code {
	display: inline-block; padding: .35rem .7rem; border-radius: 10px;
	background: var(--_bg); border: 1px solid var(--_border); color: var(--_text);
}
.arls-codes__howto { margin: .8rem 0 0; font-size: .9rem; color: var(--_muted); }
.arls-codes__howto a { color: var(--_accent); }
[data-ax-scheme="dark"] .arls-codes__howto a { color: var(--_info); }
.arls-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
