.afr {
	--afr-ink: #1b1f27;
	--afr-muted: #6b7280;
	--afr-line: #e3e6ec;
	--afr-soft: #f6f7f9;
	--afr-link: #1a5fd0;
	--afr-accent: var(--apr-tier, #6a4cc0);
	--afr-accent-ink: var(--apr-tier-box, #4f3597);
	color: var(--afr-ink);
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}

.afr *,
.afr *::before,
.afr *::after {
	box-sizing: border-box;
}

.afr svg {
	flex: none;
}

.afr--only .hiddenfrom {
	display: none;
}

.afr a,
.afr a:visited {
	color: var(--afr-link);
}

.afr-muted {
	color: var(--afr-muted);
	font-weight: 400;
}

.afr-text {
	margin: 0 0 8px;
}

.afr-link {
	display: inline-block;
	margin-top: 4px;
	text-decoration: none;
}

.afr-link:hover {
	text-decoration: underline;
}

.afr-ad {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 8px;
	border-radius: 10px;
	background: var(--afr-soft);
}

.afr-ad-img {
	width: 64px;
	height: 64px;
	border-radius: 7px;
	object-fit: cover;
	flex: none;
}

.afr-ad-info {
	min-width: 0;
}

.afr-ad-name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.afr-ad-timer {
	color: var(--afr-muted);
	font-size: 12px;
}

.afr-option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 6px 0 0;
	padding: 8px 11px;
	border: 1px solid var(--afr-line);
	border-radius: 9px;
	background: #fff;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.afr-option:hover {
	border-color: color-mix(in srgb, var(--afr-accent) 55%, #fff);
}

.afr-option-icon {
	display: flex;
	color: var(--afr-accent-ink);
}

.afr-option-icon svg {
	width: 18px;
	height: 18px;
}

.afr-option-price {
	font-weight: 700;
	white-space: nowrap;
}

.afr-option-chevron {
	display: flex;
	color: var(--afr-muted);
}

.afr-option-chevron svg {
	width: 16px;
	height: 16px;
}

.afr-panel {
	margin: 6px 0 4px;
	padding: 12px 14px;
	border: 1px solid var(--afr-line);
	border-radius: 9px;
	background: #fff;
}

.afr-alert {
	margin-bottom: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12px;
}

.afr-alert div + div {
	margin-top: 4px;
}

.afr-alert:last-child {
	margin-bottom: 0;
}

.afr-alert--warn {
	background: #fff4de;
	color: #7a4800;
}

.afr-alert--danger {
	background: #fdecec;
	color: #a61b1b;
}

.afr-step {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 8px;
	font-weight: 700;
}

.afr-panel > .afr-step:first-child {
	margin-top: 0;
}

.afr-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--afr-accent) 14%, #fff);
	color: var(--afr-accent-ink);
	font-size: 11px;
	font-weight: 800;
	flex: none;
}

.afr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.afr-chip,
.afr-count {
	position: relative;
	margin: 0;
	border: 1px solid var(--afr-line);
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.afr-chip {
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
}

.afr-chip > input[type="radio"],
.afr-count > input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.afr-chip:hover,
.afr-count:hover {
	border-color: color-mix(in srgb, var(--afr-accent) 55%, #fff);
}

.afr-chip:has(> input:checked),
.afr-count:has(> input:checked) {
	border-color: var(--afr-accent);
	box-shadow: 0 0 0 1px var(--afr-accent);
	background: color-mix(in srgb, var(--afr-accent) 6%, #fff);
	color: var(--afr-accent-ink);
}

.afr-chip:has(> input:checked) {
	font-weight: 700;
}

.afr-chip:has(> input:focus-visible),
.afr-count:has(> input:focus-visible) {
	outline: 2px solid var(--afr-accent);
	outline-offset: 2px;
}

.afr-count:has(> input.first_disabled) {
	opacity: .45;
}

.afr-counts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 6px;
}

.afr-count {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 8px;
}

.afr-count-n {
	font-size: 13px;
	font-weight: 700;
}

.afr-count-ppc {
	color: var(--afr-muted);
	font-size: 11px;
	white-space: nowrap;
}

.afr-count--manual {
	grid-column: 1 / -1;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.afr-count-input {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.afr-number {
	width: 58px;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #cfd4dc;
	border-radius: 7px;
	background: #fff;
	font: inherit;
	font-weight: 700;
	text-align: center;
	color: var(--afr-ink);
}

.afr-number:focus {
	outline: none;
	border-color: var(--afr-link);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--afr-link) 18%, transparent);
}

.afr-total {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--afr-soft);
}

.afr-total-sum {
	font-size: 13px;
}

.afr-total-sum b {
	font-size: 16px;
}

.afr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 7px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.afr-btn--primary {
	background: var(--afr-link);
	color: #fff;
}

.afr-btn--primary:hover {
	background: #154fae;
}

.afr-btn.is-idle {
	opacity: .45;
}

.afr-sms-link,
.afr-sms-link:visited {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin-bottom: 8px;
	padding: 8px 12px;
	border: 1px solid var(--afr-line);
	border-radius: 8px;
	background: var(--afr-soft);
	color: var(--afr-ink);
	text-decoration: none;
}

.afr-sms-code {
	padding: 1px 6px;
	border: 1px solid var(--afr-line);
	border-radius: 5px;
	background: #fff;
	letter-spacing: .04em;
	white-space: nowrap;
}

.afr-qr {
	margin: 4px 0 10px;
}

.afr-qr img {
	display: block;
	width: 150px;
	height: 150px;
}

.afr-cal {
	font-size: 12px;
}

.afr-cal-head {
	margin: 12px 0 4px;
	color: var(--afr-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.afr-cal-head:first-child {
	margin-top: 0;
}

.afr-cal-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	padding: 4px 0;
	border-bottom: 1px solid var(--afr-line);
}

.afr-cal-row b {
	font-weight: 600;
}

.afr-cal-row span {
	color: var(--afr-muted);
}

.afr-pos {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--afr-soft);
	font-size: 12px;
}

@media only screen and (max-width: 640px) {
	.afr {
		font-size: 12px;
	}

	.afr-panel {
		padding: 12px 10px;
	}

	.afr-counts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.afr-ad-img {
		width: 52px;
		height: 52px;
	}

	.afr-total .afr-btn {
		width: 100%;
	}
}
