/* WheelElite shared AI Fitment Command widget. Canonical source for storefront and blog. */
.we-assist-dock {
  position: fixed;
  z-index: var(--z-ai-dock);
  bottom: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 58px 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(760px, calc(100vw - 24px));
  min-height: 84px;
  padding: 10px 11px;
  overflow: visible;
  border: 1px solid rgba(255, 76, 63, 0.54);
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 64, 53, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 9% 50%, rgba(239, 59, 51, 0.2), transparent 23%),
    linear-gradient(120deg, rgba(20, 23, 28, 0.98), rgba(5, 7, 10, 0.99));
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 30px rgba(239, 59, 51, 0.2);
  backdrop-filter: blur(22px) saturate(1.2);
  transform: translateX(-50%);
  isolation: isolate;
}

.we-assist-dock::before {
  content: "FITMENT COMMAND // FC-01";
  position: absolute;
  top: -9px;
  left: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 82, 69, 0.5);
  border-radius: 999px;
  color: #ff8178;
  background: #0a0c10;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
}

.we-assist-dock::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 12px;
  bottom: -4px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ef3b33 22%, #ef3b33 78%, transparent);
  box-shadow: 0 0 17px rgba(239, 59, 51, 0.8);
}

.we-assist-dock[hidden] { display: none; }

.we-assist-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, #262a31, #080a0e 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.4);
}

.we-assist-core::before,
.we-assist-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.we-assist-core::before {
  inset: 5px;
  border: 1px dashed rgba(255, 92, 79, 0.58);
  animation: we-assist-orbit 12s linear infinite;
}

.we-assist-core::after {
  inset: -5px;
  border: 1px solid transparent;
  border-top-color: rgba(239, 59, 51, 0.65);
  filter: drop-shadow(0 0 5px rgba(239, 59, 51, 0.7));
  animation: we-assist-orbit 7s linear infinite reverse;
}

.we-assist-rim {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #aab0b8;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, #8c929a 0 6deg, transparent 7deg 25deg), #0b0d11;
  box-shadow: inset 0 0 0 4px #1d2127, 0 0 15px rgba(255, 255, 255, 0.14);
  animation: we-assist-rim-turn 18s linear infinite;
}

.we-assist-rim::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 3px solid #4b515a;
  border-radius: 50%;
  background: #c4c8ce;
  box-shadow: 0 0 0 2px #111419, 0 0 10px rgba(239, 59, 51, 0.35);
}

.we-assist-rim i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #111419;
  box-shadow: 7px 0 #111419, -7px 0 #111419, 0 7px #111419, 0 -7px #111419;
}

.we-assist-console-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.we-assist-console-copy > span {
  color: #ff6259;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.we-assist-console-copy > strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.we-assist-console-copy > small {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #868d98;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.we-assist-console-copy > small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9be33d;
  box-shadow: 0 0 10px rgba(155, 227, 61, 0.9);
  animation: we-assist-signal 2s ease-in-out infinite;
}

.we-assist-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.we-assist-button {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 60px;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #f7f8fb;
  background: linear-gradient(145deg, rgba(31, 35, 42, 0.96), rgba(10, 12, 16, 0.98));
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.we-assist-button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #697cff;
  box-shadow: 0 0 12px rgba(105, 124, 255, 0.85);
}

.we-assist-button:hover {
  border-color: rgba(113, 132, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px rgba(105, 124, 255, 0.2);
  transform: translateY(-1px);
}

.we-assist-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.we-assist-button-primary {
  border-color: rgba(255, 92, 79, 0.52);
  background: radial-gradient(circle at 0 50%, rgba(239, 59, 51, 0.28), transparent 45%), linear-gradient(145deg, #2a1719, #110c10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(239, 59, 51, 0.16);
}

.we-assist-button-primary::before { background: #ef3b33; box-shadow: 0 0 15px rgba(239, 59, 51, 0.9); }
.we-assist-button-primary:hover { border-color: rgba(255, 106, 93, 0.86); box-shadow: 0 0 28px rgba(239, 59, 51, 0.3); }

.we-assist-button > svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.we-assist-button-primary > svg { color: #ff6d63; filter: drop-shadow(0 0 6px rgba(239, 59, 51, 0.65)); }
.we-assist-button:not(.we-assist-button-primary) > svg { color: #8ea0ff; filter: drop-shadow(0 0 6px rgba(105, 124, 255, 0.55)); }

.we-assist-label { display: grid; gap: 2px; min-width: 0; }
.we-assist-label strong { overflow: hidden; font-size: 11px; font-weight: 950; letter-spacing: 0.075em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.we-assist-label small { color: #7f8793; font-size: 8px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.we-assist-arrow { color: #8ea0ff; font-size: 18px; font-weight: 500; }
.we-assist-eq { display: flex; gap: 2px; align-items: end; height: 16px; }
.we-assist-eq b { width: 2px; height: 7px; border-radius: 2px; background: #ff6d63; box-shadow: 0 0 5px rgba(239, 59, 51, 0.65); animation: we-assist-eq 0.9s ease-in-out infinite alternate; }
.we-assist-eq b:nth-child(2) { height: 13px; animation-delay: -0.55s; }
.we-assist-eq b:nth-child(3) { height: 9px; animation-delay: -0.3s; }
.we-assist-eq b:nth-child(4) { height: 15px; animation-delay: -0.7s; }

@keyframes we-assist-orbit { to { transform: rotate(360deg); } }
@keyframes we-assist-rim-turn { to { transform: rotate(-360deg); } }
@keyframes we-assist-signal { 0%, 100% { opacity: 0.52; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes we-assist-eq { to { height: 3px; opacity: 0.55; } }

@media (max-width: 900px) and (min-width: 761px) {
  .we-assist-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) {
  .we-assist-dock {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 16px));
    min-height: 70px;
    padding: 8px;
    border-radius: 17px;
  }

  .we-assist-dock::before { top: -8px; left: 14px; font-size: 6px; }
  .we-assist-core { width: 46px; height: 50px; border-radius: 13px; }
  .we-assist-rim { width: 32px; height: 32px; }
  .we-assist-console-copy { display: none; }
  .we-assist-button { grid-template-columns: 21px minmax(0, 1fr); min-height: 52px; padding: 7px 8px; }
  .we-assist-button > svg { width: 20px; height: 20px; }
  .we-assist-label strong { font-size: 9px; letter-spacing: 0.04em; }
  .we-assist-label small { font-size: 7px; }
  .we-assist-eq, .we-assist-arrow { display: none; }
}

@media (max-width: 390px) {
  .we-assist-dock { grid-template-columns: minmax(0, 1fr); }
  .we-assist-core { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .we-assist-core::before,
  .we-assist-core::after,
  .we-assist-rim,
  .we-assist-console-copy > small i,
  .we-assist-eq b { animation: none; }
  .we-assist-button { transition: none; }
}

