:root {
  --rouge-footer-bg: #f5f5f7;
  --rouge-footer-text: #6e6e73;
  --rouge-footer-heading: #1d1d1f;
  --rouge-footer-link: #424245;
  --rouge-footer-link-hover: #1d1d1f;
  --rouge-footer-line: #d2d2d7;
  --rouge-footer-accent: #922c43;
}

.rouge-footer {
  background: var(--rouge-footer-bg);
  color: var(--rouge-footer-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.rouge-footer,
.rouge-footer * {
  box-sizing: border-box;
}

.rouge-footer a {
  color: var(--rouge-footer-link);
  text-decoration: none;
}

.rouge-footer a:hover {
  color: var(--rouge-footer-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rouge-footer-shell {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto;
  padding: 28px 0 20px;
}

.rouge-footer-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--rouge-footer-line);
}

.rouge-footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px;
  padding: 0 0 18px;
}

.rouge-footer-column {
  min-width: 0;
}

.rouge-footer-column h2 {
  margin: 0 0 9px;
  color: var(--rouge-footer-heading);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.rouge-footer-column .rouge-footer-subheading {
  margin-top: 24px;
}

.rouge-footer-column a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  color: var(--rouge-footer-link);
  font-size: 12px;
  line-height: 1.35;
}

.rouge-footer-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 2px;
  color: #6e6e73;
  font-size: 11px;
}

.rouge-footer-help p {
  margin: 0;
}

.rouge-footer-help a {
  color: #3b6ca8;
}

.rouge-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto auto minmax(0, .8fr);
  align-items: center;
  gap: 16px;
  color: #77777c;
  font-size: 11px;
}

.rouge-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.rouge-footer-location {
  text-align: right;
}

@media (max-width: 900px) {
  .rouge-footer-shell {
    width: min(calc(100% - 36px), 980px);
  }

  .rouge-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 36px;
  }

  .rouge-footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .rouge-footer-social-inline {
    justify-content: flex-start;
  }

  .rouge-footer-legal {
    justify-content: flex-end;
  }

  .rouge-footer-location {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .rouge-footer-shell {
    width: min(calc(100% - 28px), 980px);
    padding-top: 22px;
  }

  .rouge-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .rouge-footer-column h2 {
    font-size: 12px;
  }

  .rouge-footer-column a {
    font-size: 12px;
  }

  .rouge-footer-help {
    display: block;
  }

  .rouge-footer-help p + p {
    margin-top: 7px;
  }

  .rouge-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rouge-footer-social-inline,
  .rouge-footer-legal {
    justify-content: flex-start;
  }

  .rouge-footer-location {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .rouge-footer {
    font-size: 13px;
  }

  .rouge-footer-column a {
    padding: 3px 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .rouge-footer-help,
  .rouge-footer-bottom {
    font-size: 12px;
  }

  .rouge-footer-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rouge-footer-column {
    padding: 15px 0;
    border-bottom: 1px solid var(--rouge-footer-line);
  }

  .rouge-footer-column:first-child {
    padding-top: 0;
  }

  .rouge-footer-column:last-child {
    border-bottom: 0;
  }

  .rouge-footer-column .rouge-footer-subheading {
    margin-top: 20px;
  }
}

.rouge-footer-social-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.rouge-footer-social-inline a {
  color: var(--rouge-footer-link);
}

.rouge-footer-social-inline span {
  color: #b0b0b5;
}

/* Mobile footer accordion */
.rouge-footer-group + .rouge-footer-group {
  margin-top: 24px;
}

.rouge-footer-toggle {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rouge-footer-heading);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  appearance: none;
  pointer-events: none;
}

.rouge-footer-toggle-icon {
  display: none;
}

@media (max-width: 767px) {
  .rouge-footer-columns {
    display: block;
    padding-bottom: 18px;
  }

  .rouge-footer-column {
    padding: 0;
    border: 0;
  }

  .rouge-footer-column:first-child,
  .rouge-footer-column:last-child {
    padding: 0;
    border: 0;
  }

  .rouge-footer-group,
  .rouge-footer-group + .rouge-footer-group {
    margin: 0;
    border-bottom: 1px solid var(--rouge-footer-line);
  }

  .rouge-footer-group:first-child {
    border-top: 1px solid var(--rouge-footer-line);
  }

  .rouge-footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    margin: 0;
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    pointer-events: auto;
  }

  .rouge-footer-toggle-icon {
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    transition: transform 180ms ease;
  }

  .rouge-footer-toggle-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .rouge-footer-toggle[aria-expanded="true"] .rouge-footer-toggle-icon {
    transform: rotate(180deg);
  }

  .rouge-footer-panel {
    padding: 0 0 12px 12px;
  }

  .rouge-footer-panel[hidden] {
    display: none;
  }

  .rouge-footer-column a {
    width: 100%;
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
  }
}
