/* Scoped overlay for the shared, editable Flatsome footer widgets. */
#footer.footer-wrapper {
  --footer-bg: #f5eee2;
  --footer-ink: #28261f;
  --footer-muted: #565348;
  --footer-line: #cbbfae;
  --footer-accent: #8f3829;
  --footer-accent-hover: #722a1e;
  --footer-olive: #677157;
  --footer-gutter: clamp(20px, 4.2vw, 60px);
}

#footer.footer-wrapper .footer-widgets {
  padding-top: clamp(44px, 5vw, 76px);
  padding-bottom: clamp(36px, 4vw, 58px);
}

#footer.footer-wrapper .footer-widgets > .row,
#footer.footer-wrapper .absolute-footer > .container {
  width: calc(100% - 2 * var(--footer-gutter));
  max-width: 1280px;
}

#footer.footer-wrapper .footer-widgets > .row {
  align-items: start;
  column-gap: clamp(22px, 3.3vw, 48px);
}

#footer.footer-wrapper .footer-widgets .widget {
  min-width: 0;
  overflow-wrap: anywhere;
}

#footer.footer-wrapper .sf-footer-accordion-label {
  padding-bottom: 17px;
}

#footer.footer-wrapper .sf-footer-accordion-content > p {
  margin-bottom: 10px !important;
}

#footer.footer-wrapper .sf-footer-accordion-content > p:last-child {
  margin-bottom: 0 !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget p a {
  color: var(--footer-muted) !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget p a:hover,
#footer.footer-wrapper .footer-widgets .custom-html-widget p a:focus-visible {
  color: var(--footer-accent) !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget > div:has(form input[type=email]) {
  padding: 0 !important;
  border: 0;
  background: transparent !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget > div:has(form input[type=email]) h3 {
  color: var(--footer-ink) !important;
  font: 400 clamp(24px, 2.1vw, 32px)/1.12 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.025em !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget form:has(input[type=email]) {
  background: transparent;
}

/* Preserve the form layout when an inherited external form is disabled. */
#footer.footer-wrapper .footer-widgets .custom-html-widget form:has(> fieldset) {
  display: block;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget form > fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget form > fieldset > div {
  min-width: 0;
  margin: 0 !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget fieldset[disabled] button[type=submit] {
  border-color: var(--footer-line) !important;
  background: #e8ddcd !important;
  color: var(--footer-muted) !important;
  cursor: not-allowed;
  opacity: 1;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget input[type=email] {
  border-color: var(--footer-olive) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--footer-ink) !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget input[type=email]::placeholder {
  color: var(--footer-muted);
}

#footer.footer-wrapper .footer-widgets .custom-html-widget button[type=submit] {
  border-color: var(--footer-accent) !important;
  border-radius: 4px !important;
  background: var(--footer-accent) !important;
  color: #fff !important;
}

#footer.footer-wrapper .footer-widgets .custom-html-widget button[type=submit]:hover:not(:disabled) {
  border-color: var(--footer-accent-hover) !important;
  background: var(--footer-accent-hover) !important;
}

#footer.footer-wrapper :is(a, button, input):focus-visible {
  outline: 2px solid var(--footer-accent) !important;
  outline-offset: 3px !important;
}

#footer.footer-wrapper .absolute-footer .payment-icon {
  background-color: #fff;
  color: var(--footer-ink);
}

@media (min-width: 1001px) {
  #footer.footer-wrapper .footer-widgets > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(290px, 1.5fr);
  }
}

@media (max-width: 600px) {
  #footer.footer-wrapper .footer-widgets > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  #footer.footer-wrapper .footer-widgets > .row:has(.sf-footer-accordion-toggle) {
    gap: 0;
  }

  #footer.footer-wrapper .sf-footer-accordion-toggle {
    min-height: 52px;
  }

  #footer.footer-wrapper .footer-widgets .widget:has(form input[type=email]) {
    margin-top: 26px;
  }

  #footer.footer-wrapper .absolute-footer > .container {
    flex-wrap: wrap;
  }

  #footer.footer-wrapper .absolute-footer .payment-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  #footer.footer-wrapper .footer-widgets .custom-html-widget form > fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
}
