/* WKD live support widget */
.wkd-chat-widget,
.wkd-chat-widget * {
  box-sizing: border-box;
}

.wkd-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  width: 320px;
  max-width: calc(100vw - 36px);
  font: 13px/1.35 Tahoma, Arial, sans-serif;
  color: #e7e7e7;
  text-align: left;
  pointer-events: none;
}

.wkd-chat-widget button,
.wkd-chat-widget input,
.wkd-chat-widget textarea {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  letter-spacing: 0;
  max-width: none;
}

.wkd-chat-toggle {
  display: block;
  width: 102px;
  height: 102px;
  margin-left: auto;
  margin-right: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .38));
  pointer-events: auto;
}

.wkd-chat-toggle img {
  display: block;
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.wkd-chat-panel {
  position: absolute;
  left: auto;
  right: 0;
  bottom: 114px;
  display: none;
  width: 320px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 150px);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.14);
  border-top: 3px solid #ff0078;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  pointer-events: auto;
}

.wkd-chat-widget.is-open .wkd-chat-panel {
  display: flex;
  flex-direction: column;
}

.wkd-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  background: #080808;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.wkd-chat-title {
  margin: 0 0 2px;
  color: #fff;
  font: 17px/1.05 Oswald, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
}

.wkd-chat-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bdbdbd;
  font-size: 11px;
  line-height: 1;
}

.wkd-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777;
}

.wkd-chat-widget.is-online .wkd-chat-dot {
  background: #0bb8d8;
}

.wkd-chat-close {
  flex: 0 0 auto;
  border: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  background: #1b1b1b;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  line-height: 24px;
}

.wkd-chat-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.wkd-chat-copy {
  margin: 0;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.4;
}

.wkd-chat-log {
  display: none;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
  background: #090909;
  border: 1px solid #2b2b2b;
}

.wkd-chat-widget.has-conversation .wkd-chat-log {
  display: grid;
  gap: 7px;
}

.wkd-chat-message {
  max-width: 88%;
  padding: 8px 9px;
  background: #242424;
  color: #ededed;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.wkd-chat-message.agent {
  margin-left: auto;
  background: #ff0078;
  color: #fff;
}

.wkd-chat-message-meta {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  line-height: 1.2;
}

.wkd-chat-form,
.wkd-chat-identity {
  display: grid;
  gap: 8px;
}

.wkd-chat-form label {
  display: grid;
  gap: 4px;
  color: #cfcfcf;
  font-size: 11px;
  line-height: 1.2;
}

.wkd-chat-form label span {
  color: #aaa;
}

.wkd-chat-widget.has-conversation .wkd-chat-identity {
  display: none;
}

.wkd-chat-form input,
.wkd-chat-form textarea {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 1px solid #333;
  background: #080808;
  color: #fff;
  padding: 8px 9px;
  font: 13px/1.3 Tahoma, Arial, sans-serif;
}

.wkd-chat-form textarea {
  min-height: 74px;
  resize: vertical;
}

.wkd-chat-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.wkd-chat-form button {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 0;
  padding: 8px 10px;
  background: #ff0078;
  color: #fff;
  cursor: pointer;
  font: 14px/1.1 Oswald, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
}

.wkd-chat-form .wkd-chat-reset {
  display: none;
  width: auto;
  background: #1b1b1b;
  color: #ddd;
}

.wkd-chat-status {
  min-height: 16px;
  margin: 0;
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
}

.wkd-chat-error {
  color: #ff8fbf;
}

@media (max-width: 520px) {
  .wkd-chat-widget {
    right: 10px;
    bottom: 10px;
    width: 320px;
    max-width: calc(100vw - 20px);
  }

  .wkd-chat-panel {
    bottom: 114px;
    width: 320px;
    max-width: calc(100vw - 20px);
  }
}
