﻿@media only screen and (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
	#header_account li a:before { background-image: url(../images/sprites/mobile-icons-3x.png) !important; background-size: 22px 120px !important; }
}

@media (min-width: 240px) and (max-width: 959px) {
	body { font-size: 100%/120%; }

	.body_copy { width: 100%; }

	#header_search { top: 40px; }

	.layout { width: 98%; min-width: 0; padding: 0 1%; overflow: hidden; }

	header.layout { overflow: visible; }

	#content { width: 100%; }

	#main_content { width: 100%; }

	footer { min-width: 0; }
		footer > div > dl { display: none; }
		footer .nav > li { display: inline-block; margin-bottom: 1em; }
		footer .nav > li:first-child { display: block; }

	#hoover_newsletter { float: none; display: inline-block; width: 98%; padding: 0 1%; }
		#hoover_newsletter > dl { max-width: 50%; }
		.social_media { clear: none; float: right; }

	aside { display: none; }
	.checkout_container aside { display: block; }

	#site-search { position: absolute; right: 0; top: 45px; z-index: 1; }

	#sitewide_banner { width: 98%; height: auto; line-height: 120%; padding: 1%; }
		#sitewide_banner p { margin-bottom: 0; text-indent: 0; }

	/* home */
	#home_banner { width: 100% !important; height: auto; }
		#home_banner ul { width: 100% !important; left: 0 !important; }
		#home_banner li { width: 100% !important; display: none; }
		#home_banner li:first-child { display: block; }
		#home_banner img { max-width: 100% !important; height: auto !important; }
		#home_banner_prev,
		#home_banner_next { display: none; }

	/* hard-coded widths in js (ugh) */
	#home_promotions + .home_header { display: none; }
	#carousel_container { display: none; clear: both; width: 100%; }
		#carousel_inner { width: 100%; }
		#carousel_container ul { width: 100%; }
		#carousel_container li { width: 50%; }

	/* product category */
	.paging_header,
	.paging_footer { width: 98%; padding: 1%; overflow: hidden; }
		.paging_header dl,
		.paging_footer dl { display: none; }

	.product_list_item { text-align: center; }
	.product_list_item .thumbnail { float: none; display: inline-block; vertical-align: top; }
	.product_list_item .details { float: none; display: inline-block; vertical-align: top; margin: 0 0 1em 0; text-align: left; }
	.product_list_item .actions { float: none; display: inline-block; vertical-align: top; }

	/* product details */
	.detail_thumbnail { float: none; display: block; margin: 0 auto; }
		.detail_thumbnail .compare_recent { display: none; }

	.detail_content { float: none; width: 100%; }
		.detail_content .basic_info { }
		.detail_content .sell_info_container { float: right; }

	.tabs { clear: both; }

	/* parts */
	.part_search { width: 98%; padding: 1%; }

	/* part category */
	.product_list { text-align: center; }
	.part_list_item { float: none; display: inline-block; padding: 0 15px; }

	/* checkout */
	.cart thead th,
	.cart thead th:first-child { width: auto; }

	body#billing #payment { width: 100%; }

	/* this uses inline styles on /checkout/billing (bad idea) */
	#cphDefault_LoggedInPlaceHolder { width: 100% !important; height: auto !important; padding: 2% !important; box-sizing: border-box; }
		#cphDefault_LoggedInPlaceHolder h3 { border-right: none !important; }
		#cphDefault_LoggedInPlaceHolder dl { height: auto !important; }

	.checkout_section { margin: 0 40px; }
		.checkout_container .checkout_section:first-child { margin-left: 40px; }

	.checkout_buttons { padding-top: 1em; }
}

@media (min-width: 240px) and (max-width: 767px) {
	#sticky_container { margin-bottom: -335px; }
	#sticky_push { height: 335px; }
	footer { height: 334px; }

	/* header */
	header { height: 50px; min-height: 0; }
		header p { width: 50px; height: 50px; }
			header p a { width: 100%; height: 100%; background-size: 100%; }
			header p img { max-width: 100%; }

		nav { display: none; width: 200px; height: auto; padding: 5px; background-color: #fff; position: absolute; left: 68px; right: auto; top: 75px; bottom: auto; -moz-box-shadow: 3px 3px 3px #888; -webkit-box-shadow: 3px 3px 3px #888; box-shadow: 3px 3px 3px #888; }
			nav ul { visibility: visible !important; position: relative !important; width: 200px !important; -moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; }
				nav > ul > li { border-top: 1px solid #c2c2c3; border-bottom: none;}
				nav ul > li { float: none; margin-left: 0 !important; border-left: none; }
				nav ul > li > a { padding-left: 0 !important; padding: .5em !important; }
				nav .sub_nav { border-bottom: none; }
				nav .sub_nav > li { border-top: none; padding: 0 0 0 .5em !important; }
			nav.active { display: block; }

		#header_account { display: block; }
			#header_account li { width: 50px; height: 50px; padding: 0; border-left: none; text-indent: -9999em; overflow: hidden; position: relative; }
			#header_account li a:before { content: ''; display: block; position: absolute; background: transparent url(../images/sprites/mobile-icons-1x.png) no-repeat scroll 0 0; }
			#header_account li a { display: block; width: 100%; height: 100%; position: relative; }
			#nav-phone a:before { background-position: 0 -91px !important; width: 22px; height: 15px; left: 14px; top: 17px; }
			#nav-support a:before { background-position: 0 -67px !important; width: 12px; height: 19px; left: 19px; top: 15px; }
				#nav-support:hover ul { visibility: hidden !important; }
			#nav-account a:before { background-position: 0 -45px !important; width: 14px; height: 16px; left: 18px; top: 17px; }
			#nav-cart a:before { background-position: 0 -22px !important; width: 22px; height: 18px; left: 14px; top: 16px; }
				#nav-cart span,
				#nav-cart b { display: none; }


		#header_search { 
			visibility: hidden;
			position: absolute;
			left: 68px;
			background-color: #fff;
			width: 200px;
			padding: 5px;
			white-space: nowrap;
		}
		#header_search.active { visibility: visible; }
			#header_search input[type="text"] { width: 135px; }

	#live-agent { display: none; }

	#mobile-nav { display: block; }

	#mobile-nav:before,
	#mobile-nav:after {
		content: '';
		display: block;
		width: 24px;
		height: 8px;
		border: 4px solid #ccc;
		border-bottom-width: 2px;
		border-left: none;
		border-right: none;
		position: absolute;
	}

	#mobile-nav:after { bottom: 13px; border-top-width: 2px; border-bottom-width: 4px; }

	/* footer */
	#hoover_newsletter { float: none; display: block; width: 98%; padding: 0 1%; text-align: center; }
		#hoover_newsletter > dl,
		.social_media { float: none; display: inline-block; width: 100%; max-width: 100%; }
			.social_media > li { float: none; display: inline-block; }

	footer h6 { position: relative; right: auto; left: 50%; margin-left: -66px; bottom: 0; }

	/* home */
	#home_promotions { width: 100%; text-align: center; }
		#home_promotions > li { float: none; display: inline-block; width: 100%; height: auto; margin: 0 0 1% !important; background-color: transparent; }
			#home_promotions > li a { position: static; }
			#home_promotions > li img { max-width: 100% !important; height: auto; vertical-align: middle; }

	/* product category */
	.product_list_item .thumbnail { display: block; margin: 0 auto; text-align: center; }

	.product_list_item .details,
	.product_list_item .actions { display: block; width: auto; margin: 0 auto; text-align: center; }

	/* product details */
	.detail_content { float: none; width: 100%; }
		.detail_content .basic_info,
		.detail_content .sell_info_container { float: none; display: block; margin: 0 auto; text-align: center; }

		.detail_content .basic_info { width: 100%; }
			.detail_content .basic_info .share { text-align: center; }
			.detail_content .basic_info iframe { display: none; }

	.panel + section { display: none; }

	.tabs a { padding: 10px 5px; }

	/* parts */
	.part_search fieldset { float: none; display: block; width: 94%; padding: 3%; margin: 0 auto; text-align: center; }
		.part_search fieldset:first-child { border-right: none; border-bottom: 1px solid #eaeaea; margin-bottom: 3%; }
	.part_search ul { float: none; text-align: center; margin-left: 0 !important; }
	.part_search ul li { float: none; display: inline-block; width: auto; margin: 1em; text-align: left; }

	.part_search_wrapper + h3 { text-align: center; }

	.shop_by_catgory { text-align: center; }
	.shop_by_category li { float: none; display: inline-block; }

	/* part category */

	/* part details */

	/* checkout */
	.checkout_status { display: none; }

	body#billing fieldset,
	body#billing aside,
	body#shipping fieldset,
	.checkout_container aside { width: 100%; margin: 0 auto; }

	dl.form { text-align: left; }
	dl.form dt,
	dl.form dd { float: none; display: inline-block; width: 49%; vertical-align: top; }

	.promo-code-container { width: 100%; margin-left: 0; }

	.order_summary { width: 90%; padding: 5%; }
		.order_summary dl.form dt,
		.order_summary dl.form dd { width: 49%; }

	#cphDefault_LoggedInPlaceHolder dt { width: 20%; }
	#cphDefault_LoggedInPlaceHolder dd { width: 75%; }
	#cphDefault_LoggedInPlaceHolder dl > dt:first-child + dd + dt { margin-left: 0;  }

	.checkout_upsell { width: 100%; }

	.button.continue_shopping { width: auto; }

	.cart .thumbnail { max-width: 50px; }
	.cart .details { clear: both; margin-left: 0; }

	/* blog */
	.blog-header { display: none; }

	article .thumbnail { float: none !important; margin: 0 auto 1em; }
	article .content { float: none !important; width: 100% !important; }

	/* account */
	#account_content { width: 100%; }
	#account_nav { width: 100%; }

	.product_registration { width: 100%; }
	.product_information { width: 100%; }

	/* support */
	#contact fieldset { width: 100%; }

	.invisible { display: none !important; }
}

@media (min-width: 768px) and (max-width: 959px) {
	/* header */

	/* footer */
	#hoover_newsletter { float: none; display: inline-block; width: 98%; padding: 0 1%; }
		#hoover_newsletter > dl { max-width: 50%; }
		.social_media { clear: none; float: right; }

	footer h6 { position: relative; right: auto; left: 50%; margin-left: -66px; bottom: 0; }

	#home_promotions { width: 100%; text-align: center; }
		#home_promotions > li { float: none; display: inline-block; width: 29%; height: auto; margin: 0 2% !important; }
			#home_promotions > li a { position: static; }
			#home_promotions > li img { max-width: 100%; height: auto; vertical-align: middle; }

	/* checkout */
	body#billing fieldset,
	body#billing aside,
	body#shipping fieldset { width: 48%; margin: 0 1%; }

	/* blog */
	.blog-header img { width: 100% !important; height: auto !important;  }

	/* account */
	#account_content { width: 49%; margin-right: 1%; }
	#account_nav { width: 49%; margin-left: 1%; }
}