:host {
  align-items: center;
  display: flex;
  flex-flow: row;
  justify-content: center;
  margin: 0 32px;
  padding: 0;
}

.hy-site-header {
  // ul - menu items first level and panels that consist of menu items second level and shortcut items per panel.
  &__menu-desktop-container {
    align-items: center;
    display: flex;
    flex-flow: row;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;

    // First level menu items
    .desktop-menu-link {
      background-color: transparent;
      border: none;
      color: var(--brand-main-nearly-black);
      cursor: pointer;
      font-family: var(--main-font-family);

      @include breakpoint($extrawide) {
        @include font-size(14px, 14px);
        @include font-weight($bold);

        align-items: center;
        border-top: 0 none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        letter-spacing: -0.6px;
        //padding: 10px 8px;
        padding: 0 7px;
        text-transform: uppercase;
      }

      @include breakpoint($xlarge) {
        @include font-size(16px, 16px);
        letter-spacing: -0.7px;
        //padding: 10px;
        padding: 0 9px;
      }

      // Underline if link is in active trail.
      &--is-active-trail {
        @include breakpoint($extrawide) {
          //border-bottom: 4px solid var(--brand-main-nearly-black);
          //padding-bottom: 8px;
        }

        @include breakpoint($xlarge) {
          //padding-bottom: 12px;
        }
      }

      hy-icon {
        //justify-content: center;
        svg {
          height: 5.63px;
          width: 8px;
          //height: 7.03px;
          //  width: 10px;
        }
      }

      &__heading__icon {
        display: inline-block;
        padding-left: 3px;
        @include breakpoint($xlarge) {
          padding-left: 4px;
        }
      }

      // On hover: change background and show heading icon.
      &--is-active {
        //background-color: var(--grayscale-background-box);
        //padding: 35px 10px;
        position: relative;

        .desktop-menu-link__heading__icon {
          //bottom: 0;
          //display: block;
          //left: 0;
          //position: absolute;
          //width: 100%;

          hy-icon {
            //justify-content: center;
            transform: rotateX(180deg);
            svg {
              //padding: 8px 0;
            }
          }
        }
      }
    }

    // Panel with second level menu items and shortcuts.
    .hy-desktop-menu-panel {
      display: none;

      &--is-active {
        background-color: var(--grayscale-white);
        display: flex;
        flex-direction: row;
        opacity: 1;
        position: absolute;
        left: 0;
        padding-left: 300px;
        padding-bottom: 28px;
        width: 100%;
        z-index: 510;
      }

      &__panel-toggle {
        background-color: transparent;
        border: none;
        position: absolute;
        right: 10px;
        top: 10px;

        &__label {
          @include font-size(18px, 22px);
          @include font-weight($bold);
          color: var(--grayscale-black);
          display: flex;
          font-family: var(--main-font-family);
          letter-spacing: -0.56px;
          margin-bottom: 18px;
          text-transform: uppercase;
          &__title {
            padding-right: 5px;
          }
        }
      }

      &__desktop-menu {
        display: flex;
        //position: relative;

        &__menu-items {
          //@todo check max-with in Specs
          min-width: 450px;
          max-width: 550px;
        }

        // first level link inside panel
        &__first-level-menu-item {
          @include font-weight($bold);
          //align-items: center;
          color: var(--brand-main-nearly-black);
          display: flex;
          //flex-direction: row;
          font-family: var(--main-font-family);
          text-decoration: none;
          width: 100%;

          @include breakpoint($extrawide) {
            @include font-size(24px, 32px);
            align-items: flex-start;
            background-color: var(--grayscale-background-box);
            flex-direction: column;
            letter-spacing: -0.75px;
            margin-bottom: 4px;
            padding: 17px 32px 12px 32px;
            position: relative;
            text-transform: none;
          }
          @include breakpoint($fullhd) {
            @include font-size(26px, 32px);
            letter-spacing: -0.81px;
            margin-bottom: 6px;
            padding-top: 19px;
          }

          .label {
            border: none;
            margin-left: 14px;
          }
          .description {
            @include font-size(16px, 24px);
            @include font-weight($semibold);
            color: var(--grayscale-dark);
            letter-spacing: 0;
            margin-left: 14px;
            margin-bottom: 28px;
            margin-top: 8px;
          }

          span.heading-icon {
            position: absolute;
            top: 12px;
            left: -6px;
            @include breakpoint($fullhd) {
              top: 27px;
            }
            svg {
              background-color: var(--brand-main-light);
              fill: var(--grayscale-white);
              padding: 8px;
            }
          }
        }

        // menu item links
        &__second-level-menu {
          background-color: var(--grayscale-background-box);
          list-style: none;
          margin: 0;
          padding: 0;

          li {
            a {
              @include font-weight($bold);
              align-items: center;
              color: var(--brand-main-nearly-black);
              display: flex;
              flex-direction: row;
              font-family: var(--main-font-family);
              text-decoration: none;
              width: 100%;

              @include breakpoint($extrawide) {
                @include font-size(15px, 22px);
                align-items: center;
                flex-direction: row;
                letter-spacing: -0.47px;
                padding-left: 24px;
                padding-right: 48px;
                text-transform: none;
              }

              @include breakpoint($fullhd) {
                @include font-size(18px, 22px);
                letter-spacing: -0.56px;
              }

              &:focus {
                outline: solid 2px var(--additional-yellow);
                outline-offset: -2px;
              }

              .label {
                @include breakpoint($extrawide) {
                  border: none;
                  margin-left: 12px;
                  padding-top: 12px;
                  padding-bottom: 12px;
                }
              }

              span.heading-icon {
                svg {
                  fill: var(--brand-main-light);
                  @include breakpoint($extrawide) {
                    padding: 1px 0;
                  }
                }
              }
            }
          }
        }
      }
    }

    // Shortcuts
    .shortcuts-panel {
      position: absolute;
      left: 0; // override in js
      list-style: none;
      min-width: 350px;
      max-width: 400px;
      //margin: 0 48px;
      padding: 0 48px;
      top: 0;

      &__title {
        @include font-size(18px, 22px);
        @include font-weight($bold);
        color: var(--grayscale-black);
        font-family: var(--main-font-family);
        letter-spacing: -0.56px;
        margin-bottom: 18px;
        text-transform: uppercase;
      }

      &__shortcut-item {
        border-bottom: 1px solid var(--grayscale-medium-dark);
        &__first {
          border-top: 1px solid var(--grayscale-medium-dark);
        }

        a {
          @include font-size(16px, 22px);
          @include font-weight($semibold);
          color: var(--grayscale-black);
          display: flex;
          flex-direction: row;
          font-family: var(--main-font-family);
          justify-content: space-between;
          letter-spacing: -0.5px;
          padding: 19px 0;
          text-decoration: none;

          .icon {
            padding-left: 24px;
            svg {
              padding: 4px;
            }
          }
        }
      }
    }
  }
}