/* Shared footer adaptation: target widgets and their original handlers remain intact. */
#footer.footer-wrapper,
#footer .footer-2,
#footer .absolute-footer { background:#fff !important; color:#181b1b !important; }
#footer .footer-2 { padding:48px 0 36px !important; }
#footer .footer-2 > .row {
  width:calc(100% - 80px); max-width:1280px !important; margin:0 auto !important;
  display:grid !important; grid-template-columns: minmax(95px,1fr) repeat(3,minmax(110px,1fr)) minmax(220px,1.35fr);
  gap:36px; align-items:start;
}
#footer .footer-2 > .row::before {
  content:""; display:block; width:70px; height:76px;
  background:url('/wp-content/uploads/oats-header/logo.svg') left top / contain no-repeat;
}
#footer .footer-2 > .row > .widget { width:auto !important; max-width:none !important; padding:0 !important; margin:0 !important; min-width:0; }
#footer #custom_html-3 p, #footer #custom_html-4 p, #footer #custom_html-5 p { margin:0 0 12px !important; line-height:1.35 !important; }
#footer #custom_html-3 .oats-footer-shop > p:first-child,
#footer #custom_html-4 .sf-footer-accordion-heading,
#footer #custom_html-5 .sf-footer-accordion-heading { margin:0 0 18px !important; color:#8d9aab !important; font-size:12px !important; font-weight:600 !important; letter-spacing:.1em; text-transform:uppercase; }
#footer #custom_html-3 a, #footer #custom_html-4 a, #footer #custom_html-5 a { color:#171b1d !important; font-size:13px !important; text-decoration:none; }
#footer #custom_html-3 a:hover, #footer #custom_html-4 a:hover, #footer #custom_html-5 a:hover { color:#5b9e2b !important; text-decoration:underline; }
#footer #custom_html-3 a:focus-visible, #footer #custom_html-4 a:focus-visible, #footer #custom_html-5 a:focus-visible { outline:2px solid #5b9e2b; outline-offset:3px; }
#footer #custom_html-6 .custom-html-widget > div { background:transparent !important; color:#181b1b !important; border:0 !important; padding:0 !important; box-shadow:none !important; }
#footer #custom_html-6 h3 { color:#181b1b !important; font-size:20px !important; line-height:1.25 !important; margin:0 0 12px !important; }
#footer #custom_html-6 p { color:#353a38 !important; font-size:13px !important; line-height:1.5 !important; margin:0 0 16px !important; }
#footer #custom_html-6 form { display:flex; flex-wrap:wrap; gap:8px; margin:0 !important; }
#footer #custom_html-6 form > div:first-child { flex:1 1 145px; margin:0 !important; min-width:0; }
#footer #custom_html-6 form > div:last-child { flex:0 0 auto; }
#footer #custom_html-6 input[type=email] { width:100% !important; min-width:0; height:44px !important; margin:0 !important; background:#fff !important; color:#191919 !important; border:1px solid #8d9a92 !important; border-radius:3px !important; box-shadow:none !important; }
#footer #custom_html-6 input[type=email]::placeholder { color:#626c68 !important; opacity:1; }
#footer #custom_html-6 input[type=email]:focus-visible { outline:2px solid #5b9e2b !important; outline-offset:2px !important; }
#footer #custom_html-6 button[type=submit] { width:auto !important; min-width:80px; height:44px !important; margin:0 !important; padding:0 16px !important; background:#5b9e2b !important; color:#fff !important; border:0 !important; border-radius:3px !important; }
#footer #custom_html-6 button[type=submit]:focus-visible { outline:2px solid #202f17; outline-offset:3px; }
#footer #custom_html-3 .sf-footer-accordion-toggle { display:none !important; }
#footer #custom_html-3 .sf-footer-accordion-content { display:block !important; height:auto !important; visibility:visible !important; }
#footer .absolute-footer { padding:0 0 24px !important; }
#footer .absolute-footer > .container { width:calc(100% - 80px); max-width:1280px !important; border-top:1px solid #e8eceb; padding:24px 0 0 !important; display:flex; flex-direction:row-reverse; justify-content:space-between; align-items:center; gap:20px; }
#footer .absolute-footer .footer-primary, #footer .absolute-footer .footer-secondary { float:none !important; margin:0 !important; }
#footer .absolute-footer .copyright-footer { color:#66717b !important; font-size:12px; }
@media (max-width:849px) {
  #footer .footer-2 { padding:32px 0 24px !important; }
  #footer .footer-2 > .row { width:calc(100% - 40px); display:grid !important; grid-template-columns:minmax(0,1fr); gap:0; }
  #footer .footer-2 > .row::before { width:70px; height:76px; margin-bottom:24px; }
  #footer .footer-2 > .row > .widget { padding:17px 0 !important; border-top:1px solid #e8eceb; }
  #footer #custom_html-3 .oats-footer-shop > p:first-child, #footer #custom_html-4 .sf-footer-accordion-heading, #footer #custom_html-5 .sf-footer-accordion-heading { margin-bottom:12px !important; }
  #footer #custom_html-6 form { max-width:100%; }
  #footer .absolute-footer > .container { width:calc(100% - 40px); flex-direction:column-reverse; justify-content:center; text-align:center; gap:14px; }
  #footer .absolute-footer .payment-icons { display:flex !important; flex-wrap:wrap; justify-content:center; }
}
