/**
 * @file
 * Native skin for the chat widget: structural layout only, with neutral
 * colours and UNSTYLED form controls so inputs/buttons inherit the page
 * theme's native look. The configured primary colour still tints the
 * launcher and the visitor's bubbles via --chatcove-brand.
 */
.chatcove {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
}
.chatcove.bottom-right { right: 20px; }
.chatcove.bottom-left { left: 20px; }

.chatcove-launcher {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--chatcove-brand, #0d6efd);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  display: grid;
  place-items: center;
}
.chatcove-launcher svg { width: 24px; height: 24px; }

.chatcove-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 28px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid #adb5bd;
  border-radius: 3px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chatcove.bottom-left .chatcove-panel { right: auto; left: 0; }

.chatcove-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f4f5;
  border-bottom: 1px solid #d3d4d7;
  color: #2a2a2a;
}
.chatcove-brand { font-weight: 700; }
.chatcove-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #595959; }
.chatcove-dot { width: 8px; height: 8px; border-radius: 50%; background: #4c9a2a; }
.chatcove-newchat {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #c5c8cc;
  border-radius: 6px;
  background: #fff;
  color: #1b1b1d;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.chatcove-newchat:hover { background: #f3f4f5; }

.chatcove-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatcove-row { display: flex; max-width: 88%; }
.chatcove-row.chatcove-guest { align-self: flex-end; }
.chatcove-bubble {
  padding: 8px 11px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f3f4f5;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.chatcove-row.chatcove-guest .chatcove-bubble {
  background: var(--chatcove-brand, #0d6efd);
  color: #fff;
  border-color: var(--chatcove-brand, #0d6efd);
}

.chatcove-compose {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #d3d4d7;
  align-items: center;
}
/* The host theme may not style form controls (e.g. a Starterkit-based theme
   with its base library disabled), so the widget styles its own — neutral and
   self-contained, tinted by --chatcove-brand. */
.chatcove-compose .chatcove-text {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #c5c8cc;
  border-radius: 8px;
  background: #fff;
  color: #1b1b1d;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
}
.chatcove-compose .chatcove-text:focus {
  outline: none;
  border-color: var(--chatcove-brand, #0d6efd);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.chatcove-compose button[type="submit"] {
  flex: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: var(--chatcove-brand, #0d6efd);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chatcove-compose button[type="submit"]:hover { filter: brightness(.95); }
.chatcove-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.chatcove-resume { display: flex; justify-content: center; padding: 4px 0; }
.chatcove-leadform { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.chatcove-leadform input,
.chatcove-leadform textarea {
  padding: 9px 12px;
  border: 1px solid #c5c8cc;
  border-radius: 8px;
  background: #fff;
  color: #1b1b1d;
  font: inherit;
  font-size: 14px;
}
.chatcove-leadform input:focus,
.chatcove-leadform textarea:focus { outline: none; border-color: var(--chatcove-brand, #0d6efd); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.chatcove-lead-send {
  align-self: flex-start;
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: var(--chatcove-brand, #0d6efd);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chatcove-lead-thanks { margin: 4px 0; }
