@import "settings.colors";

@import "mixins/settings.fonts";
@import "mixins/tools.functions";

.c-menu-panel {
  height: 100%;
  background-color: $color-grey-800;
}
.c-menu-panel__close-button {
  text-align: right;
}
.c-menu-panel__body {
  height: calc(100% - #{rem(50)}); // 50px for footer links
  padding: rem(20);
  overflow-x: hidden;
  overflow-y: scroll;
  // sass-lint:disable no-vendor-prefixes, no-misspelled-properties
  // Momentum touch scrolling for iOS (non-standard feature)
  -webkit-overflow-scrolling: touch;
  // sass-lint:enable no-vendor-prefixes, no-misspelled-properties
}
.c-menu-panel__page {
  margin: 0 auto;
  .c-search-box {
    margin-bottom: rem(20);
  }
}
.c-menu-panel__pane,
.c-menu-panel__sub-pane {
  margin-bottom: rem(20);
}
.c-menu-panel__heading {
  margin-top: 0;
  margin-bottom: rem(10);
  @include font-gm-sans-bold;
  color: $color-grey-300;
  font-size: rem(12);
  letter-spacing: rem(1);
  text-transform: uppercase;
}
.c-menu-panel__text {
  @include font-gm-sans;
  font-size: rem(16);
  line-height: line-height(16, 19);
  letter-spacing: rem(0.5);
  color: $color-white;
}
.c-menu-panel__quick-links {
  margin: 0 0 rem(20) 0;
  padding: 0;
  list-style-type: none;
}
.c-menu-panel__quick-link-item {
  margin-right: rem(18);
  padding-bottom: rem(12);
  display: inline-block;
}
.c-menu-panel__quick-link {
  @include font-gm-sans;
  font-size: rem(14);
  line-height: 1;
  letter-spacing: rem(0.4);
  color: $color-white;
  display: block;
  padding: rem(10) 0;
  &:hover,
  &:focus {
    color: $color-grey-300;
  }
  &:active {
    color: $color-grey-600;
  }
}
.c-menu-panel__footer {
  height: rem(50);
  background-color: $color-grey-900;
}
.c-menu-panel__footer-links {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-menu-panel__footer-link {
  @include font-gm-sans-bold;
  font-size: rem(12);
  padding: 0 rem(10);
  color: $color-white;
  letter-spacing: rem(1);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  display: block;
  &:hover,
  &:focus {
    text-decoration: underline;
  }
  &:active {
    color: $color-grey-300;
    text-decoration: underline;
  }
}
