/* FilterEze: sitewide responsive rules for the Genesis child theme.
   Upload to the child theme root (wp-content/themes/filtereze/responsive.css)
   and load it with the snippet in functions-snippet.php.
   Tested at 390px width on: /about/, /shop/, /cart/, /checkout/, /testimonials/ (no sideways scrolling). */

@media (max-width:1060px){
	html,body{max-width:100%;overflow-x:hidden}
	body img,body iframe,body video,body embed,body object{max-width:100%;height:auto}

	/* the theme's fixed 1024px wrappers become fluid */
	html body #wrap,html body .wrap{width:100%!important;max-width:100%!important;box-sizing:border-box}

	/* header banner drawn at 100% width (original image is 760x160) */
	html body #header{background:none!important;height:auto!important;min-height:0!important;padding:0!important}
	html body #header::before{content:"";display:block;width:100%;padding-top:21.05%;background:url(/wp-content/uploads/2017/01/Filtereze-Header-imagedark.gif) center top/100% auto no-repeat}
	html body #header .wrap{height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important}
	html body #title-area{display:none!important}
	html body #header .header-widget-area{position:static!important;float:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:6px 10px!important;text-align:center!important;box-sizing:border-box!important;display:block!important}
	html body #header .header-widget-area *{margin-top:0!important;padding-top:0!important;top:auto!important}

	/* menu: slide-in drawer from the RIGHT, opened by the "Menu" button (menu-toggle.js adds the button, overlay and close button) */
	html body #subnav{width:100%!important;height:auto!important;margin:0!important;border-bottom:1px solid #dbe2e8}
	html body #subnav .fe-menu-toggle{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:100%;margin:0;padding:14px 18px;background:#fff;border:0;border-radius:0;color:#0c6f7b;font-weight:700;font-size:16px;line-height:1.2;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;box-shadow:none}
	html body #subnav .fe-menu-toggle:focus-visible,html body .fe-menu-close:focus-visible{outline:3px solid #11909f;outline-offset:-3px}
	html body #subnav .fe-bars,html body #subnav .fe-bars:before,html body #subnav .fe-bars:after{display:block;width:22px;height:3px;background:#0c6f7b;border-radius:2px;content:"";position:relative}
	html body #subnav .fe-bars:before{position:absolute;top:-7px;left:0}
	html body #subnav .fe-bars:after{position:absolute;top:7px;left:0}
	html body #subnav ul.menu{display:flex!important;flex-direction:column;position:fixed!important;top:0;right:0;bottom:0;height:100vh;width:min(300px,85vw)!important;max-width:85vw;margin:0!important;padding:0 0 24px!important;list-style:none;background:#fff;overflow-y:auto;z-index:100001;box-shadow:-6px 0 22px rgba(0,0,0,.28);transform:translateX(100%);visibility:hidden;transition:transform .28s ease,visibility 0s linear .28s}
	html body #subnav.fe-open ul.menu{transform:none;visibility:visible;transition:transform .28s ease,visibility 0s}
	html body #subnav ul.menu>li{float:none!important;width:100%!important;border-bottom:1px solid #eef1f4;text-align:left}
	html body #subnav ul.menu>li>a{display:block;padding:15px 22px}
	html body #subnav ul.menu>li.wpmenucartli>a{margin:0!important;border-radius:0!important}
	html body #subnav ul.menu>li.fe-menu-close-li{display:flex;justify-content:flex-end;border-bottom:1px solid #dbe2e8;padding:6px 8px}
	html body .fe-menu-close{width:44px;height:44px;margin:0;padding:0;background:transparent;border:0;color:#0c6f7b;font-size:34px;line-height:1;cursor:pointer;box-shadow:none}
	html body .fe-menu-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(16,34,47,.55);opacity:0;visibility:hidden;transition:opacity .28s ease,visibility 0s linear .28s;z-index:100000}
	html body.fe-menu-open .fe-menu-overlay{opacity:1;visibility:visible;transition:opacity .28s ease,visibility 0s}
	html body.fe-menu-open{overflow:hidden}

	/* main layout: content, then sidebar, stacked */
	html body #inner{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
	html body #inner>.wrap{padding:0 14px!important}
	html body #content-sidebar-wrap,html body #content,html body #sidebar,html body #sidebar-alt{float:none!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
	html body #sidebar,html body #sidebar-alt{margin-top:24px!important}
	html body #footer .wrap{padding:0 14px!important;text-align:center}

	/* content */
	html body .entry-content table{display:block;max-width:100%;overflow-x:auto}
	html body .entry-content img{max-width:100%!important;height:auto!important}

	/* social share buttons: small icons in a row (they were 128px each) */
	html body .jssocials-shares{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px 14px}
	html body .jssocials-share{float:none!important;margin:0!important}
	html body .jssocials-share-logo{width:34px!important;height:34px!important}
	html body .jssocials-share-link{display:flex!important;align-items:center;gap:6px}

	html body input,html body select,html body textarea{max-width:100%;box-sizing:border-box}
}

/* WooCommerce: shop grid, product, cart, checkout */
@media (max-width:768px){
	.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:48%!important;float:left!important;margin:0 4% 22px 0!important;clear:none!important}
	.woocommerce ul.products li.product:nth-child(2n),.woocommerce-page ul.products li.product:nth-child(2n){margin-right:0!important}
	.woocommerce div.product div.images,.woocommerce div.product div.summary,.woocommerce-page div.product div.images,.woocommerce-page div.product div.summary{width:100%!important;float:none!important}
	.woocommerce form .form-row,.woocommerce-page form .form-row{width:100%!important;float:none!important}
	.woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2,.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{width:100%!important;float:none!important}
	.woocommerce-checkout #order_review,.woocommerce-checkout #order_review_heading,.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{width:100%!important;float:none!important}
	.woocommerce table.cart td.actions .coupon{float:none!important;width:100%!important}
	.woocommerce table.cart td.actions .coupon .input-text{width:60%!important}
}
@media (max-width:480px){
	.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:100%!important;margin-right:0!important;float:none!important}
}

/* the Menu button only exists on small screens */
.fe-menu-toggle,.fe-menu-overlay,.fe-menu-close-li{display:none}
