
@media (min-width: 980px) and (max-width: 1050px) {
  .a-button {
    min-width: 90px;
  }      
}

@media screen and (max-width: 979px) {
    input.button, 
    button.validate, 
    button, 
    input#modlgn-remember {
        -webkit-appearance: none;
    }
    input, 
    select, 
    textarea {
        max-width: 100%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    .jm-module-in {
        height: auto !important;
    }
	.jm-module input#modlgn-username,
	.jm-module input#modlgn-passwd {
		width: 100%;
	}
    #jm-top-module {
       max-width: 100%;
    }
    #jm-djmenu {
        text-align: center;
    }
	a.a-button {
		font-size: 15px;
		padding: 0 20px 0 60px;
	}
	.a-button {
		min-width: 70px;
	}
	.a-btn-arrow,
	a.a-button:after {
		display: none;
	} 
	.dj-galleryGrid .dj-slide {
        max-width: 100%;
    }
    .dj-slide-desc-text,
    .dj-slide-desc-text > p {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dj-slide-desc-text {
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
    .djslider-loader {
        padding-top: 0 !important;
    }
    form#com-form-login .width30,
    .vm_orderlist .order-view form .width30 {
    	width: 100%;
    }
    .productdetails-view span.addtocart-button {
    	display: inline-block;
    	margin-top: 10px;
    	float: none;
    }
	form select#virtuemart_currency_id + input {
		font-size: 12px;
	}
}

@media screen and (min-width: 767px) {
	.hidden-tablet-landscape,
	.hidden-desktop {
		display: none;
	}	
}

@media screen and (max-width: 767px) {
	.hidden-tablet-portrait {
		display: none;
	}
	.jm-module input#modlgn-username,
	.jm-module input#modlgn-passwd {
		width: auto;
	}
    #jm-breadcrumbs div.breadcrumbs span.showHere {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
	#jm-back-top {
    	display: none !important;
    }
    #jm-top-bar-wrapper {
    	padding: 0 15px;
    	text-align: center;
    }
	#jm-top-bar1,
	#jm-top-bar2,
	#jm-top-module,
	#jm-logo-sitedesc {
	    float: none;
	    text-align: center;
	}
	#jm-top-bar1,
    #jm-top-bar2,
    #jm-top-module {
    	max-width: none !important;
        width: 100% !important;
    }
    .jm-module-raw {
        float: none !important;
        margin: 0 0 20px !important;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    .jm-module-raw:last-child {
        margin: 0;
    }
    .jm-module-raw .login-greeting,
    .jm-module-raw .logout-button {
    	float: none;
    	display: inline-block;
    }
	#jm-logo-sitedesc {
	    margin-bottom: 20px;
	}
    #jm-left, 
    #jm-right, 
    #jm-content {
        width: 100%;
        clear: both;
    }
    #jm-content {
    	margin: 0 !important;
    }
    #jm-top .rowcount_3 .top-in,
    #jm-bottom1 .rowcount_3 .bottom1-in,
    #jm-bottom2 .rowcount_3 .bottom2-in,
    #jm-footer-mod .rowcount_3 .footer-mod-in {
        width: 100%;
        float: none;
    }
    #jm-top .rowcount_4 .top-in,
    #jm-bottom1 .rowcount_4 .bottom1-in,
    #jm-bottom2 .rowcount_4 .bottom2-in,
    #jm-footer-mod .rowcount_4 .footer-mod-in {
    	width: 50%;
    }
    #jm-top .rowcount_4 .box3,
    #jm-bottom .rowcount_4 .box3,
    #jm-footer-mod .rowcount_4 .box3 {
        clear: both;
    }
	#jm-footer-left,
	#jm-footer-right {
		float: none;
	}
	#jm-copyrights {
		float: none;
		padding: 0;
		margin: 0;
        text-align: center;
	}
	#jm-poweredby {
		display: block;
		padding: 0;
		text-align: center;
	}
	#jm-stylearea {
		display: block;
		text-align: center;
	}
    a.a-button {
        font-size: 21px;
        padding: 0 60px;
    }
    .a-button {
        min-width: 120px;
    }
    .a-btn-arrow,
    a.a-button:after {
        display: block;
    } 
    
    .dj-slide-title,
    .dj-slide-title > a {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body .rowcount_2 .dj-tabs {
        display: none !important;
    }
    body .rowcount_2 .dj-slides {
        margin: 0 !important;
    }

	.category-view .category,
	.featured-view .product, 
	.latest-view .product, 
	.topten-view .product, 
	.recent-view .product, 
	.related-products-view .product, 
	.browse-view .product,
	.manufacturer-view-default .manufacturer,
	.vmproduct li,
	.vmproduct > div {
		width: 100%;
	} 
	.category-view .category .spacer, 
	.featured-view .product .spacer, 
	.latest-view .product .spacer, 
	.topten-view .product .spacer, 
	.recent-view .product .spacer, 
	.related-products-view .product .spacer, 
	.browse-view .product .spacer,
	.manufacturer-view-default .manufacturer .spacer {
		margin-bottom: 30px;
	}
	.category-view .row:last-of-type .category:nth-last-of-type(2) .spacer, 
	.featured-view .row:last-of-type .product:nth-last-of-type(2) .spacer, 
	.latest-view .row:last-of-type .product:nth-last-of-type(2) .spacer, 
	.topten-view .row:last-of-type .product:nth-last-of-type(2) .spacer, 
	.recent-view .row:last-of-type .product:nth-last-of-type(2) .spacer, 
	.related-products-view .row:last-of-type .product:nth-last-of-type(2) .spacer, 
	.browse-view .row:last-of-type .product:nth-last-of-type(2) .spacer,
	.manufacturer-view-default .row:last-of-type .manufacturer:nth-last-of-type(2) .spacer {
		margin-bottom: 0;
	}
	.browse-view .vm-pagination {
		margin: 0;
	}
	.horizontal-separator {
		margin: 0;
	}
	.manufacturer-details-view img {
		float: none;
		margin: 0 0 20px;
	}
	.productdetails-view > div > .width40, 
	.productdetails-view > div > .width60 {
		width: 100%;
	}
	.productdetails-view > div > .width40 {
		margin-bottom: 30px;
	}
	.productdetails-view .spacer-buy-area {
		padding: 0;
	}
	.productdetails-view span.addtocart-button {
		float: right;
		display: block;
		margin: 0;
	}
	.productdetails-view .product-related-products .product-field, 
	.productdetails-view .product-related-categories .product-field {
		width: 100%;
	}
	.productdetails-view .product-related-products .product-field-display, 
	.productdetails-view .product-related-categories .product-field-display {
		margin-bottom: 30px;
	}
	.productdetails-view .product-related-products .product-field:nth-last-of-type(2) .product-field-display, 
	.productdetails-view .product-related-categories .product-field:nth-last-of-type(2) .product-field-display {
		margin-bottom: 0;
	}

	.vmproduct {
		padding: 0;
	}
	.vmproduct li,
	.vmproduct > div {
		margin-top: 30px;
	}
	.vmproduct:first-child li:first-child,
	.vmproduct:first-child > div:first-child  {
		margin-top: 0;
	} 
    .cart-view .billto-shipto .width50 {
    	width: 100%;
    }
    .cart-view .billto-shipto > div:first-child {
    	margin-bottom: 20px;
    }
	.cart-view table.cart-summary tr th:nth-child(2), 
	.cart-view table.cart-summary tr td:nth-child(2), 
	.cart-view table.cart-summary tr th:nth-child(5), 
	.cart-view table.cart-summary tr td:nth-child(5), 
	.cart-view table.cart-summary tr th:nth-child(6), 
	.cart-view table.cart-summary tr td:nth-child(6), 
	.cart-view table.cart-summary tr th:nth-child(3), 
	.cart-view table.cart-summary tr td:nth-child(3) {
		display: none;
	}
	.cart-view table.cart-summary tr.sectiontableentry1 td[colspan="4"] + td + td + td, 
	.cart-view table.cart-summary tr.sectiontableentry1 td[colspan="4"] {
	    display: none;
	}
	.cart-view table.cart-summary tr th:first-child, 
	.cart-view table.cart-summary tr td:first-child {
		width: 75px;
	}
	.cart-view table.cart-summary tr.sectiontableentry2:last-child td {
		display: table-cell;
	}
	.cart-view table.cart-summary tr.sectiontableentry2:last-child td:nth-child(2), 
	.cart-view table.cart-summary tr.sectiontableentry2:last-child td:nth-child(3) {
		visibility: hidden;
	}
	.cart-view table.cart-summary tr.sectiontableentry2:last-child td:first-child {
		display: none;
	}
	#jm-top-module #vmCartModule {
		margin: 0;
	}
	table.adminForm td {
		display: block;
	}
	table.adminForm td.key {
		padding: 10px 0 0;
	}
	form select#virtuemart_currency_id + input {
		font-size: 18px;
	}
	.vm_orderdetails .spaceStyle > table tr:last-child td {
		display: block;
	}
}

@media screen and (max-width: 480px) {
	.hidden-mobile {
		display: none;
	}
	.hidden-tablet-portrait {
		display: block;
	}
    html {
        -webkit-text-size-adjust: none;
    }
    #jm-back-top {
    	display: none !important;
    }
	#jm-top-bar1,
	#jm-top-bar2,
	#jm-top-module,
	#jm-logo-sitedesc {
	    float: none;
	    text-align: center;
	}
	#jm-top-bar ul.menu li {
	    display: block;
	    border: 0;
	}
	#jm-logo-sitedesc {
	    margin-bottom: 20px;
	}
	.dj-select {
		width: 92%;
	}
	#jm-poweredby {
		display: block;
		padding: 0;
	}
	#jm-stylearea {
		display: block;
	}
    #jm-top .rowcount_2 .top-in,
    #jm-bottom1 .rowcount_2 .bottom1-in,
    #jm-bottom2 .rowcount_2 .bottom2-in,
	#jm-footer-mod .rowcount_2 .footer-mod-in,
	#jm-top .rowcount_3 .top-in,
    #jm-bottom1 .rowcount_3 .bottom1-in,
    #jm-bottom2 .rowcount_3 .bottom2-in,
	#jm-footer-mod .rowcount_3 .footer-mod-in,
    #jm-top .rowcount_4 .top-in,
    #jm-bottom1 .rowcount_4 .bottom1-in,
    #jm-bottom2 .rowcount_4 .bottom2-in,
	#jm-footer-mod .rowcount_4 .footer-mod-in {
    	width: 100%;
    	float: none;
    }
    .cols-2 .column-1 {
        float: none;
        width: 100%;
    }
    .cols-2 .column-2 {
        float: none;
        width: 100%;
    }
    .cols-3 .column-1,
    .cols-3 .column-2,
    .cols-3 .column-3 {
        float: none;
        width: 100%;
    }
    .cols-3 .column-2 {
        padding: 0;
    }
    .cols-4 .column-1,
    .cols-4 .column-2,
    .cols-4 .column-3,
    .cols-4 .column-4 {
        float: none;
        width: 100%;
    }
    .cols-4 .column-2 {
        padding: 0;
    }
    .cols-4 .column-3 {
        padding: 0;
    }
    .item-separator {
	    clear: both;
	    display: inline-block;
	    width: 100%;
	    height: 1px;
	    margin: 0 0 30px;
    }
    .item:last-child .item-separator {
	    display: none;
    }
    .row-separator {
        display: none;
    }
    body .dj-slide-desc-text {
        padding: 5px!important;
    }
    body .dj-ctitle-in,
    body .dj-slide-title {
        font-size: 1em!important;
        line-height: 1em!important;
    }
    body .dj-readmore-wrapper {
        margin: 0!important;
    }
    body .dj-tabs {
        display: none !important;
    }
    body .dj-slides {
        margin: 0 !important;
    }
    table.adminlist th,
    table.adminlist td,
    .vm_orderdetails table td {
    	display: block;
    	width: 100%;
    	box-sizing: border-box;
    	-moz-box-sizing: border-box;
   		-webkit-box-sizing: border-box;    
    }
    .productdetails-view span.addtocart-button {
    	display: inline-block;
    	margin-top: 10px;
    	float: none;
    }
    .tabs select,
    select#virtuemart_country_id {
    	width: 100%;
    }
    .vendor-image {
    	float: none;
    }
    .vendor-image img {
    	margin: 20px 0 0;
    }
    .vendor-details-view .submit .width50 {
    	width: 100%;
    	margin-top: 10px;
    }
}

@media screen and (max-width: 320px) {
    body .dj-slide-desc-text {
        font-size: 12px !important;
    }
    body .dj-slide-title {
        font-size: 14px !important;
    }
    body .dj-tabs {
        display: none !important;
    }
    a.a-button {
        font-size: 15px;
        padding: 0 20px 0 60px;
    }
    .a-button {
        min-width: 70px;
    }
    .a-btn-arrow,
    a.a-button:after {
        display: none;
    } 
}