.btb-rr {
	max-width: 640px;
	margin: 0 auto;
	text-align: left;
}

.btb-rr [hidden] {
	display: none !important;
}

.btb-rr__step:focus {
	outline: none;
}

.btb-rr__intro,
.btb-rr__order {
	margin: 0 0 20px;
}

.btb-rr__order {
	font-weight: 600;
}

.btb-rr__field {
	margin-bottom: 18px;
}

.btb-rr__field label,
.btb-rr__items legend {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.btb-rr__field input,
.btb-rr__field select,
.btb-rr__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px;
	border: 1px solid #8a8a8a;
	border-radius: 0;
	background: #fff;
	color: #111;
	font: inherit;
}

/* Own arrow, so it sits 14px from the edge instead of touching the border. */
.btb-rr .btb-rr__field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	text-overflow: ellipsis;
	cursor: pointer;
}

.btb-rr__items {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.btb-rr__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 12px 0;
	border-bottom: 1px solid #ddd;
}

.btb-rr__item-main {
	display: flex;
	flex: 1 1 260px;
	align-items: center;
	gap: 12px;
	min-width: 0;
	cursor: pointer;
}

.btb-rr__item-main input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
}

.btb-rr__thumb {
	flex: none;
	width: 56px !important;
	height: 56px !important;
	object-fit: cover;
}

.btb-rr__item-text {
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.4;
}

.btb-rr__item-name,
.btb-rr__item-details {
	display: block;
}

.btb-rr__item-name {
	margin-bottom: 2px;
}

.btb-rr__item-details {
	color: #555;
	font-size: 0.9em;
}

.btb-rr__qty-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9em;
}

.btb-rr__qty {
	box-sizing: border-box;
	width: 70px !important;
	padding: 8px;
	border: 1px solid #8a8a8a;
	background: #fff;
	color: #111;
	font: inherit;
}

.btb-rr__qty:disabled {
	opacity: 0.5;
}

.btb-rr__statement {
	margin: 0 0 18px;
}

.btb-rr__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.btb-rr .btb-rr__button {
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.btb-rr .btb-rr__button:hover,
.btb-rr .btb-rr__button:focus-visible {
	background: #333;
	color: #fff;
}

.btb-rr .btb-rr__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.btb-rr .btb-rr__back {
	padding: 8px 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.btb-rr__error {
	margin-bottom: 20px;
	padding: 12px 14px;
	border-left: 4px solid #b3261e;
	background: #fbeceb;
	color: #7a1a14;
}

.btb-rr__title {
	margin: 0 0 16px;
}

.btb-rr__subtitle {
	margin: 24px 0 10px;
}

.btb-rr__summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 16px;
	margin: 0 0 16px;
}

.btb-rr__summary dt {
	font-weight: 600;
}

.btb-rr__summary dd {
	margin: 0;
}

.btb-rr__list {
	margin: 0 0 16px;
	padding-left: 20px;
}

.btb-rr__list li {
	margin-bottom: 6px;
}

.btb-rr__alternative {
	margin: 28px 0 0;
	color: #555;
	font-size: 0.9em;
}

/* Hidden from people, still visible to form-filling bots. */
.btb-rr__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*
 * Tablet and down: the page container has no side padding here, so without a
 * gutter the fields and text touch the screen edges. 10px lines the form up
 * with the page title; override with --btb-rr-gutter if the theme changes.
 */
@media (max-width: 782px) {
	.btb-rr {
		box-sizing: border-box;
		padding: 0 var(--btb-rr-gutter, 10px) 32px;
	}
}

/* Phones: stack each item, make inputs full-width and tap-friendly. */
@media (max-width: 600px) {
	.btb-rr__intro,
	.btb-rr__order {
		margin-bottom: 16px;
	}

	.btb-rr__field {
		margin-bottom: 16px;
	}

	.btb-rr__field input,
	.btb-rr__field select,
	.btb-rr__field textarea {
		padding: 11px 12px;
		/* 16px stops iOS Safari from zooming the page when a field is focused. */
		font-size: 16px;
	}

	.btb-rr__item {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.btb-rr__item-main {
		flex: 1 1 auto;
	}

	.btb-rr__qty-wrap {
		justify-content: space-between;
	}

	.btb-rr__qty {
		width: 90px !important;
	}

	.btb-rr__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.btb-rr .btb-rr__button {
		width: 100%;
	}

	.btb-rr .btb-rr__back {
		text-align: center;
	}

	.btb-rr__summary {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}

	.btb-rr__summary dd {
		margin-bottom: 10px;
	}
}
