/* Compact five-column footer matching the approved store reference. */
body.rw-site .rw-site-footer {
  background: var(--rw-color-surface);
  border-top: 1px solid var(--rw-color-border);
  color: var(--rw-color-muted);
  margin-top: 0;
}

body.rw-site .rw-site-footer .rw-footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  grid-template-columns: repeat(4, minmax(125px, 1fr)) minmax(220px, 1.35fr);
  padding-block: clamp(54px, 6vw, 82px);
}

body.rw-site .rw-site-footer .rw-footer-column {
  min-width: 0;
}

body.rw-site .rw-site-footer .rw-footer-title {
  color: var(--rw-color-heading);
  font-family: var(--rw-font-body);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.075em;
  line-height: 1.25;
  margin: 0 0 17px;
  text-transform: uppercase;
  white-space: normal;
}

body.rw-site .rw-site-footer .rw-footer-title--social {
  margin-top: 30px;
}

body.rw-site .rw-site-footer .rw-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.rw-site .rw-site-footer .rw-footer-menu li {
  margin: 0;
  padding: 0;
}

body.rw-site .rw-site-footer .rw-footer-menu .sub-menu,
body.rw-site .rw-site-footer .rw-footer-menu .menu-item-home {
  display: none;
}

body.rw-site .rw-site-footer .rw-footer-menu a,
body.rw-site .rw-site-footer .rw-footer-email,
body.rw-site .rw-site-footer .rw-social-link {
  color: var(--rw-color-muted);
  font-size: 12px;
  line-height: 1.75;
  text-decoration: none;
}

body.rw-site .rw-site-footer .rw-footer-menu a:hover,
body.rw-site .rw-site-footer .rw-footer-email:hover,
body.rw-site .rw-site-footer .rw-social-link:hover {
  color: var(--rw-color-text);
}

body.rw-site .rw-site-footer .rw-footer-email {
  display: inline-block;
  margin-top: 14px;
}

body.rw-site .rw-site-footer .rw-payment-icons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-height: 42px;
}

body.rw-site .rw-site-footer .rw-payment-icons > span {
  align-items: center;
  color: var(--rw-color-text);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

body.rw-site .rw-site-footer .rw-payment--paypal {
  color: #173b72;
  font-style: italic;
}

body.rw-site .rw-site-footer .rw-payment--mastercard {
  gap: 0;
}

body.rw-site .rw-site-footer .rw-payment--mastercard i {
  background: #eb001b;
  border-radius: 50%;
  display: block;
  height: 22px;
  width: 22px;
}

body.rw-site .rw-site-footer .rw-payment--mastercard i + i {
  background: #f79e1b;
  margin-left: -7px;
  opacity: 0.9;
}

body.rw-site .rw-site-footer .rw-social-link {
  align-items: center;
  color: var(--rw-color-text);
  display: inline-flex;
  gap: 9px;
}

body.rw-site .rw-site-footer .rw-social-link svg {
  height: 19px;
  width: 19px;
}

body.rw-site .rw-site-footer .rw-footer-bottom {
  border-top: 1px solid var(--rw-color-border);
}

body.rw-site .rw-site-footer .rw-footer-bottom__inner {
  align-items: center;
  color: var(--rw-color-muted);
  display: flex;
  font-size: 10px;
  justify-content: flex-start;
  min-height: 58px;
}

@media (max-width: 1180px) {
  body.rw-site .rw-site-footer .rw-footer-grid {
    gap: 44px 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.rw-site .rw-site-footer .rw-footer-payments {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  body.rw-site .rw-site-footer .rw-footer-grid {
    gap: 38px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 48px;
  }

  body.rw-site .rw-site-footer .rw-footer-payments {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  body.rw-site .rw-site-footer .rw-footer-grid {
    grid-template-columns: 1fr;
  }

  body.rw-site .rw-site-footer .rw-footer-payments {
    grid-column: auto;
  }
}


/* Version 1.2.3: enlarged uploaded payment logos. */
body.rw-site .rw-site-footer .rw-payment-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
}

body.rw-site .rw-site-footer .rw-payment-logo img {
  display: block;
  height: 36px;
  max-height: 36px;
  max-width: 93px;
  object-fit: contain;
  width: auto;
}

body.rw-site .rw-site-footer .rw-payment-logo--paypal img {
  max-width: 90px;
}

body.rw-site .rw-site-footer .rw-payment-logo--visa img {
  max-width: 72px;
}

body.rw-site .rw-site-footer .rw-payment-logo--apple-pay img {
  max-width: 72px;
}

body.rw-site .rw-site-footer .rw-payment-logo--google-pay img {
  max-width: 81px;
}

body.rw-site .rw-site-footer .rw-payment--mastercard {
  align-items: center;
  display: inline-flex;
  height: 42px;
}

/* v1.7.1 — keep the footer balanced when legal pages are not published yet. */
@media (min-width: 1181px) {
  body.rw-site .rw-site-footer .rw-footer-grid--has-legal {
    grid-template-columns: repeat(4, minmax(125px, 1fr)) minmax(250px, 1.45fr);
  }

  body.rw-site .rw-site-footer .rw-footer-grid--no-legal {
    grid-template-columns:
      minmax(150px, 0.9fr)
      minmax(210px, 1.15fr)
      minmax(150px, 0.9fr)
      minmax(300px, 1.45fr);
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  body.rw-site .rw-site-footer .rw-footer-grid--no-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.rw-site .rw-site-footer .rw-footer-grid--no-legal .rw-footer-payments {
    grid-column: auto;
  }
}
