.scalapay-checkout-label {
	display: inline-flex;
	align-items: center;
}

.scalapay-checkout-label__img {
	display: inline-flex;
	align-content: center;
	padding: 5px 0 0 3px;
	width: 88px;
}

.scalapay-checkout-label__img img {
	display: inline-block;
}

.scalapay-checkout-label__icon {
	width: auto;
	max-height: 30px !important;
	padding: 4px 0 0 0 !important;
}

/*
 * The description renders inside `ul.payment_methods li` on the classic
 * checkout, so theme rules written as descendant selectors - `ul.payment_methods
 * li img`, `.payment_box p` - match this markup too, at a higher specificity
 * than anything scoped to a single class here. The resets below neutralise the
 * properties those rules commonly set: floated and height-capped gateway icons,
 * list markers and padding on the nested items.
 */

.scalapay-checkout-description {
	font-size: small;
}

.scalapay-checkout-description__badge {
	display: flex;
	align-items: center;
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background-color: #eeebff;
}

.scalapay-checkout-description__badge-text {
	/* The badge sets its own light background, so it cannot inherit a theme's
     light-on-dark text colour. */
	color: #1a1a1a;
	font-weight: 600;
	line-height: 1.3;
}

.scalapay-checkout-description__methods {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 -4px !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
	background: none !important;
}

.scalapay-checkout-description__method {
	display: inline-flex !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
	background: none !important;
}

.scalapay-checkout-description__method::before,
.scalapay-checkout-description__method::after,
.scalapay-checkout-description__method::marker {
	content: none;
}

.scalapay-checkout-description__badge-icon,
.scalapay-checkout-description__method img {
	display: block !important;
	float: none !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: none !important;
	vertical-align: middle;
}

.scalapay-checkout-description__badge-icon {
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	margin: 0 10px 0 0 !important;
}

.scalapay-checkout-description__method img {
	width: 48px !important;
	height: 24px !important;
}
