$base-font: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
$base-text-color: #333;
$error-text-color: #eb1c26;

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

.grecaptcha-badge {
	z-index: 100;
}

.stripe-button-el {

	.simpay-styled & {
		text-decoration: none;

		&:hover {
			box-shadow: none;
		}
	}
}

// Loading state.
.simpay-checkout-form {

	&--loading {

		&::after {
			content: "";
			position: absolute;
			left: 0;
			width: 100%;
			height: 100%;
			top: 0;
		}

		.simpay-form-control {
			opacity: 0.65;
		}
	}
}

// Error messages container.
.simpay-errors {
	margin-bottom: 15px;

	.simpay-styled & {
		font-family: $base-font;
		color: $error-text-color;
		line-height: 1.5;
	}
}

// Test mode badge.
.simpay-test-mode-badge-container {

	.simpay-checkout-form--embedded &,
	.simpay-modal__content & {
		text-align: center;
	}

	.simpay-test-mode-badge {
		color: #a04903;
		text-align: center;
		text-transform: uppercase;
		font-size: 10px;
		font-family: sans-serif;
		line-height: 10px;
		font-weight: 700;
		padding: 5px 7px;
		border-radius: 3px;
		background: #ffde92;
		display: inline-flex;
		align-items: center;
	}
}

html body.simpay-form-preview {
	padding: 50px;
	background: #ffffff;
	font-family: sans-serif ;

	&:before,
	&:after {
		display: none;
	}

	.simpay-form-preview-notice {
		background: #fafafa;
		margin-bottom: 50px;
		padding: 5px 20px;
		display: inline-block;
		border: 1px solid #ddd;
		box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);

		&-button {
			background-color: #428bca;
			color: #fff;
			font-size: 16px;
			line-height: 1.2;
			padding: 6px 12px;
			font-weight: normal;
			text-shadow: none;
			border: 1px solid #2d6ca2;
			box-shadow: none;
			border-radius: 4px;
			cursor: pointer;
		}

		&-section {
			margin: 10px 0;
		}

		p {
			font-family: $base-font;
			font-size: 16px;
			color: $base-text-color;
			margin: 15px 0;
		}
	}
}
