#et-chat-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border: 1px solid #63ff8a;
  border-radius: 20px;
  background: linear-gradient(145deg, #102419, #050a07);
  color: #63ff8a;
  font-size: 25px;
  box-shadow:
    0 10px 35px #000b,
    0 0 24px #2cff7140;
  cursor: pointer;
}
#et-chat {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 9999;
  width: min(390px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: linear-gradient(160deg, #08110cf8, #030604fa);
  border: 1px solid #327647;
  color: #e5ffeb;
  box-shadow: 0 24px 80px #000;
  border-radius: 18px;
  overflow: hidden;
  font: 14px system-ui;
}
#et-chat [hidden] {
  display: none !important;
}
#et-chat.open {
  display: flex;
  animation: chat-in 0.18s ease-out;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
#et-chat header {
  padding: 15px 17px;
  background: #0b1911;
  border-bottom: 1px solid #244b31;
  display: flex;
  justify-content: space-between;
}
#et-chat header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sound-toggle {
  border: 0;
  background: transparent;
  color: #91b99c;
  padding: 7px;
  cursor: pointer;
  font-size: 15px;
}
#et-chat header div {
  display: grid;
  gap: 2px;
}
#et-chat header small {
  font: 10px monospace;
  letter-spacing: 1.7px;
  color: #63ff8a;
}
.close-window {
  border: 0;
  background: transparent;
  color: #91b99c;
  font-size: 25px;
  cursor: pointer;
}
#et-chat main {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 70px;
  background: radial-gradient(circle at top right, #17432530, transparent 40%);
}
#et-chat .msg {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-wrap;
  display: grid;
  gap: 4px;
}
.msg small {
  font: 9px monospace;
  letter-spacing: 1px;
  opacity: 0.7;
}
.msg.visitor {
  align-self: flex-end;
  background: #18542c;
}
.msg.operator {
  align-self: flex-start;
  background: #17201a;
  border: 1px solid #31573a;
}
#et-chat form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #244b31;
  background: #07100b;
}
#et-chat label {
  display: grid;
  gap: 5px;
  color: #cdebd4;
  font-size: 12px;
  font-weight: 650;
}
#et-chat label b {
  color: #63ff8a;
}
#et-chat label em {
  font-weight: 400;
  color: #829f89;
  font-style: normal;
}
.field-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
#et-chat-fields {
  display: grid;
  gap: 9px;
}
#et-chat input,
#et-chat textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #30543a;
  background: #0b140e;
  color: #fff;
  border-radius: 9px;
  outline: none;
  font: 14px system-ui;
}
#et-chat input:focus,
#et-chat textarea:focus {
  border-color: #63ff8a;
  box-shadow: 0 0 0 3px #63ff8a18;
}
#et-chat textarea {
  min-height: 74px;
  resize: vertical;
}
.form-actions {
  display: flex;
  gap: 8px;
}
.form-actions button,
.send-rating,
.new-chat {
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: #63ff8a;
  color: #031006;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
}
#et-end {
  flex: 0 0 auto;
  background: #102419;
  color: #9de8b0;
  border: 1px solid #327647;
}
#et-end:hover,
#et-end:focus-visible {
  background: #183524;
  border-color: #63ff8a;
}
.et-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #010402d9;
  backdrop-filter: blur(3px);
}
.et-dialog {
  width: 100%;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid #327647;
  border-radius: 14px;
  background: #0b1710;
  box-shadow: 0 20px 60px #000;
  text-align: center;
}
.et-dialog-icon {
  width: 38px;
  height: 38px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 1px solid #63ff8a;
  border-radius: 50%;
  color: #63ff8a;
  font: 700 18px monospace;
}
.et-dialog h3 { margin: 12px 0 6px; }
.et-dialog p { margin: 0 0 18px; color: #a8c5af; line-height: 1.45; }
.et-dialog > div:last-child { display: flex; gap: 8px; }
.et-dialog button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #327647;
  background: #102419;
  color: #cdebd4;
  font-weight: 700;
  cursor: pointer;
}
.et-dialog .dialog-confirm { background: #63ff8a; color: #031006; }
.status {
  min-height: 16px;
  color: #ffd17b;
  font-size: 12px;
}
#et-rating,
#et-thanks {
  margin: auto;
  padding: 27px 24px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
#et-rating h3,
#et-thanks h3 {
  margin: 10px 0 5px;
  font-size: 21px;
}
#et-rating p,
#et-thanks p {
  color: #9eb8a4;
}
.rating-icon {
  margin: auto;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid #63ff8a;
  border-radius: 50%;
  color: #63ff8a;
  font-size: 22px;
}
.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 17px 0 8px;
}
.stars button {
  border: 0;
  background: none;
  color: #506a56;
  font-size: 36px;
  padding: 0;
  cursor: pointer;
}
.stars button.selected {
  color: #f7cd52;
  text-shadow: 0 0 15px #f7cd5260;
}
.comment-label {
  text-align: left;
  margin: 17px 0;
}
.comment-label textarea {
  min-height: 90px;
}
.send-rating {
  width: 100%;
  margin-top: 10px;
}
.send-rating:disabled {
  opacity: 0.4;
}
.skip-rating {
  border: 0;
  background: none;
  color: #8ca793;
  margin-top: 12px;
  cursor: pointer;
}
.new-chat {
  display: block;
  width: 100%;
  margin-top: 22px;
}
@media (max-width: 500px) {
  #et-chat {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
  }
  #et-chat-button {
    right: 14px;
    bottom: 14px;
  }
}
