.cricket-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: #174a2f;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(16,19,16,.22);
  font: 800 13px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.cricket-chat-launcher svg,
.cricket-chat-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.cricket-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 80;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 102px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16,19,16,.22);
  font-family: Inter, Arial, sans-serif;
}

.cricket-chat-panel.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cricket-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  color: #fff;
  background: #101310;
}

.cricket-chat-title {
  display: grid;
  gap: 3px;
}

.cricket-chat-title strong {
  font-size: 15px;
}

.cricket-chat-title span {
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.cricket-chat-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  cursor: pointer;
}

.cricket-chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 290px;
  overflow: auto;
  padding: 14px;
  background: #f7f3ea;
}

.cricket-chat-msg {
  width: fit-content;
  max-width: 92%;
  padding: 10px 11px;
  border-radius: 8px;
  color: #101310;
  background: #fff;
  border: 1px solid #ddd6c8;
  font-size: 13px;
  line-height: 1.45;
}

.cricket-chat-msg.user {
  justify-self: end;
  color: #fff;
  background: #174a2f;
  border-color: #174a2f;
}

.cricket-chat-msg.loading {
  color: #716b60;
}

.cricket-chat-msg a {
  color: #174a2f;
  font-weight: 800;
}

.cricket-chat-refs {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd6c8;
}

.cricket-chat-refs a {
  display: block;
  margin-top: 4px;
}

.cricket-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 12px;
  background: #f7f3ea;
}

.cricket-chat-chip {
  min-height: 30px;
  padding: 0 10px;
  color: #174a2f;
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cricket-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #ddd6c8;
}

.cricket-chat-input {
  min-height: 42px;
  min-width: 0;
  padding: 0 11px;
  color: #101310;
  background: #fbf8f1;
  border: 1px solid #ddd6c8;
  border-radius: 6px;
}

.cricket-chat-send {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #174a2f;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cricket-chat-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #716b60;
  font-size: 11px;
}

@media (max-width: 520px) {
  .cricket-chat-launcher {
    right: 12px;
    bottom: 12px;
  }

  .cricket-chat-panel {
    right: 10px;
    bottom: 70px;
    width: calc(100vw - 20px);
  }
}
