/* Sterling Tax Calculator Stylesheet */

/* Typography Inheritance: Calculator adopts active WordPress theme typography */
.sterling-calculator-wrapper,
.sterling-calculator-wrapper *,
.calculator,
.calculator *,
#chart,
#chart * {
	font-family: inherit !important;
}

/* Outer Wrapper: Centered horizontally in whatever container it is placed in */
.sterling-calculator-wrapper {
	width: 100%;
	max-width: 1090px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
	display: block;
}

.calculator {
	background: transparent;
	padding: 20px 0;
	box-sizing: border-box;
}

canvas {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.calculator button,
.sterling-calculator-wrapper button {
	line-height: 30px;
	font-weight: 600;
	font-style: normal;
	color: #fff;
	font-size: 20px;
	padding: 5px;
	width: 190px;
	background: #e0071b;
	border-radius: 15px;
	text-align: center;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.calculator button:hover,
.sterling-calculator-wrapper button:hover {
	color: #fff;
	background-color: #50a942;
}

.steValue {
	line-height: 20px;
	font-weight: bold;
	font-style: normal;
	color: #000;
	font-size: 17px;
	padding: 5px;
	width: 180px;
	background: #ffffff;
	border-radius: 15px;
	text-align: center;
	border: 1px solid #ccc;
	box-sizing: border-box;
}

.selectYour {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMC4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCA0LjkgMTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQuOSAxMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I2ZmZmZmZjt9DQo8L3N0eWxlPg0KPHRpdGxlPmFycm93czwvdGl0bGU+DQo8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9IjEuNCw0LjcgMi41LDMuMiAzLjUsNC43ICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIzLjUsNS4zIDIuNSw2LjggMS40LDUuMyAiLz4NCjwvc3ZnPg==) no-repeat 95% 50%;
	line-height: 20px;
	font-weight: bold;
	font-style: normal;
	color: #fff !important;
	font-size: 14px;
	width: 190px;
	background-color: #0c3d66;
	border-radius: 15px;
	text-align: center;
	border: 0;
	padding: 5px 20px 5px 10px;
	box-sizing: border-box;
	cursor: pointer;
}

/* Ensure dropdown options have white text on dark background across all browsers */
.selectYour option {
	color: #ffffff !important;
	background-color: #0c3d66 !important;
}

.selectSD {
	line-height: 20px;
	font-weight: 300;
	font-style: normal;
	color: #000;
	font-size: 17px;
	padding: 5px;
	width: 190px;
	background: rgba(192,192,192,.4);
	border-radius: 15px;
	text-align: center;
}

.steValueYour {
	line-height: 20px;
	font-weight: bold;
	font-style: normal;
	color: #fff;
	font-size: 17px;
	padding: 10px 5px;
	width: 180px;
	background: #0c3d66;
	border-radius: 15px;
	text-align: center;
	border: 0;
	box-sizing: border-box;
}

.steValueSD {
	line-height: 20px;
	font-weight: bold;
	font-style: normal;
	color: #000;
	font-size: 17px;
	padding: 10px 5px;
	width: 180px;
	background: #e0e0e1;
	border-radius: 15px;
	text-align: center;
	border: 0;
	box-sizing: border-box;
}

.slidecontainer {
	width: 100%;
}

.slider {
	-webkit-appearance: none;
	width: 100%;
	height: 3px;
	background: #d3d3d3;
	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
}

.slider:hover {
	opacity: 1;
}

.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	border-radius: 25px;
	background: #006699;
	cursor: pointer;
}

.slider::-moz-range-thumb {
	width: 25px;
	height: 25px;
	background: #006699;
	cursor: pointer;
}

/* Calculator & Footnote Tables: Horizontally centered */
table.tableinput,
.tableinput {
	max-width: 1090px;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0;
	margin-bottom: 0;
	padding: 25px;
	border: 1px solid #bbbbbb;
	background: #fff;
	border-collapse: separate;
	box-sizing: border-box;
}

.tableinput td {
	padding: 10px 20px;
	line-height: 1.3em;
	font-weight: 400;
	font-style: normal;
	color: #000;
	font-size: 18px;
}

.tableinput h1, .tableinput h5 {
	text-align: center;
}

.calculator input[type="text"],
.calculator input[type="number"],
.sterling-calculator-wrapper input[type="text"],
.sterling-calculator-wrapper input[type="number"] {
	font-size: 18px;
	font-weight: normal;
	color: #000;
	background: #74acdb;
	border: 0;
	border-radius: 15px;
	padding: 6px 10px;
	box-sizing: border-box;
}

#newcanvas {
	max-width: 930px;
	width: 100%;
	padding: 15px 0;
	box-sizing: border-box;
	background: #fff;
}

/* Modal Results Text Styling: 24px font size with 1rem padding */
.results-holder h2 {
	font-size: 24px !important;
	line-height: 1.4em !important;
	margin: 0 !important;
	font-weight: normal !important;
}

#results,
.results-holder #results,
.results-holder div#results {
	font-size: 24px !important;
	line-height: 1.4em !important;
	padding: 1rem !important;
	text-align: center;
	color: #000;
	border-radius: 15px;
	margin-top: 10px;
	background: #d7d8da;
	box-sizing: border-box;
	max-width: 930px;
	width: 100%;
}

#results b,
#results strong {
	font-size: 24px !important;
	font-weight: bold !important;
}

.close-it {
	text-align: center;
	padding-top: 10px;
	margin-bottom: 0;
}

.close-it a {
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	background: #e0071b;
	padding: 7px 10px 4px;
	line-height: 1em;
	font-size: 16px;
	font-weight: bold;
	display: inline-block;
	border-radius: 5px;
}

.results-holder {
	width: 100%;
	margin: 0 auto;
}

.results-holder,
.results-holder td {
	border-top: 0 !important;
	border-bottom: 0 !important;
}

.calculator .hide,
.sterling-calculator-wrapper .hide {
	opacity: 0;
	display: block !important;
	-webkit-transition: opacity .6s;
	-moz-transition: opacity .6s;
	-o-transition: opacity .6s;
	transition: opacity .6s;
}

.calculator fieldset input[type="text"],
.calculator fieldset input[type="email"] {
	background: none;
	border: 1px solid #ccc;
	border-radius: 15px;
}

.calculator fieldset label {
	font-size: 14px;
	font-weight: 400;
}

.calculator fieldset h4 {
	font-size: 15px;
	font-weight: 400;
	line-height: 1em;
}

.calculator fieldset.hide input,
.calculator fieldset.hide label,
.calculator fieldset.hide h4,
.calculator fieldset.hide br {
	display: none;
}

.calculator #CalcButton:disabled,
.sterling-calculator-wrapper #CalcButton:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.calculator fieldset input[type="text"] {
	font-size: 13px;
}

#chart {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.3);
	max-width: 960px;
	width: 95%;
	box-sizing: border-box;
	margin: 0 auto;
}

#savings {
	position: absolute;
	top: 10%;
	font-size: 32px;
	left: 26.5%;
	font-weight: bold;
	max-width: 38%;
	line-height: 1;
	color: #0c3d66;
}

.hide {
	display: none;
}

#savings span {
	color: #f58631;
}

.sterling-disclaimer {
	font-size: 14px;
	line-height: 1.6em;
	color: #444;
	font-style: italic;
}

.sterling-disclaimer p {
	margin-bottom: 12px;
}

.sterling-disclaimer strong {
	font-weight: 600;
	font-style: normal;
}

@media only screen and (max-width: 768px) {
	.tableinput td {
		display: block;
		width: 100% !important;
		padding: 6px 10px;
	}
	.steValue,
	.selectYour,
	.steValueYour,
	.steValueSD,
	.calculator button {
		width: 100% !important;
		max-width: 100%;
	}
}

@media only screen and (max-width: 600px) {
	#newcanvas,
	#savings {
		display: none !important;
	}
}
