/* This stylesheet is shared by the landing, account and checkout headers. */
.lilyhapp-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #e8e2f1;
  background: #fff;
  color: #171322;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  line-height: 1.2;
}

.lilyhapp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 88px));
  min-height: 76px;
  margin-inline: auto;
}

.lilyhapp-header a {
  color: inherit;
  text-decoration: none;
}

.lilyhapp-header-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1.35rem;
  font-weight: 790;
  letter-spacing: -.05em;
}

.lilyhapp-header-logo img {
  display: block;
  width: 37px;
  height: 37px;
}

.lilyhapp-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
  font-size: .9rem;
  font-weight: 620;
  color: #615b70;
}

.lilyhapp-header nav a {
  white-space: nowrap;
}

.lilyhapp-header nav a:hover {
  color: #5930c9;
}

.lilyhapp-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.lilyhapp-header .lilyhapp-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 15px;
  border-radius: 13px;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 720;
  transition: background-color .2s;
}

.lilyhapp-header .lilyhapp-header-connect {
  background: #7545f5;
  color: #fff;
}

.lilyhapp-header .lilyhapp-header-connect:hover {
  background: #5930c9;
}

.lilyhapp-header .lilyhapp-header-account,
.lilyhapp-header-menu summary {
  background: #ede7ff;
  color: #5930c9;
}

.lilyhapp-header .lilyhapp-header-account:hover,
.lilyhapp-header-menu summary:hover {
  background: #e4d9ff;
}

.lilyhapp-header :is(a, summary):focus-visible {
  outline: 2px solid #7545f5;
  outline-offset: 3px;
}

.lilyhapp-header-menu,
.lilyhapp-header-account-short {
  display: none;
}

@media (max-width: 1040px) {
  .lilyhapp-header-bar {
    position: relative;
    width: calc(100% - 56px);
  }

  .lilyhapp-header-nav {
    display: none;
  }

  .lilyhapp-header-menu {
    display: block;
  }

  .lilyhapp-header-menu summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    list-style: none;
    cursor: pointer;
  }

  .lilyhapp-header-menu summary::-webkit-details-marker {
    display: none;
  }

  .lilyhapp-header-menu summary span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
  }

  .lilyhapp-header-menu nav {
    display: grid;
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    min-width: 215px;
    padding: 10px;
    border: 1px solid #e8e2f1;
    border-radius: 16px;
    background: #fff;
    color: #615b70;
    box-shadow: 0 14px 30px #23104318;
    font-size: .9rem;
    font-weight: 620;
  }

  .lilyhapp-header-menu:not([open]) nav {
    display: none;
  }

  .lilyhapp-header-menu nav a {
    padding: 11px 12px;
  }
}

@media (max-width: 520px) {
  .lilyhapp-header-bar {
    width: calc(100% - 28px);
    min-height: 65px;
    gap: 8px;
  }

  .lilyhapp-header-logo {
    gap: 5px;
    font-size: 1.05rem;
  }

  .lilyhapp-header-logo img {
    width: 30px;
    height: 30px;
  }

  .lilyhapp-header-actions {
    gap: 5px;
  }

  .lilyhapp-header .lilyhapp-header-action {
    padding-inline: 8px;
    font-size: .75rem;
  }

  .lilyhapp-header-menu summary {
    width: 36px;
  }

  .lilyhapp-header-account-full {
    display: none;
  }

  .lilyhapp-header-account-short {
    display: inline;
  }
}

@media (max-width: 319px) {
  .lilyhapp-header-logo span {
    display: none;
  }
}
