/* Presentation for the active Flatsome footer widgets and native payment bar. */
#footer.footer-wrapper {
  --footer-bg: #f8f2eb;
  --footer-ink: #32252a;
  --footer-muted: #5e4e4a;
  --footer-line: #d5c4b6;
  --footer-accent: #5b3946;
  --footer-focus: #865340;
  --footer-font: system-ui, sans-serif;
  --footer-heading-font: Georgia, 'Times New Roman', serif;
  --footer-gutter: clamp(18px, 4vw, 64px);
  --footer-measure: 1320px;
  color: var(--footer-ink);
  background: var(--footer-bg);
}

#footer .footer-widgets.footer-2 {
  padding-block: clamp(36px, 5vw, 74px) clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg) !important;
}

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

#footer .footer-widgets.footer-2 > .row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  column-gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}

#footer .footer-widgets.footer-2 .widget {
  min-width: 0;
}

#footer .footer-widgets.footer-2 :is(#custom_html-3, #custom_html-4, #custom_html-5) .custom-html-widget > div > p:first-child:not(:has(a)) {
  color: var(--footer-ink) !important;
  font: 500 20px/1.3 var(--footer-heading-font) !important;
  letter-spacing: .015em;
}

#footer .footer-widgets.footer-2 :is(#custom_html-3, #custom_html-4, #custom_html-5) .custom-html-widget > div > p:first-child::before {
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--footer-line);
  content: '';
}

#footer .footer-widgets.footer-2 :is(#custom_html-3, #custom_html-4, #custom_html-5) :is(.custom-html-widget > div > p:not(:first-child), .sf-footer-accordion-content > p) {
  margin-bottom: 10px !important;
  color: var(--footer-muted) !important;
  font: 400 15px/1.5 var(--footer-font) !important;
}

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

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

#footer .footer-widgets.footer-2 .sf-footer-accordion-toggle {
  min-height: 48px;
  color: var(--footer-ink) !important;
  font: 500 20px/1.3 var(--footer-heading-font);
  letter-spacing: .015em;
}

#footer .footer-widgets.footer-2 #custom_html-6 .custom-html-widget > div {
  padding: 0 0 0 clamp(16px, 2.4vw, 36px) !important;
  border: 0;
  border-inline-start: 1px solid var(--footer-line);
  background: var(--footer-bg) !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 .custom-html-widget > div h3 {
  margin: 0 0 10px !important;
  color: var(--footer-ink) !important;
  font: 500 clamp(22px, 2vw, 28px)/1.15 var(--footer-heading-font) !important;
  letter-spacing: -.02em !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 .custom-html-widget > div > p {
  margin: 0 0 18px !important;
  color: var(--footer-muted) !important;
  font: 400 15px/1.5 var(--footer-font) !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 form:has(input[type="email"]) {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

#footer .footer-widgets.footer-2 #custom_html-6 form input[type="email"] {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #987d71 !important;
  border-radius: 4px !important;
  background: var(--footer-bg) !important;
  color: var(--footer-ink) !important;
  font-size: 16px !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 form input[type="email"]::placeholder {
  color: var(--footer-muted);
}

#footer .footer-widgets.footer-2 #custom_html-6 form button[type="submit"] {
  width: 100% !important;
  border: 1px solid var(--footer-accent) !important;
  border-radius: 4px !important;
  background: var(--footer-accent) !important;
  color: #fff !important;
  font-size: 15px !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 form button[type="submit"]:hover:not(:disabled) {
  background: #462c37 !important;
}

#footer .footer-widgets.footer-2 #custom_html-6 form :is(input, button):disabled {
  cursor: not-allowed;
  opacity: .7;
}

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

#footer .absolute-footer {
  color: var(--footer-muted);
  background: var(--footer-bg) !important;
}

#footer .absolute-footer > .container {
  flex-wrap: wrap;
  border-color: var(--footer-line);
}

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

@media (max-width: 1000px) {
  #footer .footer-widgets.footer-2 > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }

  #footer .footer-widgets.footer-2 #custom_html-6 {
    grid-column: 1 / -1;
  }

  #footer .footer-widgets.footer-2 #custom_html-6 .custom-html-widget > div {
    padding: 26px 0 0 !important;
    border: 0;
    border-top: 1px solid var(--footer-line);
  }
}

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

  #footer .footer-widgets.footer-2 :is(#custom_html-3, #custom_html-4, #custom_html-5) {
    border-bottom: 1px solid var(--footer-line);
  }

  #footer .footer-widgets.footer-2 :is(#custom_html-3, #custom_html-4, #custom_html-5) .custom-html-widget > div > p:first-child::before {
    content: none;
  }

  #footer .footer-widgets.footer-2 #custom_html-3 .custom-html-widget > div {
    padding-block: 4px 14px;
  }

  #footer .footer-widgets.footer-2 #custom_html-6 {
    margin-top: 24px;
  }

  #footer .footer-widgets.footer-2 #custom_html-6 .custom-html-widget > div {
    padding: 0 !important;
    border: 0;
  }

  #footer .absolute-footer > .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    row-gap: 12px;
  }

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

@media (min-width: 601px) {
  /* All three headings already have the same trailing paragraph margin. */
  #footer .footer-widgets.footer-2 .sf-footer-accordion-label {
    padding-block-end: 0;
  }
}
