/* D-396: business voice templates (templates.js). Theme tokens from theme.css. */

.vt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vt-chip {
  border: 1px solid var(--line-2);
  background: var(--film-1);
  color: var(--txt-2);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.vt-chip:hover {
  border-color: var(--line-3);
}

.vt-chip[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--film-3);
  color: var(--txt);
}

.vt-count {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--txt-3);
}

.vt-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.vt-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--panel-bg-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vt-card.vt-hit {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.vt-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vt-ico {
  flex: none;
  font-size: 26px;
  line-height: 1;
}

.vt-ind {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vt-cat {
  margin-inline-start: auto;
  flex: none;
  max-width: 45%;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt-biz {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--txt-2);
  overflow-wrap: anywhere;
}

.vt-greet {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--txt);
  overflow-wrap: anywhere;
}

.vt-voice {
  margin: 0;
  font-size: 12.5px;
  color: var(--txt-3);
}

.vt-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.vt-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  max-width: 100%;
}

.vt-play + .vt-play {
  background: var(--film-2);
  color: var(--txt);
  border: 1px solid var(--line-2);
}

.vt-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

.vt-play .i-pause,
.vt-play[data-state='pause'] .i-play {
  display: none;
}

.vt-play[data-state='pause'] .i-pause {
  display: block;
}

.vt-dur {
  font-size: 11.5px;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.vt-chip:focus-visible,
.vt-play:focus-visible,
.vt-dlg summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.vt-dlg summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--txt-2);
}

.vt-tx {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.vt-lang h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--txt-3);
}

.vt-lang ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.vt-lang .who {
  display: inline-block;
  margin-inline-end: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-3);
}

.vt-lang li.r .who {
  color: var(--cyan);
}

.vt-msg {
  color: var(--txt-3);
  font-size: 14px;
}

/* Phones: the chips scroll sideways in one row; the category badge repeats the chip, so it goes. */
@media (max-width: 600px) {
  .vt-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .vt-chip {
    flex: none;
  }

  .vt-cat {
    display: none;
  }
}
