.joy-chat-has-widget .fixed.bottom-6.right-6.z-50.flex.flex-col.gap-4 {
  display: none;
}

body.joy-chat-portal-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(253, 192, 3, 0.24), transparent 32%),
    linear-gradient(180deg, #fff8e7 0%, #fff1c7 100%);
  color: #392e00;
  font-family: Arial, sans-serif;
}

.joy-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.joy-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #ab2d00;
  color: #fff;
  box-shadow: 0 12px 32px rgba(171, 45, 0, 0.24);
  cursor: pointer;
  font-weight: 700;
}

.joy-chat-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.joy-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 24px));
  height: 560px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(57, 46, 0, 0.18);
  border: 1px solid rgba(57, 46, 0, 0.08);
}

.joy-chat-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fdc003, #ffdf7c);
  color: #3d2b00;
}

.joy-chat-panel-header h3,
.joy-chat-portal-session-head h3,
.joy-chat-portal-sidebar-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.joy-chat-panel-header p,
.joy-chat-portal-session-head p,
.joy-chat-portal-sidebar-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(61, 43, 0, 0.78);
}

.joy-chat-close {
  border: 0;
  background: transparent;
  color: #3d2b00;
  font-size: 24px;
  cursor: pointer;
}

.joy-chat-panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.joy-chat-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 16px 0;
}

.joy-chat-contact-grid label,
.joy-chat-form,
.joy-chat-portal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.joy-chat-contact-grid span {
  font-size: 12px;
  font-weight: 700;
  color: #695b23;
}

.joy-chat-contact-grid input,
.joy-chat-form textarea,
.joy-chat-portal-form textarea {
  width: 100%;
  border: 1px solid rgba(57, 46, 0, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: #fffdf7;
}

.joy-chat-messages,
.joy-chat-portal-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #fffaf0;
}

.joy-chat-message {
  max-width: 82%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(57, 46, 0, 0.06);
}

.joy-chat-message.is-own {
  margin-left: auto;
  background: #ffe08b;
}

.joy-chat-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #695b23;
}

.joy-chat-message-body {
  font-size: 14px;
  line-height: 1.6;
  color: #392e00;
  word-break: break-word;
}

.joy-chat-form,
.joy-chat-portal-form {
  padding: 16px;
  border-top: 1px solid rgba(57, 46, 0, 0.08);
  background: #fff;
}

.joy-chat-form button,
.joy-chat-portal-form button,
.joy-chat-portal-login {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #ab2d00;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.joy-chat-form.is-busy button,
.joy-chat-portal-form.is-busy button {
  opacity: 0.65;
  pointer-events: none;
}

.joy-chat-notice {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.joy-chat-notice[data-type='error'] {
  background: #ffe0dc;
  color: #7b2000;
}

.joy-chat-empty,
.joy-chat-portal-empty,
.joy-chat-portal-guest {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: #695b23;
}

.joy-chat-portal {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: 70vh;
}

.joy-chat-h5-shell {
  min-height: 100vh;
  padding: 24px 18px 28px;
  box-sizing: border-box;
}

.joy-chat-h5-shell-guest {
  display: flex;
  align-items: center;
  justify-content: center;
}

.joy-chat-h5-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.joy-chat-h5-header h1,
.joy-chat-login-brand h1 {
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
}

.joy-chat-login-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(171, 45, 0, 0.1);
  color: #ab2d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.joy-chat-h5-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #392e00;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(57, 46, 0, 0.08);
}

.joy-chat-login-card {
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(57, 46, 0, 0.12);
  backdrop-filter: blur(16px);
}

.joy-chat-login-brand p {
  margin: 0 0 20px;
  color: #695b23;
  line-height: 1.7;
}

.joy-chat-login-form {
  display: grid;
  gap: 14px;
}

.joy-chat-login-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #695b23;
}

.joy-chat-login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(57, 46, 0, 0.12);
  border-radius: 16px;
  background: #fffdf7;
  font: inherit;
}

.joy-chat-login-form button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ab2d00, #d63a00);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.joy-chat-login-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffe0dc;
  color: #7b2000;
  font-size: 13px;
}

.joy-chat-portal-sidebar,
.joy-chat-portal-main {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(57, 46, 0, 0.08);
  overflow: hidden;
}

.joy-chat-portal-sidebar-head,
.joy-chat-portal-session-head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(57, 46, 0, 0.08);
  background: #fff8e7;
}

.joy-chat-portal-sessions {
  padding: 14px;
}

.joy-chat-session-item {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(57, 46, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.joy-chat-session-item.is-active {
  border-color: #fdc003;
  background: #fff7d8;
}

.joy-chat-session-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #695b23;
}

.joy-chat-session-row strong {
  color: #392e00;
}

.joy-chat-unread {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ab2d00;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 960px) {
  .joy-chat-h5-shell {
    padding: 18px 14px 24px;
  }

  .joy-chat-h5-header {
    flex-direction: column;
  }

  .joy-chat-portal {
    grid-template-columns: 1fr;
  }

  .joy-chat-h5-header h1,
  .joy-chat-login-brand h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .joy-chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .joy-chat-panel {
    width: min(100vw - 24px, 380px);
    bottom: 68px;
    height: 72vh;
  }

  .joy-chat-login-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .joy-chat-portal-sidebar,
  .joy-chat-portal-main {
    border-radius: 22px;
  }
}
