/*
 * Custom Responsive styles for Safeway Pages
 */

@media only screen and (max-width: 1140px) {
.l-submain.for_filters  {
		padding-top: 0;
		padding-bottom: 0;
		font-size:80%;
		}

}
	
@media only screen and (max-width: 1023px) {

.l-subheader.at_top {
	height: auto;
	text-align: center;
	}
	.l-subheader.at_top .w-lang,
	.l-subheader.at_top .w-socials {
		float: none;
		display: inline-block;
		vertical-align: top;
		margin: 0 10px;
		}
	.l-subheader.at_top .w-contacts {
		float: none;
		display: inline-block;
		vertical-align: top;
		margin: 0;
		}
		.l-subheader.at_top .w-contacts-item.for_phone,
		.l-subheader.at_top .w-contacts-item.for_email {
			margin: 0 10px;
			}

.l-subheader.at_middle {
	height: auto;
	}	

.l-canvas.headerpos_fixed .l-header {
	position: relative;
	}
.l-canvas.headerpos_fixed .l-main {
	padding-top: 0;
	}
	.l-canvas.headerpos_fixed.headertype_extended .l-main {
		padding-top: 0;
		}

.l-submain {
	padding-top: 40px;
	padding-bottom: 40px;
	}
	.l-submain.for_pagehead {
		padding-top: 15px;
		padding-bottom: 15px;
		}
	.l-submain.for_filters  {
		padding-top: 0;
		padding-bottom: 0;
		font-size:90%;
		}
	.l-submain.type_fullwidth {
		padding: 0;
		}
.l-subfooter.at_top {
    padding-top: 40px;
    padding-bottom: 10px;
	}
.l-subfooter.at_bottom {
    padding-top: 25px;
    padding-bottom: 0;
	text-align: center;
	}
	.l-subfooter.at_bottom .w-copyright,
	.l-subfooter.at_bottom .w-nav {
		float: none;
		margin-bottom: 20px;
		}
		.l-subfooter.at_bottom .w-nav-list {
			display: inline-block;
			float: none;
			}

.g-hr {
    margin: 30px 0;
	}
	.g-hr.size_big {
		margin: 40px 0;
		}
	.g-hr.type_invisible {
		margin: 10px 0;
		}
		.g-hr.type_invisible.size_small {
			margin: 0;
			}
		.g-hr.type_invisible.size_big {
			margin: 20px 0;
			}
		
.g-btn.size_big,
input.g-btn.size_big,
button.g-btn.size_big {
	padding: 10px 30px;
	font-size: 14px;
	}

.w-pagehead p {
	display: none;
	}
	
.l-subheader.at_middle .w-search-form {
	height: 90px;
	}

.flex-direction-nav .flex-prev {
	left: 10px;
	}
.flex-direction-nav .flex-next {
	right: 10px;
	}
	
}

@media only screen and (max-width: 899px) {

.l-subfooter.at_top p a:hover,
.l-subfooter.at_top li a:hover,
.l-subfooter.at_bottom a:hover,
.g-html p a:hover,
.g-html li a:hover,
table.g-table th a:hover,
table.g-table td a:hover,
.w-actionbox-text a:hover,

.w-iconbox-text .w-iconbox-text-link:hover span,
.g-breadcrumbs a:hover,
.w-shortblog-entry-link:hover .w-shortblog-entry-title-h {
	border-bottom: none;
	}

.w-gallery-tnail-title {
	display: none;
	}
	
.w-success-story-image {
	height: 100%;
	padding-bottom: 0;
	}
	.w-success-story-links {
		position: relative;
		}
	.w-success-story:hover .w-success-story-links {
		box-shadow: none;
		}	
		.w-success-story-links-list,
		.w-success-story:hover .w-success-story-links-list {
			display: block;
			filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100); /* hack for IE8 */
			opacity: 1;
			}
			.w-success-story-links-item {
				font-size: 18px;
				line-height: 36px;
				height: 36px;
				width: 36px;
				margin: 5px 2px;
				}
.w-success-story-meta {
	padding-top: 0;
	}
	.l-submain.for_filters  {

		font-size:90%;
		}
}

@media only screen and (max-width: 767px) {
	
 #mobile-header {
        display: block;
    }

.l-sidebar {
	float: none !important;
	width: 100% !important;
	}
.l-content {
	float: none !important;
	width: 100% !important;
	padding-bottom: 30px;
	}

.l-subfooter.at_top {
    padding-bottom: 5px;
	}
	.l-subfooter.at_top .g-cols > div {
		margin-bottom: 10px;
		}
		
.g-cols:last-child > div.full-width {
	margin-bottom: 0;
	}

table.g-table > thead > tr > td,
table.g-table > thead > tr > th,
table.g-table > tbody > tr > th,
table.g-table > tbody > tr > td,
table.g-table > tfoot > tr > td {
	padding: 10px;
	}
	
.g-pagination-item {
	width: 36px;
	}
.g-pagination-item.to_next {
	padding: 0 25px 0 10px;
	}
	.g-pagination-item.to_next:before {
		right: 10px;
		}
.g-pagination-item.to_prev {
	padding: 0 10px 0 25px;
	}
	.g-pagination-item.to_prev:before {
		left: 10px;
		}

.w-filters-item-link {
    height: 37px;
    line-height: 37px;
    padding: 0 10px;
	border: none;
	font-size:110%;
	
	}

.l-subheader.at_middle .w-nav {
	float: none;
	clear: both;
	line-height: 90px;
	}
	.w-nav-select-h {
		margin: 0;
		max-width: 100%;
		}
	
.w-pagehead .g-breadcrumbs {
    float: none;
	clear: both;
    font-size: 13px;
    margin: 8px 0 0;
	}
.w-pagehead .difference {
 display:none;
}
.w-pagehead .difference-small {
	display: block;
	visibility:visible;
	position:absolute;
	height 50px; width:200px;			
	top:10px;
	right:-41px;
}
.success h5 {
			margin-top:-20px;font-size:90%; padding-top:0;
			color:#666;
			text-transform:uppercase;
		}
.l-subheader.at_middle .w-search-input input {
	font-size: 16px;
	padding-right: 30px;
	}
.l-subheader.at_middle .w-search-submit {
	display: none;
	}
	
.w-success-story {
	margin-bottom: 10px;
	}

.page-404 i {
	font-size: 100px;
	}
	
.tp-caption .g-btn {
	display: none;
	}
	
.w-toplink {
	display: none;
	}
	h6.renewal {
	margin-top:0px;
	}
img.renewal {
	margin-bottom:0px;
	margin:0 auto;
	
	}
}



@media only screen and (max-width: 599px) {

.l-submain,
.l-subheader.at_top,
.l-subheader.at_middle,
.l-subfooter.at_top,
.l-subfooter.at_bottom,
.l-submain.for_pagehead,
.l-submain.for_filters {
	padding-left: 25px;
	padding-right: 25px;
	}
	
.l-subheader.at_top {
	line-height: 30px;
	}
	
.l-submain {
	padding-top: 25px;
	padding-bottom: 25px;
	}
.w-pagehead .difference-small {
	visibility:visible;
	display:block !important;
	position:absolute;
	height 50px; width:200px;			
	top:10px;
	right:-36px;
}
.l-subfooter.at_bottom .w-nav-list.layout_hor.width_auto > .w-nav-list-h > .w-nav-item {
	float: none;
	margin-bottom: 10px;
	}

.w-filters-item-link {
border-bottom: 2px solid transparent;
border-radius:3px;

	}	
		.w-filters-item-link:hover {
		background-color: #fff;
		
		}

  /*safeway special styles*/

h6.renewal {
	margin-top:0px;
	}
img.renewal {
	margin-bottom:0px;
	margin:0 auto;
	
	}
}

@media only screen and (max-width: 479px) {

.w-actionbox.controls_aside .w-actionbox-controls {
	white-space: normal;
	}
	.w-actionbox.controls_aside .w-actionbox-button.g-btn {
		margin: 10px 5px 0;
		}
		.w-actionbox.controls_aside .w-actionbox-button.g-btn:first-child {
			margin-left: 5px;
			margin-top: 0;
			}

.w-pagehead h1 {
	float: none;
	text-align: center;
	}
.w-pagehead .g-breadcrumbs {
	display: none;
	}
.w-pagehead-nav {
	float: none;
	margin-top: 12px;
	}
	.w-pagehead-nav .w-pagehead-nav-h .w-pagehead-nav-item {
		margin-left: 3px;
		margin-right: 3px;
		}
		
	h6.renewal {
	margin-top:0px;
	}
img.renewal {
	margin-bottom:0px;
	margin:0 auto;
	
	}
}
