@layer block {

  /* stylelint-disable linebreak-style */
  footer {
    margin-top: 20px;
  }

  .hlx-back-to-top {
    display: block;
    background: #fff;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 60%);
    cursor: pointer;
    margin-right: -20px;
    z-index: 1;
    margin-top: -20px;
    position: absolute;
    right: 50%;
  }

  .hlx-back-to-top button {
    height: 100%;
    width: 100%;
    background: url('../../icons/back-top.svg') no-repeat center 8px;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
  }

  @media (min-width: 600px) {
    .hlx-back-to-top {
      right: 5%;
    }
  }

  /* copyright section */
  .hlx-copyright>div {
    @media (min-width: 600px) {
      display: flex;
      justify-content: center;
      gap: 2rem;
    }
  }

  /* Policy links/buttons */
  .hlx-copyright>div>div+div {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;

    @media (min-width: 600px) {
      justify-content: flex-start;
    }
  }

  /* Hide Onetrust default cookie button */
  #ot-sdk-btn-floating {
    display: none !important;
  }

  /* keep brand styling for OneTrust toggle button */
  button#ot-sdk-btn.ot-sdk-show-settings,
  button#ot-sdk-btn.optanon-show-settings {
    background: transparent !important;
    border: none;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    margin: 0;
    padding: 0 .01em;
    font-family: var(--body-font-family);
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--clr-black);
    border-radius: 0;
  }

  button#ot-sdk-btn.ot-sdk-show-settings:hover,
  button#ot-sdk-btn.ot-sdk-show-settings:focus {
    text-decoration: underline;
    color: var(--clr-black);
  }

  button#ot-sdk-btn.ot-sdk-show-settings::after {
    content: '';
    background: url('../../icons/privacy-opitions-footer-svg-2023.svg') center/contain no-repeat;
    height: 1.4rem;
    aspect-ratio: 2/1;
    margin: 0 0 -0.32em 0.4em;
    display: inline-block;
  }

  .hlx-copyright div>button#ot-sdk-btn.ot-sdk-show-settings {
    padding: 0 !important;
    color: var(--text-color) !important;
    border: 0 none !important;
    text-transform: initial !important;
  }

  /* on/off toggle */
  #onetrust-pc-sdk label.ot-switch {
    width: 5.3rem;
  }

  #onetrust-pc-sdk span.ot-switch-nob::after {
    content: 'OFF';
    position: relative;
    left: 24px;
    top: 0;
    color: #888;
    font-size: 0.75em;
  }

  #onetrust-pc-sdk .ot-tgl input:checked+label.ot-switch span.ot-switch-nob::after {
    content: 'ON';
    left: 0.35em;
    color: #000;
    font-size: 0.8em;
  }

  #onetrust-pc-sdk .ot-tgl input+.ot-switch span.ot-switch-nob::before {
    transform: translate(1px);
  }

  #onetrust-pc-sdk .ot-tgl input:checked+.ot-switch span.ot-switch-nob::before {
    transform: translate(28px);
  }

  .page-footer .footer.content .copyright-text.short p a {
    margin-inline: 1rem 0;
  }

  /* MF rewards */
  @media (min-width: 768px) {
    .footer-wrapper {
      margin-block-start: 5rem;
    }

    .section.footer-links-container.rewards-footer-container {
      display: grid;
      place-content: center;
      grid-template-columns: 60% 40%;
      max-width: 1280px;
      margin-inline: auto;
      padding-inline: 20px;
      padding-bottom: 3rem;
    }
  }

  @media (min-width: 1024px) {
    .section.footer-links-container.rewards-footer-container {
      grid-template-columns: 70% 30%;
    }
  }
}
