.province-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 12;
  width: min(940px, 100%);
  max-height: min(72vh, 590px);
  overflow: hidden;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px #112a2430;
}

.topbar-inner .store-entry-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.topbar-inner .store-entry-link svg {
  width: 14px;
  height: 14px;
}

#menu-button {
  padding-block: 8px;
}

#menu-button > span:not(.chevron) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#menu-button small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

#menu-button.has-selection small {
  color: var(--green);
  font-weight: 700;
}

.province-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.province-menu-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.province-menu-head strong {
  font-size: 18px;
}

.province-menu-head span {
  color: var(--muted);
  font-size: 11px;
}

.province-menu-head button {
  padding: 4px;
}

.province-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-inline: 12px;
  background: var(--cream);
  border: 1px solid #dbe2d8;
  border-radius: 8px;
}

.province-search:focus-within {
  border-color: var(--green);
}

.province-search svg {
  width: 17px;
  color: var(--muted);
}

.province-search input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: 0;
  outline: 0;
}

.province-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  max-height: 390px;
  padding: 2px;
  overflow: auto;
}

.province-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: left;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.province-option span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 25px;
  flex-shrink: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  background: #eef3e7;
  border-radius: 5px;
}

.province-option:hover,
.province-option.active {
  color: var(--green);
  background: #eef4e9;
  border-color: #d8e5d1;
}

.province-all {
  grid-column: 1 / -1;
  width: max-content;
  padding-right: 14px;
}

.province-empty {
  margin: 0;
  padding: 20px 0 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .topbar-inner .store-entry-link {
    display: none;
  }

  .province-menu {
    right: 0;
    width: 100%;
    max-height: 72vh;
    padding: 16px 12px;
    border-radius: 0 0 12px 12px;
  }

  .province-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 48vh;
  }

  .province-menu-head strong {
    font-size: 16px;
  }
}
