/*
 * Plans sold with "Direct Debit after checkout": basket, checkout and the
 * thank-you page's "set up your Direct Debit" step.
 * See inc/gocardless-dd-after-checkout.php.
 */

/* Basket line price: match the theme's other line prices (small grey amounts). */
.bibo-dd-cart-price {
	color: #666;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}

/* Block checkout: the plan line's £0.00 (the price placeholder must stay in the format). */
.bibo-dd-item .wc-block-components-product-price__value {
	display: none;
}

/* "Then by Direct Debit" row under the basket / checkout totals. */
.bibo-dd-total__price {
	display: block;
}

.woocommerce .bibo-dd-total__price span.woocommerce-Price-amount.amount,
.woocommerce .bibo-dd-total__price span.woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

/*
 * product-styles.css forces 16px !important onto every element in the basket
 * totals and checkout review tables, so match its selectors and outrank them.
 */
.bibo-dd-total .bibo-dd-total__detail,
.cart_totals .shop_table.shop_table_responsive .bibo-dd-total .bibo-dd-total__detail,
#order_review .bibo-dd-total .bibo-dd-total__detail {
	color: #6b6b6b !important;
	display: block;
	font-size: 13px !important;
	line-height: 1.45;
	margin-top: 4px;
}

.bibo-dd-step {
	background: #f3faff;
	border: 1px solid #d6edfd;
	border-left: 6px solid #50b9fa;
	border-radius: 12px;
	color: #333;
	margin: 0 0 40px;
	padding: 28px 32px 32px;
}

/* style.css sets `span { color: #50b9fa }` and small grey price amounts; opt out inside the card. */
.bibo-dd-step {
	font-family: VarelaRound-Regular, sans-serif;
}

.bibo-dd-step span {
	color: inherit;
	font-family: inherit;
}

.bibo-dd-step .bibo-dd-step__plan-start {
	color: #6b6b6b;
}

.bibo-dd-step .bibo-dd-step__plan-price {
	color: #50b9fa;
}

.bibo-dd-step .bibo-dd-step__plan-price span.woocommerce-Price-amount.amount,
.bibo-dd-step .bibo-dd-step__plan-price span.woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

.bibo-dd-step--done {
	background: #f4fbf6;
	border-color: #d3eedc;
	border-left-color: #3fb26b;
}

.bibo-dd-step > :last-child {
	margin-bottom: 0;
}

/* Progress: Order placed -> Direct Debit */
.bibo-dd-step__progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.bibo-dd-step__progress li {
	align-items: center;
	color: #8a8a8a;
	display: flex;
	font-size: 15px;
	gap: 10px;
	margin: 0;
	position: relative;
}

.bibo-dd-step__progress li + li::before {
	background: #cfe3f1;
	content: "";
	height: 2px;
	left: -22px;
	position: absolute;
	top: 50%;
	width: 16px;
}

.bibo-dd-step__progress .is-done,
.bibo-dd-step__progress .is-current {
	color: #333;
}

.bibo-dd-step__dot {
	align-items: center;
	background: #fff;
	border: 2px solid #cfe3f1;
	border-radius: 50%;
	display: inline-flex;
	flex: none;
	font-size: 14px;
	font-weight: bold;
	height: 28px;
	justify-content: center;
	line-height: 1;
	width: 28px;
}

.bibo-dd-step__progress .is-done .bibo-dd-step__dot {
	background: #3fb26b;
	border-color: #3fb26b;
	color: #fff;
}

.bibo-dd-step__progress .is-current .bibo-dd-step__dot {
	background: #50b9fa;
	border-color: #50b9fa;
	color: #fff;
}

.bibo-dd-step__title {
	color: #333;
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.bibo-dd-step__lead {
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 20px;
	max-width: 46em;
}

.bibo-dd-step__notice {
	background: #fff8e6;
	border: 1px solid #f3dca0;
	border-radius: 8px;
	font-size: 15px;
	margin: 0 0 20px;
	padding: 12px 16px;
}

/* The plan being set up */
.bibo-dd-step__plan {
	align-items: center;
	background: #fff;
	border: 1px solid #e3eef6;
	border-radius: 10px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0 0 20px;
	padding: 16px 20px;
}

.bibo-dd-step__plan-name {
	display: block;
	font-size: 18px;
	font-weight: bold;
}

.bibo-dd-step__plan-start {
	color: #6b6b6b;
	display: block;
	font-size: 15px;
	margin-top: 2px;
}

.bibo-dd-step__plan-price {
	color: #50b9fa;
	flex: none;
	font-size: 20px;
	font-weight: bold;
	white-space: nowrap;
}

.bibo-dd-step__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.bibo-dd-step__points li {
	font-size: 15px;
	margin: 0;
	padding-left: 26px;
	position: relative;
}

.bibo-dd-step__points li::before {
	color: #3fb26b;
	content: "\2713";
	font-weight: bold;
	left: 0;
	position: absolute;
}

.bibo-dd-step__button,
.bibo-dd-step__button:visited {
	background-color: #50b9fa;
	border-radius: 6px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
	color: #fff !important;
	display: inline-block;
	font-size: 18px;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color 0.15s ease;
}

.bibo-dd-step__button:hover,
.bibo-dd-step__button:focus {
	background-color: #2fa6ef;
}

.bibo-dd-step__button:focus-visible {
	outline: 3px solid #1d7fc0;
	outline-offset: 2px;
}

.bibo-dd-step__aside {
	color: #6b6b6b;
	font-size: 14px;
	margin: 14px 0 0;
}

@media (max-width: 600px) {
	.bibo-dd-step {
		border-left-width: 1px;
		border-top: 6px solid #50b9fa;
		padding: 22px 18px 24px;
	}

	.bibo-dd-step--done {
		border-top-color: #3fb26b;
	}

	.bibo-dd-step__title {
		font-size: 23px;
	}

	.bibo-dd-step__plan {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.bibo-dd-step__button {
		display: block;
	}
}
