html.new2-support-scroll-lock,
body.new2-support-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.new2-guest-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  color: var(--new2-ink);
  pointer-events: none;
}

.new2-guest-support::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(11, 18, 32, 0.58);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transition: opacity 320ms ease;
}

.new2-guest-support.is-open {
  pointer-events: auto;
}

.new2-guest-support.is-open::before {
  opacity: 1;
  pointer-events: auto;
}

.new2-guest-support-toggle {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #1da1ff 0%, #2877f5 56%, #6659ed 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(36, 119, 245, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 220ms ease, transform 260ms ease, box-shadow 260ms ease;
  isolation: isolate;
}

.new2-guest-support-toggle::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(40, 119, 245, 0.32);
  border-radius: 27px;
  animation: new2-support-pulse 2.8s ease-out infinite;
}

.new2-guest-support-toggle::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 3px 10px rgba(21, 113, 77, 0.32);
}

.new2-guest-support-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(36, 119, 245, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes new2-support-pulse {
  0%, 38% { opacity: 0; transform: scale(.86); }
  48% { opacity: .85; }
  82%, 100% { opacity: 0; transform: scale(1.18); }
}

.new2-guest-support.is-open .new2-guest-support-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.new2-guest-support-toggle svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.new2-guest-support-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.new2-guest-support-invite {
  position: relative;
  z-index: 2;
  width: min(310px, calc(100vw - 32px));
  padding: 6px 42px 6px 6px;
  border: 1px solid rgba(202, 218, 239, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px rgba(31, 58, 92, 0.18);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px) scale(.98);
  transform-origin: right bottom;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.new2-guest-support-invite[hidden] { display: none; }

.new2-guest-support-invite.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.new2-guest-support-invite::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(202, 218, 239, 0.86);
  border-bottom: 1px solid rgba(202, 218, 239, 0.86);
  background: #fff;
  transform: rotate(45deg);
}

.new2-guest-support-invite-copy {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--new2-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.new2-guest-support-invite-copy strong,
.new2-guest-support-invite-copy span { display: block; }

.new2-guest-support-invite-copy strong {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.new2-guest-support-invite-copy span {
  color: #66758d;
  font-size: 13px;
  line-height: 1.38;
}

.new2-guest-support-invite-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f6fb;
  color: #718099;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.new2-guest-support-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e94d5f;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.new2-guest-support-panel {
  position: relative;
  z-index: 2;
  width: min(92vw, 380px);
  height: min(78vh, 700px);
  min-height: 460px;
  border-radius: 24px;
  border: 1px solid rgba(229, 236, 243, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(31, 44, 71, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  transform: translateY(26px);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
  will-change: transform, opacity;
}

.new2-guest-support-panel[hidden] {
  display: none;
}

.new2-guest-support-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.new2-guest-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(229, 236, 243, 0.88);
}

.new2-guest-support-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.new2-guest-support-head p {
  margin: 5px 0 0;
  color: var(--new2-muted);
  font-size: 13px;
  line-height: 1.35;
}

.new2-guest-support-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--new2-line);
  border-radius: 14px;
  background: #fff;
  color: var(--new2-ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.new2-guest-support-close svg {
  width: 18px;
  height: 18px;
}

.new2-guest-support-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #f7faff;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.new2-guest-support-empty {
  border: 1px dashed rgba(159, 181, 214, 0.48);
  border-radius: 16px;
  padding: 14px;
  color: var(--new2-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.new2-guest-support-msg {
  max-width: 84%;
  border-radius: 18px;
  border: 1px solid rgba(159, 181, 214, 0.36);
  background: #fff;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.new2-guest-support-msg.admin {
  align-self: flex-start;
}

.new2-guest-support-msg.guest {
  align-self: flex-end;
  background: rgba(95, 151, 255, 0.1);
  border-color: rgba(95, 151, 255, 0.22);
}

.new2-guest-support-msg-meta {
  margin-top: 6px;
  color: var(--new2-muted);
  font-size: 12px;
}

.new2-guest-support-attachments {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new2-guest-support-attachments img {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 14px;
  border: 1px solid rgba(159, 181, 214, 0.42);
  background: #fff;
}

.new2-guest-support-error {
  margin: 0 16px 8px;
  color: #c94f66;
  font-size: 13px;
  line-height: 1.35;
}

.new2-guest-support-identity,
.new2-guest-support-form {
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(229, 236, 243, 0.88);
  background: #fff;
}

.new2-guest-support-identity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new2-guest-support-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--new2-muted);
  font-size: 12px;
  font-weight: 700;
}

.new2-guest-support-field input,
.new2-guest-support-field textarea {
  width: 100%;
  border: 1px solid var(--new2-line);
  border-radius: 15px;
  background: #fff;
  color: var(--new2-ink);
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.new2-guest-support-field textarea {
  resize: vertical;
  min-height: 74px;
}

.new2-guest-support-submit {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: #527eff;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.new2-guest-support-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.new2-guest-support-attach {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--new2-line);
  background: #fff;
  color: var(--new2-ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.new2-guest-support-attach input {
  display: none;
}

.new2-guest-support-attach svg {
  width: 22px;
  height: 22px;
}

.new2-guest-support-send svg {
  width: 18px;
  height: 18px;
}

.new2-guest-support-input-shell {
  position: relative;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(159, 181, 214, 0.4);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(95, 130, 155, 0.05);
}

.new2-guest-support-send {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border-color: #527eff;
  background: #527eff;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.new2-guest-support-send:disabled,
.new2-guest-support-send.is-waiting {
  opacity: 0.62;
  cursor: default;
}

.new2-guest-support-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  border: 0;
  border-radius: 23px;
  background: transparent;
  color: var(--new2-ink);
  padding: 11px 52px 11px 16px;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  overflow: hidden;
}

.new2-guest-support-deep-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #527eff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(82, 126, 255, 0.2);
}

.new2-guest-support-web-link {
  color: #315fc7;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.new2-guest-support-file-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(159, 181, 214, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--new2-muted);
  font-size: 12px;
}

.new2-guest-support-file-row[hidden] {
  display: none !important;
}

.new2-guest-support-file-preview {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: #edf3fb;
}

.new2-guest-support-file-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.new2-guest-support-file-progress {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#527eff calc(var(--upload-progress) * 1%), rgba(255, 255, 255, 0.55) 0);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(20, 34, 64, 0.45);
  box-shadow: 0 3px 10px rgba(20, 34, 64, 0.2);
}

.new2-guest-support-file-progress::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(20, 34, 64, 0.64);
}

.new2-guest-support-file-progress span {
  position: relative;
  z-index: 1;
}

.new2-guest-support-file-row.is-ready .new2-guest-support-file-progress {
  background: #20a878;
}

.new2-guest-support-file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new2-guest-support-file-copy strong,
.new2-guest-support-file-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new2-guest-support-file-copy strong {
  color: var(--new2-ink);
  font-size: 12px;
}

.new2-guest-support-file-remove {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 79, 102, 0.2);
  border-radius: 999px;
  background: rgba(255, 241, 244, 0.96);
  color: #c94f66;
  cursor: pointer;
}

.new2-guest-support-file-remove svg {
  width: 16px;
  height: 16px;
}

.new2-guest-support-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 78px;
  z-index: 5;
  padding: 12px 14px;
  border: 1px solid rgba(201, 79, 102, 0.24);
  border-radius: 14px;
  background: rgba(255, 244, 246, 0.98);
  color: #a9364f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(70, 36, 52, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.new2-guest-support-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 700px) {
  .new2-guest-support-field input,
  .new2-guest-support-field textarea,
  .new2-guest-support-form textarea {
    font-size: 16px;
  }

  .new2-guest-support {
    right: 0;
    bottom: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
  }

  .new2-guest-support-toggle {
    align-self: flex-end;
    margin: 0 12px 12px 0;
  }

  .new2-guest-support-invite {
    align-self: flex-end;
    margin: 0 12px 10px 0;
  }

  .new2-guest-support-panel {
    width: 100%;
    height: min(88dvh, 760px);
    min-height: min(540px, 88dvh);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(104%);
  }

  .new2-guest-support-panel.is-open {
    transform: translateY(0);
  }

}

@media (max-width: 700px) {
  .new2-guest-support-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 18px;
  }

  .new2-guest-support-toggle > span:not(.new2-guest-support-badge) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new2-guest-support-toggle::before { animation: none; }
}
