/* Payment buttons */

.payment-method-error {
	background-color: transparent;
	color: $redColor;
}

.payment-buttons-bar {
	background: $secondaryColor;
	color: $whiteColor;
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 20px 35px;

	@include medium-desktop {
		padding: 15px 25px;
	}

	@include mobile {
		flex-wrap: wrap;
	}

	.left-content {
		display: flex;
		align-items: center;

		@include mobile {
			order: 2;
			flex: 1 1 100%;
			text-align: center;
		}
	}

	@include mobile {
		@include default-shape();
	}

	.payment-total-price {
		text-align: right;
		color: $whiteColor;
		font-weight: 400;
		font-size: 16px;
		display: flex;
		align-items: center;
		justify-self: flex-end;
		margin-left: auto;
		flex-shrink: 0;

		@include mobile {
			order: 1;
			text-align: center;
			flex: 1 1 100%;
			margin-bottom: 10px;
			justify-content: flex-start;
		}

		span {
			font-weight: 700;
		}
	}

	.payment-total-price-column {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
}

.payment-buttons {
	display: none;
	flex-wrap: wrap;
	margin-bottom: -5px;

	> * {
		display: inline-block;
		margin-right: 5px;
		margin-bottom: 5px;

		@include mobile {
			margin-bottom: 7px;
			margin-right: 0;
			width: 100%;
		}

		.text-button {
			@include mobile {
				width: 100%;
			}
		}
	}
}