.mic-btn {
  margin-left: 6px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f8f8;
  cursor: pointer;
}
.speech-modal {
  position: fixed; top:0; left:0; width:100%; height:100%;
  display:none; justify-content:center; align-items:center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}
.speech-popup {
  background:#fff; padding:20px; border-radius:8px; text-align:center;
}

.speech-modal {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  display:none;
  justify-content:center;
  align-items:center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.speech-popup {
  background:#fff;
  padding:20px 30px;
  border-radius:12px;
  text-align:center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  width: 320px;
  max-width: 90%;
  font-family: sans-serif;
  animation: fadeIn 0.3s ease;
}

.speech-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

#speechStatus {
  margin: 5px 0 10px;
  color: #666;
  font-size: 14px;
}

.speech-live {
  min-height: 40px;
  margin: 10px 0;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 15px;
  color: #222;
  text-align: left;
}

.speech-stop {
  background: #d9534f;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.speech-stop:hover {
  background: #c9302c;
}


.header-bar .search-box {position: relative;}

#block-mmrda-voicesearchicon { position: absolute; right: 40px; z-index: 9; top: 16px;}

.form-item {position: relative;}
.mic-btn {position: absolute; right: 4px; top: 30px;}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
