@import "variables.css";

.hideChatTab #slidecontainer {
  display: none;
}

.LPMcontainer div {
  outline: none;
}
#slidecontainer {
  display: block;
  height: 90px;
  left: -9999px;
  position: fixed;
  top: 200px;
  width: 25px;
  z-index: 999;
  &.active {
    left: 0;
  }
  #chatslide {
    cursor: pointer;
    display: block;
    left: 0;
    position: absolute;
    top: 0;
    z-index: 999;
    #lpchatbutton {
      left: -94px;
      position: relative;
      top: 0;
      z-index: 10;
      a {
        display: block;
        height: 90px;
        width: 94px;
        img {
          display: block;
          height: 90px;
          position: relative;
          width: 94px;
          z-index: 10;
        }
      }
    }
    .clickhere {
      background: url("/siteimages/chat/live-help-tab.png") top right no-repeat;
      cursor: pointer;
      height: 90px;
      left: 0;
      position: absolute;
      text-align: left;
      top: 0;
      width: 25px;
      z-index: 9;
    }
    &.start_out #lpchatbutton {
      left: 0;
    }
    .close {
      cursor: pointer;
      height: 10px;
      position: absolute;
      right: 9px;
      top: 9px;
      width: 10px;
      z-index: 20;
    }
  }
}

.cc-window {
  background: #777;
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: 14px;
  opacity: 1;
  padding: 10px 170px 10px 30px;
  position: fixed;
  overflow: hidden;
  transition: opacity 1s ease;
  z-index: 9999;
  text-align: center;
  .cc-message {
    display: block;
    float: left;
    padding: 0 20px 0 0;
    text-align: left;
    line-height: 30px;
    a {
      color: #fff;
    }
    @media only screen and (max-width: 863px) {
      padding: 0 0 10px 0;
      line-height: 20px;
    }
  }
  .cc-compliance {
    float: right;
    margin: 0 -140px 0 0;
    width: 140px;
    text-align: center;
    .cc-btn {
      background: #fff;
      border: none;
      color: #d61029;
      cursor: pointer;
      display: block;
      padding: 0 10px;
      font-size: 14px;
      font-weight: bold;
      line-height: 30px;
      text-align: center;
      text-decoration: none;
      white-space: nowrap;
    }
    @media only screen and (max-width: 863px) {
      margin: 0 auto;
      width: 100%;
    }
  }
  &.cc-bottom {
    left: 0;
    right: 0;
    bottom: 0;
  }
  &.cc-invisible {
    opacity: 0;
  }
  @media only screen and (max-width: 863px) {
    padding: 15px;
  }
}

@media only screen and (max-width: 863px) {
  #mn_close {
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 9998;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
  }
  html.mn_open {
    overflow: hidden;
    position: relative;
    body {
      height: 100%;
      overflow: hidden;
    }
    #mn_close {
      -webkit-transform: translate(100%, 0);
      transform: translate(100%, 0);
    }
  }
}

body.fluid {
  .fullpage_loading {
    display: none;
    background: rgba(255, 255, 255, 0.6);
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 990;
    .fa {
      color: rgba(80, 80, 80, 0.9);
      display: block;
      font-size: 110px;
      margin: -55px 0 0 -55px;
      position: absolute;
      top: 50%;
      left: 50%;
    }
  }

  #halloween_banner {
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: hidden;
    #halloween_banner_inner {
      background: url("/siteimages/banner/gl-halloween-banner.jpg") no-repeat;
      width: 835px;
      background-position: center;
      display: flex;
      align-items: center;
      column-gap: 20px;
      height: 42px;
      font-family: "Futura PT", sans-serif;
      background-position-x: 100px;
      margin: 0 -100px 0 0;
      @media only screen and (max-width: 863px) {
        background: var(--black);
        justify-content: center;
        margin: 0;
      }
      span {
        font-weight: bold;
        text-decoration: none;
        color: #fca000;
        font-size: 20px;
        margin: 0 0 0 60px;
        @media only screen and (max-width: 863px) {
          margin: 0;
        }
      }
      .halloween_btn {
        height: 34px;
        margin: 10px 0 0 0;
      }
    }
  }

  #mobile_nav {
    display: none;
    @media only screen and (max-width: 863px) {
      background: var(--white);
      display: flex;
      flex-direction: column;
      margin: 0;
      height: 100%;
      width: 80%;
      min-width: 140px;
      max-width: 800px;
      position: fixed;
      z-index: 9999;
      top: 0;
      left: -80%;
      -webkit-transition: -webkit-transform 0.4s ease;
      transition: transform 0.4s ease;
      h4 {
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        line-height: 40px;
        text-align: center;
        color: #eee;
        width: 100%;
        background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.2));
      }
      #mn_logo {
        margin: 20px auto;
      }
      .nav_wrapper {
        padding: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        font-family: "Futura PT", sans-serif;
        transition: -webkit-transform 0.4s ease;
        transition: transform 0.4s ease;
        transition:
          transform 0.4s ease,
          -webkit-transform 0.4s ease;
        -webkit-overflow-scrolling: touch;
        overflow: scroll;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        ul {
          list-style: none;
          display: block;
          margin: 0;
          padding: 0;
          width: 100%;
          height: auto;
          text-align: left;
          li {
            font-size: 16px;
            width: auto;
            padding: 0;
            a {
              color: var(--bright_blue);
              line-height: 44px;
              overflow: hidden;
              padding: 0 5px;
              margin: 0;
              display: flex;
              justify-content: space-between;
              text-decoration: none;
              align-items: center;
            }
            &.chat_now {
              display: none;
              &.active {
                display: block;
              }
            }
          }
          &#product_menu {
            padding: 0 30px;
            width: auto;
            height: 55%;
            overflow-y: scroll;
            li {
              font-size: 27px;
              line-height: 60px;
              padding: 15px 0;
              &:first-child {
                border-top: 1px solid var(--light_grey);
              }
              a {
                i.fa-caret-down:before {
                  content: "\f054";
                }
                &.active {
                  i.fa-caret-down:before {
                    content: "\f078";
                  }
                }
                .small {
                  display: none;
                }
              }
              .sub_menu {
                border-top: 1px solid var(--light_grey);
                display: none;
                max-height: 400px;
                overflow-y: scroll;
                ul {
                  li {
                    border: none;
                    line-height: 32px;
                    padding: 5px 0;
                    a {
                      font-weight: normal;
                      line-height: 32px;
                      font-size: 18px;
                    }
                  }
                }
              }
              &#view_cart {
                display: none;
              }
            }
          }
          &#account_menu {
            background: var(--light_grey);
            text-align: center;
            padding: 10px 0 0 0;
            height: calc(45% - 10px);
            li {
              a {
                padding: 12px 5px;
                line-height: 20px;
                display: block;
                font-size: 21px;
              }
              &.my_account {
                a {
                  background: var(--bright_blue);
                  color: var(--white);
                  margin: 20px 0 15px 0;
                  display: inline-block;
                  width: 275px;
                  border-radius: 30px;
                }
              }
            }
          }
        }
      }
      &.open {
        box-shadow: 0 0 20px -7px rgba(0, 0, 0, 0.5);
        -webkit-transform: translate(100%, 0);
        transform: translate(100%, 0);
      }
    }
  }
  #header {
    height: auto;
    width: 100%;
    position: relative;
    z-index: 10;
    @media only screen and (max-width: 863px) {
      z-index: 999;
    }
    #covid_messaging {
      background: #fff6b2;
      box-sizing: border-box;
      font-size: 14px;
      width: 100%;
      line-height: 20px;
      text-align: center;
      padding: 7px 20px;
      display: none;
      .inner {
        width: 990px;
        margin: 0 auto;
        @media only screen and (max-width: 863px) {
          width: 100%;
        }
        a {
          color: var(--black);
        }
        i.fa-times {
          cursor: pointer;
          float: right;
          font-size: 16px;
          line-height: 20px;
        }
        br {
          display: none;
          @media only screen and (max-width: 863px) {
            display: inline;
          }
        }
      }
    }

    .halloween_banner {
      margin: 0 auto;
      text-indent: -9999px;
      padding: 0;
      line-height: 18px;
      list-style: none;
      margin: 0;
      position: absolute;
      left: 280px;
      top: 0;
      z-index: 30;
      a {
        display: block;
        img {
          display: block;
        }
      }
    }

    #main_bar {
      background: var(--main_bar);
      position: fixed;
      width: 100%;
      border-bottom: 1px solid var(--white);
      .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
        max-width: unset;
        @media only screen and (max-width: 1475px) {
          padding: 0 20px;
        }
        @media only screen and (max-width: 863px) {
          padding: 0 25px 0 20px;
          &::after {
            display: none;
          }
        }
        #mobile_nav_icon {
          display: none;
          @media only screen and (max-width: 863px) {
            display: block;
            width: 30px;
            padding: 8px 0;
            align-self: center;
            order: 1;
            .fa-bars {
              font-size: 32px;
              color: var(--white);
            }
          }
        }
        .view_cart {
          display: none;
          @media only screen and (max-width: 863px) {
            display: block;
            width: 30px;
            padding: 8px 13px;
            align-self: center;
            order: 3;
          }
          a {
            position: relative;
            color: var(--white);
            font-size: 26px;
            .count {
              background: var(--yellow);
              border: 1px solid var(--blue);
              border-radius: 10px;
              color: var(--blue);
              display: block;
              font-size: 12px;
              position: absolute;
              top: 9px;
              right: -10px;
              width: 16px;
              height: 16px;
              line-height: 16px;
              margin: 0;
              text-align: center;
              @media only screen and (max-width: 1475px) {
                margin: 1px 9px 0 0;
              }
              @media only screen and (max-width: 863px) {
                top: -5px;
              }
            }
          }
        }
        .sub_nav {
          display: flex;
          justify-content: space-between;
          list-style: none;
          margin: 0;
          padding: 20px 0 20px 20px;
          position: relative;
          text-align: left;
          width: 50%;
          @media only screen and (max-width: 1475px) {
            width: 60%;
            padding: 15px 0;
          }
          @media screen and (max-height: 769px) {
            width: 60%;
            padding: 10px 0;
          }
          @media only screen and (max-width: 960px) {
            width: 58%;
          }
          @media only screen and (max-width: 863px) {
            display: none;
          }
          li {
            display: inline-block;
            line-height: 15px;
            padding: 0;
            @media only screen and (max-width: 1020px) {
              margin: 0;
            }
            a.top_menu {
              color: var(--white);
              display: block;
              font-size: 20px;
              padding: 15px;
              text-decoration: none;
              @media only screen and (max-width: 1600px) {
                font-size: 18px;
              }
              @media only screen and (max-width: 1475px) {
                font-size: 16px;
                line-height: 20px;
              }
              @media only screen and (max-width: 1200px) {
                font-size: 14px;
                padding: 15px 5px;
              }
              @media screen and (max-height: 769px) {
                font-size: 16px;
                line-height: 20px;
              }
              @media only screen and (max-width: 960px) {
                font-size: 14px;
                padding: 15px 5px;
              }
              &:hover {
                background: var(--blue);
                border-radius: 50px;
              }
              i {
                color: var(--white);
                margin: 0 0 0 10px;
              }
            }
            .sub_menu {
              background: var(--white);
              box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.3);
              box-sizing: border-box;
              display: none;
              left: -30%;
              padding: 0;
              position: absolute;
              top: 100%;
              width: auto;
              z-index: 31;
              text-align: left;
              overflow: hidden;
              max-height: 660px;
              @media only screen and (max-width: 1600px) {
                left: -40%;
              }
              @media only screen and (max-width: 1550px) {
                left: -45%;
              }
              @media only screen and (max-width: 1475px) {
                left: -30%;
              }
              @media only screen and (max-width: 1200px) {
                max-height: 500px;
              }
              @media screen and (max-height: 769px) {
                left: -30%;
              }
              @media only screen and (max-width: 1020px) {
                left: -30%;
              }
              @media only screen and (max-width: 960px) {
                left: -40%;
              }
              .sub_menu_nav {
                padding: 20px;
                border-left: 1px solid rgba(0, 0, 0, 0.1);
                @media only screen and (max-width: 1200px) {
                  padding: 20px 10px;
                }
                h3 {
                  font-size: 24px;
                  line-height: 30px;
                  font-weight: bold;
                  font-family: "Futura PT", sans-serif;
                  white-space: nowrap;
                  @media only screen and (max-width: 1475px) {
                    font-size: 22px;
                  }
                  @media only screen and (max-width: 1200px) {
                    font-size: 20px;
                  }
                  @media screen and (max-height: 769px) {
                    font-size: 22px;
                  }
                }
                ul {
                  list-style: none;
                  margin: 20px 0;
                  &.selected,
                  a:hover {
                    background: #f7f7f7;
                    color: var(--black);
                  }
                  li {
                    font-size: 18px;
                    line-height: 30px;
                    margin: 0;
                    float: none;
                    display: block;
                    width: auto;
                    @media only screen and (max-width: 1475px) {
                      font-size: 16px;
                    }
                    @media only screen and (max-width: 1200px) {
                      font-size: 14px;
                    }
                    @media screen and (max-height: 769px) {
                      font-size: 14px;
                    }
                    a {
                      color: var(--grey3);
                      display: block;
                      margin: 0;
                      padding: 0 10px;
                      text-decoration: none;
                      width: auto;
                      &:hover {
                        background: var(--light_grey);
                        color: var(--black);
                      }
                    }
                    &.active {
                      margin-right: -1px;
                      a {
                        background: var(--grey-3);
                        color: var(--black);
                        border-width: 1px 0 1px 1px;
                        border-color: rgba(0, 0, 0, 0.1);
                        border-style: solid;
                        margin: -1px 0;
                        padding-left: 9px;
                        &:hover {
                          background: var(--light_grey);
                          color: var(--black);
                        }
                      }
                    }
                  }
                  &.text_list,
                  &.dept_list {
                    padding: 0;
                    position: relative;
                    li {
                      a {
                        white-space: nowrap;
                      }
                    }
                  }
                  &.dept_list {
                    @media only screen and (max-width: 1020px) {
                      max-width: 160px;
                    }
                    li {
                      line-height: 50px;
                      padding: 5px 0;
                      a {
                        padding-right: 20px;
                        margin-right: -20px;
                      }
                    }
                  }
                  &.text_list {
                    overflow: auto;
                    height: 570px;
                    @media only screen and (max-width: 1200px) {
                      height: 410px;
                    }
                    @media only screen and (max-width: 1020px) {
                      max-width: 235px;
                    }
                  }
                }
                &.contacts_list,
                &.brand_list,
                &.manu_list,
                &.type_list {
                  background: var(--grey-3);
                  h3 {
                    width: auto;
                  }
                  li {
                    a {
                      white-space: nowrap;
                      @media only screen and (max-width: 1475px) {
                        white-space: unset;
                      }
                    }
                  }
                }
                &.product_list,
                &.manu_product_list,
                &.type_product_list {
                  background: var(--light_blue);
                  h3 {
                    width: auto;
                  }
                }
                &.brand_list,
                &.manu_list,
                &.type_list,
                &.product_list,
                &.manu_product_list,
                &.type_product_list {
                  box-sizing: border-box;
                  display: none;
                  width: auto;
                  ul {
                    overflow-y: auto;
                    overflow-x: hidden;
                    height: 570px;
                    margin: 20px -21px 20px 0;
                    padding: 1px 20px 1px 0;
                    @media only screen and (max-width: 1200px) {
                      height: 410px;
                    }
                    li {
                      &.active {
                        margin-right: -1px;
                        a {
                          background: #eef4fc;
                          color: var(--black);
                          &:hover {
                            background: var(--light_grey);
                            color: var(--black);
                          }
                        }
                      }
                    }
                    &::-webkit-scrollbar {
                    }
                    &::-webkit-scrollbar-track {
                      box-shadow: none;
                      background-color: none;
                    }
                    &::-webkit-scrollbar-thumb {
                      background-color: #666;
                    }
                  }
                }
                &.brand_list,
                &.manu_list,
                &.type_list {
                  ul {
                    li {
                      a {
                        padding-right: 20px;
                        margin-right: -20px;
                      }
                    }
                  }
                }
              }
            }
            &#eyeglasses_menu,
            &#sunglasses_menu {
              .sub_menu {
                padding: 30px;
                column-gap: 50px;
                left: -5%;
                @media only screen and (max-width: 1200px) {
                  left: -25%;
                  right: -25%;
                  max-height: unset;
                }
                h3 {
                  font-size: 24px;
                  line-height: 30px;
                  font-weight: bold;
                  font-family: "Futura PT", sans-serif;
                  white-space: nowrap;
                  @media only screen and (max-width: 1200px) {
                    font-size: 20px;
                  }
                }
                ul {
                  list-style: none;
                  margin: 20px 0;
                  &.selected,
                  a:hover {
                    background: #f7f7f7;
                    color: var(--black);
                  }
                  li {
                    font-size: 18px;
                    line-height: 30px;
                    margin: 0;
                    float: none;
                    display: block;
                    width: auto;
                    @media only screen and (max-width: 1200px) {
                      font-size: 14px;
                    }
                    a {
                      color: var(--grey3);
                      display: block;
                      height: 30px;
                      margin: 0;
                      padding: 0 10px;
                      text-decoration: none;
                      white-space: nowrap;
                      width: auto;
                      &:hover {
                        background: var(--light_grey);
                        color: var(--black);
                      }
                      i.fa {
                        display: none;
                      }
                    }
                  }
                }
              }
              .shop_dept_shapes {
                h3 {
                  white-space: nowrap;
                }
                ul {
                  margin: 0;
                  li {
                    a {
                      padding: 0 0 0 10px;
                    }
                  }
                  &.depts {
                    margin: 0 0 50px 0;
                  }
                }
              }
              .shop_brands {
                ul {
                  display: flex;
                  flex-wrap: wrap;
                  column-gap: 15px;
                  row-gap: 15px;
                  align-items: center;
                  overflow-x: auto;
                  height: calc(100% - 50px);
                  li {
                    flex: 1 1 25%;
                    border: 1px solid var(--grey);
                    border-radius: 4px;
                    a {
                      color: var(--black);
                      font-size: 16px;
                      height: 75px;
                      padding: 10px;
                      display: flex;
                      justify-content: center;
                      align-items: center;
                      @media only screen and (max-width: 1200px) {
                        height: 50px;
                      }
                      img {
                        display: block;
                        width: 100px;
                        margin: 0 auto;
                        @media only screen and (max-width: 1200px) {
                          width: auto;
                        }
                      }
                    }
                    &.see_all {
                      height: 50px;
                      border: none;
                      a {
                        height: 50px;
                        line-height: 50px;
                        padding: 0;
                        justify-content: center;
                        border: 1px solid var(--grey);
                        font-weight: normal;
                        &:hover {
                          box-shadow: none;
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        .right_nav {
          list-style: none;
          margin: 0;
          padding: 0;
          position: relative;
          text-align: left;
          display: flex;
          align-items: center;
          @media only screen and (max-width: 960px) {
            display: flex;
            justify-content: space-between;
          }
          @media only screen and (max-width: 863px) {
            order: 3;
            position: unset;
          }
          li {
            display: inline-block;
            line-height: 15px;
            margin: 0 10px 0 0;
            padding: 0;
            @media only screen and (max-width: 1020px) {
              margin: 0 10px 0 0;
            }
            @media only screen and (max-width: 960px) {
              margin: 0;
            }
            &#view_cart {
              border-left: 1px solid var(--light_grey);
              margin: 0 0 0 30px;
              padding: 0 0 0 30px;
              @media only screen and (max-width: 1475px) {
                margin: 0 0 0 15px;
                padding: 0 0 0 15px;
              }
              @media only screen and (max-width: 1200px) {
                margin: 0 0 0 10px;
                padding: 0 0 0 10px;
              }
              @media screen and (max-height: 769px) {
                margin: 0 0 0 15px;
                padding: 0 0 0 15px;
              }
              @media only screen and (max-width: 1020px) {
                margin: 0 0 0 5px;
                padding: 0 0 0 5px;
              }
              @media only screen and (max-width: 863px) {
                border-left: none;
                padding: 0;
                margin: 0 0 0 15px;
              }
              a {
                color: var(--white);
                display: block;
                padding: 12px 20px 8px 0;
                text-decoration: none;
                height: 30px;
                @media only screen and (max-width: 1020px) {
                  padding: 12px 0 8px 0;
                }
                &.top_menu {
                  span {
                    display: block;
                    float: left;
                    font-weight: 700;
                    height: 30px;
                    line-height: 30px;
                  }
                  .count {
                    background: var(--yellow);
                    border-radius: 10px;
                    color: var(--bright_blue);
                    font-size: 14px;
                    line-height: 19px;
                    margin: 1px 9px 0 0;
                    text-align: center;
                    width: 19px;
                    height: 19px;
                    @media only screen and (max-width: 1020px) {
                      margin: 1px -10px 0 0;
                    }
                  }
                  .fa-cart-shopping {
                    font-size: 30px;
                    @media only screen and (max-width: 863px) {
                      font-size: 25px;
                    }
                  }
                }
              }
            }
          }
        }
        li {
          font-size: var(--font_size2);
          float: left;
          margin: 0;
          padding: 0;
          & > a {
            color: var(--link);
            display: block;
            text-decoration: none;
            padding: 0 10px;
            position: relative;
            line-height: 30px;
            z-index: 30;
            i.fa {
              color: var(--link);
              font-size: 20px;
              line-height: 28px;
            }
            .count {
              background: var(--white);
              border: 1px solid var(--link);
              border-radius: 10px;
              color: var(--red);
              display: block;
              font-size: 11px;
              position: absolute;
              top: 2px;
              right: 0;
              width: 14px;
              height: 14px;
              line-height: 15px;
              margin: 0;
              text-align: center;
            }
          }
          &.login {
            .sign_in {
              background: var(--white);
              border: 1px solid var(--grey-1);
              box-shadow: 0px 3px 18px -3px rgba(0, 0, 0, 0.2);
              display: none;
              font-size: 13px;
              list-style: none;
              margin: 0;
              padding: 10px;
              position: absolute;
              right: 0;
              text-align: left;
              top: 100%;
              z-index: 31;
              ul.form {
                list-style: none;
                margin: 0;
                li {
                  float: none;
                  font-size: 16px;
                  line-height: 20px;
                  margin: 0 0 10px 0;
                  .label {
                    margin: 0 0 2px 0;
                  }
                  .field {
                    flex-direction: column;
                    border: none;
                    input {
                      background: var(--white);
                      border: 1px solid #aaa;
                      height: 40px;
                      border-radius: 0;
                      line-height: 40px;
                      padding: 0 0 0 10px;
                      width: 100%;
                    }
                    .displayerror {
                      background: #ffe6e6;
                      box-sizing: border-box;
                      display: none;
                      border-radius: 0;
                      font-size: 13px;
                      line-height: 20px;
                      margin: 5px 0 0 0;
                      padding: 5px 10px;
                      width: 100%;
                    }
                  }
                }
              }
              a#header_login {
                color: var(--white);
              }
            }
          }
          &.login,
          &.my_account {
            position: relative;
            margin: 0 40px 0 0;
            @media only screen and (max-width: 1475px) {
              margin: 0 10px 0 0;
            }
            @media only screen and (max-width: 863px) {
              display: none;
            }
            a {
              display: inline-block;
              color: var(--light_grey);
              padding: 15px;
              font-size: 20px;
              white-space: nowrap;
              @media only screen and (max-width: 1600px) {
                font-size: 18px;
              }
              @media only screen and (max-width: 1475px) {
                font-size: 16px;
              }
              @media only screen and (max-width: 1200px) {
                font-size: 15px;
              }
              @media screen and (max-height: 769px) {
                font-size: 16px;
              }
              @media only screen and (max-width: 1020px) {
                padding: 15px 3px;
              }
              @media only screen and (max-width: 960px) {
                font-size: 14px;
              }
              .fa {
                display: none;
              }
            }
            &:hover {
              background: var(--blue);
              border-radius: 50px;
            }
            .welcome {
              display: none;
            }
            &:hover ul {
              display: block;
            }
          }
          &.view_cart {
            a {
              padding: 0 0 0 15px;
              i.fa {
                display: block;
                float: left;
                font-size: 23px;
                margin: 0 10px 0 0;
              }
              .label {
                display: block;
                line-height: 30px;
                float: left;
              }
              .count {
                right: 28px;
              }
              &::after {
                content: "\0020";
                clear: both;
                display: block;
                float: none;
                overflow: hidden;
                visibility: hidden;
                width: 0;
                height: 0;
                margin: 0;
                padding: 0;
              }
            }
          }
          &.favorites {
            .fa-heart {
              font-weight: normal;
            }
          }
          &.phone {
            a {
              display: inline;
              text-decoration: none;
              padding: 0;
              margin: 0;
            }
          }
        }
        &::after {
          display: none;
        }
      }
      #logo {
        float: left;
        margin: 20px 0;
        text-indent: -9999px;
        width: auto;
        height: auto;
        @media screen and (max-height: 769px) {
          margin: 12px 0;
        }
        @media only screen and (max-width: 960px) {
          width: 20%;
        }
        @media only screen and (max-width: 863px) {
          order: 2;
          margin: 10px 0;
          width: 50%;
        }
        a {
          background: url("/siteimages/logos/svg/gl-logo-white.svg") 0 center
            no-repeat;
          background-size: contain;
          display: block;
          height: 49px;
          width: 279px;
          text-align: left;
          text-indent: -9999px;
          @media only screen and (max-width: 1475px) {
            width: 200px;
          }
          @media only screen and (max-width: 1200px) {
            width: 150px;
          }
          @media only screen and (max-height: 769px) {
            width: 200px;
          }
          @media only screen and (max-width: 960px) {
            width: 150px;
          }
          @media only screen and (max-width: 863px) {
            height: 35px;
            width: 195px;
          }
        }
      }

      #main_nav {
        float: left;
        ul {
          list-style: none;
          margin: 5px 0;
          li {
            display: block;
            float: left;
            line-height: 40px;
            position: relative;
            padding: 0;
            width: 170px;
            a {
              border-radius: 4px;
              display: block;
              color: var(--main_nav);
              font-size: var(--font_size3);
              padding: 0 10px;
              text-decoration: none;
              transition: 0.3s ease-out;
              &:hover {
                background: color-mix(in srgb, var(--white) 15%, transparent);
                transition: 0.3s ease-out;
              }
            }
            &.active {
              font-weight: bold;
              a {
                background: color-mix(in srgb, #fff 20%, transparent);
              }
            }
          }
          &::after {
            content: "\0020";
            clear: both;
            display: block;
            float: none;
            overflow: hidden;
            visibility: hidden;
            width: 0;
            height: 0;
            margin: 0;
            padding: 0;
          }
        }
      }
      #searchli {
        position: relative;
        margin: 0;
        @media only screen and (max-width: 863px) {
          position: unset;
        }
      }
      .fa-magnifying-glass {
        background: var(--yellow);
        border-radius: 50px;
        width: 56px;
        height: 56px;
        display: inline-block;
        cursor: pointer;
        @media only screen and (max-width: 1200px) {
          width: 46px;
          height: 46px;
        }
        @media screen and (max-height: 769px) {
          width: 46px;
          height: 46px;
        }
        @media only screen and (max-width: 863px) {
          width: 38px;
          height: 38px;
        }
        &::before {
          display: inline-block;
          margin: 18px 0 0 18px;
          font-size: 20px;
          color: var(--blue);
          @media only screen and (max-width: 1200px) {
            margin: 13px 0 0 13px;
          }
          @media screen and (max-height: 769px) {
            margin: 13px 0 0 13px;
          }
          @media only screen and (max-width: 863px) {
            font-size: 16px;
            margin: 11px 0 0 10px;
          }
        }
      }
      #search {
        /* Stays display:none when shut. The open/close expansion is animated in header-nav.js
           rather than here: it runs on height plus the vertical padding and margin at once, and
           those have to be read off the element at runtime because each breakpoint below gives
           the panel a different margin. */
        display: none;
        background: var(--white);
        border: 1px solid var(--grey);
        box-shadow: 0px 3px 18px -3px rgba(0, 0, 0, 0.2);
        margin: 20px 0 0 0;
        padding: 10px;
        position: absolute;
        right: 0;
        z-index: 20;
        min-width: 700px;
        @media only screen and (max-width: 1475px) {
          margin: 15px 0 0 0;
        }
        @media only screen and (max-width: 1200px) {
          margin: 20px 0 0 0;
        }
        @media screen and (max-height: 769px) {
          margin: 20px 0 0 0;
        }
        @media only screen and (max-width: 863px) {
          display: none;
          width: 100%;
          right: unset;
          top: 35px;
          left: 50%;
          transform: translate(-50%);
          min-width: unset;
        }
        #terms {
          position: relative;
          @media only screen and (max-width: 863px) {
            margin: 0 10px;
          }
          .fa-search {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: var(--grey1);
          }
        }
        input {
          &.search_text {
            background: var(--light_grey);
            border: none;
            font-size: var(--font_size3);
            height: 50px;
            line-height: 50px;
            padding: 0 0 0 10px;
            width: 100%;
          }
          &#submit {
            display: none;
          }
        }
        #product_suggest ul li .product_img img {
          display: block;
        }
        #auto_search {
          background: var(--white);
          display: none;
          padding: 20px 0;
          text-align: left;
          top: 100%;
          width: 100%;
          margin: 0 auto;
          white-space: nowrap;
          z-index: 999;
          .suggest {
            display: none;
            width: 100%;
            max-height: 600px;
            vertical-align: top;
            @media only screen and (max-width: 1020px) {
              width: 235px;
            }
            @media only screen and (max-width: 863px) {
              width: 100%;
            }
            h4 {
              border-bottom: 1px solid var(--grey);
              font-size: var(--font_size3);
              font-weight: bold;
              color: var(--text2);
              margin: 0 0 10px 0;
              padding: 0 0 5px 0;
              text-align: center;
              text-transform: capitalize;
              @media only screen and (max-width: 863px) {
                display: none;
              }
            }
            ul {
              list-style: none;
              margin: 0 0 10px 0;
              max-height: 320px;
              overflow-y: auto;
              @media only screen and (max-width: 863px) {
                max-height: unset;
                overflow-y: unset;
                margin: 0;
              }
              .product {
                font-size: var(--font_size2);
                line-height: 16px;
                padding: 5px 0;
                position: relative;
                float: none;
                display: block;
                a {
                  color: var(--text2);
                  display: block;
                  text-decoration: none;
                  b {
                    font-weight: bold;
                  }
                }
                .rebate_available {
                  display: none;
                  line-height: 8px;
                  padding: 7px 0 9px 0;
                  height: 16px;
                  width: 32px;
                  white-space: normal;
                  text-align: center;
                  margin: -16px 0 0 0;
                  position: absolute;
                  top: 50%;
                  left: 0;
                  .rebate_text {
                    color: var(--white);
                    font-size: 7px;
                    font-family: Tahoma, Geneva, sans-serif;
                    -webkit-font-smoothing: antialiased;
                    -moz-osx-font-smoothing: grayscale;
                  }
                }
                &::after {
                  content: "\0020";
                  clear: both;
                  display: block;
                  float: none;
                  overflow: hidden;
                  visibility: hidden;
                  width: 0;
                  height: 0;
                  margin: 0;
                  padding: 0;
                }
                &:hover {
                  background: var(--grey-3);
                }
              }
              &.brands_suggest {
                margin: 0;
                li {
                  display: block;
                  margin: 0;
                  a {
                    color: var(--text2);
                    display: block;
                    text-decoration: none;
                    padding: 0 10px;
                    line-height: 30px;
                    b {
                      font-weight: bold;
                    }
                    &:hover {
                      background: var(--grey-3);
                    }
                  }
                  &.all_brands {
                    float: right;
                    a {
                      color: var(--link);
                      text-decoration: underline;
                      text-transform: none;
                    }
                  }
                }
                &:after {
                  content: "\0020";
                  clear: both;
                  display: block;
                  float: none;
                  overflow: hidden;
                  visibility: hidden;
                  width: 0;
                  height: 0;
                  margin: 0;
                  padding: 0;
                }
                &.active {
                  display: block;
                }
              }
            }
            .view_all {
              text-align: center;
              @media only screen and (max-width: 863px) {
                display: none;
              }
              .btn.color1 {
                background: none;
                box-shadow: none;
                color: var(--bright_blue);
                font-size: var(--font_size2);
                padding: 0 10px;
                text-decoration: underline;
              }
            }
            &.active {
              display: inline-block;
            }
          }
          #search_results {
            display: flex;
            @media only screen and (max-width: 863px) {
              flex-direction: column;
              align-items: center;
              overflow-y: scroll;
              height: 50vh;
              padding: 0 20px;
            }
            br {
              display: none;
            }
          }
          #search_suggest {
            margin: 0 0 10px 0;
            ul {
              list-style: none;
              margin: 0;
              li {
                border-bottom: 1px solid #eee;
                cursor: pointer;
                position: relative;
                padding: 5px 10px;
                height: auto;
                min-height: 50px;
                line-height: 22px;
                .fa-search {
                  background: var(--grey);
                  border-radius: 25px;
                  color: #fff;
                  display: block;
                  font-size: 16px;
                  float: left;
                  padding: 0;
                  margin: 0 15px;
                  width: 50px;
                  height: 50px;
                  line-height: 50px;
                  text-align: center;
                }
                .suggestion {
                  color: var(--grey3);
                  display: block;
                  float: left;
                  font-weight: normal;
                  font-size: 15px;
                  margin: 15px 0 0 0;
                  padding: 0;
                }
                &.selected {
                  background: #def;
                }
                &:after {
                  content: "\0020";
                  clear: both;
                  display: block;
                  float: none;
                  overflow: hidden;
                  visibility: hidden;
                  width: 0;
                  height: 0;
                  margin: 0;
                  padding: 0;
                }
              }
            }
          }

          #product_suggest {
            ul {
              list-style: none;
              margin: 0;
              li {
                border-bottom: 1px solid #eee;
                cursor: pointer;
                position: relative;
                padding: 5px 10px;
                height: auto;
                min-height: 50px;
                line-height: 22px;
                .product_img {
                  background: #fff;
                  border: 1px solid var(--grey);
                  padding: 0;
                  line-height: 50px;
                  height: 50px;
                  text-align: center;
                  width: 70px;
                  img {
                    max-width: 100%;
                    max-height: 100%;
                    position: relative;
                    top: 50%;
                    transform: translateY(-50%);
                    -webkit-transform: translateY(-50%);
                    vertical-align: middle;
                  }
                }
                h3 {
                  color: var(--grey3);
                  font-weight: normal;
                  font-size: 15px;
                  left: 90px;
                  line-height: 20px;
                  margin: 0;
                  padding: 0;
                  position: absolute;
                  top: 50%;
                  width: 350px;
                  transform: translateY(-50%);
                  -webkit-transform: translateY(-50%);
                }
                p {
                  display: none;
                }
                &.selected {
                  background: #def;
                }
                &:last-child {
                  border: 0;
                }
              }
            }
          }

          #view_all_results,
          #view_all_results_bottom {
            ul {
              list-style: none;
              margin: 0;
              li {
                cursor: pointer;
                b {
                  font-weight: normal;
                }
              }
            }
          }
          #view_all_results {
            float: right;
            ul {
              li {
                font-size: 15px;
                line-height: 18px;
                height: 18px;
                padding: 10px;
                &.selected {
                  background: #def;
                }
              }
            }
          }
          #view_all_results_bottom {
            margin: 0;
            ul {
              li {
                border-top: 1px solid var(--grey);
                font-size: 15px;
                line-height: 40px;
                padding: 5px 0;
                text-align: center;
                &.selected {
                  background: #def;
                }
              }
            }
          }
        }
      }
    }
  }
  .development {
    padding-bottom: 50px;
  }
}

#session-status {
  background: var(--grey3);
  border-bottom: 1px solid #000;
  color: var(--white);
  height: 48px;
  font-size: 12px;
  line-height: 24px;
  .signed_in_as,
  .pricing_strategy {
    float: left;
  }
  .csr {
    float: right;
  }
}

/* ---- de-nested concatenation rules (flattened for native CSS) ---- */
body.fluid #header #main_bar #search #auto_search .suggest ul .product_img,
body.fluid #header #main_bar #search #auto_search .suggest ul .product_name {
  display: table-cell;
  height: 40px;
  padding: 0 5px;
  vertical-align: middle;
}

body.fluid #header #main_bar #search #auto_search .suggest ul .product_img {
  width: 80px;
  text-align: center;
  img {
    display: block;
    width: auto;
    max-width: 80px;
    height: auto;
    max-height: 40px;
    margin: 0 auto;
    @media only screen and (max-width: 863px) {
      max-height: 80px;
      max-width: unset;
    }
  }
}

body.fluid #header #main_bar #search #auto_search .suggest ul .product_name {
  white-space: normal;
}

@media only screen and (max-width: 863px) {
  body.fluid #mobile_nav .sub_menu.is-open {
    display: block;
  }
}

@media only screen and (min-width: 864px) {
  body.fluid #header #main_bar .sub_nav li .sub_menu.is-open {
    display: flex;
  }

  body.fluid #header #main_bar .sub_nav li .sub_menu .contact-menu-panel {
    display: none;
  }

  body.fluid #header #main_bar .sub_nav li .sub_menu .sub_menu_nav.contact-menu-panel.is-active,
  body.fluid #header #main_bar .sub_nav li .sub_menu .sub_menu_nav.contact-product-panel.is-active {
    display: block;
  }
}

body.fluid #header #main_bar #searchli .search_toggle {
  appearance: none;
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 56px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 56px;
}

body.fluid #header #main_bar #searchli .search_toggle .fa-magnifying-glass {
  background: transparent;
  border-radius: 0;
  display: block;
  height: auto;
  width: auto;
}

body.fluid #header #main_bar #searchli .search_toggle .fa-magnifying-glass::before {
  margin: 0;
}

body.fluid #header #main_bar #searchli .search_toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media only screen and (max-width: 1200px), screen and (max-height: 769px) {
  body.fluid #header #main_bar #searchli .search_toggle {
    height: 46px;
    width: 46px;
  }
}

@media only screen and (max-width: 863px) {
  body.fluid #header #main_bar #searchli .search_toggle {
    height: 38px;
    width: 38px;
  }
}

/* The mobile nav's expandable rows (Contact Lenses / Eyeglasses / Sunglasses) are <button>, not
   <a>, because they open an accordion panel instead of navigating - but every rule dressing these
   rows above is written against `li a`, so the buttons matched none of it and fell through to the
   site's global button chrome, rendering as blue pills among the plain link rows. Give them the
   same treatment the sibling anchors get and strip the chrome back off. */
@media only screen and (max-width: 863px) {
  body.fluid #mobile_nav .nav_wrapper ul li button.top_menu {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--bright_blue);
    cursor: pointer;
    display: flex;
    font: inherit;
    height: auto;
    justify-content: space-between;
    line-height: 44px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0 5px;
    text-align: left;
    text-decoration: none;
    width: 100%;
  }

  body.fluid #mobile_nav .nav_wrapper ul li button.top_menu:hover {
    background: none;
    box-shadow: none;
  }

  /* Accordion panels. Two things going on:

     The opener earlier in this file is `#mobile_nav .sub_menu.is-open` - one id - while the rule
     closing these panels is `#mobile_nav .nav_wrapper ul#product_menu li .sub_menu`, which
     carries two. The base won, so display:none stuck and the panels never opened however many
     classes the script toggled. These re-state both states at that rule's own depth.

     And they slide rather than snap, matching the side panel's `transform 0.4s ease`. Animating
     max-height to the 400px the panel is capped at anyway - it scrolls internally past that - so
     there is nothing to measure at runtime. A list shorter than 400px stops at its own height and
     simply finishes early, which is the usual trade for this technique.

     visibility rather than the hidden attribute for the closed state: `hidden` is display:none,
     which cancels the transition outright. It flips instantly on open and is delayed to the end
     of the transition on close, so the links leave the a11y tree and tab order once shut. */
  body.fluid #mobile_nav .nav_wrapper ul#product_menu li .sub_menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, visibility 0s linear 0.4s;
    visibility: hidden;
  }

  body.fluid #mobile_nav .nav_wrapper ul#product_menu li .sub_menu.is-open {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.4s ease, visibility 0s;
    visibility: visible;
  }

  /* The hamburger is a <button>, so it arrives carrying the site's global button chrome - its own
     height, which pushes the icon below the centre line of the bar, and a hover background and
     shadow, which is the stray outline that appears on mouseover. The rule that sizes and orders
     it earlier in this file never resets any of that. Focus styling is deliberately left alone. */
  body.fluid #header #main_bar .container #mobile_nav_icon {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    line-height: 1;
    min-width: 0;
  }

  body.fluid #header #main_bar .container #mobile_nav_icon:hover {
    background: none;
    box-shadow: none;
  }

  /* The logo is a background image positioned `0 center` - flush left in its own box. That reads
     as centred on desktop where #logo is a narrow column at the far left, but at this breakpoint
     #logo becomes width:50% and sits between the hamburger and the cart, so the image hangs off
     to the left of the bar instead of centring in it. */
  body.fluid #header #main_bar .container #logo a {
    background-position: center;
  }
}
