.state-selector {
  display: flex;
  justify-content: center;
}

#open-state-drawer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#open-state-drawer svg {
  color: #2a3167;
  width: 2.7rem;
  height: 2.7rem;
}

#open-state-drawer span:not(.svg-wrapper) {
  text-decoration: none;
  color: #5a3ba4;
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  font-weight: 600;
}

#state-tooltip {
  position: absolute;
  top: calc(100% - 1rem);
  right: 4.4rem;
  background: #5b3ba4;
  filter: drop-shadow(5px 5px 8px rgba(0, 0, 0, 0.55));
  text-align: center;
  width: 250px;
  border-radius: 10px;
  padding: 0 15px;
}

#state-tooltip p {
  color: #ffffff;
  font-size: 1.4rem;
  text-align: left;
  margin-top: 2rem;
}

#hide-tooltip {
  display: none;
}

#state-tooltip label {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  cursor: pointer;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

#state-tooltip svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

#state-tooltip::after {
  content: "";
  position: absolute;
  display: block;
  width: 0;
  z-index: 1;
  border-style: solid;
  border-width: 0 0 9px 20px;
  border-color: transparent transparent #5b3ba4 transparent;
  top: -8px;
  right: 22px;
  margin-left: -10px;
}

#hide-tooltip:checked ~ #state-tooltip {
  display: none;
}

.state-selector--desktop {
  display: none;
}

.header__icons .shopify-block[data-block-handle="state-filter-trigger-block"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  margin-right: 1rem !important;
  overflow: visible !important;
  white-space: nowrap;
}
.header__icons > * {
  order: 0;
}

/* push your block to the very end */
.header__icons .shopify-block[data-block-handle="state-filter-trigger-block"] {
  order: 1 !important;
  /* if you need some space between Cart ↔ State filter: */
  margin-left: 1rem !important;
}

@media screen and (max-width: 989px) {
  #state-tooltip {
    width: 300px;
  }

  #state-tooltip svg {
    width: 3rem;
    height: 3rem;
  }

  #state-tooltip p {
    width: 90%;
  }
}

@media screen and (min-width: 990px) {
  .state-selector--desktop {
    display: block;
  }
}

.menu-drawer__state-trigger {
  padding: 1rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

@media screen and (min-width: 990px) {
  .menu-drawer__state-trigger {
    display: none;
  }
}
