/* Checkout additions on top of buy.css: license key note, edit button, refreshed look */

#buy p.keyNote {
	max-width: 440px;
	margin: 0 auto;
	padding-top: 1.25em;
	color: #555;
	font-size: 13px;
	line-height: 1.5;
}

#buy button.editButton {
	margin-right: 1.5em;
	padding: 0;
	border: 0;
	background: none;
	color: #2058a1;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

#buy button.editButton:hover {
	text-decoration: underline;
}

/* Lighter, more modern look */
#buy #content {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* sections as soft cards */
#buy #content form > h2,
#buy #content #ccInfo > h2 {
	box-sizing: border-box;
	max-width: 560px;
	margin: 1.75em auto 0 !important;
	padding: 16px 24px 6px;
	background: #f7f9fc;
	border: 1px solid #e3e8ef;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	font-size: 17px;
	color: #2c4a72;
}
#buy #content #products,
#buy #content form > table,
#buy #content #ccTable,
#buy #content #ccInfo > table {
	display: block;
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto !important;
	padding: 4px 24px 8px;
	background: #f7f9fc;
	border-left: 1px solid #e3e8ef;
	border-right: 1px solid #e3e8ef;
}
#buy #content #products > tbody,
#buy #content form > table > tbody { display: table; margin: 0 auto; }
#buy #content #ccTable,
#buy #content #ccInfo > table { width: 100%; }
#buy #content #ccTable > tbody,
#buy #content #ccInfo > table > tbody { display: table; width: 100%; }
#buy #content form > #total {
	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto !important;
	padding: 10px 0 16px;
	background: #f7f9fc;
	border: 1px solid #e3e8ef;
	border-top: 0;
	border-radius: 0 0 10px 10px;
	font-size: 18px;
	font-weight: 600;
	color: #222;
}
/* payment method row closes card 2 when PayPal is picked; card fields continue it */
#buy #content form > table { border-bottom: 1px solid #e3e8ef; padding-bottom: 12px; }
#buy #content #ccTable { border-bottom: 1px solid #e3e8ef; border-radius: 0 0 10px 10px; padding-top: 14px; }
#buy #content #ccInfo > table { border-bottom: 1px solid #e3e8ef; border-radius: 0 0 10px 10px; }
#buy table.checkoutTable td.label {
	width: 140px !important;
	color: #4a5568;
	font-size: 13px;
}

/* fields */
#buy #content input[type=text],
#buy #content input[type=email],
#buy #content select {
	height: 36px;
	padding: 6px 10px !important;
	border: 1px solid #c9d1dc;
	border-radius: 6px;
	background: #fff;
	font-size: 14px !important;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
#buy #content input[type=text]:focus,
#buy #content input[type=email]:focus,
#buy #content select:focus {
	outline: none;
	border-color: #2058a1;
	box-shadow: 0 0 0 3px rgba(32, 88, 161, .15);
}
#buy #content input.wide { width: 290px; }
#buy #content select#country { max-width: 290px; }
#buy #content #quantity { height: 32px; width: 3em !important; text-align: center !important; }
#buy #content #expMonth, #buy #content #expYear { width: auto; }
#buy #content #cvv2 { width: 90px; }

/* buttons */
#buy #content input.checkoutButton {
	height: auto !important;
	padding: 12px 40px !important;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(#3070c2, #1b4b8c);
	color: #fff;
	font-size: 16px !important;
	font-weight: 600;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 2px 6px rgba(32, 88, 161, .25);
	-webkit-appearance: none;
}
#buy #content input.checkoutButton:hover { background: linear-gradient(#2a64ae, #173f77); }
#buy #content input#processButton { background: linear-gradient(#31a24f, #136a29); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(19, 106, 41, .3); }
#buy #content input#processButton:hover { background: linear-gradient(#2b9447, #105c23); }

/* errors */
#buy #errorTop, #buy #errorBottom {
	max-width: 560px;
	margin: 1em auto !important;
	box-sizing: border-box;
	border: 1px solid #f1b5ab !important;
	border-radius: 8px;
	background: #fff4f2 !important;
	color: #9b2c1f;
}

/* review page tables */
#buy #content form > table.reviewTable { border-radius: 0 0 10px 10px; padding-bottom: 14px; }
#buy table.reviewTable td { padding: 3px 0; }
#buy table#whatTable td.firstRow { border-bottom: 1px solid #c9d1dc !important; color: #4a5568 !important; }

/* error marker: a transparent SVG instead of error.png, which has a white background */
#buy div.error,
#buy div.preseterror {
	width: 20px;
	height: 20px;
	margin: 8px 0 0 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23d93025'/%3E%3Cpath d='M6.8 6.8l6.4 6.4M13.2 6.8l-6.4 6.4' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}
