.cml-widget {
  position: fixed;
  z-index: 999999;
  right: 24px;
  bottom: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18212f;
  line-height: 1.45;
}

.cml-widget.cml-positioned {
  right: auto;
  bottom: auto;
}

.cml-launcher {
  position: relative;
  display: flex;
  width: 78px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 0;
  border-radius: 18px;
  background: #1759d1;
  color: #fff;
  box-shadow: 0 8px 26px rgb(15 40 82 / 28%);
  cursor: grab;
  touch-action: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cml-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(15 40 82 / 34%);
}

.cml-launcher:focus-visible,
.cml-close:focus-visible,
.cml-message-link:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 3px;
}

.cml-launcher.cml-dragging {
  cursor: grabbing;
  transform: scale(1.06);
}

.cml-chat-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.cml-launcher-label {
  color: inherit;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.1;
  white-space: nowrap;
}

.cml-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e5374b;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.cml-panel {
  position: fixed;
  right: auto;
  bottom: auto;
  display: flex;
  width: min(360px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgb(18 36 68 / 22%);
  animation: cml-panel-in 180ms ease-out;
}

.cml-panel[hidden] {
  display: none;
}

@supports (height: 100dvh) {
  .cml-panel {
    max-height: min(560px, calc(100dvh - 24px));
  }
}

.cml-panel-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  background: #1759d1;
  color: #fff;
}

.cml-panel-header h2 {
  margin: 0;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
}

.cml-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.cml-close:hover {
  background: rgb(255 255 255 / 16%);
}

.cml-message-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  overscroll-behavior: contain;
}

.cml-account {
  flex: 0 0 auto;
  padding: 10px 14px 0;
  background: #edf4ef;
}

.cml-account-toggle,
.cml-account-button,
.cml-account-mode {
  min-height: 36px;
  border: 1px solid #0b8043;
  border-radius: 8px;
  background: #fff;
  color: #07592e;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.cml-account-toggle {
  width: 100%;
  padding: 7px 12px;
  text-align: left;
}

.cml-account-toggle:hover,
.cml-account-mode.is-active,
.cml-account-button {
  background: #0b8043;
  color: #fff;
}

.cml-account-tools {
  max-height: 250px;
  overflow-y: auto;
  padding: 0 0 10px;
}

.cml-account-modes {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.cml-account-mode {
  min-width: 84px;
  padding: 5px 10px;
}

.cml-account-form {
  display: grid;
  gap: 9px;
}

.cml-account-form label {
  display: grid;
  gap: 4px;
  color: #26352b;
  font-size: 12px;
  font-weight: 650;
}

.cml-account-form input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #a9b9ad;
  border-radius: 7px;
  background: #fff;
  color: #17231a;
  font: inherit;
  font-size: 14px;
}

.cml-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cml-antispam-label {
  color: #26352b;
  font-size: 12px;
}

.cml-account-form input:focus-visible,
.cml-account-toggle:focus-visible,
.cml-account-button:focus-visible,
.cml-account-mode:focus-visible,
.cml-account-text-button:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 2px;
}

.cml-account-button {
  width: fit-content;
  padding: 6px 13px;
}

.cml-account-button:disabled {
  cursor: wait;
  opacity: .65;
}

.cml-account-text-button {
  width: fit-content;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #07592e;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.cml-marketing-optin {
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.cml-marketing-optin input,
.cml-marketing-preference input {
  width: 16px !important;
  min-width: 16px;
  min-height: 16px !important;
  margin: 2px 0 0;
  accent-color: #0b8043;
}

.cml-marketing-preference {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 0 0 10px;
  color: #26352b;
  font-size: 12px;
}

.cml-marketing-preference label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.cml-marketing-preference .cml-account-notice {
  flex-basis: 100%;
  margin-top: 2px;
}

.cml-account-notice {
  margin: 8px 0 0;
  color: #26352b;
  font-size: 12px;
}

.cml-account-status {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  color: #26352b;
  font-size: 13px;
}

.cml-account-logout {
  min-height: 32px;
  padding: 4px 10px;
}

.cml-state {
  margin: 10px 4px;
  color: #58677d;
  font-size: 14px;
}

.cml-message {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e3e9f1;
  border-radius: 13px;
  background: #fff;
}

.cml-message:last-child {
  margin-bottom: 0;
}

.cml-message-image {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
}

.cml-message-body {
  padding: 13px 14px 14px;
}

.cml-message-body h3 {
  margin: 0 0 7px;
  color: #18212f;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.35;
}

.cml-message-content {
  color: #39475b;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.cml-message-content > :first-child {
  margin-top: 0;
}

.cml-message-content > :last-child {
  margin-bottom: 0;
}

.cml-message-content a {
  color: #1759d1;
}

.cml-message-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 9px;
  background: #1759d1;
  color: #fff !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.cml-message-link:hover {
  background: #1047ad;
}

.cml-locked-read,
.cml-locked-auth {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 0 0;
  padding: 6px 13px;
  border: 1px solid #0b8043;
  border-radius: 8px;
  background: #0b8043;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.cml-locked-read:hover,
.cml-locked-auth:hover {
  background: #07592e;
}

.cml-locked-login {
  background: #fff;
  color: #07592e;
}

.cml-locked-login:hover {
  color: #fff;
}

.cml-locked-invite {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e3e9f1;
}

.cml-locked-invite p {
  margin: 0;
  color: #39475b;
  font-size: 13px;
}

.cml-locked-read[hidden],
.cml-locked-invite[hidden] {
  display: none;
}

.cml-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 14px;
}

.cml-reaction-button {
  display: inline-flex;
  min-width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #f8fafd;
  color: #435168;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.cml-reaction-button:hover {
  border-color: #9bb8eb;
  background: #eef4ff;
  color: #1759d1;
}

.cml-reaction-button.is-selected {
  border-color: #1759d1;
  background: #eaf1ff;
  color: #1248aa;
}

.cml-reaction-button:disabled {
  cursor: wait;
  opacity: .65;
}

.cml-reaction-button:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 2px;
}

.cml-reaction-icon,
.cml-reaction-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cml-reaction-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cml-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.cml-reaction-error {
  flex-basis: 100%;
  color: #b42336;
  font-size: 12px;
}

@keyframes cml-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .cml-widget {
    right: 16px;
    bottom: 16px;
  }

  .cml-launcher {
    width: 74px;
    height: 106px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cml-launcher,
  .cml-panel {
    animation: none;
    transition: none;
  }
}

/* Keep ChanelOne readable when a WordPress theme applies global button or text styles. */
body .cml-widget,
body .cml-widget * {
  box-sizing: border-box;
}

body .cml-widget .cml-launcher {
  border: 0 !important;
  background: #0b8043 !important;
  color: #fff !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: 0 8px 26px rgb(8 72 39 / 34%) !important;
}

body .cml-widget .cml-launcher:hover {
  background: #076737 !important;
}

body .cml-widget .cml-chat-icon,
body .cml-widget .cml-launcher-label {
  color: #fff !important;
  opacity: 1 !important;
}

body .cml-widget .cml-badge {
  border-color: #fff !important;
  background: #c6283d !important;
  color: #fff !important;
}

body .cml-widget .cml-panel {
  border-color: #b8c9bd !important;
  background: #edf4ef !important;
  color: #17231a !important;
}

body .cml-widget .cml-account {
  background: #edf4ef !important;
  color: #26352b !important;
}

body .cml-widget .cml-account-form label,
body .cml-widget .cml-account-status,
body .cml-widget .cml-account-notice {
  color: #26352b !important;
  opacity: 1 !important;
}

body .cml-widget .cml-account-form input {
  border: 1px solid #a9b9ad !important;
  background: #fff !important;
  color: #17231a !important;
  opacity: 1 !important;
}

body .cml-widget .cml-account-button,
body .cml-widget .cml-account-mode.is-active {
  border-color: #0b8043 !important;
  background: #0b8043 !important;
  color: #fff !important;
  opacity: 1 !important;
}

body .cml-widget .cml-account-toggle,
body .cml-widget .cml-account-mode {
  border: 1px solid #0b8043 !important;
  background: #fff !important;
  color: #07592e !important;
}

body .cml-widget .cml-account-text-button {
  background: transparent !important;
  color: #07592e !important;
}

body .cml-widget .cml-marketing-optin,
body .cml-widget .cml-marketing-preference {
  color: #26352b !important;
  opacity: 1 !important;
}

body .cml-widget .cml-marketing-optin input,
body .cml-widget .cml-marketing-preference input {
  width: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  background: #fff !important;
  opacity: 1 !important;
}

body .cml-widget .cml-panel-header {
  background: #0b8043 !important;
  color: #fff !important;
}

body .cml-widget .cml-panel-header h2,
body .cml-widget .cml-close {
  color: #fff !important;
}

body .cml-widget .cml-close:hover {
  background: rgb(255 255 255 / 20%) !important;
}

body .cml-widget .cml-message {
  border-color: #c3d1c7 !important;
  background: #fff !important;
  color: #17231a !important;
}

body .cml-widget .cml-message-body,
body .cml-widget .cml-message-body h3,
body .cml-widget .cml-message-content,
body .cml-widget .cml-message-content p,
body .cml-widget .cml-message-content li {
  background-color: #fff !important;
  color: #26352b !important;
  opacity: 1 !important;
}

body .cml-widget .cml-message-image {
  filter: none !important;
  opacity: 1 !important;
}

body .cml-widget .cml-message-content a {
  color: #086b3b !important;
}

body .cml-widget .cml-message-link {
  border: 0 !important;
  background: #0b8043 !important;
  color: #fff !important;
  opacity: 1 !important;
}

body .cml-widget .cml-message-link:hover {
  background: #076737 !important;
}

body .cml-widget .cml-locked-read,
body .cml-widget .cml-locked-auth {
  display: inline-flex !important;
  min-height: 36px !important;
  border: 1px solid #0b8043 !important;
  background: #0b8043 !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}

body .cml-widget .cml-locked-login {
  background: #fff !important;
  color: #07592e !important;
}

body .cml-widget .cml-locked-read[hidden],
body .cml-widget .cml-locked-invite[hidden] {
  display: none !important;
}

body .cml-widget .cml-locked-invite p {
  background: #fff !important;
  color: #26352b !important;
  opacity: 1 !important;
}

body .cml-widget .cml-reaction-button {
  border: 1px solid #8fa397 !important;
  background: #f1f5f2 !important;
  color: #26372c !important;
  filter: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .cml-widget .cml-reaction-button:hover {
  border-color: #39815a !important;
  background: #e3f1e7 !important;
  color: #14532d !important;
}

body .cml-widget .cml-reaction-button.is-selected {
  border-color: #0b8043 !important;
  background: #d7f0df !important;
  color: #07592e !important;
}

body .cml-widget .cml-reaction-button:disabled {
  opacity: .78 !important;
}

body .cml-widget .cml-reaction-icon,
body .cml-widget .cml-reaction-icon svg,
body .cml-widget .cml-reaction-count {
  color: inherit !important;
  opacity: 1 !important;
}

body .cml-widget .cml-reaction-icon svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

body .cml-widget .cml-state {
  color: #39483e !important;
}

body .cml-widget .cml-reaction-error {
  color: #a61b2b !important;
}
