:host [data-type="chatbox"] {
  --chatbox-background: #ffffff;
  --chatbox-foreground: #000000;
  --chatbox-primary: var(--config-chatbox-primary-color, #cca400);
  --chatbox-secondary: #f5f5f5;
  --chatbox-success: #10b981;
  --chatbox-error: #d32f2f;
  --chatbox-border: #eeeeee;
  --chatbox-font-family: inherit;
}
[data-type="chatbox"] .chatbox-content {
  font-family: var(--chatbox-font-family) !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
}
[data-type="chatbox"] *,
[data-type="chatbox"] *:before,
[data-type="chatbox"] *:after {
  box-sizing: inherit;
}
[data-type="chatbox"] p,
[data-type="chatbox"] h1,
[data-type="chatbox"] h2,
[data-type="chatbox"] h3,
[data-type="chatbox"] h4,
[data-type="chatbox"] h5,
[data-type="chatbox"] h6 {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}
[data-type="chatbox"] ul,
[data-type="chatbox"] ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
[data-type="chatbox"] img {
  max-width: 100%;
  height: auto;
  display: block;
}
[data-type="chatbox"] button,
[data-type="chatbox"] input,
[data-type="chatbox"] textarea,
[data-type="chatbox"] select {
  font-family: var(--chatbox-font-family) !important;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
[data-type="chatbox"] a {
  color: inherit;
  text-decoration: none;
}
[data-type="chatbox"] .chatbox-home::-webkit-scrollbar,
.chatbox-messages::-webkit-scrollbar,
.chatbox-home-help-topics::-webkit-scrollbar,
.chatbox-help-faq-container::-webkit-scrollbar,
.chatbox-help-detail::-webkit-scrollbar,
.chatbox-conversations-list::-webkit-scrollbar {
  width: 6px;
}
[data-type="chatbox"] .chatbox-home::-webkit-scrollbar-track,
.chatbox-messages::-webkit-scrollbar-track,
.chatbox-home-help-topics::-webkit-scrollbar-track,
.chatbox-help-faq-container::-webkit-scrollbar-track,
.chatbox-help-detail::-webkit-scrollbar-track,
.chatbox-conversations-list::-webkit-scrollbar-track {
  background: transparent;
}
[data-type="chatbox"] .chatbox-home::-webkit-scrollbar-thumb,
.chatbox-messages::-webkit-scrollbar-thumb,
.chatbox-home-help-topics::-webkit-scrollbar-thumb,
.chatbox-help-faq-container::-webkit-scrollbar-thumb,
.chatbox-help-detail::-webkit-scrollbar-thumb,
.chatbox-conversations-list::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: #d1d1d1;
}
[data-type="chatbox"] .chatbox-home::-webkit-scrollbar-thumb:hover,
.chatbox-messages::-webkit-scrollbar-thumb:hover,
.chatbox-home-help-topics::-webkit-scrollbar-thumb:hover,
.chatbox-help-faq-container::-webkit-scrollbar-thumb:hover,
.chatbox-help-detail::-webkit-scrollbar-thumb:hover,
.chatbox-conversations-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}
[data-type="chatbox"] #chatbox-main {
  color: var(--chatbox-foreground);
  background: var(--chatbox-background);
}
[data-type="chatbox"] {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
[data-type="chatbox"] #chatbox-main.chatbox-open {
  position: relative;
  z-index: 9999;
}
[data-type="chatbox"] #chatbox-main.chatbox-open:after {
  content: "Connected to live support specialist";
  position: absolute;
  top: 61px;
  left: 0;
  width: 100%;
  height: auto;
  display: none;
  padding: 4px;
  align-items: center;
  justify-content: center;
  background: var(--chatbox-primary);
  color: var(--chatbox-background);
  box-shadow: 0 2px 4px #0000003d;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  z-index: 2;
}
[data-type="chatbox"]
  #chatbox-main.chatbox-open.show-support-notification:after {
  display: flex;
}
.body-chatbox-page-mode {
  overflow: hidden !important;
}
[data-type="chatbox"].page-mode.chatbox-container-open {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
[data-type="chatbox"].page-mode .chatbox-toggle-container {
  bottom: 20px;
  right: 20px;
  position: fixed;
  z-index: 9998;
}
[data-type="chatbox"].page-mode #chatbox-main {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
  transform: none;
  transition: none;
}
[data-type="chatbox"].page-mode .chatbox-home-sticky {
  border-radius: 0;
}
[data-type="chatbox"].page-mode.chatbox-container-open .chatbox-content {
  height: 100%;
}
[data-type="chatbox"] .chatbox-toggle-container {
  display: flex;
  justify-content: flex-end;
}
[data-type="chatbox"] #chatbox-toggle {
  background: var(--chatbox-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: var(--chatbox-background);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px #0000003d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 80px;
  height: auto;
  min-height: 80px;
  padding: 4px;
}
:host .chatbox-toggle-hint {
  position: fixed;
  z-index: 9997;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.2px;
  box-shadow:
    0 4px 16px #0000002e,
    0 1px 4px #0000000d;
  opacity: 0;
  transform: translate(80px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  width: fit-content;
  background-color: #fff;
  animation: subtle-bounce 3s ease-in-out infinite alternate;
  line-height: 24px;
  font-weight: 500;
}
:host .chatbox-toggle-hint:after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}
:host .chatbox-toggle-hint:before {
  content: "1";
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: #fb2c36;
  padding: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  color: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}
:host .chatbox-toggle-hint span {
  display: inline-block;
  line-height: 24px;
  max-width: 250px;
  width: auto;
  color: #000;
}
:host .chatbox-toggle-hint.show {
  opacity: 1;
  transform: translate(0);
}
@keyframes subtle-bounce {
  0% {
    transform: translate(0) translateY(0);
  }
  to {
    transform: translate(0) translateY(-6px);
  }
}
[data-type="chatbox"] #chatbox-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px #0000004d;
}
[data-type="chatbox"] #chatbox-toggle:active {
  transform: scale(0.95);
}
[data-type="chatbox"] #chatbox-toggle .chatbox-toggle-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"] #chatbox-toggle .chatbox-toggle-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--chatbox-background);
  line-height: 13px;
}
[data-type="chatbox"] #chatbox-toggle .chatbox-toggle-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] #chatbox-main {
  display: none;
  width: 400px;
  height: 80vh;
  max-height: 700px;
  border-radius: 12px;
  box-shadow: 0 20px 48px #0000003d;
  margin-bottom: 12px;
  flex-direction: column;
  opacity: 0;
  transform: translateY(120px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] #chatbox-main.chatbox-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-type="chatbox"] .chatbox-header {
  border-bottom: 1px solid var(--chatbox-border);
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
[data-type="chatbox"] .chatbox-header .chatbox-title {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  max-width: 300px;
}
[data-type="chatbox"] .chatbox-title {
  font-size: 18px;
}
[data-type="chatbox"] .chatbox-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: auto;
  margin-right: -6px;
}
[data-type="chatbox"] .chatbox-close svg {
  width: 20px;
  height: 20px;
}
[data-type="chatbox"] .chatbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
[data-type="chatbox"] .chatbox-back {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: -6px;
  z-index: 2;
}
[data-type="chatbox"] .chatbox-back svg {
  width: 20px;
  height: 20px;
}
[data-type="chatbox"] .chatbox-back:hover {
  background: rgba(0, 0, 0, 0.1);
}
[data-type="chatbox"] .chatbox-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-type="chatbox"] .chatbox-tab-pane {
  display: none;
  flex: 1;
  overflow: hidden;
}
[data-type="chatbox"] .chatbox-tab-pane.active {
  display: flex;
  flex-direction: column;
}
[data-type="chatbox"] .chatbox-messages {
  flex: 1;
  padding: 0 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 14px;
  scroll-behavior: auto;
  position: relative;
}
[data-type="chatbox"] .chatbox-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
[data-type="chatbox"] .chatbox-item.receiver {
  justify-content: flex-end;
}
[data-type="chatbox"] .chatbox-item.sender {
  justify-content: flex-start;
}
[data-type="chatbox"] .chatbox-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
  max-width: 85%;
  width: fit-content;
}
[data-type="chatbox"] .chatbox-content-wrapper .chatbox-bubble {
  margin-bottom: 0;
}
[data-type="chatbox"] .chatbox-content-wrapper .chatbox-bubble:last-child {
  margin-bottom: 0;
}
[data-type="chatbox"] .chatbox-bubble {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.35;
  box-shadow: 0 2px 6px #0000000f;
  position: relative;
}
[data-type="chatbox"] .chatbox-image-bubble {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none;
}
[data-type="chatbox"] .chatbox-item.sender .chatbox-bubble {
  background: var(--chatbox-secondary);
}
[data-type="chatbox"] .chatbox-item.chatbox-error .chatbox-bubble {
  background: color-mix(in srgb, var(--chatbox-error) 10%, transparent);
  border: 1px solid var(--chatbox-error);
  color: var(--chatbox-error);
}
[data-type="chatbox"] .chatbox-item.receiver .chatbox-bubble {
  background: var(--chatbox-primary);
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-pending {
  display: none;
  padding-bottom: 16px;
  flex-direction: column;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-pending-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 64px));
  align-items: end;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-pending-image-wrapper {
  position: relative;
}
[data-type="chatbox"] .chatbox-pending-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--chatbox-border);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
[data-type="chatbox"] .chatbox-pending-image:hover {
  transform: scale(1.05);
}
[data-type="chatbox"] .chatbox-pending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
[data-type="chatbox"] .chatbox-pending-files {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  align-items: center;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-pending-file {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--chatbox-border);
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: normal;
  height: fit-content;
}
[data-type="chatbox"] .chatbox-pending-file svg {
  width: 16px;
  height: 16px;
}
[data-type="chatbox"] .chatbox-upload-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
[data-type="chatbox"] .chatbox-upload-spinner svg {
  width: 16px;
  height: 16px;
  animation: chatbox-spin 1s linear infinite;
}
[data-type="chatbox"] .chatbox-attach-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"] .chatbox-attach {
  background: var(--chatbox-background);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
  gap: 6px;
  font-size: 14px;
  color: color-mix(in srgb, var(--chatbox-foreground) 50%, transparent);
  margin-left: -8px;
}
[data-type="chatbox"] .chatbox-attach:hover {
  background: var(--chatbox-secondary);
  border-color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-attach svg {
  width: 18px;
  height: 18px;
}
[data-type="chatbox"] .chatbox-footer {
  padding: 16px;
  border-top: 1px solid var(--chatbox-border);
}
[data-type="chatbox"] .chatbox-input-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--chatbox-border);
  background: var(--chatbox-background);
  box-shadow: #090e1529 0 0 4px;
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
[data-type="chatbox"] .chatbox-input-wrapper:focus-within {
  border: 1px solid var(--chatbox-primary);
  box-shadow: var(--chatbox-primary) 0 0 2px 0;
}
[data-type="chatbox"] .chatbox-input-wrapper textarea {
  font-size: 14px;
  resize: none;
  font-family: inherit;
  line-height: 20px;
  min-height: 40px;
  width: 100%;
  max-height: 158px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: break-word;
  padding: 12px 8px 2px 14px;
  border-radius: 24px;
  box-shadow: none;
}
[data-type="chatbox"] .chatbox-input-wrapper textarea::placeholder {
  opacity: 50%;
}
[data-type="chatbox"] .chatbox-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 14px;
}
[data-type="chatbox"] .chatbox-send {
  border: none;
  background: var(--chatbox-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
[data-type="chatbox"] .chatbox-send:hover {
  opacity: 0.9;
}
[data-type="chatbox"] .chatbox-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
[data-type="chatbox"] .chatbox-typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chatbox-primary);
  opacity: 0.4;
  animation: chatbox-typing 1.4s infinite ease-in-out;
}
[data-type="chatbox"] .chatbox-typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
[data-type="chatbox"] .chatbox-typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}
[data-type="chatbox"] .chatbox-timestamp {
  font-size: 11px;
  margin-top: 4px;
  text-align: right;
  opacity: 0.8;
}
[data-type="chatbox"] .chatbox-abs-timestamp {
  position: absolute;
  right: 8px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--chatbox-background) !important;
  padding: 2px 6px;
  border-radius: 8px;
  margin: 0;
}
[data-type="chatbox"] .chatbox-item.receiver .chatbox-timestamp {
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-date-header {
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin: 16px 0 8px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translate(-50%);
}
[data-type="chatbox"] .chatbox-message-content {
  margin-bottom: 2px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}
[data-type="chatbox"] .chatbox-message-content a {
  text-underline-offset: 4px;
  cursor: pointer;
}
[data-type="chatbox"] .chatbox-item.receiver .chatbox-message-content a {
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-item.sender .chatbox-message-content a {
  color: var(--chatbox-foreground);
}
[data-type="chatbox"] .chatbox-message-content a:hover {
  text-decoration: underline;
}
[data-type="chatbox"] .chatbox-previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-image-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-type="chatbox"] .chatbox-image-bubble .chatbox-image-only {
  border-radius: 8px;
  max-width: 240px;
  max-height: 240px;
  min-width: 80px;
  min-height: 80px;
  width: auto;
  height: auto;
  display: block;
}
[data-type="chatbox"] .chatbox-image-bubble .chatbox-image-only img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  max-width: 240px;
  min-height: 80px;
  min-width: 80px;
  object-fit: cover;
  border-radius: 8px;
}
[data-type="chatbox"] .chatbox-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  max-width: fit-content;
  height: 28px;
  padding: 0 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
}
[data-type="chatbox"] .chatbox-preview-file {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
[data-type="chatbox"] .chatbox-preview-file:hover {
  text-decoration: underline;
}
[data-type="chatbox"] .chatbox-file-icon {
  display: inline-flex;
  margin-right: 8px;
}
[data-type="chatbox"] .chatbox-file-icon svg {
  width: 18px;
  height: 18px;
}
[data-type="chatbox"] .chatbox-file-name {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px;
}
[data-type="chatbox"] .chatbox-file-size {
  opacity: 0.8;
  font-size: 12px;
}
[data-type="chatbox"] .chatbox-loading-more {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  z-index: 10;
  background: var(--chatbox-background);
  border-radius: 0 0 12px 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px #0000001a;
  animation: chatbox-loading-slide-down 0.3s ease-out;
}
[data-type="chatbox"] .chatbox-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-loading-spinner svg {
  animation: chatbox-spin 1s linear infinite;
}
[data-type="chatbox"] .chatbox-loading-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--chatbox-background);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}
[data-type="chatbox"] .chatbox-skeleton-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
[data-type="chatbox"] .chatbox-skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--chatbox-secondary) 25%,
    var(--chatbox-border) 50%,
    var(--chatbox-secondary) 75%
  );
  background-size: 200% 100%;
  animation: chatbox-skeleton-shimmer 1.5s infinite;
  flex-shrink: 0;
}
[data-type="chatbox"] .chatbox-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
[data-type="chatbox"] .chatbox-skeleton-bubble {
  background: linear-gradient(
    90deg,
    var(--chatbox-secondary) 25%,
    var(--chatbox-border) 50%,
    var(--chatbox-secondary) 75%
  );
  background-size: 200% 100%;
  animation: chatbox-skeleton-shimmer 1.5s infinite;
  border-radius: 16px;
  height: 40px;
  width: 60%;
}
[data-type="chatbox"] .chatbox-skeleton-bubble.long {
  width: 80%;
}
[data-type="chatbox"] .chatbox-skeleton-bubble.short {
  width: 40%;
}
[data-type="chatbox"] .chatbox-skeleton-item.receiver {
  justify-content: flex-end;
}
[data-type="chatbox"] .chatbox-skeleton-item.receiver .chatbox-skeleton-avatar {
  order: 2;
}
[data-type="chatbox"]
  .chatbox-skeleton-item.receiver
  .chatbox-skeleton-content {
  order: 1;
  align-items: flex-end;
}
[data-type="chatbox"] .chatbox-skeleton-item.receiver .chatbox-skeleton-bubble {
  background: linear-gradient(
    90deg,
    var(--chatbox-border) 25%,
    var(--chatbox-secondary) 50%,
    var(--chatbox-border) 75%
  );
  background-size: 200% 100%;
  animation: chatbox-skeleton-shimmer 1.5s infinite;
}
[data-type="chatbox"] .chatbox-loading-skeleton.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
[data-type="chatbox"] .chatbox-messages {
  position: relative;
  z-index: 1;
}
[data-type="chatbox"] .chatbox-bottom-nav {
  display: flex;
  border-top: 1px solid var(--chatbox-border);
  padding: 8px 0;
  border-radius: 0 0 12px 12px;
  box-shadow: #090e150f 0 0 25px;
}
[data-type="chatbox"] .chatbox-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: color-mix(in srgb, var(--chatbox-foreground), transparent);
}
[data-type="chatbox"] .chatbox-nav-item.active,
[data-type="chatbox"] .chatbox-nav-item:hover {
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
[data-type="chatbox"] .chatbox-nav-icon svg {
  width: 20px;
  height: 20px;
}
[data-type="chatbox"] .chatbox-nav-item span {
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-bottom-nav-add {
  padding: 16px;
}
[data-type="chatbox"] .chatbox-bottom-nav-add button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: var(--chatbox-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
[data-type="chatbox"] .chatbox-home {
  padding-inline: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}
[data-type="chatbox"] .chatbox-home-sticky {
  height: 360px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform: translateZ(0);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(
    to bottom,
    var(--chatbox-primary) 0%,
    var(--chatbox-primary) 70%,
    rgba(255, 255, 255, 1) 100%
  );
}
[data-type="chatbox"] .chatbox-home-header {
  position: relative;
  z-index: 2;
  padding: 20px 0 150px;
}
[data-type="chatbox"] .chatbox-home-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 70px;
}
[data-type="chatbox"] .chatbox-home-header-close-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: -8px;
}
[data-type="chatbox"] .chatbox-home-header-close-icon:hover {
  background-color: #0000001a;
}
[data-type="chatbox"] .chatbox-home-header-close-icon svg {
  width: 20px;
  height: 20px;
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-home-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-home-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
[data-type="chatbox"] .chatbox-home-greeting {
  font-size: 28px;
  font-weight: 600;
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-home-container {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -125px;
  padding-block: 16px;
}
[data-type="chatbox"] .chatbox-home-recent-message {
  background-color: var(--chatbox-background);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow:
    #090e150f 0 4px 28px,
    #090e150f 0 1px 4px;
  cursor: pointer;
}
[data-type="chatbox"]
  .chatbox-home-recent-message:hover
  .chatbox-home-recent-message-title {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-home-recent-message-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
[data-type="chatbox"] .chatbox-home-recent-message-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
[data-type="chatbox"] .chatbox-home-recent-message-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
[data-type="chatbox"] .chatbox-home-recent-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
[data-type="chatbox"] .chatbox-home-recent-message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
[data-type="chatbox"] .chatbox-home-recent-message-item-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
[data-type="chatbox"] .chatbox-home-recent-message-item-text {
  font-size: 14px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}
[data-type="chatbox"] .chatbox-home-recent-message-item-time {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
[data-type="chatbox"] .chatbox-home-recent-message-item-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-home-help-topics {
  background-color: var(--chatbox-background);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  padding: 8px;
  border-radius: 12px;
  box-shadow:
    #090e150f 0 0 28px,
    #090e150f 0 1px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-home-help-search {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
[data-type="chatbox"] .chatbox-home-help-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  padding: 10px 12px;
  background-color: var(--chatbox-secondary);
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  font-weight: 500;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] .chatbox-home-help-search:hover {
  color: var(--chatbox-primary);
  background: color-mix(in srgb, var(--chatbox-primary) 10%, transparent);
}
[data-type="chatbox"] .chatbox-home-help-search svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"] .chatbox-home-help-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item:hover {
  background: color-mix(in srgb, var(--chatbox-primary) 10%, transparent);
  color: var(--chatbox-primary);
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item:hover
  p {
  color: var(--chatbox-primary);
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item-text {
  flex: 1;
  font-size: 14px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"]
  .chatbox-home-help-topics-list
  .chatbox-home-help-topic-item-arrow
  svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-help-topics {
  background-color: var(--chatbox-background);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
[data-type="chatbox"] .chatbox-help-search {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-radius: 8px;
  margin: 16px;
}
[data-type="chatbox"] .chatbox-help-search input {
  width: 100%;
  height: 40px;
  padding: 6px 32px 6px 12px;
  outline: none;
  border: 1px solid transparent;
  font-size: 14px;
  border-radius: 8px;
  background: var(--chatbox-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] .chatbox-help-search input:focus {
  border: 1px solid var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-help-search svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
[data-type="chatbox"] .chatbox-help-faq-container {
  flex: 1;
  overflow: hidden auto;
}
[data-type="chatbox"] .chatbox-help-faq {
  border-top: 1px solid var(--chatbox-border);
  padding: 16px;
}
[data-type="chatbox"] .chatbox-help-faq-title {
  font-size: 16px;
  font-weight: 500;
}
[data-type="chatbox"] .chatbox-help-faq-description {
  font-size: 14px;
  margin-top: 8px;
}
[data-type="chatbox"] .chatbox-help-faq-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
[data-type="chatbox"] .chatbox-help-faq-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  opacity: 0.6;
}
[data-type="chatbox"] .chatbox-help-faq-meta-left span {
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-help-faq-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-help-faq-meta-right-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
[data-type="chatbox"] .chatbox-help-faq-meta-right-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
[data-type="chatbox"] .chatbox-help-topics-list {
  border-top: 1px solid var(--chatbox-border);
  padding: 8px 0;
}
[data-type="chatbox"] .chatbox-help-topics-list .chatbox-help-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
[data-type="chatbox"] .chatbox-help-topics-list .chatbox-help-topic-item:hover {
  background: color-mix(in srgb, var(--chatbox-primary) 10%, transparent);
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-help-topics-list .chatbox-help-topic-item-text {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
[data-type="chatbox"] .chatbox-help-topics-list .chatbox-help-topic-item-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"]
  .chatbox-help-topics-list
  .chatbox-help-topic-item-arrow
  svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-help-detail {
  background-color: var(--chatbox-background);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  flex-direction: column;
}
[data-type="chatbox"] .chatbox-help-detail-title {
  font-size: 24px;
  font-weight: 700;
  padding: 20px 16px 16px;
}
[data-type="chatbox"] .chatbox-help-author-info {
  flex: 1;
}
[data-type="chatbox"] .chatbox-help-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
[data-type="chatbox"] .chatbox-help-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  font-size: 13px;
  padding: 0 16px;
}
[data-type="chatbox"] .chatbox-help-detail-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
[data-type="chatbox"] .chatbox-help-detail-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-type="chatbox"] .chatbox-help-detail-text {
  line-height: 1.6;
  margin: 24px 0;
  padding: 0 16px;
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-help-detail-feedback {
  border-top: 1px solid var(--chatbox-border);
  padding: 20px 16px;
}
[data-type="chatbox"] .chatbox-help-feedback-question {
  font-size: 14px;
  text-align: center;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
}
[data-type="chatbox"] .chatbox-help-emoji-feedback {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
[data-type="chatbox"] .chatbox-help-emoji-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.6;
}
[data-type="chatbox"] .chatbox-help-emoji-btn:hover,
[data-type="chatbox"] .chatbox-help-emoji-btn.active {
  opacity: 1;
  background: color-mix(in srgb, var(--chatbox-primary) 20%, transparent);
  transform: scale(1.1);
}
[data-type="chatbox"] .chatbox-help-feedback-thanks {
  font-size: 14px;
  color: var(--chatbox-primary);
  font-weight: 500;
  margin: 0;
  padding: 12px 0;
}
[data-type="chatbox"] .chatbox-help-no-results {
  padding: 40px 16px;
  text-align: center;
}
[data-type="chatbox"] .chatbox-help-no-results h6 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}
[data-type="chatbox"] .chatbox-help-no-results p {
  font-size: 14px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
}
[data-type="chatbox"] .chatbox-conversations {
  height: 100%;
  display: flex;
  flex-direction: column;
}
[data-type="chatbox"] .chatbox-conversations-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--chatbox-border);
}
[data-type="chatbox"] .chatbox-conversations-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
}
[data-type="chatbox"] .chatbox-conversations-search input {
  width: 100%;
  height: 40px;
  padding: 6px 32px 6px 12px;
  outline: none;
  border: 1px solid transparent;
  font-size: 14px;
  border-radius: 8px;
  background: var(--chatbox-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] .chatbox-conversations-search input:focus {
  border: 1px solid var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-conversations-search svg {
  width: 16px;
  height: 16px;
  color: var(--chatbox-primary);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
[data-type="chatbox"] .chatbox-conversations-add {
  position: fixed;
  padding: 0 16px;
  bottom: 98px;
  right: 16px;
  height: 40px;
  border-radius: 8px;
  background: var(--chatbox-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 10;
  font-size: 14px;
  box-shadow: 0 4px 16px
    color-mix(in srgb, var(--chatbox-primary) 20%, transparent);
}
[data-type="chatbox"] .chatbox-conversations-add svg {
  width: 18px;
  height: 18px;
}
[data-type="chatbox"] .chatbox-conversations-list {
  flex: 1;
  overflow-y: auto;
}
[data-type="chatbox"] .chatbox-conversation-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid
    color-mix(in srgb, var(--chatbox-border) 60%, transparent);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-type="chatbox"] .chatbox-conversation-item .chatbox-conversation-delete {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--chatbox-error);
  background-color: #d32f2f33;
  transition:
    background-color 0.2s,
    color 0.2s;
}
[data-type="chatbox"] .chatbox-conversation-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"] .chatbox-conversation-delete:hover {
  color: var(--chatbox-background);
  background-color: var(--chatbox-error);
}
[data-type="chatbox"] .chatbox-conversation-item:hover {
  background-color: color-mix(in srgb, var(--chatbox-primary) 10%, transparent);
}
[data-type="chatbox"] .chatbox-no-conversations {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-no-conversations svg {
  width: 40px;
  height: 40px;
  color: color-mix(in srgb, var(--chatbox-foreground) 40%, transparent);
  stroke-width: 1.5px;
}
[data-type="chatbox"] .chatbox-conversation-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-type="chatbox"] .chatbox-conversation-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
[data-type="chatbox"] .chatbox-conversation-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}
[data-type="chatbox"] .chatbox-conversation-header-title-text {
  width: 240px;
}
[data-type="chatbox"] .chatbox-conversation-header-title-text p {
  line-clamp: 1;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: normal;
  font-weight: 500;
  width: 240px;
}
[data-type="chatbox"]
  .chatbox-conversation-header-title-text
  .chatbox-conversation-status {
  font-weight: 400;
  margin-top: 4px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  text-transform: capitalize;
  font-size: 12px;
}
[data-type="chatbox"] .chatbox-conversation-avatar {
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}
[data-type="chatbox"] .chatbox-conversation-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
[data-type="chatbox"] .chatbox-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-online-indicator.active {
  background-color: var(--chatbox-success);
}
[data-type="chatbox"] .chatbox-online-indicator.ended {
  background-color: var(--chatbox-error);
}
[data-type="chatbox"] .chatbox-conversation-content {
  flex: 1;
  min-width: 0;
}
[data-type="chatbox"] .chatbox-conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
[data-type="chatbox"] .chatbox-conversation-name {
  font-weight: 600;
  color: var(--chatbox-foreground);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-type="chatbox"] .chatbox-pending-image-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chatbox-error);
  border: 2px solid var(--chatbox-background);
  color: var(--chatbox-background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
[data-type="chatbox"] .chatbox-pending-image-close svg {
  width: 12px;
  height: 12px;
}
[data-type="chatbox"] .chatbox-pending-image-close:hover {
  background: var(--chatbox-error);
}
[data-type="chatbox"] .chatbox-conversation-time {
  font-size: 12px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  flex-shrink: 0;
  margin-left: 8px;
}
[data-type="chatbox"] .chatbox-conversation-message {
  font-size: 13px;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
[data-type="chatbox"] .chatbox-unread-indicator {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--chatbox-primary);
  border-radius: 50%;
}
[data-type="chatbox"] .chatbox-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}
[data-type="chatbox"] .chatbox-highlight {
  background: color-mix(in srgb, var(--chatbox-primary) 30%, transparent);
  border-radius: 3px;
  padding: 0 2px;
}
[data-type="chatbox"] .chatbox-conversation-ended {
  display: flex;
  justify-content: center;
  align-items: center;
  color: color-mix(in srgb, var(--chatbox-foreground) 60%, transparent);
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-input-wrapper[style*="display: none"] {
  display: none !important;
}
[data-type="chatbox"] .chatbox-confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: chatbox-fade-in 0.2s ease-out forwards;
}
[data-type="chatbox"] .chatbox-confirm-dialog {
  font-family: var(--chatbox-font-family) !important;
  background: var(--chatbox-background);
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px #0000001a,
    0 10px 10px -5px #0000000a;
  max-width: 460px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  animation: chatbox-scale-in 0.2s ease-out forwards;
}
[data-type="chatbox"] .chatbox-confirm-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--chatbox-border);
}
[data-type="chatbox"] .chatbox-confirm-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--chatbox-foreground);
}
[data-type="chatbox"] .chatbox-confirm-dialog-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--chatbox-foreground);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-type="chatbox"] .chatbox-confirm-dialog-close:hover {
  background: rgba(0, 0, 0, 0.1);
}
[data-type="chatbox"] .chatbox-confirm-dialog-close svg {
  width: 20px;
  height: 20px;
}
[data-type="chatbox"] .chatbox-confirm-dialog-body {
  padding: 16px;
}
[data-type="chatbox"] .chatbox-confirm-dialog-description {
  margin: 0;
  color: var(--chatbox-foreground);
  line-height: 1.5;
  font-size: 14px;
}
[data-type="chatbox"] .chatbox-confirm-dialog-footer {
  display: flex;
  gap: 12px;
  padding: 16px;
  justify-content: flex-end;
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn .confirm-button-text {
  display: flex;
  align-items: center;
  height: 100%;
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-secondary {
  background: var(--chatbox-border);
  color: var(--chatbox-foreground);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-secondary:hover {
  background: var(--chatbox-border);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-primary {
  background: var(--chatbox-primary);
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-primary:hover {
  background: var(--chatbox-primary);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-danger {
  background: var(--chatbox-error);
  color: var(--chatbox-background);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn-danger:hover {
  background: var(--chatbox-error);
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn:hover {
  opacity: 0.8;
}
[data-type="chatbox"] .chatbox-confirm-dialog-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[data-type="chatbox"]
  .chatbox-confirm-dialog-btn[data-action="confirm"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
[data-type="chatbox"] .confirm-button-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chatbox-background);
  height: fit-content;
}
[data-type="chatbox"] .confirm-button-spinner svg {
  animation: chatbox-spin 1s linear infinite;
  width: 16px;
  height: 16px;
}
[data-type="chatbox"] .chatbox-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}
[data-type="chatbox"] .chatbox-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
[data-type="chatbox"] .chatbox-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px #0000004d;
}
[data-type="chatbox"] .chatbox-modal-image {
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
[data-type="chatbox"] .chatbox-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
[data-type="chatbox"] .chatbox-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}
[data-type="chatbox"] .chatbox-modal-close svg {
  width: 20px;
  height: 20px;
}
@keyframes chatbox-fade-in {
  to {
    opacity: 1;
  }
}
@keyframes chatbox-scale-in {
  to {
    transform: scale(1);
  }
}
@keyframes chatbox-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes chatbox-scale-out {
  to {
    transform: scale(0.95);
  }
}
@keyframes chatbox-skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
@keyframes chatbox-spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes chatbox-loading-slide-down {
  0% {
    transform: translate(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%) translateY(0);
    opacity: 1;
  }
}
@keyframes chatbox-typing {
  0%,
  80%,
  to {
    transform: scale(0.8);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 640px) {
  .body-chatbox-modal-open {
    overflow: hidden !important;
  }
  [data-type="chatbox"].chatbox-container-open {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
  }
  [data-type="chatbox"] .chatbox-title {
    font-size: 20px;
  }
  [data-type="chatbox"] #chatbox-main {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0 !important;
    margin-bottom: 0;
  }
  [data-type="chatbox"] .chatbox-header {
    border-radius: 0 !important;
  }
  [data-type="chatbox"] .chatbox-toggle-container {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
  }
  [data-type="chatbox"] {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  @supports (height: 100dvh) {
    [data-type="chatbox"] #chatbox-main {
      height: 100dvh;
    }
  }
  @supports not (height: 100dvh) {
    [data-type="chatbox"] #chatbox-main {
      height: 100vh;
      height: calc(100vh - env(keyboard-inset-height, 0px));
    }
  }
  [data-type="chatbox"] .chatbox-input-wrapper textarea,
  [data-type="chatbox"] .chatbox-name-form input {
    font-size: 16px;
  }
  [data-type="chatbox"] #chatbox-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  [data-type="chatbox"] .chatbox-messages {
    flex: 1;
    min-height: 0;
  }
  [data-type="chatbox"] .chatbox-bottom-nav {
    padding: 0;
  }
  [data-type="chatbox"] .chatbox-home-sticky {
    height: 360px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateZ(0);
    border-radius: 0;
  }
  [data-type="chatbox"] .chatbox-conversations-add {
    bottom: 82px;
  }
  [data-type="chatbox"] .chatbox-conversation-item {
    padding: 12px 16px;
  }
  [data-type="chatbox"] .chatbox-confirm-dialog-footer {
    flex-direction: column;
  }
  [data-type="chatbox"] .chatbox-modal-overlay {
    padding: 10px;
  }
  [data-type="chatbox"] .chatbox-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  [data-type="chatbox"] .chatbox-modal-close svg {
    width: 16px;
    height: 16px;
  }
  :host .chatbox-toggle-hint {
    padding: 8px 12px;
    border-top-left-radius: 0;
  }
  :host .chatbox-toggle-hint:before {
    top: -6px;
    left: -6px;
  }
  :host .chatbox-toggle-hint span {
    font-size: 12px;
    line-height: 20px;
    max-width: 200px;
  }
}
