.hab-store-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  background: var(--hab-footer-bg);
  color: var(--hab-footer-text);
  border-top: 1px solid var(--hab-footer-accent);
  overflow: hidden;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.hab-store-footer *,
.hab-store-footer *::before,
.hab-store-footer *::after {
  box-sizing: border-box;
}

.hab-store-footer a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease, border-color .18s ease, background-color .18s ease;
}

.hab-store-footer a:hover {
  color: #e2b66b;
}

.hab-store-footer a:focus-visible,
.hab-store-footer button:focus-visible,
.hab-store-footer input:focus-visible,
.hab-store-footer select:focus-visible,
.hab-store-footer textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.hab-footer__inner {
  width: min(100%, var(--hab-footer-max-width));
  margin-inline: auto;
  padding-inline: var(--hab-footer-pad-desktop);
}

.hab-footer__newsletter {
  background: linear-gradient(90deg, rgba(71, 33, 22, .72), rgba(34, 14, 10, .82));
  border-bottom: 1px solid var(--hab-footer-accent);
}

.hab-footer__newsletter-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(280px, 1.18fr) minmax(340px, 1.02fr) minmax(220px, .6fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-top: 15px;
  padding-bottom: 15px;
}

.hab-footer__newsletter-copy,
.hab-footer__newsletter-form,
.hab-footer__newsletter-quote {
  min-width: 0;
}

.hab-footer__fallback-form {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.hab-footer__newsletter-form--fallback button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hab-footer__newsletter-form--fallback button span {
  font-size: 14px;
  line-height: 1;
}

.hab-footer__newsletter-quote {
  min-width: 0;
}

.hab-footer__newsletter-heading {
  margin: 0 0 5px;
  color: #ddb269;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.hab-footer__newsletter-copy p {
  margin: 0;
  color: var(--hab-footer-text);
  font-size: 12px;
  line-height: 1.35;
}

.hab-footer__newsletter-form,
.hab-footer__newsletter-form form,
.hab-footer__newsletter-form .form,
.hab-footer__newsletter-form > div {
  width: 100%;
}

.hab-footer__newsletter-form form {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.hab-footer__newsletter-form input[type="email"],
.hab-footer__newsletter-form input[type="text"] {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(213, 173, 104, .46);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: rgba(0, 0, 0, .18);
  color: var(--hab-footer-text);
  font: inherit;
  font-size: 12px;
  box-shadow: none;
}

.hab-footer__newsletter-form input::placeholder {
  color: rgba(242, 238, 230, .7);
  opacity: 1;
}

.hab-footer__newsletter-form button,
.hab-footer__newsletter-form input[type="submit"] {
  flex: 0 0 auto;
  min-width: 145px;
  min-height: 36px;
  margin: 0;
  padding: 8px 20px;
  border: 1px solid #d8a656;
  border-radius: 0 3px 3px 0;
  background: #e8b65f;
  color: #0a0806;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}

.hab-footer__newsletter-form button:hover,
.hab-footer__newsletter-form input[type="submit"]:hover {
  background: #f0c474;
  color: #000;
}

.hab-footer__newsletter-quote {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 2px solid #c99a4e;
  color: #e0b567;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 1.25vw, 18px);
  font-style: italic;
  line-height: 1.25;
}

.hab-footer__newsletter-inner--no-form .hab-footer__newsletter-quote {
  grid-column: 3;
}

.hab-footer__main {
  background: var(--hab-footer-bg);
}

.hab-footer__grid {
  display: grid;
  grid-template-columns: minmax(245px, 1.8fr) repeat(5, minmax(110px, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
  padding-top: 18px;
  padding-bottom: 18px;
}

.hab-footer__brand,
.hab-footer__section {
  min-width: 0;
}

.hab-footer__brand {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.hab-footer__logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.hab-footer__logo-image {
  display: block;
  width: auto;
  max-width: min(100%, var(--hab-footer-logo-width));
  max-height: 98px;
  object-fit: contain;
}

.hab-footer__site-name {
  color: #ddb269;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.15;
}

.hab-footer__heading {
  margin: 0 0 10px;
  color: var(--hab-footer-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: none;
}

.hab-footer__menu,
.hab-footer__markets,
.hab-footer__help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hab-footer__menu li,
.hab-footer__markets li,
.hab-footer__help-list li {
  margin: 0;
  padding: 0;
}

.hab-footer__menu a {
  display: inline-block;
  padding: 1px 0;
  color: var(--hab-footer-text);
  font-size: 11px;
  line-height: 1.28;
}

.hab-footer__menu li + li {
  margin-top: 1px;
}

.hab-footer__markets {
  display: grid;
  gap: 7px;
}

.hab-footer__markets a,
.hab-footer__market-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--hab-footer-text);
  font-size: 11px;
  line-height: 1.25;
}

.hab-footer__market-flag {
  flex: 0 0 auto;
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .15);
}

.hab-footer__currency {
  color: var(--hab-footer-text);
}

.hab-footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 5px;
}

.hab-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--hab-footer-text);
}

.hab-footer__social-link svg,
.hab-footer__help-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hab-footer__help-list {
  display: grid;
  gap: 8px;
}

.hab-footer__help-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--hab-footer-text);
  font-size: 10px;
  line-height: 1.35;
}

.hab-footer__help-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #d3a354;
}

.hab-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hab-footer__bottom {
  border-top: 1px solid var(--hab-footer-accent);
}

.hab-footer__bottom-inner {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hab-footer__copyright {
  order: 1;
  min-width: 0;
  color: var(--hab-footer-text);
  font-size: 10px;
}

.hab-footer__copyright-text,
.hab-footer__developer-credit {
  min-width: 0;
}

.hab-footer__developer-credit {
  order: 2;
  color: var(--hab-footer-text);
  font-size: 10px;
  white-space: nowrap;
}

.hab-footer__developer-credit::before {
  content: "•";
  margin-right: 8px;
  color: var(--hab-footer-accent);
}

.hab-footer__developer-credit a {
  margin-left: 3px;
  color: #dfad57;
  font-weight: 600;
}

.hab-footer__tagline {
  order: 3;
  margin-left: auto;
  color: #dfad57;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-style: italic;
  text-align: right;
}

/* WooCommerce checkout themes can apply late, high-specificity text colors.
   Keep HAB Footer's palette isolated on checkout without changing checkout content. */
body.woocommerce-checkout .hab-store-footer,
body.woocommerce-checkout .hab-store-footer .hab-footer__heading,
body.woocommerce-checkout .hab-store-footer .hab-footer__menu a,
body.woocommerce-checkout .hab-store-footer .hab-footer__markets a,
body.woocommerce-checkout .hab-store-footer .hab-footer__market-text,
body.woocommerce-checkout .hab-store-footer .hab-footer__currency,
body.woocommerce-checkout .hab-store-footer .hab-footer__social-link,
body.woocommerce-checkout .hab-store-footer .hab-footer__help-list a,
body.woocommerce-checkout .hab-store-footer .hab-footer__copyright,
body.woocommerce-checkout .hab-store-footer .hab-footer__copyright a,
body.woocommerce-checkout .hab-store-footer .hab-footer__developer-credit {
  color: var(--hab-footer-text) !important;
}

body.woocommerce-checkout .hab-store-footer .hab-footer__newsletter-copy p {
  color: var(--hab-footer-text) !important;
}

body.woocommerce-checkout .hab-store-footer .hab-footer__newsletter-heading {
  color: #ddb269 !important;
}

body.woocommerce-checkout .hab-store-footer .hab-footer__newsletter-quote,
body.woocommerce-checkout .hab-store-footer .hab-footer__newsletter-quote a,
body.woocommerce-checkout .hab-store-footer .hab-footer__newsletter-quote span,
body.woocommerce-checkout .hab-store-footer .hab-footer__tagline,
body.woocommerce-checkout .hab-store-footer .hab-footer__tagline a,
body.woocommerce-checkout .hab-store-footer .hab-footer__developer-credit a {
  color: #dfad57 !important;
}

body.woocommerce-checkout .hab-store-footer .hab-footer__help-icon {
  color: #d3a354 !important;
}

body.woocommerce-checkout .hab-store-footer .hab-footer__menu a:hover,
body.woocommerce-checkout .hab-store-footer .hab-footer__markets a:hover,
body.woocommerce-checkout .hab-store-footer .hab-footer__help-list a:hover,
body.woocommerce-checkout .hab-store-footer .hab-footer__social-link:hover {
  color: #e2b66b !important;
}

/* Keep support actions clickable on desktop when a floating chat/help widget
   creates an overlapping transparent layer near the footer. This is scoped
   to the Need Help column so the rest of the footer stacking stays unchanged. */
@media (min-width: 768px) {
  .hab-footer__help-section {
    position: relative;
    z-index: 2147483000;
  }

  .hab-footer__help-list,
  .hab-footer__help-list li,
  .hab-footer__help-link {
    position: relative;
    pointer-events: auto !important;
  }

  .hab-footer__help-link {
    z-index: 1;
    cursor: pointer;
  }
}

@media (max-width: 1180px) {
  .hab-footer__grid {
    grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(135px, 1fr));
  }

  .hab-footer__social-section,
  .hab-footer__help-section {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .hab-footer__inner {
    padding-inline: var(--hab-footer-pad-tablet);
  }

  .hab-footer__newsletter-inner {
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
  }

  .hab-footer__newsletter-quote {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0 0 0 18px;
  }

  .hab-footer__newsletter-inner--no-form .hab-footer__newsletter-quote {
    grid-column: 1 / -1;
  }

  .hab-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 36px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hab-footer__brand {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .hab-store-footer {
    font-size: 14px;
  }

  .hab-footer__inner {
    padding-inline: var(--hab-footer-pad-mobile);
  }

  .hab-footer__newsletter-inner,
  .hab-footer__grid,
  .hab-footer__bottom-inner {
    min-width: 0;
  }

  .hab-footer__newsletter-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .hab-store-footer .hab-footer__newsletter-copy {
    display: block !important;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .hab-store-footer .hab-footer__newsletter-heading {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.15;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hab-store-footer .hab-footer__newsletter-copy p {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hab-footer__newsletter-form,
  .hab-footer__newsletter-form form,
  .hab-footer__newsletter-form input[type="email"],
  .hab-footer__newsletter-form input[type="text"],
  .hab-footer__newsletter-form button,
  .hab-footer__newsletter-form input[type="submit"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hab-footer__newsletter-form form {
    display: grid;
    gap: 8px;
  }

  .hab-footer__newsletter-form input[type="email"],
  .hab-footer__newsletter-form input[type="text"],
  .hab-footer__newsletter-form button,
  .hab-footer__newsletter-form input[type="submit"] {
    min-height: 42px;
    border: 1px solid rgba(213, 173, 104, .52);
    border-radius: 3px;
  }

  .hab-footer__newsletter-quote {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 0;
    justify-content: center;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(213, 173, 104, .5);
    font-size: 16px;
    text-align: center;
  }

  .hab-footer__newsletter-inner--no-form .hab-footer__newsletter-quote {
    grid-column: 1 / -1;
  }

  .hab-footer__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 24px;
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .hab-footer__brand {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 0;
    padding-bottom: 6px;
    text-align: center;
  }

  .hab-footer__brand .hab-footer__logo {
    justify-content: center;
    margin-inline: auto;
  }

  .hab-footer__quick-section {
    grid-column: 1 / span 3;
  }

  .hab-footer__customer-section {
    grid-column: 4 / span 3;
  }

  .hab-footer__markets-section {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2px;
  }

  .hab-footer__social-section {
    grid-column: 1 / span 3;
    text-align: center;
    padding-top: 2px;
  }

  .hab-footer__help-section {
    grid-column: 4 / span 3;
    text-align: center;
    padding-top: 2px;
  }

  .hab-footer__markets-section .hab-footer__markets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 18px;
  }

  .hab-footer__help-section .hab-footer__help-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .hab-footer__help-section .hab-footer__help-list li {
    flex: 1 1 0;
    min-width: 0;
    max-width: 78px;
  }

  .hab-footer__markets-section .hab-footer__markets a,
  .hab-footer__markets-section .hab-footer__market-text,
  .hab-footer__help-section .hab-footer__help-list a {
    justify-content: center;
    text-align: center;
  }

  .hab-footer__socials {
    justify-content: center;
  }

  .hab-footer__logo-image {
    max-width: min(100%, var(--hab-footer-logo-width));
    max-height: 92px;
  }

  .hab-footer__heading {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .hab-footer__menu a,
  .hab-footer__markets a,
  .hab-footer__help-list a {
    font-size: 11px;
  }

  .hab-footer__section,
  .hab-footer__section *,
  .hab-footer__copyright,
  .hab-footer__tagline {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hab-footer__markets a,
  .hab-footer__market-text,
  .hab-footer__help-list a {
    max-width: 100%;
  }

  .hab-footer__market-flag {
    width: 19px;
    height: 13px;
  }

  .hab-footer__help-list a {
    flex-direction: column;
    gap: 5px;
  }

  .hab-footer__help-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }

  .hab-footer__bottom-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 7px 14px;
    padding-top: 12px;
    padding-bottom: 13px;
  }

  .hab-footer__copyright {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    width: 100%;
    line-height: 1.35;
    text-align: left;
  }

  .hab-footer__developer-credit {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    display: block;
    width: auto;
    margin: 0;
    justify-self: center;
    text-align: center;
    white-space: normal;
  }

  .hab-footer__developer-credit::before {
    content: none;
  }

  .hab-footer__tagline {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: 100%;
    margin-left: 0;
    text-align: right;
    line-height: 1.3;
  }
}

@media (max-width: 479px) {
  .hab-footer__inner {
    padding-inline: max(14px, var(--hab-footer-pad-mobile));
  }

  .hab-footer__newsletter-inner {
    gap: 13px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hab-store-footer .hab-footer__newsletter-heading {
    font-size: 17px;
    line-height: 1.15;
  }

  .hab-store-footer .hab-footer__newsletter-copy p {
    font-size: 11.5px;
  }

  .hab-footer__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 22px;
    padding-top: 22px;
    padding-bottom: 14px;
  }

  .hab-footer__brand {
    grid-column: 1 / -1;
  }

  .hab-footer__quick-section {
    grid-column: 1 / span 3;
  }

  .hab-footer__customer-section {
    grid-column: 4 / span 3;
  }

  .hab-footer__markets-section {
    grid-column: 1 / -1;
  }

  .hab-footer__social-section {
    grid-column: 1 / span 3;
  }

  .hab-footer__help-section {
    grid-column: 4 / span 3;
  }

  .hab-footer__logo-image {
    max-width: min(100%, var(--hab-footer-logo-width));
    max-height: 84px;
  }

  .hab-footer__heading {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.25;
  }

  .hab-footer__quick-section .hab-footer__heading,
  .hab-footer__customer-section .hab-footer__heading {
    font-size: 11px;
  }

  .hab-footer__menu a {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .hab-footer__markets a,
  .hab-footer__help-list a {
    font-size: 9px;
    line-height: 1.25;
  }

  .hab-footer__markets {
    gap: 8px 14px;
  }

  .hab-footer__markets a,
  .hab-footer__market-text {
    flex-direction: row;
    gap: 6px;
  }

  .hab-footer__socials {
    gap: 10px;
    padding-top: 2px;
  }

  .hab-footer__social-link {
    width: 20px;
    height: 20px;
  }

  .hab-footer__help-list {
    gap: 8px;
  }

  .hab-footer__copyright {
    display: block;
    width: 100%;
  }
}

@media (max-width: 359px) {
  .hab-footer__inner {
    padding-inline: 12px;
  }

  .hab-footer__grid {
    column-gap: 6px;
  }

  .hab-footer__heading {
    font-size: 9px;
  }

  .hab-footer__quick-section .hab-footer__heading,
  .hab-footer__customer-section .hab-footer__heading {
    font-size: 10.5px;
  }

  .hab-footer__markets a,
  .hab-footer__help-list a {
    font-size: 8.5px;
  }
}

@media (forced-colors: active) {
  .hab-store-footer a:focus-visible,
  .hab-store-footer button:focus-visible,
  .hab-store-footer input:focus-visible,
  .hab-store-footer select:focus-visible,
  .hab-store-footer textarea:focus-visible {
    outline: 2px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hab-store-footer a,
  .hab-store-footer button {
    transition: none;
  }
}
