/* Extra styles for the creator application multi-choice controls. */

.optional-label {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #788383;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.important-help {
  color: #a8dedd;
}

.multi-choice-group + .multi-choice-group {
  margin-top: 22px;
}

.choice-heading {
  display: block;
  margin-bottom: 4px;
  color: #dfe5e5;
  font-size: 0.82rem;
  font-weight: 650;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
  margin-top: 11px;
  padding: 2px;
  border-radius: 11px;
}

.choice-chip {
  position: relative;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #121515;
  color: #9ba6a6;
  font-size: 0.79rem;
  font-weight: 650;
  text-align: center;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.choice-chip span i {
  color: #788383;
  transition: color 0.16s ease;
}

.choice-chip:hover span {
  border-color: rgba(3, 252, 240, 0.24);
  color: #dfe8e8;
  transform: translateY(-1px);
}

.choice-chip input:focus-visible + span {
  outline: 2px solid rgba(3, 252, 240, 0.75);
  outline-offset: 2px;
}

.choice-chip input:checked + span {
  border-color: rgba(3, 252, 240, 0.52);
  background: rgba(3, 252, 240, 0.075);
  color: #03fcf0;
  box-shadow: inset 0 0 18px rgba(3, 252, 240, 0.035);
}

.choice-chip input:checked + span i {
  color: #03fcf0;
}

.choice-grid[data-invalid="true"] {
  padding: 6px;
  border: 1px solid rgba(255, 85, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.06);
}

.compact-row {
  margin-top: 22px;
}

@media (max-width: 700px) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
