/* R2S card quantity picker (product page). */
form.cart.r2spm-qty-form,
form.cart:has(.r2spm-qty) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	width: 100%;
}
/* One row: quick picks + the theme's -/+ quantity box. */
.r2spm-qty {
	flex: 0 0 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.r2spm-qty .quantity {
	margin: 0 !important;
	min-height: 44px;
}
.r2spm-qty__picks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.r2spm-qty__pick,
.r2spm-qty__step {
	min-width: 52px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.r2spm-qty__pick:hover,
.r2spm-qty__step:hover:not(:disabled) {
	background: rgba(127, 127, 127, 0.12);
}
.r2spm-qty__pick.is-active,
.r2spm-qty__pick[aria-pressed="true"] {
	background: #f0b429;
	border-color: #f0b429;
	color: #0a1a2f;
}
.r2spm-qty__pick:focus-visible,
.r2spm-qty__step:focus-visible {
	outline: 3px solid #f0b429;
	outline-offset: 2px;
}
.r2spm-qty__step:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.r2spm-qty__stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
/* Add-to-cart sits on its own line under the row. */
form.cart .single_add_to_cart_button.r2spm-add {
	margin: 0 !important;
	min-height: 44px;
	white-space: nowrap;
	text-transform: none !important; /* "Add 25 cards", not "Add 25 Cards" */
}
.r2spm-balance {
	flex: 0 0 100%;
	margin: 0;
	font-size: 0.95em;
}
.r2spm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 480px) {
	form.cart .single_add_to_cart_button.r2spm-add {
		flex: 1 1 100%;
	}
}

/* "Instructor account required" notice in place of the add-to-cart form (non-instructors). */
.r2spm-gate {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-left: 4px solid #f0b429;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 0 0 16px;
	max-width: 560px;
	background: rgba(0, 0, 0, 0.02);
}
.r2spm-gate p { margin: 0 0 8px; }
.r2spm-gate p:last-child { margin-bottom: 0; }
.r2spm-gate__title { font-weight: 700; font-size: 1.05em; }
.r2spm-gate__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.r2spm-gate__btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	background: #f0b429;
	color: #0a1a2f !important;
	font-weight: 600;
	text-decoration: none !important;
	min-height: 44px;
	box-sizing: border-box;
	line-height: 24px;
}
.r2spm-gate__btn:hover, .r2spm-gate__btn:focus-visible { filter: brightness(0.92); }
.r2spm-gate__link { font-weight: 600; text-decoration: underline; }
