:root {
--text-colour: #333;
--button-colour: #133c7e;
--button-hover-colour: #85bde5;
--faded-text-colour: #777;
--page-background-colour: #eee;
--form-background-colour: #fff;
--input-background-colour: #fff;
--input-placeholder-colour: #333;
}

* {
	box-sizing: border-box;
	font-family: Helvetica, sans-serif;
	margin: 0;
}

html, body {
	background: #eee;
	background: var(--page-background-colour);
	height: 100%;
	color: var(--text-colour);
}

img {
	max-width: 100%;
	height: auto;
}

input {
	-webkit-appearance: none;
}

textarea, select, input {
	min-height: 44px;
	padding: 10px;
	background-color: var(--input-background-colour);
	border: 1px solid #cccccc;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	color: var(--text-colour);
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	transition: box-shadow 0.45s, border-color 0.45s ease-in-out;
	letter-spacing: 0.1em;
}

input::placeholder {
	color: var(--input-placeholder-colour);
}

input.invalid {
	background-color: #f77;
}

input:focus {
	background-color: #fff;
}

input:focus, input:focus::placeholder, input.invalid, input.invalid::placeholder {
	color: #333;
}

input[type="checkbox"] {
	-webkit-appearance: checkbox;
	display: inline;
	width: 22px;
	min-height: 22px;
	vertical-align: middle;
}

textarea {
	display: block;
	width: 100%;
	max-width: 100%;
}

label {
	font-size: 0.9em;
	font-weight: bold;
}

.payme-field {
	margin-bottom: 12px;
}

.compulsory-key {
	font-size: 0.9rem;
	padding-bottom: 10px;
	color: var(--faded-text-colour);
}

.paystation-fold {
	height: 3px;
	background: #a2a91b;
	background: -moz-linear-gradient(30deg, #133c7e 0%, #116cb6 33%, #85bde5 33%, #133c7e 100%);
	background: -webkit-linear-gradient(30deg, #133c7e 0%, #116cb6 33%, #85bde5 33%, #133c7e  100%);
	background: -o-linear-gradient(30deg, #133c7e 0%, #116cb6 33%, #85bde5 33%, #133c7e 100%);
	background: -ms-linear-gradient(30deg, #133c7e 0%, #116cb6 33%, #85bde5 33%, #133c7e  100%);
	background: linear-gradient(30deg, #133c7e 0%, #116cb6 33%, #85bde5 33%, #133c7e 100%);
}

.payment-wrapper {
	background: #fff;
	background: var(--form-background-colour);
	min-width: 210px;
	overflow: hidden;
}

.center-column {
	max-width: 500px;
	flex-basis: 500px;
}

.payment-amount-box {
	background-color: var(--form-background-colour);
	text-align: center;
	padding: 16px 28px;
	background-image: linear-gradient(#fff 50%, #f3f3f3 95%, #f0f0f0 100%);
}

.payment-amount {
	color: var(--text-colour);
	font-size: 36px;
	line-height: 1.2;
}

.payment-currency {
	color: var(--faded-text-colour);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
}

.payment-surcharge {

}

.payment-type {
	text-align: center;
	margin: 24px 0;
}

.payment-type-icons {
	height: 21px;
	margin: 4px 0 0;
}

.payment-type-icons img {
	max-height: 100%;
	margin: 0 2px;
	vertical-align: initial;
}

.payment-type-icons img:first-child {
	margin-left: 0;
}

.payment-type-icons-details {
	height: 21px;
	margin: 0px 4px 4px;
}

.payment-type-icons-details img {
	max-height: 100%;
	margin: 0 2px;
	vertical-align: initial;
}

.payment-type-icons-details img:first-child {
	margin-left: 0;
}

.payment-type .payment-surcharge {
	color: var(--faded-text-colour);
	font-size: 12px;
	padding: 5px 0;
}

.payment-button, .payment-type-button {
	width: 100%;
	font-size: 21px;
	padding: 10px 6px 7px;
	border-radius: 4px;
}

button, .button {
	border-style: solid;
	border-width: 0;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	-webkit-appearance: none;
	-webkit-border-radius: 0;
	display: inline-block;
	color: #fff;
	transition: background-color 100ms ease-out;
	background-color: #48546a;
	background-color: var(--button-colour);
	border-color: #48546a;
	border-color: var(--button-colour);
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
	max-width: 300px;
}

.payment-button {
	margin: 20px 0 0;
}

.payment-type-button small {
	display: block;
	font-size: 12px;
	font-weight: normal;
}

button:hover, button:active, button:focus {
	border-color: var(--button-hover-colour);
	background-color: var(--button-hover-colour);
	outline: none;
}

.payment-type-description {
	color: var(--faded-text-colour);
	font-size: 12px;
	letter-spacing: -0.2px;
	line-height: 1.2;
	margin-top: 2px;
	padding: 5px 0;
}

#payment-types-box {
	margin: 0 28px 24px;
}

#payment-types-box {
	padding-top: 24px;
}

.payment-type-form {
	margin: 0 28px 20px;
}

.payment-subheading {
	text-align: center;
	color: var(--faded-text-colour);
	font-size: 16px;
	font-weight: bold;
	line-height: 1.2;
	margin: 0 0 20px;
	padding: 0;
	position: relative;
}

.payment-type-form > .payment-subheading {
	margin-top: 24px;
}

.payment-back-link {
	color: var(--button-colour);
	padding: 0;
	background: none;
	font-size: 12px;
	margin: 4px 0 0;
	position: absolute;
	text-shadow: none;
	left: 0;
}

.payment-back-link:hover, .payment-back-link:focus {
	color: var(--button-hover-colour);
	background: none;
}

.test-mode {
	padding-top: 2px;
	background-color: #F00;
	text-align: center;
	color: #fff;
	font-weight: bold;
	position: relative;
	cursor: pointer;
}

.test-mode::after {
	content: "X";
	display: inline-block;
	position: absolute;
	font-size: 9px;
	top: 0;
	right: 0;
	margin: 5px;
}

input.card-icon {
	background-image: url(../img/svg/icon-account.svg);
	background-position: 10px 50%;
	background-repeat: no-repeat;
	padding-left: 45px;
}

input.creditcard-icon {
	background-image: url(../img/svg/icon-creditcard.svg);
	background-position: 10px 50%;
	background-repeat: no-repeat;
	padding-left: 45px;
}

input.calender-icon {
	background-image: url(../img/svg/icon-calender.svg);
	background-position: 10px 50%;
	background-repeat: no-repeat;
	padding-left: 43px;
}

input.cvc-icon {
	background-image: url(../img/svg/icon-lock.svg);
	background-position: 7px 50%;
	background-repeat: no-repeat;
	padding-left: 37px;
}

input.phone-icon {
	background-image: url(../img/svg/icon-phone.svg);
	background-position: 10px 50%;
	background-repeat: no-repeat;
	padding-left: 45px;
}

.transaction-result {
	text-align: center;
	background-color: var(--form-background-colour);
	color: var(--text-colour);
	padding: 20px;
	line-height: 1.3;
}

.transaction-result h3 {
	margin: 0 0 10px;
}

.redirector {
	text-align: center;
	padding: 1.5em 0;
}

.redirect-content {
	opacity: 1;
	margin: 1em 0;
	height: auto;
	transition: opacity 0.5s ease-in-out;
	-moz-transition: opacity 0.5s ease-in-out;
	-webkit-transition: opacity 0.5s ease-in-out;
}

.redirect-content p {
	text-align: center;
	margin: 1em 0;
}

.loader {
	text-align: center;
	padding: 0.5rem 0 0;
}

.loader::after {
	content: '';
	background: url(../img/svg/loading-spin.svg) center center no-repeat;
	background-size: contain;
	display: inline-block;
	width: 44px;
	height: 44px;
}

#cardnumber {
	margin: 0;
}

#expiry-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 16px;
}

#expirydate {
	min-width: 99px;
	max-width: 210px;
	margin: 0 12px 0 0;
	flex: 1;
}

#cardverificationcode {
	flex: 1;
	min-width: 99px;
	/*max-width: 210px;*/
}

#cvc-help-button {
	position: relative;
	text-align: right;
}

.cvc-help-questionmark {
	border-radius: 50%;
	background-color: #48546a;
	background-color: var(--button-colour);
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
	color: #fff;
	width: 20px;
	padding-top: 2px;
	display: inline-block;
	text-align: center;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	bottom: 12px;
	right: 10px;
}

.cvc-help-questionmark:hover {
	background-color: var(--button-hover-colour);
}

.help-content {
	display: none;
	padding: 10px 10px 10px 70px;
	font-size: 12px;
	line-height: 1.3;
	background: #111 url(../img/icon-cvc.png) 1em 50% no-repeat;
	color: #ddd;
	position: absolute;
	text-align: center;
	left: 0;
	right: 0;
	z-index: 100;
	margin: auto;
	top: 110%;
}

#cvc-help-button:hover .help-content {
	display: block;
}

#cardholder {
	margin-top: 16px;
}

.paystation-logo {
	background: url(../img/paystation_logo.svg) center center no-repeat;
	background-size: contain;
	height: 48px;
	width: 160px;
	display: inline-block;
	float: right;
	margin: 12px 28px 0 0;
	clear: both;
}

.dark .paystation-logo {
	background: url(../img/paystation_monochrome.svg) center center no-repeat;
}

.merchant-logo-margin {
	margin: 0 28px 16px;
}

.merchant-logo {
	margin: 0 auto;
	flex-shrink: 0;
	display: block;
}

.merchant-title {
	text-align: center;
	margin: 12px 0 6px;
	color: var(--faded-text-colour);
}

.redirector, .redirect-content {
	text-align: center;
}

.payment-top-margin {
	max-height: 10%;
}

.row {
	flex-direction: row;
	display: flex;
}

.flex {
	flex: 1;
}

.page-content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#save_card_msg {
	margin: .25rem 0 -.25rem;
	font-size: 0.75rem;
}

.center, .redirect-message {
	text-align: center;
}

.iframe .hide-inside-iframes, #iframe-display {
	display: none;
}

@media only screen and (max-width: 266px) {
	.payment-type-form {
		margin: 0;
	}
}

.error-box {
	color: #f00;
	margin: 0 0 8px;
}

/* captcha */
#captcha_form {
	margin-top: 12px;
	font-size: 1rem;
}

.captcha_image {
	cursor: pointer;
	display: inline-block;
	border: solid 2px transparent;
	margin-right: 0.5em;
	box-sizing: content-box;
}

.captcha_image:last-child {
	margin-right: 0;
}

.ps_selected {
	border: solid 2px #000;
}

#challenge-overlay {
	top: 0;
	left: 0;
	background: #fff;
}
/* 01 = 250 x 400 */
.challenge_1 {
	width: 250px;
	height: 410px;
}
/* 02 = 390 x 400 */
.challenge_2 {
	width: 390px;
	height: 410px;
}
/* 03 = 500 x 600 */
.challenge_3 {
	width: 500px;
	height: 610px;
}

#challenge-iframe {
	display: block;
	top: 0;
	bottom: 0;
	left: 0;
	margin-left: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	transform: translate3d(0, 0, 0);
}
#captcha-error {
	background-color: #f77;
	padding: 5px 0;
	display:none;
}