/*
 * The recovery screen is styled by the theme and WooCommerce.
 * Only spacing that the checkout page does not provide is added here.
 */
.bpr-recovery .bpr-reason {
	margin: 0 0 6px;
}

.bpr-recovery .bpr-reassure {
	margin: 0 0 24px;
}

.bpr-recovery .bpr-order-number {
	font-weight: 400;
	opacity: 0.6;
}

.bpr-recovery #order_review .shop_table {
	width: 100%;
}

.bpr-recovery #order_review .shop_table .product-quantity {
	white-space: nowrap;
}

.bpr-recovery #order_review .shop_table td,
.bpr-recovery #order_review .shop_table th {
	overflow-wrap: anywhere;
}

/* Switching a pickup order to delivery: address fields inside the payment box. */
.bpr-recovery .bpr-delivery-switch .payment_box .form-row {
	margin: 0 0 12px;
	padding: 0;
}

.bpr-recovery .bpr-delivery-switch .payment_box label {
	display: block;
	margin: 0 0 4px;
	color: inherit;
}

.bpr-recovery #payment .bpr-delivery-switch .payment_box input.input-text,
.bpr-recovery #payment .bpr-delivery-switch .payment_box select {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* The theme leaves selects transparent, which is unreadable on the dark payment box. */
.bpr-recovery #payment .bpr-delivery-switch .payment_box select {
	min-height: 38px;
	padding: 6px 10px;
	/* The theme sets its own value with !important. */
	background-color: #fff !important;
	color: #000;
}

.bpr-recovery .bpr-switch-totals {
	width: 100%;
	margin: 16px 0 0;
	border: 0;
	background: transparent;
}

.bpr-recovery .bpr-switch-totals th,
.bpr-recovery .bpr-switch-totals td {
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-weight: 400;
	text-align: left;
}

.bpr-recovery .bpr-switch-totals td {
	text-align: right;
	white-space: nowrap;
}

.bpr-recovery .bpr-switch-totals__total th,
.bpr-recovery .bpr-switch-totals__total td {
	font-weight: 700;
}

/* Reminder for visitors who left during a card payment. Uses the theme's colours and fonts. */
.bpr-banner {
	--bpr-accent: var(--e-global-color-primary, #3bb77e);
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99990;
	max-width: 620px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0;
	background: #fff;
	color: inherit;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	font-size: 15px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bpr-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bpr-banner__text {
	flex: 1;
}

.bpr-banner .bpr-banner__link {
	flex: none;
	padding: 10px 16px;
	border-radius: 0;
	background: var(--bpr-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.bpr-banner .bpr-banner__close {
	flex: none;
	width: 32px;
	height: 32px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
	box-shadow: none;
}

@media (max-width: 480px) {
	.bpr-banner {
		flex-wrap: wrap;
	}

	.bpr-banner__text {
		flex-basis: calc(100% - 46px);
	}

	.bpr-banner .bpr-banner__link {
		order: 3;
		flex: 1;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpr-banner {
		transition: none;
	}
}
