/* Wonkrew Payments public-facing styles. */
.wonkrew-pay-status {
	max-width: 640px;
	margin: 32px auto;
	padding: 24px 28px;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	background: #fff;
}

.wonkrew-pay-status h2 {
	margin-top: 0;
	text-transform: capitalize;
}

.wonkrew-pay-amount {
	font-size: 22px;
	font-weight: 600;
	margin: 4px 0 12px;
}

.wonkrew-pay-message {
	font-size: 15px;
	line-height: 1.5;
}

.wonkrew-pay-reference code {
	background: #f4f4f4;
	padding: 1px 5px;
	border-radius: 2px;
}

.wonkrew-pay-status.wonkrew-pay-status-succeeded { border-left: 4px solid #1c6b30; }
.wonkrew-pay-status.wonkrew-pay-status-failed    { border-left: 4px solid #8a1c1c; }
.wonkrew-pay-status.wonkrew-pay-status-pending   { border-left: 4px solid #8a6200; }
.wonkrew-pay-status.wonkrew-pay-status-processing { border-left: 4px solid #213c8f; }
.wonkrew-pay-status.wonkrew-pay-status-refunded   { border-left: 4px solid #5a1f6b; }

.wonkrew-pay-spinner {
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border: 3px solid #e3e3e3;
	border-top-color: #213c8f;
	border-radius: 50%;
	animation: wonkrew-spin 0.8s linear infinite;
}

.wonkrew-pay-status.wonkrew-pay-status-succeeded .wonkrew-pay-spinner { border-top-color: #1c6b30; }
.wonkrew-pay-status.wonkrew-pay-status-failed    .wonkrew-pay-spinner { border-top-color: #8a1c1c; }

.wonkrew-pay-actions {
	margin: 18px 0 6px;
}
.wonkrew-pay-actions .button {
	display: inline-block;
	padding: 12px 24px;
	background: #2271b1;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border: 0;
	cursor: pointer;
	transition: background 0.15s;
}
.wonkrew-pay-actions .button:hover {
	background: #135e96;
}
.wonkrew-pay-actions .button.button-primary {
	background: #1c6b30;
	padding: 14px 28px;
	font-size: 16px;
}
.wonkrew-pay-actions .button.button-primary:hover {
	background: #145023;
}
.wonkrew-pay-continue {
	display: inline-block;
	padding: 14px 28px;
	background: #1c6b30;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}
.wonkrew-pay-continue:hover {
	background: #145023;
}

@keyframes wonkrew-spin {
	to { transform: rotate(360deg); }
}

.wonkrew-pay-countdown {
	margin: 12px 0 16px;
	font-size: 14px;
	color: #555;
}

.wonkrew-pay-countdown-text {
	display: block;
	margin-bottom: 6px;
}

.wonkrew-pay-progress {
	width: 100%;
	height: 6px;
	background: #eee;
	border-radius: 3px;
	overflow: hidden;
}

.wonkrew-pay-progress-bar {
	height: 100%;
	width: 0;
	background: #2271b1;
	border-radius: 3px;
	transition: width 0.15s linear;
}

.wonkrew-pay-status.wonkrew-pay-status-succeeded .wonkrew-pay-progress-bar { background: #1c6b30; }
.wonkrew-pay-status.wonkrew-pay-status-failed    .wonkrew-pay-progress-bar { background: #8a1c1c; }
