.vwd-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: inherit;
}

.vwd-widget__button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #c9a063;
  color: #1b1510;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.vwd-widget__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  background: #fff;
  color: #1f1b18;
  border: 1px solid rgba(33, 26, 18, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.vwd-widget--open .vwd-widget__panel {
  display: flex;
  flex-direction: column;
}

.vwd-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #251d18;
  color: #fff;
}

.vwd-widget__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.vwd-widget__messages {
  min-height: 160px;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  background: #f7f4ef;
}

.vwd-widget__message {
  margin-bottom: 10px;
}

.vwd-widget__message--outbound {
  text-align: right;
}

.vwd-widget__meta {
  margin-bottom: 3px;
  color: #756c63;
  font-size: 12px;
}

.vwd-widget__body {
  display: inline-block;
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(33, 26, 18, 0.1);
  white-space: pre-wrap;
  text-align: left;
}

.vwd-widget__message--outbound .vwd-widget__body {
  background: #251d18;
  color: #fff;
}

.vwd-widget__form {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.vwd-widget__input,
.vwd-widget__textarea {
  width: 100%;
  border: 1px solid rgba(33, 26, 18, 0.18);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

.vwd-widget__textarea {
  min-height: 86px;
  resize: vertical;
}

.vwd-widget__submit {
  border: 0;
  border-radius: 6px;
  background: #251d18;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.vwd-widget__status {
  min-height: 18px;
  color: #756c63;
  font-size: 13px;
}

@media (max-width: 520px) {
  .vwd-widget {
    right: 12px;
    bottom: 12px;
  }

  .vwd-widget__panel {
    right: -4px;
    bottom: 72px;
  }
}

