/* WooCommerce AI Chatbot - Frontend Styles */

:root {
  --wac-primary: #2563eb;
  --wac-primary-dark: #1d4ed8;
  --wac-bg: #ffffff;
  --wac-bg-bot: #f0f4ff;
  --wac-bg-user: var(--wac-primary);
  --wac-text: #1e293b;
  --wac-text-light: #64748b;
  --wac-border: #e2e8f0;
  --wac-radius: 18px;
  --wac-shadow: 0 8px 32px rgba(0,0,0,.15);
  --wac-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wac-w: 370px;
  --wac-h: 520px;

  /* Nagłówek */
  --wac-header-bg: #2563eb;
  --wac-header-text: #ffffff;

  /* Linki */
  --wac-link-color: #2563eb;

  /* Dymki */
  --wac-bubble-bot-bg: #f0f4ff;
  --wac-bubble-bot-text: #1e293b;
  --wac-bubble-user-bg: #2563eb;
  --wac-bubble-user-text: #ffffff;

  /* Quick reply */
  --wac-qr-bg: #f0f4ff;
  --wac-qr-text: #2563eb;

  /* Przycisk wysyłania */
  --wac-send-bg: #2563eb;
  --wac-send-icon-size: 18px;

  /* Produkt */
  --wac-product-title-color: #1e293b;
  --wac-product-title-size: 13px;
  --wac-product-meta-size: 11px;

  /* ATC */
  --wac-atc-text: #ffffff;
  --wac-atc-size: 12px;
}

/* Zmienne strukturalne na #wac-widget — kolory są ustawiane wyłącznie przez PHP inline style */
/* -------------------------------------------------------------------------
 * Theme isolation
 * Themes style the bare `button` element (Kadence: padding .4em 1em,
 * line-height 1.6, font-size 1.125rem, background, border-radius) and
 * `button:hover/:focus/:active` (background, color, box-shadow). That padding
 * squeezed fixed-size icon buttons (send, toggle) so icons rendered smaller
 * or clipped compared to the Appearance settings.
 *
 * 1) Reset at specificity 0,1,0 placed before all plugin rules: beats the
 *    theme's `button` (0,0,1) regardless of stylesheet order, while every
 *    plugin class rule below (also 0,1,0, later in the file) still wins.
 * 2) State guards (0,2,0) keep each button's own colours on hover/focus/active
 *    against the theme's `button:hover` (0,1,1). Plugin :hover rules further
 *    down have the same specificity and come later, so they still apply.
 * ---------------------------------------------------------------------- */
.wac-widget :where(button),
.wac-doc-modal :where(button) {
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  box-shadow: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
}

.wac-a11y-btn:hover,
.wac-a11y-btn:focus,
.wac-a11y-btn:active {
  background: rgba(255,255,255,.15);
  color: var(--wac-header-text);
  box-shadow: none;
}
.wac-atc-btn:hover,
.wac-atc-btn:focus,
.wac-atc-btn:active {
  background: var(--wac-primary);
  color: var(--wac-atc-text);
  box-shadow: none;
}
.wac-atc-btn-inline:hover,
.wac-atc-btn-inline:focus,
.wac-atc-btn-inline:active {
  background: var(--wac-atc-inline-bg, var(--wac-primary));
  box-shadow: none;
}
.wac-doc-close:hover,
.wac-doc-close:focus,
.wac-doc-close:active {
  background: none;
  color: #94a3b8;
  box-shadow: none;
}
.wac-doc-icon:hover,
.wac-doc-icon:focus,
.wac-doc-icon:active {
  background: none;
  color: var(--wac-text-light, #94a3b8);
  box-shadow: none;
}
.wac-doc-lang:hover,
.wac-doc-lang:focus,
.wac-doc-lang:active {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}
.wac-dont-bother-btn:hover,
.wac-dont-bother-btn:focus,
.wac-dont-bother-btn:active {
  background: none;
  color: #94a3b8;
  box-shadow: none;
}
.wac-end-btn:hover,
.wac-end-btn:focus,
.wac-end-btn:active {
  background: rgba(255,255,255,.15);
  color: var(--wac-header-text);
  box-shadow: none;
}
.wac-lead-no:hover,
.wac-lead-no:focus,
.wac-lead-no:active {
  background: transparent;
  color: #64748b;
  box-shadow: none;
}
.wac-lead-yes:hover,
.wac-lead-yes:focus,
.wac-lead-yes:active {
  background: var(--wac-primary);
  color: #fff;
  box-shadow: none;
}
.wac-minimize-btn:hover,
.wac-minimize-btn:focus,
.wac-minimize-btn:active {
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.wac-quick-btn:hover,
.wac-quick-btn:focus,
.wac-quick-btn:active {
  background: var(--wac-qr-bg);
  color: var(--wac-qr-text);
  box-shadow: none;
}
.wac-scroll-down:hover,
.wac-scroll-down:focus,
.wac-scroll-down:active {
  background: var(--wac-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.wac-send-btn:hover,
.wac-send-btn:focus,
.wac-send-btn:active {
  background: var(--wac-send-bg);
  color: #fff;
  box-shadow: none;
}
.wac-shortlist-add-btn:hover,
.wac-shortlist-add-btn:focus,
.wac-shortlist-add-btn:active {
  background: var(--wac-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.wac-shortlist-btn-primary:hover,
.wac-shortlist-btn-primary:focus,
.wac-shortlist-btn-primary:active {
  background: var(--wac-primary);
  color: #fff;
  box-shadow: none;
}
.wac-shortlist-btn-secondary:hover,
.wac-shortlist-btn-secondary:focus,
.wac-shortlist-btn-secondary:active {
  background: transparent;
  color: var(--wac-primary);
  box-shadow: none;
}
.wac-shortlist-qty-btn:hover,
.wac-shortlist-qty-btn:focus,
.wac-shortlist-qty-btn:active {
  background: #fff;
  color: var(--wac-text);
  box-shadow: none;
}
.wac-shortlist-remove:hover,
.wac-shortlist-remove:focus,
.wac-shortlist-remove:active {
  background: none;
  color: var(--wac-text-light);
  box-shadow: none;
}
.wac-star:hover,
.wac-star:focus,
.wac-star:active {
  background: none;
  color: #d1d5db;
  box-shadow: none;
}
.wac-tab:hover,
.wac-tab:focus,
.wac-tab:active {
  background: transparent;
  color: rgba(255,255,255,.75);
  box-shadow: none;
}
.wac-toggle-btn:hover,
.wac-toggle-btn:focus,
.wac-toggle-btn:active {
  background: var(--wac-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
}

#wac-widget {
  --wac-primary-dark: #1d4ed8;
  --wac-bg: #ffffff;
  --wac-bg-bot: #f0f4ff;
  --wac-text: #1e293b;
  --wac-text-light: #64748b;
  --wac-border: #e2e8f0;
  --wac-radius: 18px;
  --wac-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* Widget container */
.wac-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  font-family: var(--wac-font);
  font-size: 14px;
  line-height: 1.5;
}
.wac-widget.wac-pos-left  { left: 24px; right: auto; }
.wac-widget.wac-pos-left  #wac-window { left: 0; right: auto; }
.wac-widget.wac-pos-right { right: 24px; left: auto; }
.wac-widget.wac-pos-right #wac-window { right: 0; left: auto; }

/* Tooltip dymek przy przycisku */
.wac-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  animation: wac-tooltip-in .2s ease;
}
.wac-widget.wac-pos-right .wac-tooltip { right: 0; }
.wac-widget.wac-pos-left  .wac-tooltip { left: 0; }
.wac-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #1e293b;
}
.wac-widget.wac-pos-right .wac-tooltip::after { right: 22px; }
.wac-widget.wac-pos-left  .wac-tooltip::after { left: 22px; }
@keyframes wac-tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wac-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--wac-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  outline: none;
}
.wac-toggle-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.wac-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,99,235,.55);
}
.wac-toggle-btn:active { transform: scale(.96); }

.wac-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Pulsujące kółko na toggle gdy jest nowa wiadomość */
.wac-toggle-btn.wac-has-new::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--wac-primary);
  animation: wacPulseRing 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wacPulseRing {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Chat window */
.wac-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: var(--wac-w);
  height: var(--wac-h);
  background: var(--wac-bg);
  border-radius: 16px;
  box-shadow: var(--wac-shadow);
  display: none;          /* JS ustawia display:flex przy otwarciu */
  flex-direction: column;
  animation: wacSlideIn .25s ease;
  /* overflow:hidden usunięte - blokowało scroll wewnątrz */
  border: 1px solid var(--wac-border);
}

@keyframes wacSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Header */
.wac-header {
  background: var(--wac-header-bg);
  color: var(--wac-header-text);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Taby rozmowa / lista ── */
.wac-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,.15);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.wac-tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  padding: 0px 5px !important;
  border-radius: 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.wac-tab.wac-tab-active {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.wac-tab:hover:not(.wac-tab-active) { color: #fff; }
.wac-tab.wac-tab-flash { animation: wacTabFlash .6s ease; }
@keyframes wacTabFlash {
  0%,100% { background: transparent; }
  50%      { background: rgba(255,255,255,.35); color: #fff; }
}
.wac-shortlist-tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Panel shortlisty ── */
.wac-shortlist-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}
.wac-shortlist-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--wac-text-light);
  text-align: center;
  padding: 24px;
}
.wac-shortlist-empty svg { opacity: .4; }
.wac-shortlist-empty p { font-size: 13px; margin: 0; }
.wac-shortlist-items { display: flex; flex-direction: column; gap: 8px; }

/* ── Wiersz produktu w liście ── */
.wac-shortlist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--wac-border);
  border-radius: 10px;
  padding: 8px 10px;
}
.wac-shortlist-check-wrap { flex-shrink: 0; }
.wac-shortlist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wac-shortlist-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--wac-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wac-shortlist-price { font-size: 11px; color: var(--wac-text-light); }
.wac-shortlist-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wac-shortlist-qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--wac-border);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--wac-text);
}
.wac-shortlist-qty-btn:hover { background: var(--wac-border); }
.wac-shortlist-qty {
  width: 32px;
  text-align: center;
  border: 1px solid var(--wac-border);
  border-radius: 6px;
  font-size: 12px;
  padding: 2px 4px;
  -moz-appearance: textfield;
}
.wac-shortlist-qty::-webkit-inner-spin-button,
.wac-shortlist-qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.wac-shortlist-remove {
  background: none;
  border: none;
  color: var(--wac-text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.wac-shortlist-remove:hover { color: #ef4444; background: #fef2f2; }

/* ── Przyciski akcji zasobnika ── */
.wac-shortlist-actions {
  border-top: 1px solid var(--wac-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wac-shortlist-select-row {
  font-size: 12px;
  color: var(--wac-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wac-shortlist-select-all { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.wac-shortlist-btns { display: flex; flex-direction: column; gap: 6px; }
.wac-shortlist-btn-primary {
  background: var(--wac-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter .15s;
}
.wac-shortlist-btn-primary:hover { filter: brightness(1.1); }
.wac-shortlist-btn-primary:disabled { opacity: .6; cursor: default; }
.wac-shortlist-btn-secondary {
  background: transparent;
  color: var(--wac-primary);
  border: 1.5px solid var(--wac-primary);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
}
.wac-shortlist-btn-secondary:hover { background: rgba(var(--wac-primary), .06); }
.wac-shortlist-email-form {
  display: flex;
  gap: 6px;
}
.wac-shortlist-email-form input {
  flex: 1;
  border: 1px solid var(--wac-border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
.wac-shortlist-email-form input:focus { outline: 2px solid var(--wac-primary); }

/* ── Przycisk + na karcie produktu ── */
.wac-card-shortlist-wrap {
  position: relative;
  display: block;
  margin-top: 10px; /* przestrzeń na przycisk wystający ponad kartę */
  margin-right: 10px; /* przestrzeń na przycisk wystający z prawej */
}
.wac-shortlist-add-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wac-primary);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  transition: opacity .15s, transform .1s;
  z-index: 3;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.wac-shortlist-add-btn:hover { opacity: 1; transform: scale(1.1); }
.wac-shortlist-add-btn:hover svg { fill: currentColor; }
.wac-shortlist-add-btn.wac-in-wishlist svg { fill: currentColor; }
.wac-shortlist-add-btn:active { transform: scale(.95); }
.wac-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wac-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.wac-avatar-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.wac-status-dot {
  display: block;
  font-size: 11px;
  opacity: .85;
}
.wac-status-dot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 4px;
}
.wac-end-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
.wac-end-btn:hover { background: rgba(255,255,255,.28); }

/* Messages area */
.wac-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;  /* kluczowe: blokuje scroll strony w tle */
  -webkit-overflow-scrolling: touch; /* płynny scroll na iOS */
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.wac-messages::-webkit-scrollbar { width: 4px; }
.wac-messages::-webkit-scrollbar-thumb { background: var(--wac-border); border-radius: 4px; }

/* Message bubbles */
.wac-message {
  display: flex;
  flex-direction: column;
}
.wac-message-user {
  align-self: flex-end;
  align-items: flex-end;
  max-width: 86%;
}
.wac-message-bot {
  align-self: flex-start;
  align-items: flex-start;
  max-width: 100%;
}
/* Usuń poprzedni override — teraz nie jest potrzebny */
.wac-bubble {
  padding: 10px 14px;
  border-radius: var(--wac-radius);
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.wac-message-user .wac-bubble {
  background: var(--wac-bubble-user-bg);
  color: var(--wac-bubble-user-text);
  border-bottom-right-radius: 4px;
  max-width: 100%;
}
.wac-message-bot .wac-bubble {
  background: var(--wac-bubble-bot-bg);
  color: var(--wac-bubble-bot-text);
  border-bottom-left-radius: 4px;
  max-width: 86%;
}
.wac-message-bot .wac-bubble-question {
  margin-top: 6px;
  border-left: 3px solid var(--wac-primary);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.wac-typing-row .wac-bubble {
  padding: 12px 18px;
}
.wac-bubble span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--wac-text-light);
  border-radius: 50%;
  margin: 0 2px;
  animation: wacBounce 1.2s infinite;
}
.wac-bubble span:nth-child(2) { animation-delay: .2s; }
.wac-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes wacBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

/* Product cards */
.wac-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Wyłamuje się z max-width: 86% kontenera .wac-message */
  align-self: stretch;
}
.wac-product-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--wac-border);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.wac-product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-color: var(--wac-primary);
}
.wac-product-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  padding-right: 7px;
  box-sizing: content-box;
}
.wac-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.wac-product-info {
  flex: 1;
  min-width: 0;
}
.wac-product-info strong {
  display: block;
  font-size: var(--wac-product-title-size);
  color: var(--wac-product-title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wac-price { font-weight: 600; color: var(--wac-text); font-size: var(--wac-product-meta-size); }
.wac-price-regular { text-decoration: line-through; color: var(--wac-text-light); font-size: var(--wac-product-meta-size); }
.wac-price-sale { font-weight: 700; color: #dc2626; margin-left: 2px; font-size: var(--wac-product-meta-size); }
/* Selector was missing here: the orphaned declarations swallowed the next rule
   (.wac-product-desc), so both meta and description ignored their sizes. */
.wac-product-meta {
  font-size: var(--wac-product-meta-size);
  color: var(--wac-text-light);
  margin: 2px 0;
}
.wac-product-desc {
  font-size: 11px;
  color: var(--wac-text-light);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wac-product-link {
  display: block;
  font-size: var(--wac-product-meta-size);
  color: var(--wac-link-color);
  font-weight: 600;
  margin-top: 4px;
}
.wac-in-stock  { color: #16a34a; font-size: var(--wac-product-meta-size); }
.wac-out-stock { color: #dc2626; font-size: var(--wac-product-meta-size); }

/* Name form */
.wac-name-form {
  padding: 16px;
  background: var(--wac-bg-bot);
  border-top: 1px solid var(--wac-border);
}
.wac-name-form p { margin: 0 0 10px; font-weight: 600; }
.wac-name-input-row {
  display: flex;
  gap: 8px;
}
.wac-name-input-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--wac-border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.wac-name-input-row input:focus { border-color: var(--wac-primary); }

/* Quick replies */
.wac-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.wac-quick-btn {
  background: var(--wac-qr-bg);
  color: var(--wac-qr-text);
  border: 1px solid var(--wac-qr-text);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.wac-quick-btn:hover {
  background: var(--wac-qr-text);
  color: #fff;
}

/* Input area */
.wac-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--wac-border);
  background: var(--wac-bg);
  flex-shrink: 0;
}
.wac-input-area textarea {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--wac-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--wac-font);
  resize: none;
  outline: none;
  line-height: 1.4;
  min-height: 38px;
  max-height: 120px;
  transition: border-color .15s;
}
.wac-input-area textarea:focus { border-color: var(--wac-primary); }

.wac-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wac-send-bg);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
  font-size: 13px;
  font-weight: 600;
}
.wac-send-btn svg { width: var(--wac-send-icon-size); height: var(--wac-send-icon-size); }
.wac-send-btn:hover { background: var(--wac-primary-dark); }
.wac-send-btn:active { transform: scale(.92); }

/* Rating */
.wac-rating {
  padding: 14px;
  text-align: center;
  border-top: 1px solid var(--wac-border);
}
.wac-rating p { margin: 0 0 8px; font-weight: 600; }
.wac-stars { display: flex; justify-content: center; gap: 4px; }
.wac-star {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #d1d5db;
  transition: color .15s, transform .1s;
  padding: 0;
  line-height: 1;
}
.wac-star:hover,
.wac-star.active { color: #f59e0b; transform: scale(1.15); }

/* Separator zakończonej sesji */
.wac-session-separator {
  text-align: center;
  font-size: 11px;
  color: var(--wac-text-light);
  padding: 6px 0;
  border-top: 1px dashed var(--wac-border);
  margin: 4px 0;
}

/* Footer */
.wac-footer {
  text-align: center;
  font-size: 10px;
  color: var(--wac-text-light);
  padding: 4px 0 8px;
  flex-shrink: 0;
  border-radius: 0 0 16px 16px;
}

/* Responsive */
@media (max-width: 480px) {
  .wac-window {
    width: calc(100vw - 24px);
    right: 0;
    bottom: 72px;
    height: calc(100vh - 110px);
    max-height: 560px;
  }
  .wac-widget { bottom: 12px; }
}

/* Proaktywny przycisk "Nie zaczepiaj" */
.wac-dont-bother-btn {
  display: block;
  margin: 10px auto 4px;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: #94a3b8;
  font-size: 12px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.wac-dont-bother-btn:hover {
  color: #64748b;
  border-color: #94a3b8;
}

/* Email capture field */
.wac-email-row { padding: 0; }
.wac-email-row input[type="email"] {
  width: 100%;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.wac-email-row input[type="email"]:focus { border-color: var(--wac-primary); }
.wac-email-hint {
  font-size: 11px;
  color: #94a3b8;
  padding: 4px;
  line-height: 1.4;
}

/* ── Add to Cart button ── */
.wac-product-card { display:flex; flex-direction:column; }
.wac-product-card-link { text-decoration:none; color:inherit; flex:1; display:flex; }
.wac-atc-btn {
  margin:0 10px 10px;
  background:var(--wac-primary);
  color:var(--wac-atc-text);
  border:none;
  border-radius:8px;
  padding:8px 12px;
  font-size:var(--wac-atc-size);
  font-weight:600;
  cursor:pointer;
  transition:background .2s, transform .1s;
  width:calc(100% - 20px);
}
.wac-atc-btn:hover:not(:disabled) { filter:brightness(1.1); transform:translateY(-1px); }
.wac-atc-btn:disabled { cursor:default; opacity:.7; }
.wac-atc-btn.wac-atc-done { background:#059669; }

/* Kompaktowy przycisk ATC w bąbelku (zastępuje pełną kartę przy deduplikacji) */
.wac-inline-atc { padding: 4px 10px 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.wac-atc-btn-inline {
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  font-size: 12px !important;
  padding: 6px 12px 6px 10px !important;
  border-radius: 20px !important;
  white-space: normal;
  word-break: break-word;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--wac-atc-inline-bg, var(--wac-primary)) !important;
}

/* ── Low stock badge ── */
.wac-low-stock {
  font-size:11px;
  color:#d97706;
  font-weight:600;
  margin:2px 0 4px;
  letter-spacing:.01em;
}

/* ── Exit intent overlay ── */
@keyframes wacFadeIn { from{opacity:0} to{opacity:1} }
#wac-exit-overlay { pointer-events:auto; }

/* ── Lead summary prompt ── */
.wac-lead-summary-prompt {
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:12px;
  padding:12px 14px;
  margin:8px 0;
  font-size:13px;
  color:#1e293b;
}
.wac-lead-summary-prompt p { margin:0 0 10px; line-height:1.5; }
.wac-lead-summary-btns { display:flex; gap:8px; }
.wac-lead-yes {
  background:var(--wac-primary);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:7px 14px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  flex:1;
}
.wac-lead-no {
  background:transparent;
  color:#64748b;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:7px 14px;
  font-size:12px;
  cursor:pointer;
  flex:1;
}

/* ── Discovery widget ── */
.wac-discovery-bar {
  display: block;
  margin-top: 4px;
  padding: 8px 12px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #475569;
  transition: background .15s, border-color .15s;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.wac-discovery-bar:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.wac-discovery-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.wac-discovery-label {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}
.wac-discovery-cta {
  font-size: 10px;
  color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.wac-discovery-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.wac-discovery-name-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.wac-discovery-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  display: inline-block;
}
.wac-discovery-name.wac-scroll {
  animation: wacScroll 8s linear 1.5s infinite;
}
@keyframes wacScroll {
  0%,20%   { transform: translateX(0); }
  80%,100% { transform: translateX(var(--scroll-dist, -50%)); }
}
.wac-discovery-price {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Discovery wrapper — pełna szerokość w flex kontenerze */
.wac-discovery-wrap {
  width: 100%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   WCAG / ACCESSIBILITY
   ════════════════════════════════════════════════════════ */

/* Screen reader only */
.wac-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus ring — widoczny dla klawiaturowych użytkowników */
#wac-widget *:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header actions row */
.wac-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Przyciski dostępności */
.wac-a11y-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--wac-header-text);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s;
  flex-shrink: 0;
}
.wac-a11y-btn:hover { background: rgba(255,255,255,.3); }
.wac-a11y-btn[aria-pressed="true"] {
  background: rgba(255,255,255,.9);
  color: #1e293b;
}
.wac-a11y-btn:disabled { opacity: .35; cursor: default; }

/* End button in header */
.wac-end-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--wac-header-text);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  transition: background .15s;
}
.wac-end-btn:hover { background: rgba(255,255,255,.3); }

/* Touch target min 44×44px dla gwiazdek (WCAG 2.5.5) */
.wac-star {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Font scale variable */
#wac-window {
  --wac-font-scale: 1;
  font-size: calc(var(--wac-base-font, 14px) * var(--wac-font-scale));
}

/* ── High contrast mode ── */
.wac-high-contrast {
  --wac-header-bg: #000000 !important;
  --wac-header-text: #ffffff !important;
  --wac-bubble-bot-bg: #ffffff !important;
  --wac-bubble-bot-text: #000000 !important;
  --wac-bubble-user-bg: #000000 !important;
  --wac-bubble-user-text: #ffffff !important;
  --wac-bg: #ffffff !important;
  --wac-text: #000000 !important;
  --wac-link-color: #0000cc !important;
  --wac-qr-bg: #ffffff !important;
  --wac-qr-text: #000000 !important;
  --wac-send-bg: #000000 !important;
  --wac-border: #000000 !important;
  --wac-product-title-color: #000000 !important;
  --wac-primary: #0000cc !important;
}
.wac-high-contrast .wac-product-card {
  border: 2px solid #000000 !important;
}
.wac-high-contrast .wac-quick-btn {
  border: 2px solid #000000 !important;
}
.wac-high-contrast *:focus-visible {
  outline: 4px solid #ff8c00 !important;
}

/* ── Reduced motion (WCAG 2.3.3) ── */
@media (prefers-reduced-motion: reduce) {
  .wac-discovery-name.wac-scroll,
  .wac-badge,
  .wac-bubble span,
  #wac-exit-overlay {
    animation: none !important;
    transition: none !important;
  }
  .wac-toggle-btn {
    transition: none !important;
  }
}

/* ── Scroll-down indicator ── */
.wac-scroll-down {
  position: absolute;
  bottom: 80px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wac-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 10;
  transition: opacity .2s, transform .2s;
  animation: wacFadeIn .2s ease;
}
.wac-scroll-down:hover { transform: translateY(2px); }

/* ── Footer doc icons + disclaimer ── */
.wac-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wac-disclaimer {
  font-size: 9px;
  color: var(--wac-text-light, #94a3b8);
  opacity: .75;
  text-align: center;
  width: 100%;
  line-height: 1.3;
  order: 10;
}
.wac-footer { flex-wrap: wrap; }
.wac-footer-docs {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: 10px;
}
.wac-doc-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  color: var(--wac-text-light, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color .15s, background .15s;
  position: relative;
}
.wac-doc-icon:hover {
  color: var(--wac-primary, #2563eb);
  background: rgba(37,99,235,.08);
}
.wac-doc-icon::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  z-index: 10;
}
.wac-doc-icon:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Doc modal ── */
.wac-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wacFadeIn .18s ease;
}
.wac-doc-modal[hidden] { display: none; }
.wac-doc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(2px);
}
.wac-doc-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
  overflow: hidden;
  animation: wacSlideUp .2s ease;
}
@keyframes wacSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wac-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.wac-doc-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}
.wac-doc-langs {
  display: flex;
  gap: 4px;
}
.wac-doc-lang {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.wac-doc-lang.active,
.wac-doc-lang:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.wac-doc-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .12s, background .12s;
  flex-shrink: 0;
}
.wac-doc-close:hover { color: #1e293b; background: #f1f5f9; }
.wac-doc-body {
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  -webkit-overflow-scrolling: touch;
}
.wac-doc-body h2 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 16px; }
.wac-doc-body h3 { font-size: 13px; font-weight: 700; color: #1e293b; margin: 18px 0 6px; }
.wac-doc-body p  { margin: 0 0 10px; }
.wac-doc-body ul,
.wac-doc-body ol { padding-left: 20px; margin: 0 0 10px; }
.wac-doc-body li { margin-bottom: 4px; }
.wac-doc-content { display: none; }
.wac-doc-content.active { display: block; }

/* ============================================================
   Inline / shortcode mode  [woochat]
   ============================================================ */
.wac-widget.wac-inline {
  position: relative !important;
  bottom: auto !important; right: auto !important; left: auto !important;
  display: block;
  width: 100%;
}
.wac-widget.wac-inline #wac-toggle,
.wac-widget.wac-inline #wac-tooltip,
.wac-widget.wac-inline #wac-badge     { display: none !important; }
.wac-widget.wac-inline #wac-close-btn { display: none !important; }
.wac-widget.wac-inline #wac-window {
  display: flex !important;
  position: relative !important;
  bottom: auto !important; right: auto !important;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

/* ============================================================
   Loop / product-page wishlist heart button
   ============================================================ */

/* Positioning context — standard WC loop link wrapper */
.woocommerce-loop-product__link,
ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
}

/* The button itself */
.wac-loop-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  color: #e05252;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  line-height: 1;
  text-decoration: none !important;
}
.wac-loop-wishlist-btn:hover {
  transform: scale(1.12);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.wac-loop-wishlist-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.wac-loop-wishlist-btn svg {
  display: block;
  transition: fill 0.18s ease;
  pointer-events: none;
}
.wac-loop-wishlist-btn.wac-in-wishlist svg {
  fill: #e05252;
}

/* Inline shortcode variant (not absolute) */
.wac-loop-wishlist-btn.wac-wishlist-btn-inline {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  vertical-align: middle;
}

/* ── Toast notification ──────────────────────────────────────────────────── */
.wac-wishlist-toast {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 1000001;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wac-wishlist-toast.wac-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Minimize button ──────────────────────────────────────────────────────── */
.wac-minimize-btn {
  position: absolute;
  /* size, color, position offsets come from PHP inline style */
  border-radius: 50%;
  border: none;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.1s ease;
  z-index: 1;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
/* Show on hover of the toggle button */
.wac-widget:not(.wac-inline) #wac-toggle:hover .wac-minimize-btn {
  opacity: 1;
  pointer-events: auto;
}
/* Keep visible briefly after moving to the minimize btn itself */
.wac-minimize-btn:hover {
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Minimized state — smooth scale on toggle */
#wac-toggle {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}
.wac-pos-left #wac-toggle {
  transform-origin: bottom left;
}

/* -------------------------------------------------------------------------
 * Lead form (book a visit / request a quote)
 * ---------------------------------------------------------------------- */
.wac-lead-btn {
  width: 36px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wac-border);
  border-radius: 12px;
  background: var(--wac-bg);
  color: var(--wac-primary);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.wac-lead-btn:hover,
.wac-lead-btn:focus,
.wac-lead-btn:active {
  background: var(--wac-primary);
  border-color: var(--wac-primary);
  color: #fff;
  box-shadow: none;
}
.wac-lead-btn:focus-visible { outline: 2px solid var(--wac-primary); outline-offset: 2px; }

.wac-lead-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--wac-border);
  border-radius: 14px;
  background: var(--wac-bg);
  font-family: var(--wac-font);
  font-size: 13px;
  color: var(--wac-text);
  box-sizing: border-box;
}
.wac-lead-intro { margin: 0 22px 10px 0; line-height: 1.45; font-size: 13px; }
.wac-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wac-lead-field { display: block; margin: 0 0 8px; }
.wac-lead-field > span { display: block; margin-bottom: 3px; font-size: 11px; color: var(--wac-text-light); }
.wac-widget .wac-lead-card input:not([type=checkbox]),
.wac-widget .wac-lead-card select,
.wac-widget .wac-lead-card textarea {
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--wac-border);
  border-radius: 8px;
  background: #fff;
  color: var(--wac-text);
  font-family: var(--wac-font);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: none;
  box-sizing: border-box;
}
.wac-widget .wac-lead-card textarea { resize: vertical; min-height: 52px; }
.wac-widget .wac-lead-card input:focus,
.wac-widget .wac-lead-card select:focus,
.wac-widget .wac-lead-card textarea:focus { outline: none; border-color: var(--wac-primary); }
.wac-lead-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.wac-lead-consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; font-size: 11.5px; line-height: 1.4; color: var(--wac-text-light); cursor: pointer; }
.wac-lead-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--wac-primary); }
.wac-lead-privacy {
  display: inline;
  color: var(--wac-link-color) !important;
  text-decoration: underline !important;
  cursor: pointer;
}
.wac-lead-privacy:hover, .wac-lead-privacy:focus, .wac-lead-privacy:active { background: none; box-shadow: none; }
.wac-lead-error { margin: 0 0 8px; color: #b91c1c; font-size: 12px; }
.wac-lead-submit {
  width: 100%;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  background: var(--wac-primary) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.wac-lead-submit:hover, .wac-lead-submit:focus, .wac-lead-submit:active { background: var(--wac-primary) !important; color: #fff !important; box-shadow: none; filter: brightness(.9); }
.wac-lead-submit[disabled] { opacity: .7; cursor: wait; }
.wac-lead-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--wac-text-light);
  cursor: pointer;
}
.wac-lead-close:hover, .wac-lead-close:focus, .wac-lead-close:active { background: none; color: var(--wac-text); box-shadow: none; }
.wac-message-bot .wac-lead-card { max-width: 100%; }
