.tritton-support-chat-root[hidden] {
  display: none !important;
}

.tritton-support-chat-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.tritton-support-chat-root.is-open .tritton-support-chat-toggle {
  display: none;
}

.tritton-support-chat-toggle[hidden],
.tritton-support-chat-panel[hidden] {
  display: none !important;
}

.tritton-support-chat-toggle,
.tritton-support-chat-panel {
  pointer-events: auto;
}

.tritton-support-chat-toggle {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 224, 255, 0.82) 0%, rgba(126, 224, 255, 0) 42%),
    linear-gradient(135deg, #0b1e3a 0%, #0f2a4d 54%, #2f6fb5 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(11, 30, 58, 0.28), 0 0 0 1px rgba(63, 208, 255, 0.14);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tritton-support-chat-toggle:hover,
.tritton-support-chat-toggle:focus {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(11, 30, 58, 0.34), 0 0 0 1px rgba(63, 208, 255, 0.2);
}

.tritton-support-chat-toggle .dashicons {
  width: 26px;
  height: 26px;
  font-size: 26px;
}

.tritton-support-chat-panel {
  position: relative;
  width: min(396px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(126, 224, 255, 0.22) 0%, rgba(126, 224, 255, 0) 34%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(240, 246, 252, 0.98) 100%);
  border: 1px solid rgba(63, 208, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(11, 30, 58, 0.26), 0 0 0 1px rgba(11, 30, 58, 0.04);
  overflow: hidden;
}

.tritton-support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
  background:
    radial-gradient(circle at top right, rgba(126, 224, 255, 0.28) 0%, rgba(126, 224, 255, 0) 32%),
    linear-gradient(135deg, #0b1e3a 0%, #0f2a4d 56%, #2f6fb5 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tritton-support-chat-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.tritton-support-chat-subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(232, 242, 251, 0.86);
}

.tritton-support-chat-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tritton-support-chat-close:hover,
.tritton-support-chat-close:focus {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  color: #7ee0ff;
}

.tritton-support-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 16px 20px;
  background:
    linear-gradient(180deg, rgba(245, 249, 253, 0.88) 0%, rgba(255, 255, 255, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tritton-support-chat-messages {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tritton-support-chat-message {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 20px;
  border: 1px solid rgba(11, 30, 58, 0.08);
  box-shadow: 0 10px 24px rgba(11, 30, 58, 0.07);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.tritton-support-chat-message-assistant {
  align-self: flex-start;
  background: #ffffff;
  color: #0b1e3a;
  border-top-left-radius: 10px;
}

.tritton-support-chat-message-advisor {
  align-self: flex-start;
  background: #edf7ff;
  color: #0b1e3a;
  border-color: rgba(63, 208, 255, 0.26);
  border-top-left-radius: 10px;
}

.tritton-support-chat-message-user {
  align-self: flex-end;
  background:
    radial-gradient(circle at top left, rgba(126, 224, 255, 0.18) 0%, rgba(126, 224, 255, 0) 40%),
    linear-gradient(135deg, #0b1e3a 0%, #0f2a4d 52%, #2f6fb5 100%);
  color: #ffffff;
  border-color: transparent;
  border-top-right-radius: 10px;
}

.tritton-support-chat-message-system {
  align-self: center;
  background: rgba(15, 42, 77, 0.08);
  color: #475467;
}

.tritton-support-chat-form {
  margin-top: 2px;
  padding: 16px;
  border: 1px solid rgba(11, 30, 58, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(11, 30, 58, 0.08);
}

.tritton-support-chat-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #0b1e3a;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  line-height: 1.6;
  box-sizing: border-box;
}

.tritton-support-chat-form textarea:focus {
  outline: none;
}

.tritton-support-chat-form button {
  align-self: flex-end;
  min-height: 44px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(126, 224, 255, 0.2) 0%, rgba(126, 224, 255, 0) 36%),
    linear-gradient(135deg, #0b1e3a 0%, #0f2a4d 52%, #2f6fb5 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 12px 24px rgba(11, 30, 58, 0.2);
}

.tritton-support-chat-form button:hover,
.tritton-support-chat-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(11, 30, 58, 0.28);
}

.tritton-support-chat-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

body .elementor-element.elementor-element-f355e58 {
  cursor: pointer;
}

@media (max-width: 767px) {
  .tritton-support-chat-root {
    right: 12px;
    bottom: 12px;
  }

  .tritton-support-chat-panel {
    width: min(calc(100vw - 24px), 368px);
    height: min(78vh, 600px);
  }

  .tritton-support-chat-message {
    max-width: 100%;
  }

  .tritton-support-chat-body {
    padding: 16px 14px 18px;
  }

  .tritton-support-chat-form {
    padding: 14px;
  }
}
