/*
Footer
==========================================
Defines the styles for the storefront footer and its components.

Contains the footer columns, the navigation elements and the vat notice/logo at the bottom of the page.

It contains the viewport specific styles inside media queries.

The footer element sizes are defined with the unitize mixin.
*/

.footer-main {
  background: @gray-light;
  border-top: 0 none;
  margin-top: 3em;
  
  .footer--bottom {
    text-align: left;
    display: flex;
    flex-flow: column;
    .unitize(20, 16, padding-top);
    .unitize(20, 16, padding-bottom);
    @media (min-width: @tabletViewportWidth) {
      flex-flow: row;
    }
  }
}

.footer--vat-info {
  flex: 1 1 auto;
  align-self: center;
  @media (min-width: @tabletViewportWidth) {
    order: 3;
  }
  
  .vat-info--text {
    @media (min-width: @tabletViewportWidth) {
      text-align: right;
      margin-bottom: 0;
    }
  }
}

.footer--copyright {
  @media (min-width: @tabletViewportWidth) {
    order: 2;
    text-align: inherit;
  }
  text-align: center;
  flex: 1 1 auto;
  align-self: center;
  
  .copyright--text {
    margin-bottom: 0;
  }
  a {
    white-space: nowrap;
  }
}

.footer--socialmedia {
  order: -1;
  align-self: center;
  margin-bottom: 1rem;
  @media (min-width: @tabletViewportWidth) {
    order: 3;
    align-self: flex-end;
    margin-bottom: inherit;
  }
}

.socialmedia--list {
  list-style: none;
}

.footer--logo {
  
  @media (min-width: @tabletViewportWidth) {
    order: 1;
    .unitize(margin-right, 24);
  }
  flex: 0 1 auto;
  align-self: center;
  
  p {
    margin-bottom: 0;
  }
  
  .logo--link {
    
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    
    img {
      height: 2rem;
      .unitize(height, 24);
    }
  }
  
}
