.mys-support {
  font-family: inherit;
  color: #493a2d;
  font-size: 14px;
  position: relative;
  z-index: 500;
}
.mys-support [hidden] {
  display: none !important;
}
.mys-launcher {
  position: fixed;
  inset-inline-end: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 9px;
  background: #c97650;
  color: #fffaf3;
  border: 1px solid #c97650;
  box-shadow: 0 6px 24px #74472a35;
  border-radius: 32px;
  padding: 15px 20px;
  min-height: 52px;
  font: inherit;
  cursor: pointer;
  z-index: 501;
}
.mys-launcher svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mys-badge {
  position: absolute;
  top: -7px;
  inset-inline-end: -4px;
  background: #b63f32;
  color: #fff;
  border: 2px solid #faf7f1;
  border-radius: 20px;
  font-size: 11px;
  padding: 2px 5px;
  min-width: 22px;
  line-height: 16px;
}
.mys-panel {
  position: fixed;
  inset-inline-end: 24px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 370px;
  height: 570px;
  max-height: calc(100dvh - 112px);
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid #e3d2be;
  border-radius: 19px;
  box-shadow: 0 12px 52px #4f352329;
  overflow: hidden;
  z-index: 502;
}
.mys-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 17px;
  background: #f1e4d0;
  flex-shrink: 0;
}
.mys-avatar {
  height: 38px;
  width: 38px;
  background: #c97650;
  color: #fff8eb;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.mys-header > div {
  flex: 1;
  min-width: 0;
}
.mys-header strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.mys-header p {
  font-size: 10px;
  color: #9d8061;
  margin: 3px 0 0;
}
.mys-close {
  font: inherit;
  font-size: 25px;
  border: 0;
  background: transparent;
  min-width: 34px;
  height: 34px;
  color: #8b6a4c;
  cursor: pointer;
  padding: 0;
}
.mys-availability {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  font-size: 11px;
  color: #9d846a;
  border-bottom: 1px solid #eee2d2;
  flex-shrink: 0;
}
.mys-availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b09a83;
  flex-shrink: 0;
}
.mys-availability.mys-online i {
  background: #6c9674;
}
.mys-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.mys-intro {
  font-size: 12px;
  color: #9b836a;
  line-height: 1.9;
  margin: 0 0 18px;
  padding: 12px;
  background: #f6f0e6;
  border-radius: 10px;
}
.mys-message {
  max-width: 88%;
  width: fit-content;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.mys-message small {
  display: block;
  color: #a18a72;
  font-size: 10px;
  margin-bottom: 5px;
}
.mys-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 10px 12px;
  background: #f2e9dc;
  border-radius: 3px 12px 12px;
}
.mys-message time {
  display: block;
  font-size: 9px;
  color: #ac9780;
  margin-top: 4px;
}
.mys-own {
  margin-inline-start: auto;
}
.mys-own small,
.mys-own time {
  text-align: end;
}
.mys-own p {
  background: #c97650;
  color: #fffaf3;
  border-radius: 12px 3px 12px 12px;
}
.mys-feedback {
  padding: 0 16px;
  font-size: 10px;
  color: #a86a46;
  line-height: 1.8;
  min-height: 16px;
  flex-shrink: 0;
}
.mys-reopen {
  margin: 8px 16px;
  border: 1px solid #c58c67;
  border-radius: 8px;
  background: #fcf2e6;
  color: #a5643f;
  font: inherit;
  font-size: 12px;
  padding: 10px;
  cursor: pointer;
}
.mys-form {
  flex-shrink: 0;
  border-top: 1px solid #eadfce;
  margin-top: 7px;
  padding: 12px 14px 9px;
  background: #fffdf8;
}
.mys-form textarea {
  box-sizing: border-box;
  width: 100%;
  resize: none;
  padding: 9px 10px;
  min-height: 62px;
  max-height: 100px;
  border: 1px solid #e4d8c6;
  border-radius: 9px;
  background: #fffdf8;
  color: #493a2d;
  line-height: 1.5;
  font: inherit;
  font-size: 13px;
}
.mys-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.mys-shift {
  font-size: 9px;
  color: #b39b80;
}
.mys-send {
  padding: 8px 16px;
  background: #c97650;
  color: #fffaf3;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  min-height: 34px;
}
.mys-send:disabled {
  opacity: 0.5;
  cursor: default;
}
.mys-privacy {
  margin: 0;
  padding: 2px 15px 12px;
  color: #b49c82;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  flex-shrink: 0;
}
.mys-support button:focus-visible,
.mys-support textarea:focus-visible {
  outline: 3px solid #c89b72;
  outline-offset: 3px;
}
.mys-support[dir='rtl'] .mys-message p {
  border-radius: 12px 3px 12px 12px;
}
.mys-support[dir='rtl'] .mys-own p {
  border-radius: 3px 12px 12px;
}
.mys-support[dir='rtl'] {
  font-family: Tahoma, Arial, sans-serif;
}
@media (max-width: 620px) {
  .mys-launcher {
    inset-inline-end: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    font-size: 12px;
    padding: 13px 17px;
    min-height: 48px;
  }
  .mys-panel {
    inset-inline: 12px;
    width: auto;
    bottom: calc(12px + var(--mys-keyboard, 0px));
    height: 620px;
    max-height: calc(var(--mys-height, 100dvh) - 24px);
    border-radius: 16px;
  }
  .mys-is-open .mys-launcher {
    visibility: hidden;
  }
  .mys-header {
    padding: 14px 15px;
  }
  .mys-availability {
    padding: 9px 15px;
  }
  .mys-form textarea {
    font-size: 16px;
  }
  .mys-shift {
    display: none;
  }
  .mys-form > div {
    justify-content: flex-end;
  }
  .mys-messages {
    padding: 13px;
  }
  .mys-privacy {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mys-support * {
    scroll-behavior: auto !important;
  }
}
.mys-compact .mys-header {
  padding: 9px 12px;
}
.mys-compact .mys-avatar {
  height: 31px;
  width: 31px;
  font-size: 23px;
}
.mys-compact .mys-header strong {
  font-size: 13px;
}
.mys-compact .mys-human {
  display: none;
}
.mys-compact .mys-availability {
  padding: 6px 12px;
  font-size: 10px;
}
.mys-compact .mys-intro {
  display: none;
}
.mys-compact .mys-form {
  padding: 7px 10px;
}
.mys-compact .mys-form textarea {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
}
.mys-compact .mys-send {
  padding: 6px 14px;
  min-height: 30px;
}
.mys-compact .mys-privacy {
  display: none;
}
.mys-compact .mys-feedback {
  font-size: 9px;
  min-height: 12px;
  line-height: 1.4;
}
