.pg-live-start-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pg-live-start-form label {
  color: #333;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

.pg-live-start-form input {
  background: #fff;
  border: 1px solid #e4d7d8;
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

.pg-live-start-form input:focus {
  border-color: #c41218;
  box-shadow: 0 0 0 3px rgba(196, 18, 24, .1);
}

.pg-live-start-form button {
  background: #c41218;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 16px;
}

.pg-live-start-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.pg-live-error {
  background: #fff0f0;
  border-radius: 10px;
  color: #a40000;
  font-size: 12px;
  margin: 8px 0 0;
  padding: 10px 12px;
}

.pg-live-agent-card {
  align-items: center;
  display: flex;
}

.pg-live-agent-card .pg-end-chat {
  background: #fff;
  border: 1px solid #c41218;
  border-radius: 9px;
  color: #c41218;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  padding: 8px 10px;
}

.pg-live-agent-card .pg-end-chat:hover {
  background: #c41218;
  color: #fff;
}

.pg-live-agent-card .pg-end-chat:disabled {
  cursor: wait;
  opacity: .6;
}

.pg-live-ended-screen {
  padding-top: 30px;
  text-align: center;
}

.pg-live-main-menu {
  background: #c41218;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 16px;
  padding: 13px 18px;
}

.pg-live-voice-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dfc9cb;
  border-radius: 50%;
  color: #c41218;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 19px;
  height: 48px;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  width: 48px;
}

.pg-live-voice-button:hover {
  border-color: #c41218;
  transform: translateY(-1px);
}

.pg-live-voice-button.is-recording {
  animation: pg-live-voice-pulse 1.15s infinite;
  background: #c41218;
  border-color: #c41218;
  color: #fff;
}

.pg-live-voice-button:disabled {
  cursor: wait;
  opacity: .55;
}

.pg-live-voice-status {
  color: #6f6263;
  font-size: 12px;
  margin: 0 16px 7px;
  text-align: center;
}

.pg-live-voice-status.is-error {
  color: #b00008;
}

.pg-live-audio-message audio {
  display: block;
  max-width: 100%;
  min-height: 40px;
  width: 100%;
}

.pg-live-audio-transcript {
  display: block;
  font-size: 12px;
  margin-top: 7px;
  opacity: .8;
}

@keyframes pg-live-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 18, 24, .25); }
  50% { box-shadow: 0 0 0 8px rgba(196, 18, 24, 0); }
}

@media (max-width: 520px) {
  .pg-live-voice-button {
    flex-basis: 44px;
    height: 44px;
    width: 44px;
  }
}

/* v1.4.0 customer attachment upload */
.pg-live-attachment-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dfc9cb;
  border-radius: 50%;
  color: #c41218;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 19px;
  height: 48px;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  width: 48px;
}
.pg-live-attachment-button:hover { border-color: #c41218; transform: translateY(-1px); }
.pg-live-attachment-button:disabled { cursor: wait; opacity: .55; }
.pg-live-attachment-input { display: none !important; }
.pg-live-attachment-status {
  color: #6f6263;
  font-size: 12px;
  margin: 0 16px 7px;
  text-align: center;
}
.pg-live-attachment-status.is-error { color: #b00008; }
.pg-live-attachment-message { overflow: hidden; }
.pg-live-image-link { display: block; margin-bottom: 8px; }
.pg-live-image-link img {
  border-radius: 10px;
  display: block;
  height: auto;
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
}
.pg-live-file-link {
  color: inherit;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
}
@media (max-width: 520px) {
  .pg-live-attachment-button { flex-basis: 44px; height: 44px; width: 44px; }
}
