/* ── Spareza — Footer Styles ── */

.footer-placeholder {
  background: var(--neutral-1000);
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--neutral-400);
  font-size: 12px;
}
.footer-placeholder a {
  color: var(--primary-400);
}
.footer-placeholder a:hover {
  text-decoration: underline;
}
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  margin-top: 52px;
  padding: 52px 0 0;
  flex-shrink: 0;
}
.footer-benefits {
  max-width: 1280px;
  margin: -24px auto 42px;
  padding: 0 24px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.footer-benefits > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-benefits strong,
.footer-benefits small {
  display: block;
}
.footer-benefits strong {
  font-size: 13px;
  color: #111928;
}
.footer-benefits small {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}
.footer-benefit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #e8f0fe;
  color: var(--primary-500);
  font-weight: 900;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-about p {
  font-size: 13px;
  margin: 12px 0 16px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.footer-logo img {
  display: block;
  width: 150px;
  height: auto;
}
.footer-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-mark svg {
  width: 14px;
  height: 14px;
}
.footer-logo span {
  font-size: 17px;
  font-weight: 900;
  color: #111928;
  letter-spacing: -0.3px;
}
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.footer-hours-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #111928;
  margin-bottom: 14px;
}
.footer-heading-chevron {
  display: none;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.12s;
}
.footer-col ul li a:hover {
  color: #111928;
}

/* Footer uses the same restrained brand blue as storefront actions. */
.footer-placeholder a,
.footer-benefit-link b,
.footer-benefit-link:hover strong,
.footer-contact > a > span:first-child,
.footer-contact-link,
.footer-col ul li a:hover,
.footer-track-link {
  color: var(--action-blue, #4b74b5) !important;
}
.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9ca3af;
  margin-top: 20px;
  margin-bottom: 8px;
}
.footer-carriers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.pay-icon {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.3px;
}

/* Footer accent hierarchy: labels and text actions use the bright brand blue. */
.site-footer .footer-heading,
.site-footer .footer-contact-link,
.site-footer .footer-track-link,
.site-footer .footer-benefit-link b,
.site-footer .footer-col ul li a:hover {
  color: #2864e8 !important;
}
.site-footer .footer-contact > a > span:first-child,
.site-footer .footer-benefit-icon {
  background: #eaf1fb;
  color: #2864e8 !important;
}

/* One footer placement on every storefront page. Page styles must not switch
   between an outer white gap and an inner footer background. */
.site-footer {
  margin-top: 0;
  padding-top: 64px;
  background: linear-gradient(180deg, #f9fafb 0, #f4f7fb 64px, #f4f7fb 100%);
}

@media (max-width: 700px) {
  .site-footer {
    padding-top: 42px;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 36px;
    padding-top: 30px;
  }
  .footer-benefits {
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 0 auto 28px;
    padding: 0 18px 26px;
  }
  .footer-benefits > div {
    padding: 0 4px;
  }
  .footer-inner {
    display: block;
    padding: 0 18px 28px;
  }
  .footer-about {
    padding-bottom: 24px;
  }
  .footer-about p {
    max-width: 420px;
  }
  .footer-col {
    border-top: 1px solid #e5e7eb;
  }
  .footer-heading {
    min-height: 54px;
    margin: 0;
  }
  .footer-heading-chevron {
    display: block;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .footer-heading[aria-expanded="true"] .footer-heading-chevron {
    transform: rotate(225deg);
  }
  .footer-panel {
    padding-bottom: 20px;
  }
  .site-footer.footer-js .footer-panel {
    display: none;
  }
  .site-footer.footer-js .footer-panel.open {
    display: block;
  }
  .footer-col-label {
    margin-top: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px;
    text-align: left;
    line-height: 1.55;
  }
}
.carrier-icon {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  color: #374151;
  letter-spacing: 0.5px;
}

/* Spareza footer — unified with the 1420px storefront layout. */
.site-footer {
  margin-top: 64px;
  padding: 20px 0 0;
  border-top: 1px solid #dce4ee;
  background: #f4f7fb;
  color: #344258;
}
.footer-benefits {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto 24px;
  padding: 0 28px;
  border: 0;
}
.footer-benefits > div,
.footer-benefit-link {
  min-height: 86px;
  padding: 15px 18px;
  border: 1px solid #d8e2ee;
  border-left-width: 0;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.footer-benefits > div:first-child {
  border-left-width: 1px;
  border-radius: 16px 0 0 16px;
}
.footer-benefit-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 0 16px 16px 0;
}
.footer-benefit-link b {
  margin-left: auto;
  color: #2a66eb;
  font-size: 18px;
  font-weight: 500;
}
.footer-benefit-link:hover {
  background: #f8fbff;
}
.footer-benefit-link:hover strong {
  color: #2a66eb;
}
.footer-benefit-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 11px;
  background: #eaf1fb;
  color: #2a66eb;
  font-weight: 600;
}
.footer-benefits strong {
  color: #253349;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.footer-benefits small {
  margin-top: 4px;
  color: #596a80;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.footer-inner {
  box-sizing: border-box;
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(150px, 1fr));
  gap: 52px;
  width: 100%;
  max-width: 1420px;
  margin-bottom: 18px;
  padding: 26px 30px;
  border: 1px solid #d8e2ee;
  border-radius: 20px;
  background: #fff;
}
.footer-logo img {
  width: 198px;
}
.footer-about p {
  max-width: 330px;
  margin: 15px 0 12px;
  color: #66758a;
  font-size: 13px;
  line-height: 1.65;
}
.footer-email {
  display: inline-flex;
  margin-bottom: 18px;
  color: #2a66eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.footer-email:hover {
  text-decoration: underline;
}
.footer-contact {
  display: grid;
  gap: 7px;
  margin: 0 0 9px;
}
.footer-contact > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 9px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #344258;
  text-decoration: none;
}
.footer-contact > a:hover {
  border-color: #b9cce5;
  background: #f4f8fd;
}
.footer-contact > a > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eaf1fb;
  color: #2a66eb;
}
.footer-contact small,
.footer-contact strong {
  display: block;
}
.footer-contact small {
  margin-bottom: 2px;
  color: #718096;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-contact strong {
  overflow-wrap: anywhere;
  color: #344258;
  font-size: 12px;
  font-weight: 600;
}
.footer-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0 3px;
  color: #2a66eb;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.footer-contact-link:hover {
  text-decoration: underline;
}
.footer-support-hours {
  display: grid;
  gap: 4px;
  max-width: 220px;
  margin: 11px 2px 10px;
  color: #53647a;
  font-size: 12px;
  line-height: 1.45;
}
.footer-support-hours > strong {
  margin-bottom: 2px;
  color: #344258;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-support-hours span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.footer-support-hours b {
  color: #46566d;
  font-weight: 600;
}
.footer-payments {
  gap: 7px;
}
.pay-icon,
.carrier-icon {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-color: #d3dde9;
  border-radius: 7px;
  background: #fff;
  color: #445268;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
}
.pay-icon-wide {
  padding-right: 11px;
  padding-left: 11px;
}
.footer-heading {
  margin-bottom: 16px;
  color: #253349;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.065em;
}
.footer-col ul {
  gap: 10px;
}
.footer-col ul li a {
  color: #53647a;
  font-size: 13px;
}
.footer-col ul li a:hover {
  color: #2a66eb;
}
.footer-track-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 180px;
  color: #2a66eb !important;
  font-weight: 650;
}
.footer-track-link span {
  font-size: 16px;
}
.footer-col-label {
  margin-top: 22px;
  color: #8a96a7;
  font-weight: 650;
}
.footer-carriers {
  gap: 7px;
}
.footer-bottom {
  box-sizing: border-box;
  width: 100%;
  max-width: 1420px;
  padding: 18px 28px;
  border-color: #dce4ee;
  color: #8491a3;
  font-size: 11px;
}

@media (max-width: 900px) {
  .footer-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .footer-benefits > div,
  .footer-benefit-link,
  .footer-benefits > div:first-child {
    border-width: 1px;
    border-radius: 13px;
  }
  .footer-inner {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 42px;
    padding-top: 18px;
  }
  .footer-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0 12px;
  }
  .footer-benefits > div,
  .footer-benefits > div:first-child,
  .footer-benefits > div:last-child,
  .footer-benefit-link {
    min-height: 70px;
    padding: 13px 15px;
    border-width: 1px;
    border-radius: 13px;
  }
  .footer-inner {
    margin: 0 12px 18px;
    width: calc(100% - 24px);
    padding: 18px;
  }
  .footer-logo img {
    width: 164px;
  }
  .footer-about {
    padding-bottom: 25px;
  }
  .footer-heading {
    font-size: 11px;
  }
  .footer-bottom {
    padding: 17px 18px;
  }
}

/* Final canonical footer placement. The unique component id prevents legacy
   page styles from changing the shared footer on individual routes. */
body #site-footer {
  margin-top: 0;
  padding-top: 64px;
  background: linear-gradient(180deg, #f9fafb 0, #f4f7fb 64px, #f4f7fb 100%);
}
@media (max-width: 700px) {
  body #site-footer {
    margin-top: 0;
    padding-top: 42px;
  }
}
