/****************
 *  SEARCH FORM
 */
.btn-hide-search {
    display:none;
}

.remove-geolocation, .add-geolocation {
    clear:left;
    float:left;
    margin-top:4px;
}

#advancedSearchButton {
    margin-bottom: 15px;
}




/****************
 *  PAGINATION
 */



select#pagination-select {
    width: auto;
    background: white url("/img/bg-select.jpg") no-repeat scroll right 12px/auto 4px;
    padding: 0 20px 0 10px;
}






/**
 *  SEARCH RESULTS
 */

#search-results .item {
    cursor: default;
    float: left;
    margin: 0 0 12px;
    padding: 15px;
    width: 100%;
}

#search-results .list-group-item.btn-view {
    width: auto;
    position: relative;
    display: block;
    clear: both;
    cursor: pointer;
    float: left;
    margin: 0 0 8px;
    padding: 0;
    text-transform: none;
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.6rem;
    text-decoration: underline;
}

#search-results .listing {
    margin: 0;
    padding: 0 12px;
    width: 66%;
    float: right;
    text-align: left;
}

/* prevents slide down annimation from filling extra space on the right */
.listing #space-case{
    display: block;
    width: 100%;
    height: 1px;
    background-color: transparent;
    clear: both;
}

#search-results .listing .name {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05rem;
    padding-bottom: 7px;
    line-height: 1.8rem;
}

#search-results .listing .address,
#search-results .listing .city {
    font-size: 1.0rem;
    font-weight: 400;
}

#search-results .marker {
    clear: left;
    float: left;
    font-size: 1.5rem;
    margin: 6px 0 0;
    padding: 0;
    width: auto;
}

#search-results .marker .icon {
    line-height: 2.0rem;
}

#search-results .logo {
    max-width: 140px;
    margin: 0;
    height: auto;
    max-height: inherit;
    float: none;
}

#search-results .logo-holder {
    width: 30%;
    margin: 0;
    float: left;
    text-align: center;
}

.marker .goToMapMarker {
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.6rem;
    padding: 0;
    text-decoration: underline;
}

#search-results .item-additional-offers {
    margin: 0;
    width: 100%;
    float: left;
    position: relative;
    display:none;
    clear: both;
    text-align:right;
}

#search-results .item-additional-offers .listing,
#search-results .total-offers .listing {
    float: left;
    width: 100%;
    margin: 0 0 8px;
    padding: 6px 18px 6px 53px;
    position: relative;
}

#search-results .item-additional-offers .listing a.name,
#search-results .total-offers .listing a.name {
    width: 100%;
    font-weight: 400;
    letter-spacing: 0.05rem;
    padding-bottom: 7px;
    font-size: 1.0rem;
    line-height: 1.2rem;
    text-decoration: underline;
}
#search-results .listing .item-offer-link .name {
    width: 100%;
    font-weight: 400;
    letter-spacing: 0.05rem;
    padding: 12px 0;
    font-size: 1.0rem;
    line-height: 1.2rem;	
}

#search-results .item-additional-offers .listing a.name.item-offer-link,
#search-results .total-offers .listing a.name.item-offer-link {
    position: relative;
    float: left;
}

#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-print,
#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-mobile,
#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-globe,
#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-tag,
#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-star,
#search-results .total-offers .listing a.name.item-offer-link i.fa-print,
#search-results .total-offers .listing a.name.item-offer-link i.fa-mobile,
#search-results .total-offers .listing a.name.item-offer-link i.fa-globe,
#search-results .total-offers .listing a.name.item-offer-link i.fa-tag,
#search-results .total-offers .listing a.name.item-offer-link i.fa-star,
#search-results .listing a.name.item-offer-link i.fa-print,
#search-results .listing a.name.item-offer-link i.fa-mobile,
#search-results .listing a.name.item-offer-link i.fa-globe,
#search-results .listing a.name.item-offer-link i.fa-tag,
#search-results .listing a.name.item-offer-link i.fa-star,
#search-results .listing a.item-offer-link .name i.fa-print,
#search-results .listing a.item-offer-link .name i.fa-mobile,
#search-results .listing a.item-offer-link .name i.fa-globe,
#search-results .listing a.item-offer-link .name i.fa-tag,
#search-results .listing a.item-offer-link .name i.fa-star {
    display: block;
    position: absolute;
    top: 4px;
}

#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-print,
#search-results .total-offers .listing a.name.item-offer-link i.fa-print,
#search-results .listing a.name.item-offer-link i.fa-print {
    font-size: 1.6rem;
    left: -39px;
}

#search-results .listing a.item-offer-link .name i.fa-print {
    font-size: 1.6rem;
    left: 16px;
    top: 18px;
}

#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-mobile,
#search-results .total-offers .listing a.name.item-offer-link i.fa-mobile,
#search-results .listing a.name.item-offer-link i.fa-mobile {
    font-size: 2.0rem;
    left: -35px;
}

#search-results .listing a.item-offer-link .name i.fa-mobile {
    font-size: 1.6rem;
    left: 16px;
    top: 18px;	
}

#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-globe,
#search-results .total-offers .listing a.name.item-offer-link i.fa-globe,
#search-results .listing a.name.item-offer-link i.fa-globe {
    font-size: 1.8rem;
    left: -40px;
}

#search-results .listing a.item-offer-link .name i.fa-globe {
    font-size: 1.6rem;
    left: 16px;
    top: 18px;	
}

#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-tag,
#search-results .total-offers .listing a.name.item-offer-link i.fa-tag,
#search-results .listing a.name.item-offer-link i.fa-tag {
    font-size: 1.8rem;
    left: -40px;
}

#search-results .listing a.item-offer-link .name i.fa-tag {
    font-size: 1.6rem;
    left: 16px;
    top: 18px;	
}
#search-results .item-additional-offers .listing a.name.item-offer-link i.fa-star,
#search-results .total-offers .listing a.name.item-offer-link i.fa-star,
#search-results .listing a.name.item-offer-link i.fa-star {
    font-size: 1.4rem;
    left: -39px;
}

#search-results .listing a.item-offer-link .name i.fa-star {
    font-size: 1.4rem;
    left: 16px;
    top: 18px;
}

#search-results .offer-disabled a {
    pointer-events: none;
    cursor: default;
}






/**
 *  POPUPS - MAP, OFFER HOLDER, MOBILE COUPON HOLDER
 */
#body .flexible-offer {
    position: fixed;
    height: 80%;
    top: 10%;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 600px;
    overflow: auto;
    width: 65%;
    padding: 80px 20px 0;
    border: 0 none;
}

#body .flexible-offer p,
#body .flexible-offer ul {
    margin: 0 0 12px;
    padding: 0 210px 0 0;
}

#body .flexible-offer h5 {
    font-size: 1.4rem;
    font-weight: 100;
    letter-spacing: 0.04rem;
}

#body .flexible-offer a.btn {
    float: right;
    font-size: 1.3rem;
    line-height: 1.3rem;
    margin: 0 0 12px;
    padding: 8px 12px 6px 48px;
    position: relative;
    font-weight: 400;
    background: none;
}

#body .flexible-offer a.btn i.fa-lg {
    left: 12px;
    position: absolute;
    top: 6px;
}

#body .flexible-offer .container-fluid {
    padding: 0;
}

#body .flexible-offer .closeBtn.closeBtn-mobile {
    display: none;
}



/* MAP */
.flexible-map {
    z-index: 999;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 0 none;
    margin: 0;
}


.flexible-map .closeBtn {
    width: 700px;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
    top: 65px;
    text-align: right;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#myMap {
    width: 700px;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    top: 100px;
}


/* OFFER HOLDER */
#offerHolder {
    z-index: 999;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-transform: translateZ(0);
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    -khtml-box-shadow: none;
    box-shadow: none;
}

#offerHolder .closeBtn {
    cursor: pointer;
    float: right;
    font-weight: bold;
    position: absolute;
    right: 34px;
    top: 30px;
}
#offerHolder #redeem-confirmation {
    border: 0 none;
    clear: both;
    float: left !important;
    display: none;
    margin: 0;
    padding: 0;
}

#offerHolder #redeem-confirmation div {
    margin: 0 0 8px;
    float: left;
    clear: left;
}

#offerHolder #redeem-confirmation a {
    clear: left;
    display: block;
    float: left !important;
    margin: 0 0 28px;
    min-width: 0;
    position: relative;
    width: auto;
}

#offerHolder .offer-details-box {
    clear: both;
    padding: 20px;
}

#offerHolder .offer-headline {
    float: left;
    margin: 0 0 12px;
}

#offerHolder #offer-vendorDesc {
    font-size: 0.9rem;
    line-height: 1.7rem;
}

#offerHolder #offer-vendorDesc h5 {
    font-size: 1.0rem;
    font-weight: bold;
    padding: 0;
}

#offerHolder #offer-address .marker .goToMapMarker i {
    display: none;
}

#offerHolder #offer-id {
    margin-bottom: 40px;
}

#offerHolder #offer-name {
    display: block;
    width: 100%;
    float: left;
    clear: left;
}

#offerHolder .premium-text {
    clear: right;
    display: block;
    float: right;
    font-size: 0.8rem;
    margin: 14px 0 0;
    position: relative;
    text-align: right;
}


#offerHolder #offer-name-purch {
    font-weight: 400;
}



#offerHolder .btn-confirm {
    float: none!important;
}



.closeBtn {
    font-size: 1.7rem;
    line-height: 1.0rem;
}



.offer-details-box div,
.offer-details-box h5 {
    float: none!important;
}









/****************
 *  MOBILE COUPON
 */

#mobileCouponHolder .mobileCoupon {
    max-height: none;
    overflow: inherit;
    padding: 76px 10px 30px!important;
    top: 0;
}

#mobileCouponHolder .mobileCoupon .coupon-heading {
    font-size: 1.4rem;
    line-height: 1.6rem;
    padding: 20px;
    text-align: center;
}

#mobileCouponHolder .mobileCoupon .coupon-body {
    border: 0 none;
    font-size: 16px;
    margin: 0;
    padding: 4px 20px 24px;
}

#mobileCouponHolder .mobileCoupon .coupon-main {
    margin: 0 0 14px;
}

#mobileCouponHolder .mobileCoupon .modal-header .modal-title {
    font-size: 1.2rem;
    line-height: 1;
}

#mobileCouponHolder {
    display:none;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-transform: translateZ(0);
    width:100%;
    height:100%;
    z-index: 999;
    position: fixed;
    left: 0;
    top: 0;
}

#mobileCouponHolder .mobileCoupon .barcode {
    text-align:center;
}

#mobileCouponHolder .mobileCoupon .barcode img {
    max-width: 140px;
}

#mobileCouponHolder .mobileCoupon .valid-qualifier,
#mobileCouponHolder .mobileCoupon .offer-qualifier {
    font-size: 0.6rem;
}

#mobileCouponHolder .mobileCoupon .coupon-body > div {
    margin-top:15px;
}

#mobileCouponHolder .mobileCoupon .offer-text {
    font-size:20px;
    text-align: center;
    padding: 10px;
    line-height: 1.1;
}

#mobileCouponHolder .mobileCoupon .btn {
    width:100%;
    margin-top: 15px;
    padding: 5px;
    font-size: initial;
}





.col-md-4.col-sm-12.col-xs-12.search-form-container.pull-left {
	padding-left: 0;
}


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

    #body .flexible-offer {
        height: 100%;
        left: 0;
        margin: auto;
        max-height: 0;
        min-height: 100%;
        min-width: 100%;
        overflow: auto;
        padding: 80px 60px 60px;
        position: fixed;
        right: 0;
        top: 0;
        width: 100%;
    }
    
	#search-results .marker button {
	    margin: 0 0 8px;	
	}    
    
	#body .flexible-offer a.btn {
	    float: left;
	}    

    #body .flexible-offer p,
    #body .flexible-offer ul {
        padding: 0 10px 0 0;
    }

    #body .flexible-offer a.btn i.fa-lg {
        display: block;
        left: 12px;
        top: 6px;
    }

    #body .flexible-offer .closeBtn {
        display: none;
    }

    #body .flexible-offer .closeBtn.closeBtn-mobile {
        display: block;
        float: left;
        font-size: 1.2rem;
        font-weight: 300;
        left: 0;
        padding: 18px 36px;
        position: absolute;
        top: 0;
        width: 100%;
    }

    #mobileCouponHolder .closeBtn.closeBtn-mobile {
        padding: 20px 74px;
    }

    #body .flexible-offer .closeBtn.closeBtn-mobile span {
        font-size: 1rem;
        padding: 3px 12px 4px;
        text-decoration: none !important;
        float: left;
    }

    #search-results .marker button:hover,
    #search-results .marker button:focus,
    #search-results .list-group-item.btn-view:hover,
    #search-results .list-group-item.btn-view:focus {
        text-decoration: none;
    }

    #search-results .marker .goToMapMarker,
    #search-results .marker button,
    #search-results .list-group-item.btn-view {
        font-size: 1.0rem;
        font-weight: 400;
        line-height: 1.6rem;
        padding: 2px 8px 1px;
        text-align: center;
        text-decoration: none;
    }
    
    #search-results .marker {
    	width: 100%;
    }

    #body #offerHolder .offer-details-box {
        float: left;
        margin: 24px 0 0;
        width: 100%;
    }

    #body #offerHolder #redeem-confirmation {
        -moz-border-bottom-colors: none;
        -moz-border-left-colors: none;
        -moz-border-right-colors: none;
        -moz-border-top-colors: none;
        border-color: #b2b2b4;
        border-image: none;
        border-style: solid none none;
        border-width: 1px 0 0;
        clear: both;
        display: none;
        float: left !important;
        width: 100%;
        font-size: 0.8rem;
        margin: 12px 0 0;
        padding: 9px 0 0;
    }

    #body #offerHolder #redeem-confirmation a {
        margin: 0;
    }

    #body #offerHolder #offer-address {
        margin: 6px 0 8px;
    }

    #body #offerHolder #offer-address .marker .goToMapMarker {
        margin: 20px 0 4px;
        text-decoration: none;
        text-transform: uppercase;
    }

    #body #offerHolder #offer-address .marker .goToMapMarker i {
        display: block;
        position: absolute;
        left: 12px;
        font-size: 1.3rem;
        top: 5px;
    }

    #body #offerHolder .premium-text {
        display: block;
        float: left;
        font-size: 0.8rem;
        margin: 12px 0 0;
        position: relative;
        text-align: left;
        clear: left;
    }

    #body .flexible-offer a.btn,
    #body #offerHolder #offer-address .marker .goToMapMarker,
    #body #offerHolder #redeem-confirmation a {
        font-size: 1rem;
        line-height: 1.3rem;
        max-height: 34px;
        min-height: 34px;
        padding: 6px 12px 6px 38px;
        position: relative;
        text-align: center;
    }


    /* SLIDING SEARCH BAR */
    body {
        position: relative;
        overflow-x: hidden;
    }

    #body,
    .container,
    .col-md-4 {
        position:initial;
    }
    #advanced-search {
        position: fixed;
        width: 270px;
        right: -270px;
        top: 0;
        margin-top:0px!important;
        height: 100vh;
        background-color: #fff!important;
        border: 1px solid #d8d8d8!important;
        z-index: 1020;
        display: block;
        padding: 20px 10px!important;
        -webkit-box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.8);
        -moz-box-shadow:    0px 2px 8px 0px rgba(50, 50, 50, 0.8);
        box-shadow:         0px 2px 8px 0px rgba(50, 50, 50, 0.8);
    }

    #advanced-search.mobile-visible {
        right: 0px;
    }

    .btn-hide-search {
        text-decoration: underline;
        float: left;
        width: 100%;
        margin-top: 20px;
        display:block;
    }
}



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

    #search-results .item:hover {
        margin: 0 0 12px;
    }
    
	.col-md-4.col-sm-12.col-xs-12.search-form-container.pull-left {
		padding: 0;
	}    

    #search-results .listing {
        float: left;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    #search-results .marker .goToMapMarker,
    #search-results .marker button,
    #search-results .list-group-item.btn-view {
        width: 100%;
    }    
    
   	#search-results .logo-holder {
    	width: 100%;
    }
    
    #search-results .listing span.name,
    #search-results .listing span.address,
    #search-results .listing span.city {
		text-align: center;
		width: 100%;
	}

    #body .flexible-offer .closeBtn.closeBtn-mobile,
    #offerHolder .closeBtn.closeBtn-mobile {
        padding: 20px 15px;
    }

    #mobileCouponHolder .closeBtn.closeBtn-mobile {
        padding: 20px 44px;
    }

    #body .flexible-offer,
    #body .flexible-map .closeBtn,
    #myMap {
        width: 88%;
    }

    #body .flexible-offer {
        padding: 80px 30px 60px;
    }

    #body .flexible-offer p,
    #body .flexible-offer ul {
        padding: 0;
    }

}

#body .key-disclaimer {
	clear: left;
}
#body #advancedSearchButton {
    display: block;
    float: left;
}
#advanced-search div.select-row, 
#advanced-search #keyword-search,
#advanced-search input#zip,
#advanced-search .add-geolocation,
#advanced-search .remove-geolocation,
#zip_geolocation_front {
    float: left;
    margin: 0 0 12px;
    width: 100%;
}
#advanced-search.form-standard select.form-control {
    height: 2.6rem;
    margin: 0;
    padding: 3px 12px 0;
}
@media only screen and (max-height: 991px) {    
}

@media only screen and (max-width: 991px) {
	.icon-premium {
	    font-size: 0.9rem;
	    left: inherit;
	    position: absolute;
	    right: 40px;
	    top: 78px;
	}
    #body .flexible-offer {
        padding: 60px 20px 0;
        max-height: 100%;
        top: 0px;
    }
	#body .flexible-offer {
	    max-height: 100%;
	    padding: 80px 20px 0;
	    top: 0;
	}		
}

@media only screen and (max-width: 767px) {
	
    #body .flexible-offer {
        padding: 120px 15px 0;
    }	
	.icon-premium {
	    font-size: 0.9rem;
	    left: 30px;
	    position: absolute;
	    right: inherit;
	    top: 78px;
	}

}


@media only screen and (max-width: 600px) {
    #search-results .listing {
        width: 100%;
    }

    #search-results .marker {
        display: block;
    }
}



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

    #body .flexible-offer .btn {
        width: auto;
    }
}