.tv-voice-mic {
  position: absolute;
  top: 50%;
  right: 3.05rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6db33f;
  cursor: pointer;
}
.tv-voice-mic[hidden], .tv-voice-status[hidden] { display: none !important; }
.tv-voice-mic:hover { color: #2f7d20; }
.tv-voice-mic:focus-visible {
  outline: 2px solid #6db33f;
  outline-offset: 2px;
}
.tv-voice-mic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tv-voice-mic.tv-voice-listening {
  color: #2f7d20;
}
.tv-voice-mic.tv-voice-listening svg { stroke-width: 2.5; }
.tv-mobile-search-shell.tv-voice-enabled .tv-mobile-search-input,
.tv-mobile-search-shell.tv-voice-enabled .tv-mobile-brand-input { padding-right: 5.4rem; }
.tv-mobile-brand-search.tv-voice-enabled:has(> #mobileBrandClear[hidden]) .tv-voice-mic { right: .65rem; }
.tv-mobile-brand-search.tv-voice-enabled:has(> #mobileBrandClear[hidden]) .tv-mobile-brand-input { padding-right: 2.65rem; }
.tv-voice-status {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.tv-voice-desktop-comune {
  position: relative;
  top: auto;
  right: auto;
  z-index: 9;
  flex: none;
  margin-left: -50px;
  margin-right: 8px;
  transform: none;
}
.tv-desktop-city-row.tv-voice-enabled #comuni.tv-header-select,
.tv-desktop-city-row.tv-voice-enabled .tv-header-select2--comune .select2-selection__rendered,
.tv-desktop-city-row.tv-voice-enabled .tv-header-select2--comune .tv-comune-inline-search .select2-search__field {
  padding-right: 48px !important;
}
@media (max-width: 767px) {
  .tv-voice-desktop-comune, .tv-voice-desktop-status { display: none !important; }
  .tv-voice-mic.tv-voice-listening {
    background: #2f7d20;
    color: #fff;
    animation: tv-voice-pulse 1.3s ease-out infinite;
  }
  .tv-mobile-search-shell.tv-voice-active .tv-mobile-search-input,
  .tv-mobile-search-shell.tv-voice-active .tv-mobile-brand-input {
    color: transparent;
    caret-color: transparent;
  }
  .tv-mobile-search-shell.tv-voice-active input::placeholder { color: transparent; }
  .tv-mobile-search-shell .tv-voice-status.tv-voice-feedback {
    top: 50%;
    left: 2.8rem;
    right: 5.4rem;
    z-index: 3;
    width: auto;
    height: auto;
    margin: 0;
    transform: translateY(-50%);
    clip: auto;
    clip-path: none;
    background: #fff;
    color: #2f7d20;
    font: inherit;
    font-family: Arial, sans-serif;
    font-size: .96rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    pointer-events: none;
  }
  .tv-mobile-brand-search:has(> #mobileBrandClear[hidden]) .tv-voice-status.tv-voice-feedback {
    right: 2.65rem;
  }
}
@keyframes tv-voice-pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 179, 63, .5); }
  100% { box-shadow: 0 0 0 7px rgba(109, 179, 63, 0); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .tv-voice-mic.tv-voice-listening {
    animation: none;
    box-shadow: 0 0 0 3px rgba(109, 179, 63, .3);
  }
}
