:root {
  --ganaxa-navy: #061a3a;
  --ganaxa-ink: #0b1831;
  --ganaxa-muted: #697488;
  --ganaxa-line: #dde2e8;
  --ganaxa-soft: #f5fafb;
  --ganaxa-gold: #d9ad53;
}

.warcaf-language-bar {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 285px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px 5px 11px;
  border: 1px solid rgba(6, 26, 58, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(6, 26, 58, .1);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.site-header > .col-full { position: relative; }
.warcaf-language-bar.is-positioned { opacity: 1; pointer-events: auto; }
.warcaf-language-bar.is-floating { position: fixed; top: 18px; right: 22px; z-index: 99990; }
.warcaf-language-bar label {
  display: none;
  color: var(--ganaxa-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.warcaf-language-select {
  min-height: 38px;
  max-width: 165px;
  margin: 0;
  padding: 0 34px 0 10px;
  color: var(--ganaxa-ink);
  border: 0;
  border-radius: 11px;
  outline: 0;
  background-color: #f5f7fa;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.ganaxa-chat-root {
  position: fixed;
  z-index: 999999;
  right: 22px;
  bottom: 112px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ganaxa-chat-root.is-open {
  right: 22px;
  bottom: 16px;
}

.ganaxa-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 5px;
  overflow: visible;
  color: var(--ganaxa-navy);
  border: 2px solid rgba(217, 173, 83, .72);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 26, 58, .28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ganaxa-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 24px 58px rgba(6, 26, 58, .34);
}

.ganaxa-launcher.hidden { display: none; }
.ganaxa-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #f6f1e8;
}

.ganaxa-brand-icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  transform: none !important;
}

.ganaxa-status {
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2ac66d;
}

.ganaxa-panel {
  display: none;
  width: min(440px, calc(100vw - 28px));
  height: min(720px, calc(100dvh - 32px));
  overflow: hidden;
  flex-direction: column;
  color: var(--ganaxa-ink);
  border: 1px solid rgba(6, 26, 58, .13);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(6, 26, 58, .3);
}

.ganaxa-panel.open {
  display: flex;
  animation: ganaxa-panel-in .22s ease-out;
}

@keyframes ganaxa-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.ganaxa-chat-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px 14px 18px;
  border-bottom: 1px solid var(--ganaxa-line);
  background: #fff;
}

.ganaxa-avatar {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgba(217, 173, 83, .72);
  border-radius: 50%;
  background: #f6f1e8;
}

.ganaxa-identity {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ganaxa-identity strong {
  color: #0a1328;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.ganaxa-identity small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ganaxa-muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ganaxa-identity small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ac66d;
}

.ganaxa-close {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #10192b;
  border: 0;
  border-radius: 50%;
  background: #f4f2ef;
  cursor: pointer;
}

.ganaxa-close svg,
.ganaxa-tool svg,
.ganaxa-send svg,
.ganaxa-voice-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ganaxa-messages {
  flex: 1;
  min-height: 170px;
  overflow: auto;
  padding: 26px 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  overscroll-behavior: contain;
}

.ganaxa-row { display: flex; margin: 0 0 13px; }
.ganaxa-row.user { justify-content: flex-end; }
.ganaxa-bubble {
  max-width: 88%;
  padding: 15px 17px;
  color: var(--ganaxa-ink);
  border: 1px solid #d8dde2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(6, 26, 58, .06);
  font-size: 15px;
  line-height: 1.55;
}

.ganaxa-row.user .ganaxa-bubble {
  color: #fff;
  border-color: var(--ganaxa-navy);
  border-bottom-right-radius: 7px;
  background: var(--ganaxa-navy);
}

.ganaxa-row.bot .ganaxa-bubble { border-bottom-left-radius: 7px; }
.ganaxa-row.bot .ganaxa-bubble hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #e1e5ea;
}
.ganaxa-products { display: grid; gap: 8px; margin-top: 13px; }
.ganaxa-products a {
  display: grid;
  padding: 11px;
  color: var(--ganaxa-ink) !important;
  border-radius: 13px;
  background: #f4f6f8;
  text-decoration: none !important;
}

.ganaxa-products a span { color: #ba1324; font-weight: 800; }
.ganaxa-products a em {
  margin-top: 6px;
  color: #566174;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}
.ganaxa-products a small { margin-top: 5px; color: #566174; }
.ganaxa-wait i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background: #8790a0;
  animation: ganaxa-dot 1s infinite;
}

.ganaxa-wait i:nth-child(2) { animation-delay: .15s; }
.ganaxa-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes ganaxa-dot { 50% { opacity: .3; transform: translateY(-3px); } }

.ganaxa-voice-mode {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  color: var(--ganaxa-ink);
  text-align: left;
  border: 1px solid #d7e1e4;
  border-radius: 20px;
  background: var(--ganaxa-soft);
  cursor: pointer;
}

.ganaxa-voice-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #0c315b;
  border-radius: 50%;
  background: #e4f5f6;
}

.ganaxa-voice-mode > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.ganaxa-voice-mode strong { font-size: 14px; }
.ganaxa-voice-mode small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ganaxa-muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ganaxa-switch {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #b9bec5;
  transition: background .2s ease;
}

.ganaxa-switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.ganaxa-voice-mode[aria-checked="true"] .ganaxa-switch { background: var(--ganaxa-navy); }
.ganaxa-voice-mode[aria-checked="true"] .ganaxa-switch i { transform: translateX(24px); }
.ganaxa-voice-mode.is-listening .ganaxa-voice-icon,
.ganaxa-mic.is-listening {
  color: #fff !important;
  background: #c51b2f !important;
  animation: ganaxa-pulse 1.25s infinite;
}

@keyframes ganaxa-pulse { 50% { box-shadow: 0 0 0 8px rgba(197, 27, 47, .12); } }

.ganaxa-composer {
  margin: 0 14px 8px;
  border: 1.5px solid #d9dde2;
  border-radius: 26px;
  background: #fafaf8;
}

.ganaxa-composer form {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
}

.ganaxa-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 144px;
  padding: 13px 8px !important;
  resize: none;
  overflow-y: auto;
  color: var(--ganaxa-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.ganaxa-composer textarea::placeholder { color: #6e7787; opacity: 1; }
.ganaxa-tool,
.ganaxa-send {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ganaxa-tool { color: var(--ganaxa-navy); background: transparent; }
.ganaxa-tool:hover { background: #eef1f4; }
.ganaxa-send {
  color: #fff;
  background: var(--ganaxa-navy);
  box-shadow: 0 8px 20px rgba(6, 26, 58, .2);
}

.ganaxa-attachment {
  margin: -1px 12px 10px;
  padding: 7px 10px;
  color: #12345e;
  border-radius: 10px;
  background: #e9f3fb;
  font-size: 11px;
}

.ganaxa-panel footer {
  padding: 0 18px 12px;
  color: #7d8490;
  text-align: center;
  background: #fff;
  font-size: 9px;
  line-height: 1.35;
}

.ganaxa-commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.ganaxa-commercial-actions button {
  min-height: 38px;
  padding: 9px 12px;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ganaxa-navy) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.ganaxa-commercial-actions button:hover,
.ganaxa-commercial-actions button:focus-visible {
  background: #173c69 !important;
}

@media (max-width: 900px) {
  .warcaf-language-bar {
    right: 245px;
  }
  .warcaf-language-bar label { display: none; }
}

@media (max-width: 520px) {
  .warcaf-language-bar {
    top: 2px;
    right: 68px;
    padding: 5px;
    border-radius: 13px;
  }
  .warcaf-language-bar label { display: none; }
  .warcaf-language-select { width: 118px; max-width: 118px; min-height: 36px; font-size: 12px; }
  .ganaxa-chat-root { right: 12px; bottom: 104px; }
  .ganaxa-chat-root.is-open { right: 8px; bottom: 8px; }
  .ganaxa-panel {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 26px;
  }
  .ganaxa-messages { padding: 22px 16px; }
  .ganaxa-chat-header { min-height: 80px; }
  .ganaxa-avatar { flex-basis: 50px; width: 50px; height: 50px; }
  .ganaxa-identity strong { font-size: 22px; }
  .ganaxa-voice-mode { margin-inline: 10px; }
  .ganaxa-composer { margin-inline: 9px; }
  .ganaxa-tool, .ganaxa-send { flex-basis: 46px; width: 46px; height: 46px; }
}

/* Isolation visuelle : neutralise les styles globaux Storefront appliqués aux boutons. */
.ganaxa-chat-root .ganaxa-launcher,
.ganaxa-chat-root .ganaxa-close,
.ganaxa-chat-root .ganaxa-voice-mode,
.ganaxa-chat-root .ganaxa-tool,
.ganaxa-chat-root .ganaxa-send {
  box-sizing: border-box !important;
  font-family: inherit !important;
  text-decoration: none !important;
  text-shadow: none !important;
  appearance: none !important;
}

.ganaxa-chat-root .ganaxa-launcher {
  display: grid !important;
  width: 66px !important;
  height: 66px !important;
  padding: 5px !important;
  color: var(--ganaxa-navy) !important;
  border: 2px solid rgba(217, 173, 83, .72) !important;
  border-radius: 50% !important;
  background: #fff !important;
}

.ganaxa-chat-root .ganaxa-close {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  color: #10192b !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f4f2ef !important;
}

.ganaxa-chat-root .ganaxa-voice-mode {
  display: grid !important;
  width: auto !important;
  height: auto !important;
  margin: 0 16px 12px !important;
  padding: 12px 14px !important;
  color: var(--ganaxa-ink) !important;
  border: 1px solid #d7e1e4 !important;
  border-radius: 20px !important;
  background: var(--ganaxa-soft) !important;
}

.ganaxa-chat-root .ganaxa-tool,
.ganaxa-chat-root .ganaxa-send {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
}

.ganaxa-chat-root .ganaxa-tool {
  color: var(--ganaxa-navy) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ganaxa-chat-root .ganaxa-send {
  color: #fff !important;
  background: var(--ganaxa-navy) !important;
}

@media (max-width: 520px) {
  .ganaxa-chat-root .ganaxa-voice-mode { margin-inline: 10px !important; }
  .ganaxa-chat-root .ganaxa-tool,
  .ganaxa-chat-root .ganaxa-send { width: 46px !important; height: 46px !important; }
}
