/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 16px;
}

.description {
	font-size: 14px;
	color: var(--text-primary-muted);
}

.codesGrid {
	margin-top: 16px;
	margin-bottom: 16px;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 8px;
}

@media (min-width: 640px) {
	.codesGrid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.codeItem {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 6px;
	border: 1px solid var(--background-modifier-accent);
	padding: 8px 12px;
}

.codeItemConsumed {
	opacity: 0.5;
}

.checkbox {
	display: flex;
	height: 16px;
	width: 16px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.checkboxUnchecked {
	border: 1px solid var(--background-modifier-accent);
}

.checkboxChecked {
	background: var(--brand-primary);
}

.checkIcon {
	height: 10px;
	width: 10px;
	color: white;
}

.code {
	user-select: text;
	-webkit-user-select: text;
	font-family: monospace;
	font-size: 14px;
	color: var(--text-primary);
	letter-spacing: 0.05em;
}

.codeConsumed {
	text-decoration: line-through;
}

.buttonRow {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (min-width: 640px) {
	.buttonRow {
		flex-direction: row;
	}
}

.footer {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 8px;
}

.footer > * {
	flex: 1;
	min-width: fit-content;
}

.buttonIcon {
	height: 1.25rem;
	width: 1.25rem;
}
