/* OnePG instrument picker — classic and block checkout. */

.onepg-wrapper {
	padding: 4px 0 8px;
}

.onepg-wrapper .onepg-description {
	margin: 0 0 12px;
}

.onepg-group-title {
	margin: 18px 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 5px;
}

.onepg-group-title:first-child {
	margin-top: 0;
}

.onepg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.onepg-item {
	margin: 0;
}

.onepg-item label {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 11px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.onepg-item label:hover {
	border-color: #9ca3af;
	background: #fafafa;
}

.onepg-item input[type="radio"] {
	margin: 0;
	flex: 0 0 auto;
}

.onepg-item input[type="radio"]:checked + img,
.onepg-item input[type="radio"]:checked ~ span {
	color: #111827;
}

.onepg-item label:has(input:checked) {
	border-color: #2271b1;
	background: #f0f6fc;
}

.onepg-item label:focus-within {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.onepg-item img {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	max-width: 38px;
	max-height: 22px;
	object-fit: contain;
}

.onepg-item span {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: #374151;
}

.onepg-error {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #f3c2c2;
	border-radius: 6px;
	background: #fcf0f0;
	color: #a11a1a;
	font-size: 13px;
}

@media (max-width: 480px) {
	.onepg-grid {
		grid-template-columns: 1fr;
	}
}
