pricefox-header {
  display: grid;
  grid-template-columns: auto auto 2rem;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 3.5rem;
  padding: 0 5%;
  background: var(--pricefox-background-color);
  box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.10);
  @media (min-width: 993px ) {
    height: 5rem;
  }
  @media (min-width: 1441px ) {
    grid-template-columns: auto auto 10.75rem;
  }

  /*hides submenus, "X" and the orange labels*/

  pricefox-submenu, #exit-menu, .clicked, .hovered {
    display: none;
  }

  /*opens up the menu in mobile and changes the burger-menu icon into the "X" icon*/

  #toggle-menu:checked {
    + label #burger-menu {
      display: none;
    }

    + label #exit-menu {
      display: block;
    }

    ~ nav {
      display: block;
    }
  }

  /*hides the nav items in mobile by default*/

  #toggle-menu:not(:checked) {
    @media (max-width: 992px) {
      ~ nav {
        display: none;
      }
    }
  }

  > #toggle-menu-button {
    width: 1.5rem;
    padding: 0;
    @media (min-width: 993px) {
      display: none;
    }

    > img {
      width: 23px;
    }
  }

  > #home {
    > img {
      width: 8rem;
      @media (min-width: 993px) and (max-width: 1440px) {
        width: 7.5rem;
      }
      @media (min-width: 1441px) {
        width: 10.75rem;
      }
    }
  }

  > nav {
    position: fixed;
    top: 3.5rem;
    left: 0;
    background: var(--pricefox-background-color);
    @media (min-width: 993px) {
      display: flex;
      align-items: center;
      position: static;
      height: 100%;
    }

    > ul {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-evenly;
      gap: 0;
      list-style-type: none;
      width: 100%;
      padding: 0;
      margin: 0;
      box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.25);

      @media (min-width: 993px) {
        flex-direction: row;
        align-items: center;
        box-shadow: none;
        height: 100%;
      }

      @media (min-width: 993px) and (max-width: 1440px) {
        gap: 1.5rem;
        padding: 0 1rem 0 0.63rem;
      }
      @media (min-width: 1441px) {
        flex-direction: row;
        align-items: center;
        gap: 2.25rem;
        padding-right: 2.25rem;
      }

      > li {
        @media (max-width: 992px) {
          overflow: visible;
          /*display the orange version of a label when it's clicked and also display its submenu*/
          > input[type="radio"]:checked ~ label {
            > p {
              color: var(--warm-orange-500);
            }

            &.default {
              display: none;
            }

            &.clicked, + pricefox-submenu {
              display: flex;
              min-height: 0;
            }
          }
        }
        @media (min-width: 993px) {
          display: flex;
          align-items: center;
          height: 100%;
          /*the hover is on the li instead of the label so the user doesn't lose
          the submenu before hovering into it*/
          &:hover {
            /*display the orange version of a label when it's hovered and also display its submenu*/

            > label {
              > p {
                color: var(--warm-orange-500);
              }

              &.hovered {
                display: flex;
              }

              &.default {
                display: none;
              }
            }

            > pricefox-submenu {
              display: flex;
            }
          }
        }

        > label {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 0.63rem;
          border-top: 1px solid #8D8E9F;
          width: 100vw;
          padding: 0.5rem 5%;
          @media (min-width: 993px) {
            flex-direction: row;
            width: auto;
            padding: 0;
            border: none;
          }

          > img {
            width: 1rem;
            @media (min-width: 993px) {
              width: 0.75rem;
            }
          }
        }

        > a {
          display: flex;
          align-items: center;
          border-top: 1px solid #8D8E9F;
          width: 100vw;
          padding: 0.5rem 5%;
          gap: 0.25rem;
          @media (min-width: 993px) {
            width: auto;
            padding: 0;
            border: none;

            &:hover {
              > p {
                color: var(--warm-orange-500);
              }
            }
          }

          > new-chip {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0.25rem 0.5rem;
            border-radius: 0.5rem;
            background: var(--petrol-blue-50);

            > p {
              margin: 0;
            }
          }
        }

        > pricefox-submenu {
          flex-direction: column;
          padding: 0 5% 1.25rem;
          border-top: 1px solid #8D8E9F;
          background: var(--pricefox-background-color);
          max-height: 70vh;
          overflow-y: hidden;
          @media (min-width: 993px) {
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
            gap: 3rem;
            width: 100%;
            height: 14rem;
            border: none;
            box-shadow: inset 0 0.25rem 0.25rem var(--gray-100), inset 0 -0.25rem 0.25rem var(--gray-100);
            position: absolute;
            top: 5rem;
            left: 0;
            &:hover {
              display: flex;
            }
          }
          @media (min-width: 993px) and (max-width: 1440px) {
            padding: 2rem 10% 1.25rem;
          }

          @media (min-width: 1441px) {
            padding: 2rem 20% 1.25rem;
          }

          > cta {
            /*we use flex:1 here and flex:3 in tne ul below so that the cta always
            takes up the same portion of the screen and that the submenu lists begin
            in the same position next to it across all submenus (desktop only)*/
            flex: 1;
            @media (max-width: 992px) {
              display: none;
            }

            > cta-text {
              font-size: 1.5rem;
              font-weight: 700;
              line-height: 1.17;
            }

            p {
              margin: 0 0 0.75rem;
              font-weight: 500;
            }

            > a {
              padding: 0.75rem 2rem;
              background: var(--warm-orange-500);
              font-size: 0.75rem;
            }
          }

          > ul {
            display: flex;
            flex-direction: column;
            background: var(--pricefox-background-color);
            max-height: 70vh;
            padding: 2rem 0 0;
            list-style-type: none;
            overflow: scroll;
            @media (min-width: 993px) {
              flex: 3;
              flex-direction: row;
              justify-content: center;
              gap: 1.25rem;
              padding: 0;
              list-style-type: none;
              overflow: hidden;
            }

            > li {
              width: 100%;

              > p {
                margin: 1rem 0 0.5rem;
                font-weight: 700;
                @media (min-width: 993px) {
                  margin-top: 0;
                }

              }

              &:first-child {
                @media (max-width: 992px) {
                  > p {
                    margin-top: 0;
                  }
                }
              }

              > ul {
                padding: 0;
                list-style-type: none;

                > li {
                  margin: 0 0 0.5rem;
                }
              }
            }
          }
        }
      }
    }
  }

  /*> #telephone {*/
  /*  width: 2rem;*/
  /*  padding: 0;*/

  /*  @media (min-width: 1441px) {*/
  /*    display: flex;*/
  /*    align-items: center;*/
  /*    justify-content: space-around;*/
  /*    width: 10.75rem;*/
  /*    height: 2.75rem;*/
  /*    padding: 0 0.25rem;*/
  /*    border-radius: 0.5rem;*/
  /*    border: 1px solid var(--warm-orange-500);*/
  /*  }*/

  /*  > p {*/
  /*    display: none;*/
  /*    @media (min-width: 1441px) {*/
  /*      display: block;*/
  /*    }*/
  /*  }*/

  /*  > img {*/
  /*    width: 2rem;*/
  /*  }*/
  /*}*/
}
