/* Source-inspired shared footer. Content remains in the target's existing widgets. */
#footer.footer-wrapper{--footer-ink:#151515;--footer-muted:#555;--footer-line:#d8d8d8;--footer-bg:#fff;--footer-font:Arial,sans-serif;background:#fff;color:#151515;font-family:var(--footer-font)}
#footer .footer-widgets{background:#fff!important;color:#151515;padding:70px 0 62px}
#footer .footer-widgets>.row{display:grid;grid-template-columns:minmax(105px,1.6fr) repeat(3,minmax(110px,0.82fr)) minmax(270px,1.7fr);gap:30px;width:calc(100% - 80px);max-width:1296px;margin:0 auto}
#footer .openfarm-footer-logo{display:block;align-self:start;width:84px;max-width:100%}
#footer .openfarm-footer-logo img{display:block;width:84px;height:auto;max-height:100px;object-fit:contain;object-position:left top}
#footer .footer-widgets .widget{width:auto;max-width:none;margin:0;padding:0;border:0}
#footer .footer-widgets .custom-html-widget>div{padding:0!important;background:transparent!important;border:0!important;color:#151515!important;font-family:var(--footer-font)!important;text-align:left!important}
#footer .footer-widgets .custom-html-widget>div>p:first-child:not(:has(a)){margin:0 0 24px!important;color:#111!important;font:700 13px/1.3 var(--footer-font)!important;letter-spacing:.08em;text-transform:uppercase}
#footer .footer-widgets .custom-html-widget>div>p:not(:first-child){margin:0 0 19px!important;font:400 15px/1.45 var(--footer-font)!important}
#footer .footer-widgets .custom-html-widget p a{color:#171717!important;font:inherit;text-decoration:none}
#footer .footer-widgets .custom-html-widget p a:hover,#footer .footer-widgets .custom-html-widget p a:focus-visible{text-decoration:underline}
#footer .footer-widgets .custom-html-widget>div:has(form input[type=email]){max-width:none;padding:0!important;background:transparent!important;border:0!important}
#footer .footer-widgets .custom-html-widget>div:has(form input[type=email]) h3{margin:0 0 15px!important;color:#111!important;font:700 13px/1.35 var(--footer-font)!important;letter-spacing:.08em!important;text-transform:uppercase}
#footer .footer-widgets .custom-html-widget>div:has(form input[type=email])>p{margin:0 0 20px!important;color:#444!important;font:400 14px/1.45 var(--footer-font)!important;text-transform:none}
#footer .footer-widgets .custom-html-widget form:has(input[type=email]){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin:0!important}
#footer .footer-widgets .custom-html-widget form:has(input[type=email])>div{min-width:0;margin:0!important}
#footer .footer-widgets .custom-html-widget form input[type=email]{display:block;width:100%;height:58px!important;min-height:58px;margin:0!important;padding:0 15px!important;border:1px solid #c9c9c9!important;border-radius:0!important;background:#fff!important;color:#111!important;font:400 15px/1.2 var(--footer-font)!important;box-shadow:none!important}
#footer .footer-widgets .custom-html-widget form input[type=email]::placeholder{color:#737373;opacity:1}
#footer .footer-widgets .custom-html-widget form button[type=submit]{display:flex;align-items:center;justify-content:center;min-width:112px;height:58px!important;min-height:58px;margin:0!important;padding:0 18px!important;border:0!important;border-radius:0!important;background:#108236!important;color:#fff!important;font:700 13px/1.2 var(--footer-font)!important;letter-spacing:.04em;text-transform:uppercase;box-shadow:none!important}
#footer .footer-widgets .custom-html-widget form button[type=submit]:hover{background:#076b29!important}
#footer a:focus-visible,#footer button:focus-visible,#footer input:focus-visible{outline:2px solid #108236!important;outline-offset:3px!important}
#footer .absolute-footer{display:block!important;padding:0!important;background:#fff!important;color:#555;font:400 13px/1.4 var(--footer-font)}
#footer .absolute-footer>.container{display:flex;align-items:center;justify-content:space-between;gap:20px;width:calc(100% - 80px);max-width:1296px;margin:0 auto;padding:22px 0 24px;border-top:1px solid #ddd}
#footer .absolute-footer>.container::before,#footer .absolute-footer>.container::after{display:none}
#footer .absolute-footer .footer-primary,#footer .absolute-footer .footer-secondary{float:none!important;margin:0;text-align:left}
#footer .absolute-footer .footer-primary{order:1}
#footer .absolute-footer .footer-secondary{order:2}
#footer .absolute-footer .payment-icons{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#footer .absolute-footer .payment-icon{margin:0;opacity:1}
@media(max-width:850px){
 #footer .footer-widgets{padding:40px 0 46px}
 #footer .footer-widgets>.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px;width:calc(100% - 40px)}
 #footer .openfarm-footer-logo{grid-column:1/-1;grid-row:1}
 #footer .footer-widgets .widget:has(form input[type=email]){grid-column:1/-1;grid-row:2}
 #footer .footer-widgets .custom-html-widget>div>p:first-child:not(:has(a)){margin-bottom:23px!important}
 #footer .absolute-footer>.container{width:calc(100% - 40px);flex-wrap:wrap;gap:14px;padding:20px 0 24px}
}
@media(max-width:360px){#footer .footer-widgets .custom-html-widget form button[type=submit]{min-width:88px;padding:0 10px!important}}
/* Keep the four existing widgets evenly distributed until a valid logo exists. */
@media(min-width:851px){#footer .footer-widgets>.row:not(:has(.openfarm-footer-logo)){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(280px,1.55fr)}}
#footer .absolute-footer .footer-primary,#footer .absolute-footer .footer-secondary{width:auto!important;max-width:100%;text-align:left!important}
@media(max-width:850px){#footer .footer-widgets>.row:not(:has(.openfarm-footer-logo)) .widget:has(form input[type=email]){grid-row:1}}
@media(max-width:850px){#footer .absolute-footer>.container{align-items:flex-start!important;justify-content:flex-start!important}#footer .absolute-footer .footer-primary,#footer .absolute-footer .footer-secondary{align-self:flex-start!important;margin:0!important}#footer .absolute-footer .copyright-footer{text-align:left!important}}
