/* @colophon */
.colophon {
  position: relative;
  z-index: 10;
  background-color: $blue-dianne;
  font-family: $biryani;
  max-width: 100%;
  overflow: hidden;
  opacity: 1.0;
  transition: opacity 0.25s;
  @include poly-padding--large;

  &__inner {
    width: 100%;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  &__widgets {
    padding: 0 $large-spacing;
    display: flex;
    flex-wrap: wrap;
    // background: silver;
    width: 100%;
    flex: 1;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        a {
          color: white;
          font-weight: 300;
          line-height: 1.4;
          display: block;
          padding: 0.5em 0;

          &:hover,
          &:focus {
            color: white;
            text-decoration: underline;
          }
        }
      }
    }
  }

  &__link-block {
    flex-basis: 190px;
    min-width: 190px;
    margin: $base-spacing;
    margin-left: 0;
    flex: 1;
    padding-right: 1rem;

    ul {
      // margin-top: auto;
    }

    & > div {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    &:last-child {
      a {
        font-weight: 400;
      }
    }

    .custom-html-widget {
      color: white;
      font-weight: 300;
      font-size: 88%;
      line-height: 2;
      letter-spacing: 1px;

      h1, h2, h3, h4, h5, h6, li, td, p {
        @extend .custom-html-widget;
        font-size: 100%;

        em {
          font-style: italic;
        }
      }
    }
  }

  &__heading {
      font-size: 14px;
      font-weight: normal;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.64;
      letter-spacing: 1px;
      color: #ffffff;
      text-transform: uppercase;
      font-family: 'Biryani', sans-serif !important;

      &::after {
        content: "";
        display: block;
        width: 83px;
        height: 1px;
        background-color: #006fee;
        margin: $base-spacing 0;
      }
  }


  &__brand-block {
    padding: $base-spacing;
    background: white;
    flex-basis: 256px;
    width: 256px;
    margin-bottom: $large-spacing;

    .ipsen-logo {
      @include poly-margin-bottom;
      text-align: center;
    
      svg {
        max-width: 180px;
        max-height: 54px;
      }
    }

    ul {
      list-style: none;
      padding: 0;
      max-width: 140px;
      margin: 0 auto;

      &.colophon__brand-block-social {
        display: flex;
        justify-content: space-around;

        li {  
          .browser--edge & {
            max-width: 40px;
          }
        }
      }

      li {
        flex: 1;
        text-align: center;
        line-height: 1.2;

        a {
          font-weight: 900;
          color: #006fee;
          margin-bottom: $small-spacing;
          display: block;
        }

        svg {
          fill: #006fee;
          max-height: 40px;
        }
      }
    }

    &-copyright {
      text-align: center;
      font-family: "Quicksand", sans-serif;
      @include poly-margin-top--small;
    }

    @media (max-width: 620px) {
      width: calc(100vw + 3rem);
      max-width: none;
      flex: unset;
      margin-top: -3rem;
      margin-left: -3rem;
      margin-right: -3rem;
    }
  }
}

.legally-required {
  @include poly-padding--small;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
}

body.isi-panel-docked {
  .colophon {
    opacity: 0;
  }
}

