.ma-select {
  --ms-accent: #536443;
  --ms-soft: #e8eddf;
  --ms-text: #292d25;
  --ms-border: #dcded5;
  position: relative;
  min-width: 0;
  width: 100%;
  font: inherit;
  display: inline-block;
  vertical-align: middle;
  text-align: left;
}
.ma-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  clip-path: inset(50%);
}
.ma-select .ma-select-trigger {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 9px 13px;
  margin: 0;
  border: 1px solid var(--ms-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ms-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px #25332104;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ma-select-trigger:hover {
  border-color: #a6b199;
}
.ma-select-trigger:focus-visible,
.ma-select-trigger[aria-expanded="true"] {
  outline: 0;
  border-color: var(--ms-accent);
  box-shadow: 0 0 0 3px var(--ms-soft);
}
.ma-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ma-select-value {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ma-select-chip,
.ma-select-count {
  background: var(--ms-soft);
  color: var(--ms-accent);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
  max-width: 130px;
  line-height: 20px;
  padding-block: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-select-arrow {
  color: var(--ms-accent);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  flex: none;
  transition: transform 0.15s;
}
[aria-expanded="true"] .ma-select-arrow {
  transform: rotate(180deg);
}
.ma-select-panel {
  --ms-accent: #536443;
  --ms-soft: #e8eddf;
  --ms-text: #292d25;
  --ms-border: #dcded5;
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ms-border);
  border-radius: 16px;
  background: #fff;
  color: var(--ms-text);
  box-shadow:
    0 14px 50px #1f302329,
    0 2px 8px #1f30230c;
  z-index: 10000;
  overflow: auto;
  font:
    400 14px/1.4 system-ui,
    sans-serif;
  text-align: left;
  overscroll-behavior: contain;
}
.ma-select-panel[hidden] {
  display: none !important;
}
.ma-select-search {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px !important;
  margin: 0 0 6px !important;
  padding: 9px 11px !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: 9px !important;
  background: #f7f8f4 !important;
  color: var(--ms-text) !important;
  font: inherit !important;
  outline: none;
}
.ma-select-search:focus {
  border-color: var(--ms-accent) !important;
}
.ma-select-options {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.ma-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ma-select-option:hover,
.ma-select-option.is-active {
  background: #f3f5ef;
}
.ma-select-option[aria-selected="true"] {
  background: var(--ms-soft);
  color: var(--ms-accent);
  font-weight: 600;
}
.ma-select-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ma-select-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1px solid #c9d0c1;
  border-radius: 5px;
  font-size: 12px;
}
.ma-select-option[aria-selected="true"] .ma-select-check {
  background: var(--ms-accent);
  border-color: var(--ms-accent);
  color: white;
}
.ma-select-panel .ma-select-clear {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 10px;
  border: 0;
  border-top: 1px solid #ebeee7;
  border-radius: 0;
  background: transparent;
  color: var(--ms-accent);
  font: 600 13px system-ui;
  cursor: pointer;
}
.ma-select-panel .ma-select-clear[hidden] {
  display: none;
}
.ma-select-empty {
  padding: 12px;
  color: #747b6d;
  margin: 0;
}
body:has(.hero) .ma-select,
body:has(.hero) .ma-select-panel {
  --ms-accent: #176a70;
  --ms-soft: #e1f2f0;
  --ms-text: #183e45;
  --ms-border: #d3e6e3;
}
.ma-select-native:focus-visible + .ma-select-trigger {
  outline: 2px solid var(--ms-accent);
}
@media (max-width: 600px) {
  .ma-select .ma-select-trigger {
    font-size: 14px;
    min-height: 46px;
  }
  .ma-select-panel {
    font-size: 16px;
  }
  .ma-select-search {
    font-size: 16px !important;
  }
  .ma-select-option {
    min-height: 46px;
  }
}

.ma-select-value {
  flex: 1;
}
.ma-select-trigger {
  filter: none;
}
.ma-select-search:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ms-soft);
}
.tag-filter {
  min-width: 220px;
}
@media (max-width: 600px) {
  .ma-select .ma-select-trigger {
    height: 46px;
  }
}

.ma-select[hidden] {
  display: none !important;
}
