/* ****************************************************************** */
/* order */

body.order {
	background-color: #394867;
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", helvetica, arial, sans-serif;
	
	box-sizing: border-box;
}

div#purchase_info {
	text-align: left;
	font-size: 1.6em;
	line-height: 1.5em;
	color: #def;
}

div#purchase_info h1 {
	margin: 60px 0 40px 0;
	font-size: 2.0em;
	font-weight: 300;
	text-align: center;
/* 
	outline: 1px solid magenta;
 */
}

div#purchase_info h2 {
	margin: 60px 0px 30px 0px;
	font-family: "HelveticaNeue-UltraLight", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 1.8em;
	font-weight: 100;
	text-align: center;
/* 
	outline: 1px solid cyan;
 */
}

div#purchase_info h3 {
	margin: 0;
	font-family: "HelveticaNeue-UltraLight", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 1.4em;
	font-weight: 100;
	padding: 0;
	text-align: center;
/* 
	outline: 1px solid yellow;
 */
}

div#purchase_info div.container {
	width: 790px;
	margin: 0 auto;
	padding: 20px 0;
	text-align: center;
/* 
	outline: 1px solid lime;
 */
}

div#purchase_info div.container p {
	margin: 0;
}

div#purchase_info button {
	background: rgba(255,255,255,0.1);
	color: white;
	font-family: "Helvetica Neue", helvetica, arial, sans-serif;
	border-radius: 10px;
	border: 2px solid rgba(255,255,255,0.2);
	padding: 12px 16px;
	font-size: 16px;
	font-weight: normal;
	cursor: pointer;
	display: block;
	transition: all 0.4s ease;
	width: 100%;
}
div#purchase_info button:hover {
/* 
	filter: contrast(115%);
 */
	border-color: rgba(255,255,255,0.5);
}
div#purchase_info button:disabled {
	opacity: 0.25;
	cursor: default;
}
div#purchase_info button.checked {
	background: rgba(255,255,255,0.1);
	position: relative;
	border-color: #6cf;
}
div#purchase_info button.checked::before {
	content: "";
	width: 60px;
	height: 60px;
	background: rgba(255,255,255,0);
	background-image: url(/images/xscope/checkmark.png);
	background-size: 60px 60px;
	background-position: 0 0;
	background-repeat: no-repeat;
	position: absolute;
	left: -30px;
	top: -30px;
}
div#purchase_info button.selected {
	background: rgba(255,255,255,0.1);
	border-color: white;
}

div#purchase_info form {
	font-family: "HelveticaNeue", "Helvetica Neue", helvetica, arial, sans-serif;

	text-align: left;
	line-height: 1.2em;

	padding: 20px;

	min-width: 500px;
}

div#purchase_info form button {
	color: #213454;
	background-color: #6dc2fe;
	font-family: "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 16px;
	font-weight: 500;
	border: 0;
	border-radius: 4px;
	padding: 12px 16px;
	
	box-shadow: 0 2px 0 #142342;
}

div#purchase_info form label {
	display: block;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.5);
}
div#purchase_info form input[type="text"] {
}
div#purchase_info form input::placeholder {
	color: #aaa;
}

div#purchase_info form p {
	color: rgba(255, 255, 255, 0.75);
	font-weight: 300;
}

div#purchase_info form p.title {
	font-weight: 400;
	margin-bottom: 20px;
}
div#purchase_info form p.title em {
	font-style: normal;
	color: #fff;
}

div#purchase_info form p.tip {
	margin-top: 20px;
	color: #8dbee0;
}
div#purchase_info form p.tip strong {
	font-weight: 600;
	color: #8dbee0;
}

div#purchase_info div.error {
	margin-top: 20px;
	
	box-sizing: border-box;
	height: 42px;
	padding-left: 35px;
	text-align: left;
	
	background: url("/images/xscope/warning.png") border-box top left no-repeat;
	background-size: 25px 22px; 
}
div#purchase_info div.error p.message {
	color: white;
	margin: 0;
	padding-top: 2px;
}


div#purchase_info input {
  	border-radius: 6px;
  	margin-bottom: 6px;
  	padding: 12px;
/* 
  	border: 1px solid rgba(50, 50, 93, 0.1);
 */
  	height: 44px;
  	font-size: 16px;
  	width: 100%;
  	background: white;
/* 
  outline: 2px solid pink;
 */
}


/* quantity */

div#purchase_info div#quantity div#licenses {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-around;
}

div#purchase_info div#quantity div#licenses div {
	width: 40%;
	margin: 10px;
}

div#purchase_info div#quantity div#licenses button {
	font-family: "HelveticaNeue-UltraLight", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 32px;
	font-weight: normal;
}

/* licensing */

div#purchase_info div#licensing {
 	display: none;
	background-color: #213454;

 	overflow: hidden;
}

div#purchase_info div#licensing select {
/* 
	font-size: 2em;
 */
	font-size: 1.5em;
	width: 150px;
}

div#purchase_info div#licensing label {
	font-size: 1.5em;
	margin-right: 20px;
	vertical-align: middle;
}


/* pricing */

div#purchase_info div#pricing {
	background-color: #2a3b5a;
}

div#purchase_info div#pricing div.amount {
	color: #fff;
	font-size: 3.0em;
	font-weight: 600;
	line-height: 1.0em;

 	transition: all 0.25s ease-out;
}

div#purchase_info div#pricing div.savings {
	color: #4b9df0;
}

/* discounts */

div#purchase_info div#discounts {
 	display: block;
	background-color: #213454;

 	overflow: hidden;
}

div#purchase_info div#discounts div.container {
	max-width: 500px;
}

div#purchase_info div#discounts button {
/* 
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", helvetica, arial, sans-serif;
	font-weight: 300;
 */
}

div#purchase_info div#discounts h3 {
	margin-bottom: 10px;
}

div#purchase_info div#discounts div#discount-options {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}
	
div#purchase_info div#discounts div#discount-options button {
	font-weight: 200;
}

div#purchase_info div#discounts div#discount-options button.checked::before {
	width: 30px;
	height: 30px;
	background-size: 30px 30px;
	left: -15px;
	top: -15px;
}

div#purchase_info div#discounts div#discount-options div {
	width: 40%;
	margin: 10px;
/* 
	outline: 1px solid yellow;
 */
}

div#purchase_info div#discounts div#discount-forms {
}

/* NOTE: The transition on the max-height of these two divs is a hack: https://stackoverflow.com/a/8331169/132867 */
div#purchase_info div#discounts div#upgrade {
	display: block;
	opacity: 0;
	max-height: 0px;
	margin: 0;

 	overflow: hidden;
 	transition: all 0.25s ease;
}
div#purchase_info div#discounts div#promo {
	display: block;
	opacity: 0;
	max-height: 0px;
	margin: 0;
	
 	overflow: hidden;
 	transition: all 0.25s ease;
}

div#purchase_info div#discounts div#upgrade button {
	margin-top: 20px;
	width: 50%;
}

div#purchase_info div#discounts div#promo input[type="text"] {
	text-transform: uppercase;
	width: 150px;
}
div#purchase_info div#discounts div#promo button {
	display: inline;
	width: 150px;
}

/* payment */

div#purchase_info div#payment {
}

div#purchase_info div#payment div.container {
	max-width: 500px;
	padding: 0;
}

div#purchase_info div#payment div.container:first-of-type {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

div#purchase_info div#payment div.processor {
	width: 30%;
	margin: 10px 10px 15px 10px;
}

div#purchase_info div#payment div#payment-info {
	display: block;
	opacity: 1;
	max-height: 0px;

 	overflow: hidden;
 	transition: all 0.25s ease;
}

div#purchase_info div#payment button#card-select {
	border-radius: 4px;
	border: 0;
	
	color: #213454;
	background-color: #6dc2fe;
/* 
	color: white;
	background-color: #1b6de0;
 */
	font-weight: 500;
	height: 40px;
	line-height: 1em;
}

div#purchase_info div#payment div.error {
	margin: 5px 20px 0 20px;

	opacity: 0;
 	transition: all 0.5s ease;
}
div#purchase_info div#payment div.error p.message {
	padding: 0;
}

div#purchase_info div#payment form#payment-form button#submit {
	border-radius: 4px;

	border-radius: 0 0 4px 4px;
	border: 0;
}

div#purchase_info div#payment input#customer-email:invalid {
	color: #fa755a;
}


/* need-more */

div#purchase_info div#need-more {
}

/* confirmation */

div#purchase_info div#confirmation {
	display: none;

	font-size: 1.2em;
	line-height: 1.2em;
}

div#purchase_info div#confirmation div.container {
	max-width: 500px;
	padding: 0;
}

div#purchase_info div#confirmation div.container p {
	margin-bottom: 20px;
}

div#purchase_info div#confirmation div.container p#order-amount {
	margin: 30px 0 20px 0;
	
	font-size: 3.0em;
	font-weight: 600;
	line-height: 1.2em;
}

div#purchase_info div#confirmation div.container p#order-summary {
	margin-bottom: 40px;
	color: #fff;
	font-size: 1.2em;
	font-weight: bold;
}


/* ****************************************************************** */

/* stripe */

* {
	box-sizing: border-box;
}

.hidden {
	display: none;
}

#card-element {
	border-radius: 4px 4px 0 0 ;
	padding: 12px;

	height: 44px;
	width: 100%;
	background: white;
}


/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #6dc2fe;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #6dc2fe;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
