/**
 * Auth chrome footer — shared by login/focused pages and checkout.
 */
:root {
  --ift-auth-brand: #e56a1a;
  --ift-auth-brand-dark: #c75012;
  --ift-auth-muted: #64748b;
  --ift-auth-border: #e2e8f0;
  --ift-auth-surface: #ffffff;
}

body#checkout #footer {
  display: none !important;
}

/* Cart — compact checkout-style footer on mobile only */
body#cart #auth-chrome-footer {
  display: none;
}

@media (max-width: 767.98px) {
  /* Only swap footers when the compact chrome footer is actually in the DOM */
  body#cart:has(#auth-chrome-footer) #footer {
    display: none !important;
  }

  body#cart:has(#auth-chrome-footer) #auth-chrome-footer {
    display: block !important;
    visibility: visible !important;
    margin-top: 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  body#cart:has(#auth-chrome-footer) #main {
    padding-bottom: 0.5rem;
  }
}

.infront-auth-chrome__footer {
  margin-top: 0;
  background: var(--ift-auth-surface);
  border-top: 1px solid var(--ift-auth-border);
}

.infront-auth-chrome__trust--compact {
  padding: 0.875rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--ift-auth-border);
}

.infront-auth-chrome__trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
  text-align: center;
}

.infront-auth-chrome__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.infront-auth-chrome__trust-item .fa {
  color: var(--ift-auth-brand);
  font-size: 0.75rem;
}

.infront-auth-chrome__trust-sep {
  color: #cbd5e1;
  font-weight: 400;
  user-select: none;
}

.infront-auth-chrome__links--inline {
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid var(--ift-auth-border);
}

.infront-auth-chrome__links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.infront-auth-chrome__links-row li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.infront-auth-chrome__links-row li + li::before {
  content: '·';
  margin-right: 0.65rem;
  color: #cbd5e1;
  font-weight: 400;
  user-select: none;
}

.infront-auth-chrome__links-row a {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ift-auth-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.infront-auth-chrome__links-row a:hover {
  color: var(--ift-auth-brand-dark);
  text-decoration: underline;
}

.infront-auth-chrome__copyright {
  margin-top: 0;
  padding: 0.875rem 0 1rem;
  background: #f8fafc;
  border-top: none;
}

.infront-auth-chrome__copyright-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.infront-auth-chrome__copyright-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ift-auth-muted);
}

.infront-auth-chrome__copyright-payments {
  flex-shrink: 0;
}

.infront-auth-chrome__copyright-payments .ift-payment-icons img {
  max-height: 24px;
  width: auto;
}

body#checkout #auth-chrome-footer {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .infront-auth-chrome__trust--compact {
    display: none;
  }

  .infront-auth-chrome__links--inline {
    padding: 0.5rem 0 0.35rem;
    border-bottom: none;
    background: #f8fafc;
  }

  .infront-auth-chrome__links-row {
    gap: 0.15rem 0.4rem;
  }

  .infront-auth-chrome__links-row li:nth-child(2) {
    display: none;
  }

  .infront-auth-chrome__links-row a {
    font-size: 0.6875rem;
  }

  .infront-auth-chrome__links-row li + li::before {
    margin-right: 0.4rem;
  }

  .infront-auth-chrome__copyright {
    padding: 0 0 0.625rem;
    background: #f8fafc;
  }

  .infront-auth-chrome__copyright-inner {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .infront-auth-chrome__copyright-text {
    font-size: 0.625rem;
    line-height: 1.3;
    text-align: center;
  }

  .infront-auth-chrome__copyright-extra {
    display: none;
  }

  .infront-auth-chrome__copyright-payments {
    display: none;
  }

  body#checkout #auth-chrome-footer {
    margin-top: 1rem;
  }
}

@media (max-width: 575px) {
  .infront-auth-chrome__trust-line {
    font-size: 0.75rem;
  }
}
