/* EDM Tidio Voice */

.edm-tv-speaker {
  position: fixed;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.edm-tv-speaker.is-visible {
  display: flex;
}

.edm-tv-speaker:active {
  transform: scale(0.94);
}

.edm-tv-speaker svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.edm-tv-speaker .edm-tv-slash {
  display: none;
}

.edm-tv-speaker.is-muted {
  background: #b3261e;
  border-color: rgba(255, 255, 255, 0.7);
}

.edm-tv-speaker.is-muted .edm-tv-slash {
  display: block;
}

/* Mobile / tablet: smaller icon */
@media (max-width: 1024px) {
  .edm-tv-speaker {
    width: 26px;
    height: 26px;
  }
  .edm-tv-speaker svg {
    width: 14px;
    height: 14px;
  }
}

/* Microphone button inside the Tidio widget */
.edm-tv-mic {
  position: fixed;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.edm-tv-mic.is-visible {
  display: flex;
}

.edm-tv-mic svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.edm-tv-mic.is-listening {
  background: #b3261e;
  animation: edm-tv-pulse 1.2s infinite;
}

@keyframes edm-tv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(179, 38, 30, 0); }
}

@media (max-width: 1024px) {
  .edm-tv-mic {
    width: 30px;
    height: 30px;
  }
  .edm-tv-mic svg {
    width: 15px;
    height: 15px;
  }
}

/* Consent dialog */
.edm-tv-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.edm-tv-consent {
  max-width: 420px;
  width: 100%;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.edm-tv-consent h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.edm-tv-consent-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-tv-consent-actions button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 14px;
  cursor: pointer;
}

.edm-tv-consent-actions button.edm-tv-primary {
  background: #000;
  color: #fff;
}

.edm-tv-consent-actions button.edm-tv-link {
  flex-basis: 100%;
  border: none;
  background: none;
  text-decoration: underline;
  font-size: 13px;
}
