.depositflow-payment-options {
	--depositflow-accent: #7f54b3;
	--depositflow-border: #dcdcde;
	--depositflow-muted: #646970;
	--depositflow-surface: #fff;
	--depositflow-selected: rgba(127, 84, 179, 0.06);

	box-sizing: border-box;
	margin: 0.85em 0 1.25em;
	padding: 0.9em;
	border: 1px solid var(--depositflow-border);
	border-radius: 8px;
	background: var(--depositflow-surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	color: inherit;
}

.depositflow-payment-options *,
.depositflow-payment-options *::before,
.depositflow-payment-options *::after {
	box-sizing: border-box;
}

.depositflow-payment-options__title {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0 0 0.7em;
	font-size: 1.05em;
	line-height: 1.3;
}

.depositflow-payment-options__title-icon {
	font-size: 1.1em;
	line-height: 1;
}

.depositflow-payment-options__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65em;
}

.depositflow-payment-options__choice {
	position: relative;
	display: flex;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--depositflow-border);
	border-radius: 7px;
	background: var(--depositflow-surface);
	cursor: pointer;
	transition:
		border-color 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease,
		transform 160ms ease;
}

.depositflow-payment-options__choice.is-selected {
	border-color: var(--depositflow-accent);
	background: var(--depositflow-selected);
	box-shadow: 0 0 0 1px var(--depositflow-accent);
}

.depositflow-payment-options__control {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.depositflow-payment-options__choice-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.55em;
	min-width: 0;
	padding: 0.75em;
	border-radius: inherit;
}

.depositflow-payment-options__control:focus-visible + .depositflow-payment-options__choice-content {
	outline: 2px solid var(--depositflow-accent);
	outline-offset: 3px;
}

.depositflow-payment-options__choice-title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	line-height: 1.25;
}

.depositflow-payment-options__choice-title strong {
	font-size: 0.95em;
	font-weight: 600;
}

.depositflow-payment-options__indicator {
	position: relative;
	flex: 0 0 1em;
	width: 1em;
	height: 1em;
	border: 1.5px solid #8c8f94;
	border-radius: 50%;
	background: var(--depositflow-surface);
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.depositflow-payment-options__indicator::after {
	position: absolute;
	inset: 0.2em;
	border-radius: 50%;
	background: var(--depositflow-accent);
	content: "";
	opacity: 0;
	transform: scale(0.5);
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.depositflow-payment-options__choice.is-selected .depositflow-payment-options__indicator {
	border-color: var(--depositflow-accent);
	box-shadow: 0 0 0 1px var(--depositflow-accent);
}

.depositflow-payment-options__choice.is-selected .depositflow-payment-options__indicator::after {
	opacity: 1;
	transform: scale(1);
}

.depositflow-payment-options__amounts,
.depositflow-payment-options__mandatory-amounts {
	display: grid;
	gap: 0.25em;
	margin: 0;
}

.depositflow-payment-options__amount,
.depositflow-payment-options__mandatory-amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75em;
}

.depositflow-payment-options__amount dt,
.depositflow-payment-options__amount dd,
.depositflow-payment-options__mandatory-amount dt,
.depositflow-payment-options__mandatory-amount dd {
	margin: 0;
}

.depositflow-payment-options__amount dt,
.depositflow-payment-options__mandatory-amount dt {
	color: var(--depositflow-muted);
	font-size: 0.82em;
	line-height: 1.4;
}

.depositflow-payment-options__amount dd,
.depositflow-payment-options__mandatory-amount dd {
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	text-align: end;
}

.depositflow-payment-options__amount--primary dd,
.depositflow-payment-options__mandatory-amount--primary dd {
	font-size: 1.25em;
	font-weight: 700;
}

.depositflow-payment-options__mandatory {
	display: grid;
	gap: 0.65em;
	padding: 0.75em;
	border: 1px solid var(--depositflow-border);
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.015);
}

.depositflow-payment-options__badge {
	justify-self: start;
	padding: 0.2em 0.55em;
	border-radius: 999px;
	background: var(--depositflow-selected);
	color: var(--depositflow-accent);
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.5;
}

.depositflow-payment-options__mandatory-amounts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75em;
}

.depositflow-payment-options__mandatory-amount {
	display: grid;
	gap: 0.1em;
}

.depositflow-payment-options__mandatory-amount dd {
	text-align: start;
}

@media (hover: hover) {
	.depositflow-payment-options__choice:hover {
		border-color: #8c8f94;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
		transform: translateY(-1px);
	}

	.depositflow-payment-options__choice.is-selected:hover {
		border-color: var(--depositflow-accent);
	}
}

@media (max-width: 600px) {
	.depositflow-payment-options__choices {
		grid-template-columns: 1fr;
	}

	.depositflow-payment-options__mandatory-amounts {
		grid-template-columns: 1fr;
		gap: 0.45em;
	}

	.depositflow-payment-options__mandatory-amount {
		display: flex;
	}

	.depositflow-payment-options__mandatory-amount dd {
		text-align: end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.depositflow-payment-options__choice,
	.depositflow-payment-options__indicator,
	.depositflow-payment-options__indicator::after {
		transition: none;
	}
}
