/**
 * Maker's Nook — site footer (full shopping shell).
 *
 * @package WoodmartChild
 */

:root {
  --mn-ft-ember-500: #c15a38;
  --mn-ft-ember-600: #b2452d;
  --mn-ft-fynbos-300: #c2cfae;
  --mn-ft-fynbos-900: #3d4634;
  --mn-ft-shell-0: #ffffff;
  --mn-ft-font: "Manrope", system-ui, -apple-system, sans-serif;
  --mn-ft-mono: "Martian Mono", ui-monospace, monospace;
  --mn-ft-r-md: 12px;
  --mn-ft-r-full: 999px;
}

.mn-ft {
  background: var(--mn-ft-fynbos-900);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mn-ft-font);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

.mn-ft a {
  text-decoration: none;
  color: inherit;
}

.mn-ft svg {
  display: block;
}

.mn-ft button {
  font-family: inherit;
  cursor: pointer;
}

.mn-ft__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Newsletter */
.mn-ft__sub {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mn-ft__sub-g {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
}

.mn-ft__sub h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.mn-ft__sub-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  max-width: 46ch;
}

.mn-ft__form {
  display: flex;
  gap: 10px;
}

.mn-ft__form input[type="email"] {
  flex: 1;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--mn-ft-r-md);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mn-ft-font);
  font-size: 15px;
  color: #fff;
  box-shadow: none !important;
}

.mn-ft__form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.mn-ft__form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.mn-ft__form button {
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--mn-ft-r-md);
  background: var(--mn-ft-ember-600) !important;
  background-color: var(--mn-ft-ember-600) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: background-color 0.18s;
  box-shadow: none !important;
}

.mn-ft__form button:hover {
  background: var(--mn-ft-ember-500) !important;
  background-color: var(--mn-ft-ember-500) !important;
  color: #fff !important;
}

.mn-ft__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.mn-ft__flash {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.mn-ft__flash--ok {
  color: var(--mn-ft-fynbos-300);
}

.mn-ft__flash--err {
  color: #f7ded5;
}

/* Main grid */
.mn-ft__main {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.mn-ft__brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.mn-ft__brand-logo img,
.mn-ft__brand-logo svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mn-ft__brand-logo span {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.mn-ft__brand-blurb {
  margin: 0 0 24px;
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34ch;
  line-height: 1.7;
}

.mn-ft__social {
  display: flex;
  gap: 9px;
}

.mn-ft__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--mn-ft-r-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.mn-ft__social a:hover {
  background: #fff;
  border-color: #fff;
  color: var(--mn-ft-fynbos-900);
}

.mn-ft__social svg {
  width: 17px;
  height: 17px;
}

.mn-ft__col h3 {
  margin: 0 0 18px;
  font-family: var(--mn-ft-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mn-ft-fynbos-300);
  font-weight: 400;
}

.mn-ft__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mn-ft__col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.16s;
}

.mn-ft__col a:hover {
  color: #fff;
}

/* Bottom bar */
.mn-ft__bot {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mn-ft__bot-l {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.mn-ft__bot-l a {
  color: rgba(255, 255, 255, 0.6);
}

.mn-ft__bot-l a:hover {
  color: #fff;
}

.mn-ft__pay {
  display: flex;
  gap: 7px;
  align-items: center;
}

.mn-ft__pay span {
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3d4634;
  white-space: nowrap;
}

.mn-ft__pay .mn-ft__visa {
  color: #1a1f71;
}

.mn-ft__pay .mn-ft__pf {
  color: #00a3e0;
}

.mn-ft__pay .mn-ft__mc {
  padding: 0 8px;
}

.mn-ft__pay .mn-ft__mc i {
  width: 14px;
  height: 14px;
  border-radius: var(--mn-ft-r-full);
  display: block;
}

.mn-ft__pay .mn-ft__mc i:first-child {
  background: #eb001b;
}

.mn-ft__pay .mn-ft__mc i:last-child {
  background: #f79e1b;
  margin-left: -5px;
  opacity: 0.9;
}

.mn-ft__made {
  width: 100%;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 8px;
}

@media (max-width: 1000px) {
  .mn-ft__sub-g {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mn-ft__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding: 48px 0 40px;
  }

  .mn-ft__brand {
    grid-column: 1 / -1;
  }

  .mn-ft__wrap {
    padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .mn-ft__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mn-ft__sub {
    padding: 40px 0;
  }

  .mn-ft__sub h2 {
    font-size: 22px;
  }

  .mn-ft__form {
    flex-direction: column;
  }

  .mn-ft__form button {
    width: 100%;
  }

  .mn-ft__bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Hide legacy WoodMart / Elementor footers when MN footer is active */
body.mn-shell-full .wd-prefooter,
body.mn-shell-full footer.wd-footer,
body.mn-shell-full .footer-container:not(.mn-ft),
body.mn-shell-full .wd-copyrights {
  display: none !important;
}
