/**
 * Shared “Speak with …” / “End call” buttons for all voice-call-embed experiences.
 */
.callcard .call-action-wrap,
.hs-callcard .call-action-wrap {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.callcard .call-action,
.hs-callcard .call-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 28px;
  font-family: var(--font, var(--hs-font, inherit));
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--accent, #43e5a4);
  color: var(--accent-ink, #0e1b11);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(67, 229, 164, 0.22);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.18s ease, transform 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
}

.callcard .call-action:not([hidden]) + .call-action:not([hidden]),
.hs-callcard .call-action:not([hidden]) + .call-action:not([hidden]) {
  margin-top: 10px;
}

.callcard .call-action .call-action-label,
.hs-callcard .call-action .call-action-label {
  min-width: 0;
  flex: 1 1 auto;
  text-wrap: balance;
}

.callcard .call-action svg,
.hs-callcard .call-action svg {
  flex-shrink: 0;
}

.callcard .call-action:hover,
.hs-callcard .call-action:hover {
  filter: brightness(0.96);
}

.callcard .call-action:active,
.hs-callcard .call-action:active {
  transform: scale(0.98);
}

.callcard .call-action[hidden],
.hs-callcard .call-action[hidden] {
  display: none !important;
}

.callcard .call-action.live,
.hs-callcard .call-action.live {
  background: var(--fail-tint, #3a1c1c);
  color: var(--fail, #ff9b9b);
  box-shadow: none;
}

.callcard .call-action:disabled,
.hs-callcard .call-action:disabled {
  opacity: 1;
  color: var(--ink-3, #6c7e73);
  background: var(--panel-2, #e8ebe6);
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Narrow embeds (workspace widget, admin preview) */
.hs-callcard--voice-embed .call-action-wrap {
  padding-top: 12px;
}

.hs-callcard--voice-embed .call-action {
  padding: 15px 22px;
  font-size: 14px;
  min-height: 50px;
}

.hs-callcard--voice-embed .call-action--text-chat {
  margin-top: 10px;
  background: #f4f7f5;
  color: #17241c;
  border: 1px solid #d7e0db;
  box-shadow: none;
}

.hs-callcard--voice-embed .call-action--text-chat:hover {
  background: #e8eee9;
  filter: none;
}

.hs-callcard--voice-embed .call-action--text-chat .call-action-label {
  font-weight: 600;
  color: #17241c;
}

@media (max-width: 520px) {
  .callcard .call-action,
  .hs-callcard .call-action {
    padding: 14px 20px;
    font-size: 14px;
    min-height: 48px;
  }
}

.hs-callcard--voice-embed .call-audio-settings-btn {
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hs-callcard--voice-embed .call-audio-settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 48px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(10, 10, 10, 0.35);
}

.hs-callcard--voice-embed .call-audio-settings-row {
  display: grid;
  gap: 6px;
}

.hs-callcard--voice-embed .call-audio-settings-row + .call-audio-settings-row {
  margin-top: 10px;
}

.hs-callcard--voice-embed .call-audio-settings-label,
.hs-callcard--voice-embed .call-audio-settings-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
}

.hs-callcard--voice-embed .call-audio-settings-select {
  width: 100%;
  font: inherit;
  font-size: 13px;
  border: 1px solid #e7e5e1;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fcfbfa;
}

.hs-callcard--voice-embed .call-top {
  position: relative;
}
