.clc-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: auto;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  z-index: 9999;
}

.clc-launcher-icon {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  font-size: 0;
}

.clc-launcher-icon svg {
  width: 27px;
  height: 27px;
  display: block;
}

.clc-launcher-ticket {
  width: auto;
  min-width: 180px;
  height: 54px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
}

.clc-launcher-text {
  border-radius: 999px;
}

.clc-panel {
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: min(360px, calc(100vw - 24px));
  height: min(82vh, 700px);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.33);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.clc-panel.is-open {
  display: flex;
}

.clc-header {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  padding: 12px 14px;
  background: #0f766e;
}

.clc-note {
  font-size: 12px;
  color: #334155;
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f6f8fc;
}

.clc-typing {
  min-height: 16px;
  font-style: italic;
}

.clc-messages {
  min-height: 120px;
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 10px 6px;
  background: #f6f8fc;
}

.clc-msg {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #e2e8f0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.clc-msg.user {
  background: #0f7a72;
  color: #fff;
  margin-left: 24px;
}

.clc-msg.assistant {
  background: #e2e8f0;
  margin-right: 40px;
}

.clc-msg.agent {
  background: #0c3a58;
  color: #fff;
  margin-right: 24px;
}

.clc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 7px 10px 8px;
  border-top: 1px solid #e2e8f0;
  flex: 0 0 auto;
  background: #f6f8fc;
  align-items: end;
}

.clc-email {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 10px 12px;
  resize: none;
}

.clc-composer {
  position: relative;
  min-width: 0;
}

.clc-file {
  display: none;
}

.clc-file-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid #b8c4d8;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
}

.clc-attach {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.clc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 5px;
  flex: 0 0 auto;
  background: #f6f8fc;
}

.clc-action {
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #b8c4d8;
}

.clc-action-muted {
  opacity: 0.96;
}

.clc-input {
  border: 2px solid #273548;
  border-radius: 12px;
  padding: 12px 12px 12px 48px;
  font-size: 16px;
  line-height: 1.35;
  background: #fff;
  min-width: 0;
  width: 100%;
  min-height: 82px;
  resize: vertical;
  box-sizing: border-box;
}

.clc-send {
  border: 0;
  border-radius: 999px;
  background: #0f7a72;
  color: #fff;
  min-width: 74px;
  min-height: 54px;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clc-brand {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 6px 8px 8px;
  background: #f6f8fc;
}

@media (max-width: 520px) {
  .clc-launcher {
    right: 12px;
    bottom: 12px;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 13px;
  }

  .clc-launcher-ticket {
    min-width: 0;
    width: auto;
  }

  .clc-panel {
    left: 8px;
    right: 8px;
    bottom: 68px;
    width: auto;
    height: min(88vh, 700px);
    border-radius: 16px;
  }

  .clc-header {
    font-size: 20px;
    padding: 11px 13px;
  }

  .clc-msg.user {
    margin-left: 18px;
  }

  .clc-msg.agent,
  .clc-msg.assistant {
    margin-right: 18px;
  }

  .clc-actions {
    gap: 6px;
    padding: 0 10px 5px;
  }

  .clc-action {
    padding: 5px 6px;
    font-size: 10px;
  }

  .clc-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .clc-send {
    min-width: 66px;
    max-width: 82px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .clc-input {
    min-height: 82px;
  }
}
