/* Lebra Website Assistant — scoped under .lebra-as so it cannot leak into
   the theme. Colours match the brand; contrast checked against WCAG AA. */

.lebra-as { position: fixed; right: 20px; bottom: 20px; z-index: 99999;
  font-family: 'Inter','Segoe UI',system-ui,sans-serif; }

/* Launcher */
.lebra-as-fab {
  display: inline-flex; align-items: center; gap: 9px;
  background: #19712D; color: #fff; border: 0; cursor: pointer;
  padding: 14px 20px; border-radius: 30px; font-size: 15px; font-weight: 700;
  font-family: inherit; box-shadow: 0 6px 24px rgba(15,41,66,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lebra-as-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,41,66,.3); }
.lebra-as-fab:focus-visible { outline: 3px solid #2C7EA6; outline-offset: 2px; }
.lebra-as.open .lebra-as-fab { display: none; }

/* Panel */
.lebra-as-panel {
  position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 100px);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(15,41,66,.28); border: 1px solid rgba(15,41,66,.1);
  display: none; flex-direction: column;
}
.lebra-as.open .lebra-as-panel { display: flex; animation: lebraAsIn .22s ease; }
@keyframes lebraAsIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lebra-as-head { background: #0F2942; color: #fff; padding: 15px 17px; display: flex;
  align-items: center; justify-content: space-between; flex: 0 0 auto; }
.lebra-as-title { font-family: 'Poppins','Segoe UI',sans-serif; font-weight: 700; font-size: 15.5px; }
.lebra-as-sub { font-size: 12.5px; opacity: .82; margin-top: 2px; }
.lebra-as-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px; opacity: .85; }
.lebra-as-close:hover { opacity: 1; }

.lebra-as-log { flex: 1 1 auto; overflow-y: auto; padding: 16px; background: #F7F9FB; }

.lebra-as-msg { max-width: 88%; padding: 11px 14px; border-radius: 12px; margin-bottom: 10px;
  font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.lebra-as-msg.bot { background: #fff; color: #3A4652; border: 1px solid #E4E9ED;
  border-bottom-left-radius: 4px; }
.lebra-as-msg.me { background: #0F2942; color: #fff; margin-left: auto;
  border-bottom-right-radius: 4px; }
.lebra-as-msg a { color: #1F6285; font-weight: 600; }
.lebra-as-msg.me a { color: #fff; }

.lebra-as-price { margin-top: 8px; padding: 8px 11px; background: #E8F1F6;
  border-left: 3px solid #19712D; border-radius: 0 6px 6px 0; font-size: 13.5px; color: #0F2942; }
.lebra-as-actions { margin-top: 10px; }
.lebra-as-link { display: inline-block; background: #19712D; color: #fff !important;
  text-decoration: none; padding: 8px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 700; }
.lebra-as-link:hover { filter: brightness(1.1); color: #fff !important; }

.lebra-as-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 12px; }
.lebra-as-chip { background: #fff; border: 1px solid #2C7EA6; color: #1F6285;
  padding: 8px 13px; border-radius: 16px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s ease, color .15s ease; }
.lebra-as-chip:hover { background: #1F6285; color: #fff; }
.lebra-as-chip:focus-visible { outline: 3px solid #2C7EA6; outline-offset: 2px; }

/* Lead form */
.lebra-as-lead { background: #fff; border: 1px solid #E4E9ED; border-radius: 12px;
  padding: 14px; margin-bottom: 10px; }
.lebra-as-leadtitle { font-size: 14px; font-weight: 700; color: #0F2942; margin-bottom: 10px; line-height: 1.4; }
.lebra-as-lead input { width: 100%; padding: 10px 12px; margin-bottom: 8px; font-size: 14.5px;
  border: 1px solid #DFE4E9; border-radius: 7px; font-family: inherit; box-sizing: border-box; }
.lebra-as-lead input:focus { outline: 2px solid #2C7EA6; outline-offset: 0; border-color: #2C7EA6; }
.lebra-as-lead button { width: 100%; padding: 11px; background: #19712D; color: #fff;
  border: 0; border-radius: 7px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.lebra-as-lead button:disabled { opacity: .65; cursor: default; }
.lebra-as-note { font-size: 12px; color: #4A5568; margin-top: 7px; text-align: center; }

/* Composer */
.lebra-as-form { display: flex; gap: 8px; padding: 11px; border-top: 1px solid #E4E9ED;
  background: #fff; flex: 0 0 auto; }
.lebra-as-input { flex: 1 1 auto; padding: 11px 13px; border: 1px solid #DFE4E9;
  border-radius: 22px; font-size: 14.5px; font-family: inherit; }
.lebra-as-input:focus { outline: 2px solid #2C7EA6; border-color: #2C7EA6; }
.lebra-as-send { background: #19712D; color: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lebra-as-send:hover { filter: brightness(1.1); }

/* Phones: full-width sheet, and keep clear of the theme's sticky CTA bar */
@media (max-width: 600px) {
  .lebra-as { right: 12px; bottom: 74px; left: 12px; }
  .lebra-as-fab { width: 100%; justify-content: center; }
  .lebra-as-panel { width: auto; left: 0; right: 0; height: calc(100vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .lebra-as-fab, .lebra-as-panel { transition: none; animation: none; }
}
