/* Taxonomy V2 店家填寫元件：通用頁與活動頁共用，維持手機大字與明確點擊區。 */
[data-taxonomy-v2-intake],
[data-taxonomy-v2-operations] {
  margin: 24px 0;
  color: #25231f;
}

[data-taxonomy-v2-intake][hidden],
[data-taxonomy-v2-operations][hidden],
[data-taxonomy-legacy-intake][hidden] {
  display: none !important;
}

.taxonomy-v2-heading {
  padding: 20px;
  border: 1px solid #ead9c7;
  border-radius: 18px;
  background: #fff8ee;
}

.taxonomy-v2-heading strong,
.taxonomy-v2-fieldset legend {
  font-size: 22px;
  font-weight: 800;
}

[data-event-intake] [data-taxonomy-v2-intake] > .taxonomy-v2-heading {
  display: none;
}

.taxonomy-v2-fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid #ded6ca;
  border-radius: 18px;
  background: #fff;
}

.taxonomy-v2-fieldset[hidden] {
  display: none !important;
}

.taxonomy-v2-follow-up {
  display: grid;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.taxonomy-v2-search input,
.taxonomy-v2-custom input,
.taxonomy-v2-follow-up input,
.taxonomy-v2-follow-up textarea {
  width: 100%;
  min-height: 56px;
  padding: 13px 15px;
  border: 2px solid #ded6ca;
  border-radius: 12px;
  background: #fff;
  color: #201e1b;
  font: inherit;
  font-size: 19px;
  box-sizing: border-box;
}

.taxonomy-v2-optional {
  display: block;
  margin-top: 4px;
  color: #6b655d;
  font-size: 16px;
}

.taxonomy-v2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 14px;
  border: 2px solid #ded6ca;
  border-radius: 12px;
  background: #fff;
}

.taxonomy-v2-search span {
  color: #6b655d;
  font-size: 28px;
}

.taxonomy-v2-search input {
  min-width: 0;
  border: 0;
  padding-inline: 0;
  outline: 0;
}

.taxonomy-v2-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.taxonomy-v2-chip {
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #ded6ca;
  border-radius: 999px;
  background: #fff;
  color: #25231f;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.taxonomy-v2-chip.is-selected {
  border-color: #c65c36;
  background: #f9e5dc;
  color: #984225;
}

.taxonomy-v2-more,
.taxonomy-v2-custom-toggle {
  min-height: 48px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff4eb;
  color: #984225;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.taxonomy-v2-more[hidden] {
  display: none;
}

.taxonomy-v2-custom-toggle {
  display: block;
  background: transparent;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.taxonomy-v2-custom {
  display: block;
  margin-top: 8px;
}

.taxonomy-v2-custom[hidden] {
  display: none;
}

.taxonomy-v2-selected {
  margin: 10px 0 0;
  color: #32634d;
  font-size: 16px;
  font-weight: 800;
}

.taxonomy-v2-selected:empty {
  display: none;
}

.taxonomy-v2-empty {
  margin: 0;
  color: #6b655d;
  font-size: 16px;
}

.taxonomy-v2-choice-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.taxonomy-v2-choice-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.taxonomy-v2-choice-chip span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 16px;
  border: 2px solid #ded6ca;
  border-radius: 999px;
  background: #fff;
  color: #25231f;
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease;
}

.taxonomy-v2-choice-chip input:focus-visible + span {
  outline: 3px solid rgba(198, 92, 54, 0.24);
  outline-offset: 2px;
}

.taxonomy-v2-choice-chip input:checked + span {
  border-color: #c65c36;
  background: #f9e5dc;
  color: #984225;
  font-weight: 800;
}

.taxonomy-v2-choice-chip:hover span {
  border-color: #c65c36;
}

.taxonomy-v2-choice-chip:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.5;
}

.taxonomy-v2-choice-chip:has(input:disabled) span {
  pointer-events: none;
}

.taxonomy-v2-choice-chip span,
.taxonomy-v2-chip {
  cursor: pointer;
  box-sizing: border-box;
}

.taxonomy-v2-follow-up {
  margin-top: 16px;
}

.taxonomy-v2-error {
  min-height: 0;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 16px;
  font-weight: 800;
}

.taxonomy-v2-error:empty {
  display: none;
}

@media (max-width: 560px) {
  .taxonomy-v2-fieldset {
    padding: 16px;
  }

  .taxonomy-v2-chip {
    min-height: 46px;
    padding-inline: 14px;
  }

  .taxonomy-v2-choice-chip span {
    min-height: 46px;
    padding-inline: 14px;
  }

}
