/* ENERGY STAR climate zone lookup, map and criteria table.
   Loaded only on pages that use one of the climate zone shortcodes.
   Kept as its own file rather than a partial in scss/, so that rebuilding
   mc.css with CodeKit never overwrites it. */

/* ---------- ZIP lookup ---------- */

.cz-lookup {
	background-color: #f7f7f7;
	border: 1px solid #ededed;
	border-radius: 5px;
	margin: 30px 0;
	padding: 25px 20px;
}

.cz-lookup-heading {
	margin-top: 0;
}

.cz-lookup-intro {
	margin-bottom: 20px;
}

/* compact="1": for dropping the lookup into a sidebar, a product page or the
   configurator, where it is a step rather than the point of the page. */
.cz-lookup-compact {
	margin: 20px 0;
	padding: 15px;
}

.cz-lookup-compact .cz-lookup-heading {
	font-size: 18px;
}

.cz-lookup-compact .cz-lookup-intro {
	margin-bottom: 12px;
}

.cz-form {
	margin: 0;
}

.cz-label {
	display: block;
	font-weight: bold;
	margin-bottom: 6px;
}

.cz-input {
	border: 1px solid #b6b6b6;
	border-radius: 5px;
	display: block;
	font-size: 18px;
	margin-bottom: 12px;
	max-width: 100%;
	padding: 10px 12px;
	width: 180px;
}

.cz-input:focus {
	border-color: #8dc641;
	outline: 2px solid rgba(141, 198, 65, 0.4);
}

.cz-lookup .cz-submit {
	margin-top: 0;
}

@media screen and (min-width: 600px) {
	.cz-form {
		align-items: flex-end;
		display: flex;
		flex-wrap: wrap;
	}

	.cz-form .cz-label {
		flex: 0 0 100%;
	}

	.cz-input {
		margin-bottom: 0;
		margin-right: 12px;
	}
}

.cz-output:empty {
	display: none;
}

.cz-result {
	background-color: #fff;
	border-left: 4px solid #8dc641;
	margin-top: 22px;
	padding: 18px 20px;
}

.cz-result-empty {
	border-left-color: #b6b6b6;
}

.cz-result p:last-child {
	margin-bottom: 0;
}

.cz-result-zone {
	font-size: 19px;
}

.cz-result-rule {
	color: #4f4f4f;
	font-size: 14px;
}

/* Northern: every way to qualify, one per line. */
.cz-result-options {
	margin-bottom: 10px;
}

.cz-result-lines {
	margin-bottom: 18px;
}

/* ---------- Our own zone map ---------- */

.cz-map {
	margin: 30px 0;
}

.cz-map-svg {
	display: block;
	height: auto;
	max-width: 620px;
	width: 100%;
}

.cz-map-state text {
	fill: #2f3e46;
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
}

.cz-map-state rect {
	stroke-width: 1;
}

.cz-zone-northern rect {
	fill: #cfe3f2;
	stroke: #5c8fb3;
}

.cz-zone-north-central rect {
	fill: #b7e0d8;
	stroke: #529e90;
}

.cz-zone-south-central rect {
	fill: #fde3b3;
	stroke: #c2922f;
}

.cz-zone-southern rect {
	fill: #fbcfc4;
	stroke: #bf7a66;
}

.cz-map-wedge {
	fill: #4f4f4f;
}

.cz-map-legend {
	list-style: none;
	margin: 16px 0 10px;
	padding: 0;
}

.cz-map-legend li {
	display: inline-block;
	font-size: 14px;
	margin: 0 18px 6px 0;
}

.cz-swatch {
	border: 1px solid #b6b6b6;
	display: inline-block;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	width: 14px;
}

.cz-map-legend .cz-zone-northern .cz-swatch {
	background-color: #cfe3f2;
	border-color: #5c8fb3;
}

.cz-map-legend .cz-zone-north-central .cz-swatch {
	background-color: #b7e0d8;
	border-color: #529e90;
}

.cz-map-legend .cz-zone-south-central .cz-swatch {
	background-color: #fde3b3;
	border-color: #c2922f;
}

.cz-map-legend .cz-zone-southern .cz-swatch {
	background-color: #fbcfc4;
	border-color: #bf7a66;
}

.cz-legend-split .cz-swatch {
	background-color: #fff;
	background-image: linear-gradient(45deg, #fff 50%, #4f4f4f 50%);
}

.cz-map-source,
.cz-criteria-source {
	color: #4f4f4f;
	font-size: 14px;
}

/* ---------- ENERGY STAR criteria table ---------- */

.cz-criteria {
	margin: 30px 0;
}

.cz-criteria-table {
	border-collapse: collapse;
	width: 100%;
}

.cz-criteria-table th,
.cz-criteria-table td {
	border: 1px solid #ededed;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.cz-criteria-table thead th {
	background-color: #f7f7f7;
}

.cz-criteria-table tbody th {
	white-space: nowrap;
}

/* A zone with more than one way to qualify: the zone name spans its rows. */
.cz-criteria-table tbody th[rowspan] {
	vertical-align: middle;
}

/* Four columns on a phone: tighter cells so the table fits the content width. */
@media screen and (max-width: 599px) {
	.cz-criteria-table th,
	.cz-criteria-table td {
		font-size: 14px;
		padding: 8px 6px;
	}

	.cz-criteria-table tbody th {
		white-space: normal;
	}
}
