/* ========== WIDGET LUCIA - DESIGN EPURE ========== */
.lucia-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: move;
  user-select: none;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lucia-widget img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ETAT MINIMISE */
.lucia-minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lucia-minimized:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.lucia-minimized img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.lucia-notification-dot {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 29px;
  height: 29px;
  padding: 0;
  background:
    radial-gradient(circle at center,
      #fff 0 42%,
      #e74c3c 43% 46%,
      #fff 47% 54%,
      #e74c3c 55% 58%,
      #fff 59% 67%,
      #e74c3c 68% 72%,
      #fff 73% 81%,
      #e74c3c 82% 100%);
  border-radius: 999px;
  border: 0;
  color: #111111;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lucia-notification-dot.is-loading {
  background: #ffffff;
  color: #e74c3c;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.18), inset 0 0 0 1px rgba(231, 76, 60, 0.42);
}

.lucia-notification-dot.is-results {
  background: #e74c3c;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-shadow: none;
}

.lucia-notification-dot.is-unknown {
  background: #e74c3c;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  text-shadow: none;
}

.lucia-notification-count {
  display: block;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 950;
  transform: translateY(0.1px);
}

.lucia-notification-search-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  transform-origin: 48% 48%;
  animation: lucia-notification-search-sweep 1.5s ease-in-out infinite;
}

@keyframes lucia-notification-search-sweep {
  0%, 100% { transform: rotate(-7deg) translate(-0.8px, 0); }
  50% { transform: rotate(8deg) translate(0.8px, -0.4px); }
}

/* ETAT SUBTIL - BULLE INITIALE */
.lucia-subtle {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.lucia-avatar-small {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lucia-avatar-small:hover {
  transform: scale(1.05);
}

.lucia-avatar-small img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.lucia-bubble {
  background: white;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  max-width: 280px;
  animation: lucia-pop 0.4s ease;
  position: relative;
}

@keyframes lucia-pop {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.lucia-bubble-text {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.lucia-bubble-subtext {
  display: block;
  color: #9b59b6;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.lucia-bubble-cta {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.lucia-bubble-cta:hover {
  background: linear-gradient(135deg, #43A047, #388E3C);
  transform: translateY(-1px);
}

.lucia-close-bubble {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.lucia-close-bubble:hover { color: #666; }

/* TEASER CUTE - DESIGN UNIFIE */
.lucia-teaser {
  display: block;
  cursor: pointer;
  animation: lucia-bounce-in 0.6s ease;
  position: relative;
  touch-action: none;
}

.lucia-teaser:active {
  cursor: pointer;
}

@keyframes lucia-bounce-in {
  0% { opacity: 0; transform: scale(0) translateY(20px); }
  50% { transform: scale(1.1) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.lucia-teaser:hover {
  transform: scale(1.05);
}

.lucia-teaser-frame {
  background: white;
  border-radius: 28px;
  padding: 8px 12px 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.lucia-teaser-edge-btn {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 2px solid #7c3aed;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 2px 7px rgba(76, 29, 149, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  opacity: 0.98;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.lucia-teaser-edge-btn::before {
  content: '×';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6d28d9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-0.25px);
}

.lucia-teaser-edge-btn:hover {
  opacity: 1;
  border-color: #5b21b6;
  background: #fbf9ff;
  transform: scale(1.05);
  box-shadow:
    0 3px 9px rgba(76, 29, 149, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

.lucia-teaser-edge-btn:focus-visible {
  outline: 2px solid rgba(118, 75, 162, 0.42);
  outline-offset: 2px;
}

/* Bordure animee gradient pour visibilite sur fond blanc */
.lucia-teaser::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, #667eea, #4CAF50, #9b59b6, #667eea);
  background-size: 300% 100%;
  border-radius: 30px;
  z-index: 0;
  animation: lucia-border-flow 3s linear infinite;
}

@keyframes lucia-border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.lucia-teaser-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.lucia-teaser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.lucia-teaser-bubble {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 8px 14px;
  position: relative;
}

.lucia-teaser-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #f5f5f5;
}

.lucia-hey {
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lucia-alternate 3s infinite;
}

.lucia-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  animation: lucia-alternate 3s infinite;
  animation-delay: 1.5s;
}

.lucia-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: lucia-typing 1.4s infinite ease-in-out;
}

.lucia-typing-dots span:nth-child(1) { background: #7c3aed; animation-delay: 0s; }
.lucia-typing-dots span:nth-child(2) { background: #22c55e; animation-delay: 0.2s; }
.lucia-typing-dots span:nth-child(3) { background: #7c3aed; animation-delay: 0.4s; }

@keyframes lucia-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes lucia-alternate {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.lucia-teaser-bubble .lucia-hey {
  animation: lucia-show-hey 3s infinite;
}

.lucia-teaser-bubble .lucia-typing-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lucia-show-dots 3s infinite;
}

.lucia-widget.lucia-edge-docked {
  cursor: pointer;
  transition: left 0.24s ease, top 0.24s ease;
}

.lucia-widget.lucia-edge-docked .lucia-teaser {
  animation: none;
  transform: none;
}

.lucia-widget.lucia-edge-docked .lucia-teaser:hover {
  transform: none;
}

.lucia-widget.lucia-edge-docked .lucia-teaser-frame {
  border-radius: 999px;
  padding: 7px 9px;
  gap: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.lucia-widget.lucia-edge-docked .lucia-teaser::before {
  border-radius: 999px;
}

.lucia-widget.lucia-edge-docked .lucia-teaser-bubble,
.lucia-widget.lucia-edge-docked .lucia-teaser-edge-btn {
  display: none;
}

.lucia-widget.lucia-edge-docked .lucia-teaser-avatar {
  width: 46px;
  height: 46px;
}

.lucia-widget.lucia-edge-restore-pulse .lucia-teaser-frame {
  animation: lucia-edge-restore-pulse 0.82s ease-out 0s 2;
}

.lucia-edge-dock-ghost {
  position: fixed;
  top: var(--lucia-dock-preview-top, 20px);
  left: var(--lucia-dock-preview-left, 20px);
  width: 64px;
  height: 64px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1;
}

.lucia-edge-dock-ghost-frame {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  padding: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0 40%, rgba(124, 58, 237, 0.22) 41% 70%, rgba(34, 197, 94, 0.12) 71% 100%);
  border: 1px solid rgba(124, 58, 237, 0.44);
  box-shadow:
    0 10px 32px rgba(76, 29, 149, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.56) inset,
    0 0 38px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(1px);
}

.lucia-edge-dock-ghost-avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.lucia-edge-dock-ghost-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(1.05) contrast(1.16);
}

.lucia-widget.lucia-edge-dock-preview::before,
.lucia-widget.lucia-edge-dock-preview::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.lucia-widget.lucia-edge-dock-preview::before {
  top: calc(var(--lucia-dock-preview-top, 20px) - 18px);
  width: 22px;
  height: 100px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.08) 48%, transparent 74%);
  opacity: 0.48;
}

.lucia-widget.lucia-edge-dock-preview::after {
  top: calc(var(--lucia-dock-preview-top, 20px) - 10px);
  width: 5px;
  height: 84px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.28), rgba(34, 197, 94, 0.2), rgba(124, 58, 237, 0.28));
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.2);
  opacity: 0.68;
}

.lucia-widget.lucia-edge-dock-left::before {
  left: -10px;
}

.lucia-widget.lucia-edge-dock-left::after {
  left: 0;
}

.lucia-widget.lucia-edge-dock-left .lucia-edge-dock-ghost {
  left: -18px;
}

.lucia-widget.lucia-edge-dock-right::before {
  right: -10px;
}

.lucia-widget.lucia-edge-dock-right::after {
  right: 0;
}

.lucia-widget.lucia-edge-dock-right .lucia-edge-dock-ghost {
  right: -18px;
  left: auto;
}

.lucia-widget.lucia-edge-dock-top::before {
  top: -10px;
  left: calc(var(--lucia-dock-preview-left, 20px) - 18px);
  width: 100px;
  height: 22px;
}

.lucia-widget.lucia-edge-dock-top::after {
  top: 0;
  left: calc(var(--lucia-dock-preview-left, 20px) - 10px);
  width: 84px;
  height: 5px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.28), rgba(34, 197, 94, 0.2), rgba(124, 58, 237, 0.28));
}

.lucia-widget.lucia-edge-dock-top .lucia-edge-dock-ghost {
  top: -18px;
}

.lucia-widget.lucia-edge-dock-bottom::before {
  top: auto;
  bottom: -10px;
  left: calc(var(--lucia-dock-preview-left, 20px) - 18px);
  width: 100px;
  height: 22px;
}

.lucia-widget.lucia-edge-dock-bottom::after {
  top: auto;
  bottom: 0;
  left: calc(var(--lucia-dock-preview-left, 20px) - 10px);
  width: 84px;
  height: 5px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.28), rgba(34, 197, 94, 0.2), rgba(124, 58, 237, 0.28));
}

.lucia-widget.lucia-edge-dock-bottom .lucia-edge-dock-ghost {
  top: auto;
  bottom: -18px;
}

.lucia-widget.lucia-edge-dock-preview .lucia-edge-dock-ghost {
  visibility: visible;
  opacity: 0.7;
  transform: scale(0.98);
}

.lucia-widget.lucia-edge-dock-preview .lucia-teaser,
.lucia-widget.lucia-edge-dock-preview .lucia-expanded {
  position: relative;
  z-index: 2;
}

.lucia-widget.lucia-edge-dock-preview .lucia-teaser-frame {
  box-shadow:
    0 7px 22px rgba(118, 75, 162, 0.16),
    inset 0 0 0 1px rgba(118, 75, 162, 0.1);
}

.lucia-widget.lucia-edge-dock-preview .lucia-teaser::before {
  background-size: 220% 100%;
  filter: saturate(1.05);
}

.lucia-widget.lucia-edge-dock-elastic .lucia-edge-dock-ghost {
  opacity: 0.56;
  transform: scale(0.92);
}

.lucia-widget.lucia-edge-dock-elastic::before {
  opacity: 0.31;
}

.lucia-widget.lucia-edge-dock-elastic::after {
  opacity: 0.44;
}

.lucia-widget.lucia-edge-docked.lucia-edge-dock-preview .lucia-edge-dock-ghost {
  opacity: 0.6;
}

.lucia-widget.lucia-edge-docked.lucia-edge-dock-preview::after {
  opacity: 0.46;
}

.lucia-widget.lucia-edge-dock-preview .lucia-expanded {
  box-shadow:
    0 14px 46px rgba(76, 29, 149, 0.1),
    0 8px 34px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(118, 75, 162, 0.08);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.16s ease;
}

.lucia-widget.lucia-edge-right .lucia-notification-dot {
  left: -7px;
  right: auto;
}

.lucia-widget.lucia-edge-left .lucia-notification-dot {
  right: -7px;
  left: auto;
}

.lucia-widget.lucia-edge-top .lucia-notification-dot {
  top: auto;
  bottom: -7px;
}

.lucia-widget.lucia-edge-bottom .lucia-notification-dot {
  top: -7px;
  bottom: auto;
}

@keyframes lucia-edge-restore-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  }
  45% {
    transform: scale(1.045);
    box-shadow: 0 8px 26px rgba(118, 75, 162, 0.28);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  }
}

@keyframes lucia-show-hey {
  0%, 45% { opacity: 1; visibility: visible; }
  50%, 95% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}

@keyframes lucia-show-dots {
  0%, 45% { opacity: 0; visibility: hidden; }
  50%, 95% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* CHECKBOX REMEMBER */
.lucia-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}

.lucia-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4CAF50;
  cursor: pointer;
}

.lucia-remember span {
  flex: 1;
}

.lucia-remember:hover {
  color: #333;
}

/* ========== PANNEAU AGRANDI - DESIGN MINIMALISTE ========== */
.lucia-expanded {
  width: 320px;
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: lucia-expand 0.3s ease;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lucia-expanded.lucia-has-cart {
  width: 620px;
}

.lucia-expanded.lucia-has-cart.lucia-no-primary-panel {
  width: min(620px, calc(100vw - 40px));
}

.lucia-resize-shell {
  width: 100%;
  height: 640px;
  min-height: 640px;
  max-height: min(920px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
}

@keyframes lucia-expand {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* HEADER WITH ICONS */
.lucia-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  cursor: move;
}

.lucia-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lucia-header-left img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.lucia-header-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.lucia-header-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  row-gap: 4px;
}

.lucia-main-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  z-index: 3;
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 138, 89, 0.16) 0%, #4f8a59 20%, #4f8a59 80%, rgba(79, 138, 89, 0.16) 100%);
  box-shadow: 0 -1px 4px rgba(79, 138, 89, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scaleX(0.72);
  transition: opacity 120ms ease, transform 180ms cubic-bezier(0.22, 0.7, 0.24, 1);
  transform-origin: center;
}

.lucia-main-tab.is-panel-open::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 320px) {
  #btnSettings::after {
    top: calc(100% + 1px);
  }
}

.lucia-cart-toggle {
  position: relative;
  background: #eef8f1;
  color: #1f7a45;
}

.lucia-cart-toggle.active {
  background: #e2f6e8;
  border-color: #b7ebc8;
  color: #166534;
}

.lucia-cart-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #16a34a;
  color: white;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lucia-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lucia-main-tab {
  position: relative;
  width: 34px;
  min-width: 34px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.lucia-main-tab .lucia-nav-label {
  display: none;
}

.lucia-primary-nav {
  background: #f5f8ff;
  color: #5b6fdc;
}

.lucia-secondary-nav {
  opacity: 0.7;
}

.lucia-icon-btn:not(.active):hover {
  background: #f7f7f7;
  border-color: #e5e7eb;
  color: #374151;
  transform: translateY(-1px);
}

.lucia-primary-nav:not(.active):hover {
  background: #eef4ff;
  border-color: #d8e2ff;
  color: #4258c9;
}

.lucia-secondary-nav:not(.active):hover {
  opacity: 0.92;
}

.lucia-icon-btn:focus-visible {
  outline: none;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

/* Icone CIBLE - produit detecte */
.lucia-target-btn {
  position: relative;
  animation: pulse-target 2s ease-in-out infinite;
}

.lucia-target-btn svg {
  stroke: #e74c3c;
}

.lucia-target-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lucia-manual-btn {
  position: relative;
}

.lucia-manual-btn svg {
  stroke: #5b6fdc;
}

.lucia-manual-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  background: #5b6fdc;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lucia-target-badge[data-state="loading"],
.lucia-manual-badge[data-state="loading"] {
  top: -8px;
  right: -4px;
  background: #fbf7ff;
  min-width: 25px;
  width: 25px;
  height: 17px;
  padding: 0 5px;
  box-sizing: border-box;
  gap: 3px;
  color: transparent;
  border-radius: 999px;
  border: 1px solid rgba(155, 89, 182, 0.62);
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.16);
  z-index: 2;
  animation: lucia-target-badge-pulse 1.2s ease-in-out infinite;
}

.lucia-target-badge[data-state="no_product"],
.lucia-target-badge[data-state="idle"],
.lucia-target-badge[data-state="unknown"] {
  background: #93a3b4;
}

.lucia-manual-badge[data-state="idle"],
.lucia-manual-badge[data-state="unknown"] {
  background: #93a3b4;
}

.lucia-target-badge[data-state="no_results"] {
  background: #7f8c8d;
}

.lucia-manual-badge[data-state="no_results"] {
  background: #7f8c8d;
}

.lucia-target-badge[data-state="error"] {
  background: #d9534f;
}

.lucia-manual-badge[data-state="error"] {
  background: #d9534f;
}

.lucia-target-btn.is-loading svg {
  opacity: 0;
  animation: none;
}

.lucia-manual-btn.is-loading svg {
  opacity: 0;
  animation: none;
}

.lucia-target-badge-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.lucia-target-badge-dot {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  opacity: 0.96;
}

.lucia-target-badge-dot-a,
.lucia-target-badge-dot-c {
  background: #9b59b6;
}

.lucia-target-badge-dot-b {
  background: #66bb6a;
}

.lucia-target-badge[data-state="loading"] .lucia-target-badge-dot,
.lucia-manual-badge[data-state="loading"] .lucia-target-badge-dot {
  animation: lucia-target-badge-dot-bounce 1.05s ease-in-out infinite;
}

.lucia-target-badge[data-state="loading"] .lucia-target-badge-dot-a,
.lucia-manual-badge[data-state="loading"] .lucia-target-badge-dot-a {
  animation-delay: 0ms;
}

.lucia-target-badge[data-state="loading"] .lucia-target-badge-dot-b,
.lucia-manual-badge[data-state="loading"] .lucia-target-badge-dot-b {
  animation-delay: 120ms;
}

.lucia-target-badge[data-state="loading"] .lucia-target-badge-dot-c,
.lucia-manual-badge[data-state="loading"] .lucia-target-badge-dot-c {
  animation-delay: 240ms;
}

@keyframes lucia-target-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes lucia-target-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(14deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes lucia-target-badge-dot-bounce {
  0%, 100% { transform: translateY(0) scale(0.92); opacity: 0.72; }
  50% { transform: translateY(-1px) scale(1); opacity: 1; }
}

@keyframes pulse-target {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* OVERLAY: Demande de localisation */
.lucia-location-overlay {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  border-radius: 0 0 16px 16px;
}

.lucia-location-overlay-content {
  max-width: 280px;
  text-align: center;
}

.lucia-overlay-icon {
  margin-bottom: 16px;
}

.lucia-location-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.lucia-location-overlay p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.lucia-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lucia-overlay-actions .lucia-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lucia-overlay-actions .lucia-geo-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.lucia-overlay-actions .lucia-btn-text {
  color: #999;
  font-size: 13px;
}

/* Message discret de localisation */
.lucia-location-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f4ff;
  border: 1px dashed #9b59b6;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.lucia-location-notice svg {
  stroke: #9b59b6;
  flex-shrink: 0;
}

.lucia-location-notice span {
  flex: 1;
}

.lucia-location-notice button {
  background: #9b59b6;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.lucia-location-notice button:hover {
  background: #8e44ad;
}

/* ========== LAYOUT DEUX COLONNES ========== */
.lucia-main-container {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  flex: 1 1 auto;
  overflow: hidden;
}

.lucia-expanded.lucia-has-cart .lucia-main-container {
  min-height: 0;
  height: auto;
  max-height: none;
}

.lucia-resize-handle {
  width: 100%;
  height: 18px;
  border: none;
  border-top: 1px solid #edf2f7;
  background: linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(241,245,249,0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  padding: 0;
  flex-shrink: 0;
}

.lucia-resize-grip {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.lucia-resize-handle:hover .lucia-resize-grip {
  background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

/* Rail des panels (slide horizontal COMPLET) */
.lucia-panel-rail {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 0px solid transparent;
  background: #fafafa;
  position: relative;
}

.lucia-panel-rail::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(155, 89, 182, 0) 0%, rgba(155, 89, 182, 0.12) 16%, rgba(155, 89, 182, 0.12) 84%, rgba(155, 89, 182, 0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lucia-panel-rail.open {
  flex: 0 0 75%;
  width: 75%;
  min-width: 200px;
  max-width: 300px;
  border-right: 1px solid #eee;
}

.lucia-panel-rail.open::after {
  opacity: 1;
}

/* MODE PANEL OUVERT: le panel prend 100% de la largeur */
.lucia-main-container.panel-open .lucia-panel-rail.open {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  border-right: none;
}

.lucia-main-container.panel-open .lucia-panel-rail.open::after {
  opacity: 0;
}

/* Cacher la colonne resultats quand un panel est ouvert */
.lucia-main-container.panel-open .lucia-results-column {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.lucia-expanded.lucia-has-cart .lucia-main-container.panel-open .lucia-panel-rail.open {
  flex: 1 1 0;
  width: auto;
  max-width: none;
}

.lucia-expanded.lucia-no-primary-panel .lucia-results-column {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Track qui contient les panels - SIMPLIFIE: un seul visible a la fois */
.lucia-panel-track {
  display: block;
  width: 100%;
  height: 100%;
}

.lucia-slide-panel {
  display: none;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  max-height: none;
  background: #fafafa;
}

/* Panel actif */
.lucia-slide-panel.active {
  display: block;
}

/* Colonne resultats */
.lucia-results-column {
  flex: 1;
  min-width: 0;
  padding: 10px 13px 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lucia-loko-cart {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(20px);
  transition: flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.22s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lucia-expanded.lucia-has-cart .lucia-loko-cart {
  flex: 0 0 272px;
  width: 272px;
  opacity: 1;
  padding: 6px 10px 6px 0;
  pointer-events: auto;
  transform: translateX(0);
}

.lucia-expanded.lucia-has-cart.lucia-no-primary-panel .lucia-loko-cart {
  flex: 1 1 auto;
  width: auto;
  padding: 6px 10px;
}

.lucia-loko-cart-shell {
  height: 100%;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  border-radius: 15px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lucia-loko-cart-header {
  padding: 12px 12px 11px;
  border-bottom: 1px solid rgba(29, 78, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.lucia-loko-cart-header strong {
  display: block;
  font-size: 11.5px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.lucia-saved-count {
  background: #ecfdf3;
  color: #1f7a45;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lucia-saved-count-loko {
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 10px;
  font-size: 8.8px;
  font-weight: 800;
}

.lucia-loko-cart-body {
  flex: 1;
  min-height: 0;
  padding: 8px 8px 0;
  overflow-y: auto;
  background: #ffffff;
}

.lucia-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.lucia-loko-empty {
  border: none;
  border-radius: 0;
  padding: 16px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lucia-loko-empty strong {
  font-size: 12px;
  color: #12356f;
}

.lucia-loko-empty span {
  font-size: 11px;
  color: #637ba1;
  line-height: 1.45;
}

.lucia-saved-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 80px;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 2px;
  row-gap: 2px;
  padding: 11px 10px 10px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  border-bottom: 1px solid #eef2f7;
}

.lucia-saved-item.has-advice {
  background: #fffdf7;
}

.lucia-saved-item.is-blocked {
  background: #fffaf7;
}

.lucia-saved-item:last-child {
  border-bottom: none;
}

.lucia-saved-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  justify-content: flex-start;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
  text-align: left;
  width: 100%;
}

.lucia-saved-main:hover {
  opacity: 0.88;
}

.lucia-saved-name {
  font-size: 11.9px;
  font-weight: 700;
  color: #12356f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lucia-saved-meta {
  font-size: 9px;
  color: #6b7280;
  line-height: 1.2;
}

.lucia-saved-controls {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  justify-self: start;
}

.lucia-saved-step,
.lucia-saved-qty-pill {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  font-size: 9.5px;
  font-weight: 700;
  color: #4b5f82;
}

.lucia-saved-step {
  padding: 0;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.lucia-saved-step:hover:not(:disabled) {
  border-color: #9fb0ca;
  background: #eef3f9;
}

.lucia-saved-step:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.lucia-saved-step:disabled {
  opacity: 0.45;
  cursor: default;
}

.lucia-saved-qty-pill {
  min-width: 22px;
  background: #ffffff;
  color: #12356f;
}

.lucia-saved-side {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 80px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: flex-end;
  justify-items: end;
  align-self: stretch;
  padding: 0;
  border-left: none;
  border-radius: 0;
  background: transparent;
}

.lucia-saved-side-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 16px;
  gap: 3px;
  box-sizing: border-box;
}

.lucia-saved-side-top > button {
  flex: 0 0 auto;
  box-sizing: border-box;
}

.lucia-saved-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-width: 0;
  width: auto;
  margin-top: auto;
  align-self: end;
}

.lucia-saved-subtotal-label {
  font-size: 6.8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8aa0bf;
}

.lucia-saved-price {
  font-size: 11.6px;
  font-weight: 800;
  color: #12356f;
  line-height: 1.1;
}

.lucia-saved-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 2px 3px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #dbeafe;
  font-size: 7px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lucia-saved-block-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lucia-saved-block-pill {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  align-self: flex-end;
}

.lucia-saved-advice-hint {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  background: #fffbeb;
  color: #d97706;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.lucia-saved-advice-hint svg {
  width: 11px;
  height: 11px;
  display: block;
}

.lucia-saved-advice-hint:hover {
  color: #b45309;
  border-color: #f59e0b;
  background: #fef3c7;
  transform: translateY(-0.5px);
}

.lucia-saved-advice-hint:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

.lucia-saved-advice-hint[data-tone="blocked"] {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

.lucia-saved-advice-hint[data-tone="blocked"]:hover {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
}

.lucia-saved-merchant-indicator {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  cursor: pointer;
}

.lucia-saved-merchant-indicator > span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2563eb;
}

.lucia-saved-merchant-indicator:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.lucia-saved-merchant-indicator:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-saved-merchant-indicator[data-state="needs_information"] {
  border-color: #fbbf24;
  background: #fffbeb;
}

.lucia-saved-merchant-indicator[data-state="needs_information"] > span {
  background: #d97706;
}

.lucia-saved-view-hint {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lucia-saved-view-hint svg {
  width: 12px;
  height: 12px;
  display: block;
}

.lucia-saved-view-hint:hover {
  color: #5b6f8f;
  border-color: #cbd5e1;
  background: #ffffff;
}

.lucia-saved-remove {
  width: 18px;
  height: 18px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.lucia-saved-remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.lucia-saved-remove svg {
  width: 10px;
  height: 10px;
  display: block;
}

.lucia-loko-cart-footer {
  padding: 8px 10px 10px;
  border-top: 1px solid #dbe3ef;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #ffffff;
}

.lucia-loko-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  color: #5b75a1;
  padding: 0 1px 7px;
  border-bottom: 1px solid #e2e8f0;
}

.lucia-loko-cart-total-row strong {
  font-size: 13px;
  color: #12356f;
}

.lucia-loko-cart-status {
  margin: 0;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  color: #587098;
  max-width: none;
  text-align: left;
}

.lucia-loko-cart-status[data-tone="success"] {
  color: #166534;
}

.lucia-loko-cart-status[data-tone="warning"] {
  color: #9a3412;
}

.lucia-loko-cart-status[data-tone="error"] {
  color: #b91c1c;
}

.lucia-loko-cart-benefit {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 2px;
}

.lucia-loko-cart-guidance {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px 1px;
  color: #40567a;
}

.lucia-loko-cart-guidance p {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-loko-cart-guidance .lucia-loko-cart-guidance-note {
  color: #74839a;
  font-size: 8px;
  line-height: 1.35;
}

#luciaResizeShell .lucia-loko-cart-cta {
  border: none;
  border-radius: 11px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

#luciaResizeShell .lucia-loko-cart-cta:hover:not(:disabled),
#luciaResizeShell .lucia-loko-cart-cta:focus-visible,
#luciaResizeShell .lucia-loko-cart-cta:active:not(:disabled),
#luciaResizeShell .lucia-loko-cart-cta[aria-disabled="false"] {
  color: #ffffff;
}

#luciaResizeShell .lucia-loko-cart-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

#luciaResizeShell .lucia-loko-cart-cta:disabled,
#luciaResizeShell .lucia-loko-cart-cta[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.lucia-product-detail-advice {
  margin-top: 6px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e1b4b;
}

.lucia-product-detail-advice strong {
  display: block;
  margin-top: 2px;
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.25;
}

.lucia-product-detail-advice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
}


/* ========== BLOC LOCALISATION INLINE ========== */
.lucia-location-inline {
  background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
  border: 1px dashed #9b59b6;
  border-radius: 12px;
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.lucia-location-inline.lucia-hidden {
  display: none;
}

.lucia-location-inline-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.lucia-location-inline-intro svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.lucia-location-inline-intro strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 2px;
}

.lucia-location-inline-intro p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.lucia-location-inline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lucia-location-inline-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: white;
  box-sizing: border-box;
}

.lucia-location-inline-form input:focus {
  outline: none;
  border-color: #9b59b6;
}

.lucia-inline-actions {
  display: flex;
  gap: 8px;
}

.lucia-inline-actions .lucia-btn-primary {
  flex: 1;
  padding: 10px 16px;
}

.lucia-inline-geo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-inline-geo:hover {
  border-color: #9b59b6;
  color: #9b59b6;
}

/* Panel detecte produit */
.lucia-detected-product {
  text-align: center;
}

.lucia-detected-badge {
  display: inline-block;
  background: #fee;
  color: #e74c3c;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.lucia-detected-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
}

.lucia-detected-price {
  font-size: 15px;
  font-weight: 600;
  color: #e74c3c;
  margin-bottom: 12px;
}

/* === GROUPE UNIFIE RESULTATS === */
.lucia-results-group {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* BANDEAUX PLEINE LARGEUR */
.lucia-banner {
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lucia-banner-with-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lucia-banner-orange {
  background: linear-gradient(135deg, #ffb000 0%, #f97316 100%);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.lucia-banner-green {
  background: #4CAF50;
  color: white;
}

#phaseResults.is-search-error .lucia-banner-green,
#phaseResults.is-search-error #targetResultContext,
#phaseResults.is-search-error #targetResultTabs,
#phaseResults.is-search-error #resultsCards {
  display: none;
}

/* Banniere avec boutons d'action */
.lucia-banner-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.lucia-banner-actions {
  display: flex;
  gap: 6px;
}

.lucia-flow-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
}

.lucia-btn-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.25);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-btn-mini:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.lucia-btn-mini svg {
  stroke: currentColor;
}

/* Ligne produit detecte */
.lucia-detected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 7px 6px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4dcd6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(83, 54, 36, 0.07);
  flex-shrink: 0;
}

.lucia-detected-product-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 3px;
  min-width: 0;
  min-height: 74px;
  padding: 7px 9px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lucia-detected-product-source {
  display: block;
  grid-column: 1 / -1;
  overflow: hidden;
  color: #80756f;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucia-detected-product-media {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f7f3;
}

.lucia-detected-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.lucia-detected-product-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #497751;
  font-size: 18px;
}

.lucia-detected-product-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lucia-detected-name {
  display: -webkit-box;
  overflow: hidden;
  color: #333;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lucia-detected-product-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 2px;
}

.lucia-detected-price {
  flex: 0 0 auto;
  color: #c85000;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lucia-detected-product-brand {
  overflow: hidden;
  padding: 2px 4px;
  border-radius: 999px;
  background: #eef5ef;
  color: #55705b;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucia-detected-local-request {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  width: calc(100% - 20px);
  max-width: 210px;
  min-height: 36px;
  margin: 4px auto 6px;
  padding: 1px 8px 2px;
  box-sizing: border-box;
  border: 1px solid #cfe1d2;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4faf5 0%, #fff9f7 100%);
  box-shadow: 0 2px 5px rgba(54, 93, 61, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #365d3d;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lucia-detected-local-request:hover {
  background: linear-gradient(135deg, #edf7ef 0%, #fff5f2 100%);
  border-color: #b7d3bc;
  box-shadow: 0 4px 8px rgba(54, 93, 61, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.lucia-detected-local-request:focus-visible {
  outline: 2px solid rgba(79, 138, 89, 0.42);
  outline-offset: 2px;
}

.lucia-detected-local-request-icon {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff0ee;
  font-size: 17px;
  line-height: 1;
}

.lucia-detected-local-request-icon::before,
.lucia-detected-local-request-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  border: solid rgba(219, 81, 75, 0.48);
  border-width: 0 0 0 1.5px;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: lucia-live-signal 2.8s ease-out infinite;
  pointer-events: none;
}

.lucia-detected-local-request-icon::before {
  left: -6px;
  width: 4px;
  height: 8px;
}

.lucia-detected-local-request-icon::after {
  left: -10px;
  width: 7px;
  height: 13px;
  animation-delay: 180ms;
}

.lucia-live-megaphone {
  position: relative;
  overflow: visible;
}

.lucia-live-megaphone-glyph {
  display: block;
  filter: hue-rotate(300deg) saturate(1.45) contrast(1.05);
  line-height: 1;
  transform: translateX(1px);
}

.lucia-detected-local-request-main {
  display: grid;
  grid-template-columns: minmax(0, 88px) 24px;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  min-width: 0;
}

.lucia-detected-local-request-main strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #315c39;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lucia-detected-local-request-subtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #626260;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 340px) {
  .lucia-detected-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 7px 8px;
    padding: 0;
  }

  .lucia-detected-product-card {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 6px;
    padding: 5px;
  }

  .lucia-detected-product-media {
    width: 42px;
    height: 42px;
  }

  .lucia-detected-product-source {
    font-size: 7px;
  }

  .lucia-detected-name {
    font-size: 9.5px;
  }

  .lucia-detected-local-request {
    width: calc(100% - 14px);
    max-width: 198px;
    min-height: 34px;
    margin: 4px auto 5px;
    padding: 1px 6px 2px;
  }

  .lucia-detected-local-request-icon {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .lucia-detected-local-request-main {
    grid-template-columns: minmax(0, 82px) 22px;
    column-gap: 3px;
  }

  .lucia-detected-local-request-main strong {
    gap: 2px;
    font-size: 10px;
  }

  .lucia-detected-local-request-subtitle {
    font-size: 6.75px;
  }
}

.lucia-live-word {
  color: #db514b;
  font-weight: 800;
}

.lucia-live-broadcast {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 12px;
  text-shadow: 0 1px 1px rgba(44, 67, 49, 0.08);
}

.lucia-live-animated-word {
  display: inline-flex;
  align-items: baseline;
}

.lucia-live-letter {
  display: inline-block;
  opacity: 1;
  transform-origin: right center;
  animation: lucia-live-letter-broadcast 7s cubic-bezier(0.2, 0.72, 0.26, 1) infinite both;
  animation-delay: calc(var(--lucia-letter-index) * 195ms);
  will-change: transform, filter;
}

/* Version orange pour page "pas trouve" */
.lucia-detected-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-bottom: 2px solid #f97316;
}

/* Liste des cartes resultats */
.lucia-results-cards {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lucia-results-cards .lucia-card {
  margin-bottom: 0;
  border-radius: 8px;
}

.lucia-results-live-footer {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 12px 10px;
  border: 1px solid #d9e5dc;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 72, 53, 0.08);
}

.lucia-results-live-footer-copy {
  display: grid;
  gap: 1px;
  text-align: center;
}

.lucia-results-live-footer-copy strong {
  color: #34443a;
  font-size: 9.5px;
  line-height: 1.25;
}

.lucia-results-live-footer .lucia-detected-local-request {
  width: 100%;
  max-width: none;
  min-height: 40px;
  margin: 0 auto;
}

.lucia-expanded:has(#targetLocalRequestFooter:not(.lucia-hidden)) .lucia-resize-shell,
.lucia-expanded:has(#manualLocalRequestFooter:not(.lucia-hidden)) .lucia-resize-shell {
  height: 670px;
}

#resultsCards .lucia-card {
  min-height: 96px;
}

#resultsCards .lucia-card-media {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
  height: 62px;
  min-height: 62px;
}

#resultsCards .lucia-card-content {
  min-height: 62px;
  gap: 6px;
  padding: 8px 10px;
}

#resultsCards .lucia-card-body {
  min-height: 54px;
  gap: 8px;
}

#resultsCards .lucia-card-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#resultsCards .lucia-card-store {
  font-size: 11px;
}

#resultsCards .lucia-card-reason {
  min-height: 0;
  max-height: 1.35em;
  font-size: 9px;
  -webkit-line-clamp: 1;
}

#resultsCards .lucia-card-right {
  min-width: 58px;
  min-height: 44px;
  gap: 3px;
}

#resultsCards .lucia-card-tags {
  padding: 3px 8px 6px;
  column-gap: 4px;
  row-gap: 4px;
}

#resultsCards .lucia-tag {
  padding: 2px 7px;
  font-size: 9px;
}

.lucia-result-tabs-shell {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 6px 8px 5px;
  border-bottom: 1px solid #d9eadc;
  background: #f4fbf5;
  overflow: hidden;
}

.lucia-result-tabs-shell:empty {
  display: none;
}

#targetResultContext:empty {
  display: none;
}

.lucia-local-network-wrap {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 4px;
}

.lucia-local-network-module {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 248px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #bdd8c2;
  border-radius: 8px;
  background: #fffdfc;
  box-shadow: 0 2px 6px rgba(52, 45, 42, 0.07);
  color: #294330;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lucia-local-network-wrap.is-priority .lucia-local-network-module {
  border-color: #d5c8c4;
  background: #fffaf8;
}

.lucia-local-network-module:hover {
  border-color: #cfbeb9;
  background: #fffaf8;
  box-shadow: 0 3px 8px rgba(52, 45, 42, 0.1);
}

.lucia-local-network-module:focus-visible {
  outline: 2px solid rgba(79, 138, 89, 0.28);
  outline-offset: 2px;
}

.lucia-local-network-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff1ef;
  font-size: 18px;
  line-height: 1;
}

@keyframes lucia-live-letter-broadcast {
  0%,
  2% {
    filter: saturate(0.82);
    transform: translate3d(var(--lucia-letter-travel-x), 0, 0) scale(0.94);
  }
  9% {
    filter: saturate(1);
    transform: translate3d(var(--lucia-letter-travel-mid-x), 0, 0) scale(0.98);
  }
  17%,
  84% {
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  93%,
  100% {
    filter: saturate(0.9);
    transform: translateX(-1px) scale(0.99);
  }
}

@keyframes lucia-live-signal {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translate3d(2px, -50%, 0) scale(0.82);
  }
  68% {
    opacity: 0.52;
  }
  82% {
    opacity: 0;
    transform: translate3d(-4px, -50%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lucia-main-tab::after {
    transition: none;
  }

  .lucia-live-letter {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .lucia-detected-local-request-icon::before,
  .lucia-detected-local-request-icon::after {
    animation: none;
    opacity: 0.32;
  }
}

.lucia-local-network-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lucia-local-network-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
}

.lucia-local-network-copy span {
  font-size: 9.5px;
  line-height: 1.25;
  color: #607064;
}

.lucia-local-network-arrow {
  flex: 0 0 auto;
  color: #73917a;
  font-size: 16px;
  line-height: 1;
}

#manualResultsCards > .lucia-local-network-wrap {
  flex: 0 0 auto;
}

.lucia-not-found .lucia-local-network-wrap {
  align-items: center;
  width: 100%;
  padding: 8px 0 2px;
}

@media (max-width: 430px) {
  .lucia-local-network-wrap {
    align-items: flex-start;
  }
}

.lucia-result-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(64, 121, 76, 0.3) transparent;
  max-width: 100%;
  min-width: 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.lucia-result-tabs::-webkit-scrollbar {
  height: 4px;
}

.lucia-result-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.lucia-result-tabs::-webkit-scrollbar-thumb {
  background: rgba(64, 121, 76, 0.28);
  border-radius: 999px;
}

.lucia-result-tab {
  flex: 0 0 auto;
  border: 1px solid #cfe5d2;
  background: #ffffff;
  color: #31523a;
  border-radius: 6px;
  padding: 5px;
  font-size: 10.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  cursor: pointer;
  min-width: max-content;
  min-height: 25px;
  line-height: 1;
  scroll-snap-align: start;
}

.lucia-result-tab.is-active {
  border-color: #4CAF50;
  background: #eaf7ec;
  color: #174623;
  box-shadow: inset 0 -2px 0 #4CAF50;
}

.lucia-result-tab:disabled {
  cursor: default;
  opacity: 0.46;
  background: #f8fbf8;
  color: #718273;
}

.lucia-result-tab-count {
  min-width: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.78;
}

.lucia-result-tab.is-active .lucia-result-tab-count {
  background: transparent;
  color: inherit;
  opacity: 0.9;
}

/* === TARGET PANEL === */
.lucia-target-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px !important;
}

.lucia-target-product {
  background: linear-gradient(135deg, #fffbf7 0%, #fff 100%);
  border: 1px solid #ffe4cc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.lucia-target-source {
  display: inline-block;
  background: #ff9900;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.lucia-target-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.lucia-target-price {
  font-size: 18px;
  font-weight: 700;
  color: #c85000;
  margin-bottom: 8px;
}

.lucia-target-desc {
  font-size: 11px;
  color: #888;
  margin: 0;
}

.lucia-target-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Panel header */
.lucia-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f0f0f0;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  height: 40px;
  box-sizing: border-box;
  width: 100%;
}

.lucia-panel-header-primary {
  background: linear-gradient(135deg, #ffb300 0%, #f97316 100%);
  color: #fff7ed;
  border-bottom: 1px solid rgba(194, 65, 12, 0.22);
  position: sticky;
  top: 0;
  z-index: 4;
}

#panelSearch .lucia-panel-header-primary {
  border-radius: 12px 12px 0 0;
}

#panelSearch.active {
  display: flex;
  flex-direction: column;
}

.lucia-panel-header-primary .lucia-panel-subtitle {
  color: rgba(255, 247, 237, 0.9);
}

.lucia-panel-header-primary .lucia-btn-mini {
  background: rgba(255,255,255,0.22);
}

.lucia-panel-header-primary .lucia-btn-mini:hover {
  background: rgba(255,255,255,0.34);
}

.lucia-panel-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lucia-panel-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.lucia-panel-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lucia-panel-close:hover {
  background: #e8e8e8;
}

.lucia-panel-body {
  padding: 14px;
  overflow-y: auto;
  max-height: none;
  box-sizing: border-box;
  width: 100%;
}

#panelSearch .lucia-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.lucia-panel-helper {
  margin: 0 0 12px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  flex-shrink: 0;
}

/* PANEL: Search */
.lucia-search-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.lucia-search-input-wrap input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
}

.lucia-search-input-wrap input:focus {
  outline: none;
  border-color: #4CAF50;
}

.lucia-search-submit {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lucia-search-submit:hover {
  transform: scale(1.05);
}

.lucia-search-hints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.lucia-hint {
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-hint:hover {
  background: #e0e0e0;
  color: #333;
}

/* Resultats recherche manuelle dans panneau loupe */
.lucia-manual-results {
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#manualSearchResults {
  min-height: 0;
}

#manualSearchResults.is-loading-state,
#manualSearchResults.is-empty-state {
  flex: 1 1 auto;
}

#manualSearchResults.is-error-state {
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 4px;
  padding-bottom: 2px;
  overflow: visible;
}

#manualSearchResults.is-empty-state #manualResultsCards,
#manualSearchResults.is-loading-state #manualResultsCards,
#manualSearchResults.is-error-state #manualResultsCards {
  display: none;
}

#manualSearchResults.is-empty-state #manualNoResults {
  display: block;
  width: 100%;
}

#manualSearchResults.is-error-state #manualNoResults {
  display: block;
  width: 100%;
}

#manualSearchResults.is-error-state #manualNoResults > .lucia-not-found {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-block: 12px;
}

#manualSearchResults.is-empty-state #manualNoResults > .lucia-not-found {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

#manualSearchResults.is-empty-state,
#manualSearchResults.is-loading-state {
  margin-top: 4px;
  padding-bottom: 2px;
}

#manualSearchResults.is-loading-state {
  min-height: 220px;
  justify-content: center;
}

#manualSearchResults.is-empty-state {
  min-height: 0;
  justify-content: flex-start;
}

.lucia-manual-results .lucia-searching {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  color: #666;
  font-size: 12px;
}

.lucia-manual-results .lucia-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #9b59b6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#manualResultsCards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#manualResultsCards > .lucia-result-tabs-shell {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lucia-result-tabs-shell-manual {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 36px;
  margin-bottom: 0;
  padding: 6px 6px 5px;
  border: 1px solid #d9eadc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fcf7 0%, #eff9f1 100%);
  box-shadow: 0 3px 8px rgba(23, 70, 35, 0.06);
}

.lucia-result-tabs-shell-manual .lucia-result-tabs {
  padding-bottom: 3px;
}

.lucia-card-compact {
  padding: 0 var(--lucia-card-action-width, 32px) 0 0 !important;
}

.lucia-card-compact .lucia-card-name,
.lucia-card-compact .lucia-card-store,
.lucia-card-compact .lucia-card-price,
.lucia-card-compact .lucia-card-distance {
  font-size: inherit !important;
}

.lucia-card-compact .lucia-card-cart-zone {
  width: 32px;
  min-width: 32px;
  padding: 0 2px;
  gap: 0;
}

/* PANEL: Voice */
.lucia-voice-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
}

.lucia-voice-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.lucia-voice-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.lucia-voice-waves {
  position: absolute;
  inset: -10px;
  border: 3px solid transparent;
  border-radius: 50%;
}

.lucia-voice-waves.active {
  border-color: #4CAF50;
  animation: lucia-pulse-ring 1.5s ease-out infinite;
}

@keyframes lucia-pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.lucia-voice-status {
  font-size: 13px;
  color: #666;
  margin: 0 0 15px 0;
  text-align: center;
}

.lucia-voice-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lucia-voice-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.lucia-voice-btn.recording {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  animation: lucia-pulse 1s ease infinite;
}

@keyframes lucia-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* PANEL: Map/Sector */

/* Statut de localisation */
.lucia-location-status {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.lucia-location-status:empty {
  display: none;
}

.lucia-zone-summary {
  border: 1px solid #d9e5dc;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  background: #ffffff;
}

.lucia-zone-summary.lucia-hidden {
  display: none;
}

.lucia-zone-map {
  display: grid;
  grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.lucia-zone-map-canvas {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 7px;
  background: #e9f2eb;
  isolation: isolate;
}

.lucia-zone-map-canvas::before,
.lucia-zone-map-canvas::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #d9eadc;
  z-index: -2;
}

.lucia-zone-map-canvas::before {
  width: 72px;
  height: 72px;
  top: -34px;
  right: -15px;
}

.lucia-zone-map-canvas::after {
  width: 54px;
  height: 54px;
  bottom: -28px;
  left: -12px;
}

.lucia-zone-map-road {
  position: absolute;
  height: 5px;
  border: 1px solid rgba(111, 135, 118, 0.2);
  background: #ffffff;
  transform-origin: center;
  z-index: -1;
}

.lucia-zone-map-road-one {
  width: 150%;
  top: 25%;
  left: -24%;
  transform: rotate(18deg);
}

.lucia-zone-map-road-two {
  width: 145%;
  top: 64%;
  left: -18%;
  transform: rotate(-22deg);
}

.lucia-zone-map-road-three {
  width: 120%;
  top: 48%;
  left: -10%;
  transform: rotate(78deg);
}

.lucia-zone-map-radius {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--lucia-zone-ring-size);
  aspect-ratio: 1;
  border: 1px solid rgba(48, 135, 67, 0.55);
  border-radius: 50%;
  background: rgba(65, 168, 84, 0.12);
  transform: translate(-50%, -50%);
}

.lucia-zone-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2f8041;
  color: #ffffff;
  box-shadow: 0 2px 7px rgba(32, 91, 45, 0.28);
  transform: translate(-50%, -50%);
}

.lucia-zone-map-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lucia-zone-map-caption strong {
  overflow: hidden;
  color: #2f3f33;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucia-zone-map-caption > span:last-child {
  margin-top: 3px;
  color: #66746a;
  font-size: 10px;
  line-height: 1.3;
}

.lucia-zone-map-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: #2f8041;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.lucia-zone-map-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #41a854;
}

.lucia-slide-panel.is-loading .lucia-zone-summary {
  opacity: 0.75;
}

.lucia-zone-actions {
  display: flex;
  justify-content: flex-end;
}

.lucia-zone-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: #a33a3a;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.lucia-zone-reset:hover {
  color: #7f2424;
  text-decoration: underline;
}

.lucia-zone-reset:focus-visible {
  outline: 2px solid rgba(163, 58, 58, 0.28);
  outline-offset: 2px;
}

.lucia-zone-radius-note {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #7b7b7b;
}

.lucia-zone-radius-block {
  background: #ffffff;
  border: 1px solid #e8def7;
  border-radius: 14px;
  padding: 12px 14px 10px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(155, 89, 182, 0.06);
}

.lucia-zone-radius-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lucia-zone-radius-head strong {
  font-size: 13px;
  color: #4a2d68;
}

.lucia-zone-radius-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: #8a8a8a;
}

#zoneRadiusSlider {
  width: 100%;
  accent-color: #8e44ad;
  margin: 0;
}

.lucia-status-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.lucia-status-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.lucia-status-warning {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
}

/* Bouton "Autoriser la localisation" - style prominent */
.lucia-geo-ask-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.lucia-geo-ask-btn:hover {
  background: linear-gradient(135deg, #45a049, #388E3C);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.lucia-geo-ask-btn:active {
  transform: translateY(0);
}

.lucia-geo-ask-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lucia-geo-ask-btn svg {
  stroke: white;
}

/* Version inline du bouton Autoriser */
.lucia-geo-ask-inline {
  margin-bottom: 8px;
}

/* Divider "ou entrez manuellement" */
.lucia-location-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 8px 0;
}

.lucia-location-divider::before,
.lucia-location-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.lucia-location-divider span {
  padding: 0 10px;
  font-size: 11px;
  color: #999;
}

.lucia-location-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 6px 7px 6px 10px;
  margin-bottom: 7px;
}

.lucia-location-input:focus-within {
  border-color: #8abf95;
  box-shadow: 0 0 0 2px rgba(65, 168, 84, 0.1);
}

.lucia-location-field-label {
  display: block;
  margin: 0 0 5px;
  color: #526457;
  font-size: 10px;
  font-weight: 700;
}

.lucia-location-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  outline: none;
}

.lucia-location-apply {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #3f9b50;
  color: #ffffff;
  cursor: pointer;
}

.lucia-location-apply:hover {
  background: #307f40;
}

.lucia-location-apply:focus-visible {
  outline: 2px solid rgba(63, 155, 80, 0.35);
  outline-offset: 2px;
}

.lucia-location-input input::placeholder {
  color: #999;
}

.lucia-geo-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: fit-content;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  color: #397d47;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 9px;
}

.lucia-geo-btn:hover {
  color: #245f31;
  text-decoration: underline;
}

.lucia-geo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lucia-sector-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.lucia-sector-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.lucia-sector-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #e4ddf1;
  border-radius: 10px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-sector-option:has(input:checked) {
  background: linear-gradient(135deg, #8e44ad, #6c5ce7);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(110, 76, 190, 0.22);
}

.lucia-sector-option input {
  display: none;
}

/* PANEL: Settings */
.lucia-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.lucia-setting:last-of-type {
  border-bottom: none;
}

.lucia-setting input[type="checkbox"] {
  width: 40px;
  height: 22px;
  appearance: none;
  background: #e0e0e0;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.lucia-setting input[type="checkbox"]:checked {
  background: #4CAF50;
}

.lucia-setting input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.lucia-setting input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.lucia-setting-section {
  padding: 10px 0;
}

.lucia-settings-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.lucia-settings-nav-btn {
  flex: 1;
  border: 1px solid #d8e2ff;
  background: #f5f8ff;
  color: #4258c9;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lucia-settings-nav-dev {
  flex: 1.12;
}

.lucia-settings-nav-btn:hover {
  background: #eef4ff;
  border-color: #cfd9ff;
  transform: translateY(-1px);
}

.lucia-settings-nav-btn.active {
  background: linear-gradient(180deg, #edf9ef 0%, #def3e4 100%);
  border-color: #b7e4c7;
  color: #1f7a45;
}

.lucia-settings-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.lucia-settings-account-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

#panelSettings .lucia-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

#panelSettings.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lucia-settings-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.lucia-settings-section {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.lucia-settings-section.active {
  display: flex;
}

.lucia-settings-section[hidden] {
  display: none !important;
}

#settingsSectionsHost > .lucia-settings-pane {
  display: none;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  background: #ffffff;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

#settingsSectionsHost > .lucia-settings-pane.active {
  display: block;
}

#settingsSectionsHost > .lucia-settings-pane .lucia-panel-body {
  overflow: visible;
  max-height: none;
}

.lucia-settings-account-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.lucia-settings-account-panel[hidden] {
  display: none !important;
}

#settingsAccountPanelHost > .lucia-settings-pane {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  background: #ffffff;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#settingsAccountPanelHost > .lucia-settings-pane .lucia-panel-body {
  overflow: visible;
  max-height: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lucia-settings-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lucia-setting-label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
}

.lucia-setting-section select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

.lucia-runtime-settings {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.lucia-runtime-settings .lucia-auth-summary-row {
  margin-bottom: 10px;
  align-items: flex-start;
  gap: 10px;
}

.lucia-runtime-settings .lucia-auth-summary-row strong {
  display: block;
}

.lucia-runtime-settings #runtimeSettingsBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 84px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #177245;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.lucia-runtime-settings #runtimeSettingsBadge.is-warning {
  background: #fff7ed;
  color: #9a3412;
}

.lucia-runtime-settings #runtimeSettingsBadge.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.lucia-runtime-settings-intro {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
}

.lucia-settings-input {
  margin-bottom: 10px;
  font-size: 12px;
}

.lucia-runtime-settings-status {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #52627a;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

.lucia-runtime-settings-note {
  margin: -2px 0 10px;
  color: #6b7280;
  font-size: 10.5px;
  line-height: 1.35;
  word-break: break-word;
}

.lucia-runtime-advanced {
  margin-top: 10px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.lucia-runtime-advanced summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
}

.lucia-runtime-advanced summary::-webkit-details-marker {
  display: none;
}

.lucia-runtime-advanced summary::after {
  content: '+';
  float: right;
  color: #64748b;
  font-weight: 900;
}

.lucia-runtime-advanced[open] summary::after {
  content: '−';
}

.lucia-runtime-advanced-body {
  padding: 12px;
  border-top: 1px solid #edf2f7;
}

.lucia-runtime-production-warning {
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.35;
}

.lucia-settings-secondary-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.lucia-account-preferences {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

/* CONTENT */
.lucia-content {
  padding: 12px;
  max-height: 350px;
  overflow-y: auto;
}

/* SEARCHING STATE */
.lucia-searching {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0;
  color: #666;
  font-size: 13px;
}

.lucia-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: lucia-spin 0.8s linear infinite;
}

.lucia-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px 24px;
  text-align: center;
  width: min(100%, 320px);
  margin: 0 auto;
}

#phaseSearch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(270px, 48vh, 430px);
  padding: 8px 0 18px;
}

.lucia-search-loading.is-compact {
  padding: 14px 10px 16px;
  gap: 12px;
  width: min(100%, 280px);
}

.lucia-search-loading-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lucia-search-loading-copy strong {
  display: block;
  font-size: 15px;
  color: #203050;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

.lucia-search-loading-copy > span {
  display: block;
  font-size: 12px;
  color: #687690;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

.lucia-search-activity-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  margin: 12px auto 11px;
  padding: 8px 12px 8px 8px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  isolation: isolate;
}

.lucia-search-activity-chip::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 30px;
  background: linear-gradient(90deg, #667eea, #4CAF50, #9b59b6, #667eea);
  background-size: 300% 100%;
  animation: lucia-border-flow 3s linear infinite;
  z-index: -1;
}

.lucia-search-activity-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.lucia-search-activity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lucia-search-loading-dots {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 82px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f5f5f5;
  white-space: nowrap;
  transform: none;
  transform-origin: center;
  animation: none;
  position: relative;
}

.lucia-search-loading-dots::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #f5f5f5;
}

.lucia-search-loading-copy .lucia-search-loading-dots span {
  display: block;
  width: 7px;
  height: 7px;
  max-width: none;
  margin: 0;
  border-radius: 999px;
  opacity: 0.38;
  animation: lucia-search-dot-pulse 1.45s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.lucia-search-loading-dots span:nth-child(1) {
  background: #7c3aed;
  animation-delay: 0s;
}

.lucia-search-loading-dots span:nth-child(2) {
  background: #22c55e;
  animation-delay: 0.16s;
}

.lucia-search-loading-dots span:nth-child(3) {
  background: #4682b4;
  animation-delay: 0.32s;
}

@keyframes lucia-search-dot-pulse {
  0%, 100% {
    opacity: 0.34;
    transform: translateY(0) scale(0.84);
  }
  45% {
    opacity: 1;
    transform: translateY(-2px) scale(1.06);
  }
}

@keyframes lucia-spin {
  to { transform: rotate(360deg); }
}

/* RESULTS LIST - COMPACT CARDS */
.lucia-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lucia-card {
  --lucia-card-action-width: 32px;
  background: white;
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  padding: 0 var(--lucia-card-action-width) 0 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 110px;
  height: auto;
  box-sizing: border-box;
  position: relative;
}

.lucia-card:has(.lucia-card-cart-zone.is-external-action),
.lucia-card:has(.lucia-card-cart-zone.is-unavailable-action) {
  --lucia-card-action-width: 72px;
}

.lucia-card-media {
  display: grid;
  place-items: center;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  aspect-ratio: 1 / 1;
  height: 72px;
  min-height: 72px;
  overflow: hidden;
  background: #f5f7f3;
  flex-shrink: 0;
}

.lucia-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}

.lucia-card-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5f6f82;
  font-size: 20px;
}

.lucia-card:hover {
  border-color: #74c98b;
  box-shadow: 0 5px 14px rgba(76, 175, 80, 0.08);
}

.lucia-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
}

.lucia-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  flex: 1;
  min-width: 0;
}

.lucia-card-name {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.lucia-card-store {
  font-size: 12px;
  color: #9b59b6;
  font-weight: 500;
  line-height: 1.25;
}

.lucia-card-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 62px;
  min-height: 48px;
  justify-content: flex-start;
  flex-shrink: 0;
}

.lucia-card-actions {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.lucia-card-open-hint {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lucia-card-open-hint svg {
  width: 12px;
  height: 12px;
  display: block;
}

.lucia-card-open-hint:hover {
  color: #475569;
  border-color: #cbd5e1;
  background: #ffffff;
}

.lucia-card-open-hint:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-card-advice-hint {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  background: #fffbeb;
  color: #d97706;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.lucia-card-advice-hint svg {
  width: 11px;
  height: 11px;
  display: block;
}

.lucia-card-advice-hint:hover {
  color: #b45309;
  border-color: #f59e0b;
  background: #fef3c7;
  transform: translateY(-0.5px);
}

.lucia-card-advice-hint:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

.lucia-card-advice-hint[data-tone="blocked"] {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

.lucia-card-advice-hint[data-tone="blocked"]:hover {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
}

.lucia-card-price {
  font-weight: 700;
  font-size: 15px;
  color: #4CAF50;
}

.lucia-card-distance {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #888;
}

.lucia-card-distance svg {
  color: #4CAF50;
}

.lucia-card-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: 0;
  padding: 4px 12px 8px;
  box-sizing: border-box;
  column-gap: 5px;
  row-gap: 5px;
  overflow: visible;
}

.lucia-card-main {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: auto;
  height: auto;
}

.lucia-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 10px 12px;
  min-height: 72px;
  height: auto;
  box-sizing: border-box;
  justify-content: flex-start;
}

.lucia-saved-media {
  display: grid;
  place-items: center;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  height: 52px;
  overflow: hidden;
  background: #f5f7f3;
  border-radius: 8px;
  flex-shrink: 0;
  align-self: start;
  justify-self: start;
}

.lucia-saved-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}

.lucia-saved-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5f6f82;
  font-size: 18px;
}

.lucia-saved-distance {
  color: #8b97a8;
}

.lucia-card-cart-zone {
  width: var(--lucia-card-action-width, 32px);
  min-width: var(--lucia-card-action-width, 32px);
  min-height: 0;
  height: auto;
  margin-top: 0;
  border: none;
  position: absolute;
  inset: 0 0 0 auto;
  border-left: 1px solid rgba(74, 222, 128, 0.4);
  background: linear-gradient(180deg, #e4f7ea 0%, #c7ecd3 100%);
  color: #1f7a45;
  border-radius: 0 12px 12px 0;
  align-self: stretch;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.lucia-card-cart-zone:hover {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), -4px 0 10px rgba(34, 197, 94, 0.05);
}

.lucia-card-cart-zone.is-added {
  border-left-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, #edf4ff 0%, #dbe8ff 100%);
  color: #2563eb;
}

.lucia-card-cart-zone.is-external-action {
  width: 72px;
  min-width: 72px;
  padding: 8px 6px;
  border-left-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(180deg, #fbf7ff 0%, #efe7ff 100%);
  color: #5b21b6;
  gap: 5px;
}

.lucia-card-cart-zone.is-external-action:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), -4px 0 10px rgba(124, 58, 237, 0.08);
}

.lucia-card-cart-zone.is-unavailable-action,
.lucia-card-cart-zone:disabled {
  cursor: default;
  opacity: 0.54;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.lucia-card-cart-zone.is-external-action:disabled {
  border-left-color: #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  color: #94a3b8;
}

.lucia-card-cart-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

.lucia-card-action-label {
  display: none;
}

.lucia-card-cart-zone.is-external-action .lucia-card-action-label,
.lucia-card-cart-zone.is-unavailable-action .lucia-card-action-label {
  display: block;
  max-width: 60px;
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.lucia-card-cart-marker {
  display: none;
}

.lucia-transfer-warning-popover {
  position: relative;
  width: min(440px, 100%);
  max-height: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  z-index: 130;
}

.lucia-transfer-warning-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(2px);
  animation: lucia-transfer-warning-layer-in 160ms ease-out both;
}

.lucia-transfer-warning-modal-layer .lucia-transfer-warning-popover {
  animation: lucia-transfer-warning-modal-in 180ms ease-out both;
}

.lucia-transfer-warning-popover[data-severity="attention"] {
  border-color: #fde68a;
  background: #fffdf5;
}

.lucia-transfer-warning-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.lucia-transfer-warning-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lucia-transfer-warning-heading,
.lucia-transfer-warning-actions {
  display: flex;
  align-items: flex-start;
}

.lucia-transfer-warning-heading {
  min-width: 0;
  gap: 7px;
}

.lucia-transfer-warning-actions {
  flex: 0 0 auto;
  gap: 4px;
}

.lucia-transfer-warning-alert-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #fef3c7;
  color: #b45309;
}

.lucia-transfer-warning-alert-icon svg,
.lucia-transfer-warning-detail svg {
  width: 14px;
  height: 14px;
}

.lucia-transfer-warning-header strong {
  display: block;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.25;
}

.lucia-transfer-warning-close {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.lucia-transfer-condition-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lucia-merchant-specification-module {
  display: block;
  min-width: 0;
}

.lucia-transfer-condition {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid #f5dda1;
  background: #fffaf0;
}

.lucia-transfer-condition.is-active {
  border-color: #f5d06a;
  background: #fff9e9;
}

.lucia-transfer-condition-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
}

.lucia-transfer-condition.is-active .lucia-transfer-condition-indicator {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.lucia-transfer-condition-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  width: 100%;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.lucia-transfer-condition-copy span {
  min-width: 0;
}

.lucia-transfer-condition-copy strong {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.lucia-merchant-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 20%, transparent);
}

.lucia-merchant-action-help,
.lucia-merchant-action-notice,
.lucia-merchant-action-feedback {
  display: block;
  overflow-wrap: anywhere;
}

.lucia-merchant-action-help {
  font-weight: 700;
}

.lucia-merchant-action-notice {
  color: #64748b;
  font-size: 9px;
}

.lucia-merchant-action-button {
  max-width: 100%;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  background: #ffffff;
  color: #1d4ed8;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.lucia-merchant-action-button:hover,
.lucia-merchant-action-button:focus-visible {
  border-color: #60a5fa;
  background: #eff6ff;
}

.lucia-merchant-followup {
  gap: 5px;
  padding: 8px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #f8fafc;
}

.lucia-transfer-warning-popover .lucia-merchant-followup {
  padding: 8px;
  border-color: #e2e8f0;
  background: #ffffff;
}

.lucia-merchant-followup-detail {
  margin-top: 8px;
  padding: 12px;
  border-radius: 11px;
}

.lucia-merchant-followup-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.lucia-merchant-followup-tracking {
  display: grid;
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.lucia-merchant-followup-tracking-title {
  display: flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 12px;
  border-bottom: 1px solid #dbeafe;
  background: #f3f7ff;
  box-sizing: border-box;
  color: #1e40af;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lucia-merchant-followup-tracking-title::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border: 2px solid #bfdbfe;
  border-radius: 50%;
  background: #3b82f6;
  box-sizing: border-box;
  content: '';
}

.lucia-merchant-followup-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0;
}

.lucia-merchant-followup-progress::before {
  position: absolute;
  top: 4px;
  right: 16%;
  left: 16%;
  height: 1px;
  background: #dbe3ef;
  content: '';
}

.lucia-merchant-followup-step {
  position: relative;
  min-width: 0;
  padding: 11px 3px 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.lucia-merchant-followup-step::before {
  position: absolute;
  top: 0;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  box-sizing: border-box;
  background: #ffffff;
  content: '';
}

.lucia-merchant-followup-step.is-complete {
  color: #2563eb;
}

.lucia-merchant-followup-step.is-complete::before {
  border-color: #60a5fa;
  background: #60a5fa;
}

.lucia-merchant-followup-step.is-active {
  color: #1d4ed8;
}

.lucia-merchant-followup-step.is-active::before {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lucia-merchant-followup-actions {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 20px;
}

.lucia-merchant-followup-actions .lucia-merchant-action-button {
  width: 100%;
  text-align: center;
}

.lucia-merchant-confirmation {
  display: grid;
  gap: 7px;
  width: 100%;
}

.lucia-merchant-confirmation-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  padding: 7px;
  border: 1px solid #dbe5f3;
  border-radius: 6px;
  background: #f8fbff;
}

.lucia-merchant-confirmation-context span,
.lucia-merchant-confirmation label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #475569;
  font-size: 8px;
  font-weight: 700;
}

.lucia-merchant-confirmation-context small {
  color: #64748b;
  font-size: 7px;
  text-transform: uppercase;
}

.lucia-merchant-confirmation-context strong {
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 9px;
  line-height: 1.25;
}

.lucia-merchant-confirmation textarea {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-merchant-confirmation-contact {
  color: #475569;
  font-size: 8px;
  line-height: 1.3;
}

.lucia-merchant-specifications {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-top: 3px solid #2563eb;
  border-radius: 8px;
  box-sizing: border-box;
  background: #ffffff;
}

.lucia-merchant-specifications-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lucia-merchant-specifications-heading strong {
  color: #1e293b;
  font-size: 11px;
}

.lucia-merchant-specifications-heading small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 7px;
  font-weight: 700;
}

.lucia-merchant-specifications fieldset {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
  margin: 0;
  border: 0;
}

.lucia-merchant-specifications legend {
  padding: 0;
  color: #334155;
  font-size: 9px;
  font-weight: 800;
}

.lucia-merchant-specification-options {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
}

.lucia-merchant-specification-option {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
  color: #334155;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.lucia-merchant-specification-option:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.lucia-merchant-specification-option:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-merchant-specification-option.is-selected {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px #1d4ed8;
}

.lucia-merchant-specification-option.is-color {
  position: relative;
  width: 34px;
  min-width: 34px;
  padding: 3px;
  border-radius: 9px;
}

.lucia-merchant-specification-option.is-color > span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: var(--lucia-specification-swatch);
}

.lucia-merchant-specification-option.is-color.is-selected::after {
  content: "✓";
  position: absolute;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.24);
}

.lucia-merchant-specification-purchase {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: end;
  gap: 9px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid #dbe3ef;
}

.lucia-merchant-specification-quantity {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.lucia-merchant-specification-quantity > span {
  color: #334155;
  font-size: 8px;
  font-weight: 800;
}

.lucia-merchant-specification-purchase .lucia-merchant-cart-price {
  font-size: 8px;
  line-height: 1.3;
}

.lucia-merchant-specification-purchase .lucia-merchant-cart-price strong {
  flex: 0 0 auto;
}

.lucia-merchant-compact-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  box-sizing: border-box;
  background: #ffffff;
}

.lucia-merchant-cart-disclaimer {
  margin: 5px 2px 0;
  color: #64748b;
  font-size: 7.5px;
  line-height: 1.3;
  text-align: center;
}

.lucia-merchant-cart-confirmation {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin: 0 8px 4px;
  padding: 3px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #35634a;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.lucia-merchant-cart-confirmation > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px #dcfce7;
}

.lucia-merchant-compact-request-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
}

.lucia-merchant-compact-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 82px;
  padding: 7px 10px;
  border: 0;
  border-left: 1px solid #93c5fd;
  background: #2563eb;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.lucia-merchant-compact-send svg {
  width: 15px;
  height: 15px;
}

.lucia-merchant-compact-send:hover,
.lucia-merchant-compact-send:focus-visible {
  background: #1d4ed8;
}

.lucia-merchant-compact-send:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: -3px;
}

.lucia-merchant-compact-send[aria-disabled="true"] {
  border-left-color: #cbd5e1;
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.lucia-merchant-specification-hint {
  color: #64748b;
  font-size: 8px;
  line-height: 1.3;
}

.lucia-merchant-action-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.lucia-merchant-action-start-icon,
.lucia-merchant-inline-icon,
.lucia-merchant-conversation-icon,
.lucia-merchant-flow-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.lucia-merchant-action-start-icon svg,
.lucia-merchant-conversation-icon svg,
.lucia-merchant-flow-icon svg {
  width: 18px;
  height: 18px;
}

.lucia-merchant-inline-icon svg {
  width: 15px;
  height: 15px;
}

.lucia-merchant-conversation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  box-sizing: border-box;
  background: #f8fbff;
  color: #1e3a8a;
}

.lucia-merchant-conversation-header > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.lucia-merchant-conversation-header small {
  color: #64748b;
  font-size: 7px;
  text-transform: uppercase;
}

.lucia-merchant-conversation-header strong {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.lucia-merchant-conversation-status {
  flex: 0 0 auto;
  margin-left: auto;
  color: #475569;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.lucia-merchant-identity-status {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
  color: #475569;
  line-height: 1.3;
}

.lucia-merchant-identity-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
}

.lucia-merchant-identity-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.lucia-merchant-identity-copy small {
  color: #64748b;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.lucia-merchant-identity-copy strong {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 11px;
}

.lucia-merchant-identity-presence {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.lucia-merchant-identity-presence > span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.lucia-merchant-identity-presence.is-pending {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.lucia-merchant-identity-presence.is-pending > span {
  background: #3b82f6;
  box-shadow: 0 0 0 2px #dbeafe;
}

.lucia-merchant-quick-request {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: none;
}

.lucia-merchant-quick-request-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: -12px -10px 0;
  padding: 7px 11px;
  border-bottom: 1px solid #2459dc;
  border-radius: 7px 7px 2px 2px;
  box-sizing: border-box;
  background: #4f7fe8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.lucia-merchant-quick-request-header strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.lucia-merchant-quick-request .lucia-merchant-conversation-bubble.is-customer {
  border-color: #bfd7f5;
  background: #eef6ff;
}

.lucia-merchant-quick-request .lucia-merchant-conversation-bubble.is-waiting {
  border-color: #dbe3ec;
  background: #f8fafc;
}

.lucia-transfer-condition.is-merchant-followup-compact {
  display: block;
  padding: 0;
  overflow: hidden;
  border-color: #dbe3ef;
  background: #ffffff;
}

.lucia-transfer-condition.is-merchant-followup-compact > .lucia-transfer-condition-indicator,
.lucia-transfer-condition.is-merchant-followup-compact > .lucia-transfer-condition-copy > strong {
  display: none;
}

.lucia-transfer-condition.is-merchant-followup-compact > .lucia-transfer-condition-copy {
  display: block;
  width: 100%;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-action {
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-followup {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-followup .lucia-merchant-quick-request-header strong {
  color: #ffffff;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-followup-progress {
  padding: 11px 8px 10px;
  box-sizing: border-box;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-conversation-bubble {
  padding: 9px 10px;
  font-size: 10px;
}

.lucia-merchant-conversation-bubble.is-availability-response[data-response-state="accepted"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-conversation-bubble.is-availability-response[data-response-state="accepted"] strong {
  color: #166534;
}

.lucia-merchant-conversation-bubble.is-availability-response[data-response-state="refused"] {
  border-color: #fecaca;
  background: #fff7f7;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-conversation-bubble.is-availability-response[data-response-state="refused"] strong {
  color: #991b1b;
}

.lucia-merchant-conversation-bubble.is-availability-response[data-response-state="needs_information"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.lucia-transfer-condition.is-merchant-followup-compact .lucia-merchant-conversation-bubble.is-availability-response[data-response-state="needs_information"] strong {
  color: #92400e;
}

.lucia-merchant-conversation {
  display: grid;
  gap: 7px;
  width: 100%;
}

.lucia-merchant-conversation-row {
  display: flex;
  width: 100%;
}

.lucia-merchant-conversation-row.is-customer {
  justify-content: flex-end;
}

.lucia-merchant-conversation-row.is-merchant {
  justify-content: flex-start;
}

.lucia-merchant-conversation-bubble {
  display: grid;
  max-width: 84%;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  box-sizing: border-box;
  background: #ffffff;
  color: #334155;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-merchant-conversation-bubble.is-customer {
  border-color: #bfdbfe;
  border-bottom-right-radius: 3px;
  background: #eff6ff;
  color: #1e3a8a;
}

.lucia-merchant-conversation-bubble.is-merchant,
.lucia-merchant-conversation-bubble.is-waiting {
  border-bottom-left-radius: 3px;
}

.lucia-merchant-conversation-bubble.is-waiting {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.lucia-merchant-conversation-bubble p,
.lucia-merchant-conversation-reassurance {
  margin: 0;
}

.lucia-merchant-conversation-note {
  padding-top: 4px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.lucia-merchant-response-author,
.lucia-merchant-conversation-bubble time {
  color: #64748b;
  font-size: 7px;
}

.lucia-merchant-conversation-reassurance {
  color: #64748b;
  font-size: 8px;
  line-height: 1.35;
}

.lucia-merchant-waiting-hourglass {
  display: inline-grid;
  place-items: center;
  color: #2563eb;
  animation: lucia-merchant-hourglass 1.8s ease-in-out infinite;
}

.lucia-merchant-waiting-hourglass svg {
  width: 16px;
  height: 16px;
}

.lucia-merchant-message-composer,
.lucia-merchant-message-compose-field {
  display: grid;
  gap: 3px;
}

.lucia-merchant-message-compose-field {
  position: relative;
}

.lucia-merchant-message-compose-field > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  color: #2563eb;
}

.lucia-merchant-message-compose-field svg {
  width: 15px;
  height: 15px;
}

.lucia-merchant-message-compose-field textarea {
  padding-right: 30px;
}

.lucia-merchant-flow-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 8px;
  width: 100%;
  padding: 9px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  box-sizing: border-box;
  background: #f8fbff;
  color: #334155;
}

.lucia-merchant-flow-card > strong,
.lucia-merchant-flow-card > p,
.lucia-merchant-flow-card > .lucia-merchant-flow-actions,
.lucia-merchant-flow-card > .lucia-merchant-cart-note,
.lucia-merchant-flow-card > .lucia-merchant-cart-open-error,
.lucia-merchant-flow-card > .lucia-merchant-live-cta {
  grid-column: 2;
}

.lucia-merchant-flow-card > p {
  margin: 0;
  color: #475569;
  font-size: 9px;
  line-height: 1.4;
}

.lucia-merchant-flow-card.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.lucia-merchant-flow-card.is-transfer {
  border-color: #fde68a;
  background: #fffbeb;
}

.lucia-merchant-flow-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 7px;
  width: 100%;
}

.lucia-merchant-flow-actions .lucia-merchant-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  text-align: center;
}

.lucia-merchant-action-button.is-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.lucia-merchant-action-button.is-primary:hover,
.lucia-merchant-action-button.is-primary:focus-visible {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.lucia-merchant-action-button.is-secondary {
  color: #475569;
}

.lucia-merchant-server-response {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  box-sizing: border-box;
  background: #f0fdf4;
  color: #334155;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-merchant-server-response strong {
  color: #166534;
  font-size: 10px;
}

.lucia-merchant-server-response time {
  color: #64748b;
  font-size: 8px;
}

.lucia-merchant-server-response[data-server-status="declined"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.lucia-merchant-server-response[data-server-status="declined"] strong {
  color: #991b1b;
}

.lucia-merchant-server-response[data-server-status="needs_information"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.lucia-merchant-server-response[data-server-status="needs_information"] strong {
  color: #92400e;
}

.lucia-merchant-auth-required {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  box-sizing: border-box;
  background: #eff6ff;
}

.lucia-merchant-auth-required span {
  color: #475569;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.lucia-merchant-auth-required .lucia-merchant-action-button {
  min-height: 30px;
  text-align: center;
}

.lucia-merchant-auth-error {
  color: #b91c1c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 520px) {
  .lucia-merchant-confirmation-context {
    grid-template-columns: 1fr;
  }

  .lucia-merchant-conversation-header {
    flex-wrap: wrap;
  }

  .lucia-merchant-conversation-status {
    width: 100%;
    margin-left: 26px;
  }

  .lucia-merchant-identity-status {
    gap: 8px;
  }

  .lucia-merchant-identity-presence {
    padding-inline: 6px;
    font-size: 7px;
  }
}

.lucia-merchant-followup-quantity,
.lucia-merchant-followup-future {
  color: #64748b;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-merchant-followup-future {
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.lucia-transfer-warning-live-footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  gap: 5px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #f2d9d2;
}

.lucia-merchant-cart-shortcut {
  width: 100%;
}

.lucia-merchant-cart-shortcut button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  box-sizing: border-box;
  color: #1d4ed8;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.lucia-merchant-cart-shortcut button:hover,
.lucia-merchant-cart-shortcut button:focus-visible {
  border-color: #3b82f6;
  background: #dbeafe;
}

.lucia-merchant-cart-shortcut button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-merchant-cart-shortcut svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lucia-merchant-cart-required-notice {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  box-sizing: border-box;
  color: #475569;
}

.lucia-merchant-cart-required-notice > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
}

.lucia-merchant-cart-required-notice svg {
  width: 14px;
  height: 14px;
}

.lucia-merchant-cart-required-notice p {
  min-width: 0;
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-merchant-cart-required-notice strong {
  color: #1e3a8a;
}

.lucia-merchant-live-invitation {
  width: 100%;
  margin: 2px 0 0;
  color: #475569;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.lucia-merchant-live-invitation strong {
  color: #334155;
  font-weight: 900;
}

.lucia-transfer-warning-popover.is-merchant-transfer-only .lucia-transfer-warning-live-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request {
  width: 100%;
  max-width: none;
  align-self: stretch;
  min-height: 52px;
  margin: 0;
  padding: 5px 12px 6px;
  box-sizing: border-box;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request-main {
  grid-template-columns: minmax(0, 1fr) 32px;
  column-gap: 8px;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request-main strong {
  font-size: 14px;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request-icon {
  width: 28px;
  height: 28px;
  font-size: 19px;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request-subtitle {
  max-width: 100%;
  overflow: visible;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.lucia-transfer-warning-live-footer .lucia-detected-local-request-subtitle-accent {
  color: #2563eb;
  font-weight: 800;
  white-space: nowrap;
}

.lucia-merchant-live-cta.is-disabled {
  border-color: #d7dde7;
  background: #f1f5f9;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.76;
}

.lucia-merchant-live-cta.is-disabled.is-add-gate {
  cursor: pointer;
}

.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-main strong,
.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-subtitle,
.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-subtitle-accent {
  color: #94a3b8;
}

.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-icon {
  background: #e2e8f0;
  filter: grayscale(1);
}

.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-icon::before,
.lucia-merchant-live-cta.is-disabled .lucia-detected-local-request-icon::after {
  animation: none;
  opacity: 0;
}

.lucia-merchant-live-cta.is-opening {
  cursor: progress;
  opacity: 0.82;
}

.lucia-merchant-cart-add-panel {
  animation: lucia-merchant-slide-down 180ms ease-out both;
}

.lucia-saved-item.is-merchant-followup-added {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 9px 18px rgba(22, 163, 74, 0.12);
  animation: lucia-merchant-cart-line-highlight 2.6s ease-out both;
}

.lucia-merchant-cart-access {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
  align-items: stretch;
}

.lucia-merchant-cart-attention {
  display: flex;
  flex-direction: column;
  width: min(100%, 260px);
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  background: #fffbeb;
}

.lucia-merchant-cart-attention .lucia-merchant-cart-note {
  text-align: center;
}

.lucia-merchant-cart-attention .lucia-merchant-action-button {
  width: 100%;
  min-height: 30px;
}

.lucia-merchant-cart-error {
  color: #b45309;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.lucia-merchant-cart-open-error {
  width: min(100%, 260px);
  color: #b45309;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@keyframes lucia-merchant-slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lucia-transfer-warning-layer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lucia-transfer-warning-modal-in {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lucia-merchant-cart-line-highlight {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 0 rgba(22, 163, 74, 0); }
  16% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.28), 0 9px 18px rgba(22, 163, 74, 0.16); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 0 rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lucia-merchant-cart-add-panel,
  .lucia-transfer-warning-modal-layer,
  .lucia-transfer-warning-modal-layer .lucia-transfer-warning-popover,
  .lucia-saved-item.is-merchant-followup-added {
    animation: none;
  }
}

.lucia-merchant-cart-gate {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  gap: 7px;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #ffffff;
  color: #334155;
  font-size: 10px;
  line-height: 1.35;
}

.lucia-merchant-cart-product-context {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  padding: 7px;
  border-left: 3px solid #86efac;
  border-radius: 5px;
  background: #f0fdf4;
}

.lucia-merchant-cart-product-media {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.lucia-merchant-cart-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lucia-merchant-cart-product-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.lucia-merchant-cart-product-copy > span:first-child {
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.lucia-merchant-cart-product-copy strong {
  color: #334155;
  font-size: 10px;
  line-height: 1.25;
}

.lucia-merchant-cart-product-copy > span:last-child {
  color: #475569;
  font-size: 9px;
}

.lucia-merchant-cart-gate.is-neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.lucia-merchant-cart-quantity {
  display: grid;
  grid-template-columns: 30px minmax(34px, 1fr) 30px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #f8fbff;
}

.lucia-merchant-cart-purchase {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.lucia-merchant-cart-pricing {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.lucia-merchant-cart-quantity button {
  min-height: 28px;
  border: 0;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.lucia-merchant-cart-quantity button:disabled {
  color: #94a3b8;
  cursor: default;
}

.lucia-merchant-cart-quantity span {
  display: grid;
  place-items: center;
  border-right: 1px solid #bfdbfe;
  border-left: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 800;
}

.lucia-merchant-cart-price,
.lucia-merchant-cart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
}

.lucia-merchant-cart-price strong,
.lucia-merchant-cart-summary {
  color: #334155;
  font-weight: 800;
}

.lucia-merchant-cart-price.is-total {
  padding-top: 5px;
  border-top: 1px solid #e2e8f0;
}

.lucia-merchant-cart-gate .lucia-merchant-action-button {
  width: 100%;
  min-height: 32px;
  text-align: center;
}

.lucia-merchant-cart-note {
  color: #64748b;
  font-size: 9px;
}

.lucia-merchant-cart-gate[data-sync-state="confirmed"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.lucia-merchant-cart-gate[data-sync-state="syncing"] {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.lucia-merchant-cart-gate[data-sync-state="retry"],
.lucia-merchant-cart-gate[data-sync-state="local_retry"] {
  border-color: #fde68a;
  background: #fffbeb;
}

@keyframes lucia-merchant-hourglass {
  0%, 42% { transform: rotate(0deg); }
  58%, 100% { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lucia-merchant-waiting-hourglass {
    animation: none;
  }
}

.lucia-merchant-action-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-merchant-action-feedback {
  padding: 6px 7px;
  border-left: 2px solid #60a5fa;
  background: rgba(239, 246, 255, 0.8);
  color: #334155;
  font-size: 9px;
  line-height: 1.35;
}

.lucia-transfer-condition.is-active .lucia-transfer-condition-copy,
.lucia-transfer-condition.is-active .lucia-transfer-condition-copy strong {
  color: #334155;
}

.lucia-transfer-condition[data-severity="attention"] {
  border-color: #fde68a;
  background: #fffbeb;
}

.lucia-transfer-condition[data-severity="attention"] .lucia-transfer-condition-indicator {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.lucia-transfer-condition[data-severity="attention"] .lucia-transfer-condition-copy,
.lucia-transfer-condition[data-severity="attention"] .lucia-transfer-condition-copy strong {
  color: #92400e;
}

.lucia-transfer-condition[data-severity="blocked"] {
  border-color: #fecaca;
  background: #fef2f2;
}

.lucia-transfer-condition[data-severity="blocked"] .lucia-transfer-condition-indicator {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.lucia-transfer-condition[data-severity="blocked"] .lucia-transfer-condition-copy,
.lucia-transfer-condition[data-severity="blocked"] .lucia-transfer-condition-copy strong {
  color: #991b1b;
}

.lucia-transfer-warning-message {
  margin: 8px 1px 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.lucia-transfer-warning-detail {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #5b6f8f;
  cursor: pointer;
}

.lucia-transfer-warning-detail:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.lucia-transfer-warning-detail[data-merchant-state="response"]::after,
.lucia-transfer-warning-detail[data-merchant-state="needs_information"]::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #2563eb;
  content: '';
}

.lucia-transfer-warning-detail[data-merchant-state="needs_information"]::after {
  background: #d97706;
}

.lucia-transfer-warning-close:focus-visible,
.lucia-transfer-warning-detail:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-global-product-detail-host {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: #172033;
}

.lucia-product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: auto;
  z-index: 1;
}

.lucia-product-detail-card {
  width: min(92vw, 1040px);
  height: auto;
  max-width: 1040px;
  max-height: min(90dvh, 820px);
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
  padding: 0;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lucia-product-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 18px 22px 16px 24px;
  border-bottom: 1px solid #eef2f7;
  box-sizing: border-box;
}

.lucia-product-detail-head {
  flex: 1 1 auto;
  min-width: 0;
}

.lucia-product-detail-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  flex: 1 1 auto;
  align-items: start;
  align-content: start;
  gap: 24px;
  min-height: 0;
  padding: 22px 24px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lucia-product-detail-media-column,
.lucia-product-detail-info-column {
  min-width: 0;
}

.lucia-product-detail-media-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
}

.lucia-product-detail-info-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lucia-product-detail-media {
  width: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lucia-product-detail-media.is-fallback {
  min-height: 240px;
  aspect-ratio: auto;
}

.lucia-product-detail-media.has-image {
  background: #f8fafc;
}

.lucia-product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lucia-product-detail-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(220px, 70%);
  min-height: 120px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  text-align: center;
  box-sizing: border-box;
}

.lucia-product-detail-fallback strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e2e8f0;
  color: #475569;
  font-size: 22px;
}

.lucia-product-detail-fallback span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.lucia-product-detail-gallery {
  display: flex;
  gap: 8px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.lucia-product-detail-thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.lucia-product-detail-thumb.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.lucia-product-detail-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.lucia-product-detail-close {
  position: static;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lucia-product-detail-head h3 {
  margin: 0 0 3px;
  font-size: 24px;
  line-height: 1.2;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.lucia-product-detail-head p,
.lucia-product-detail-section p {
  margin: 0;
}

.lucia-product-detail-head p {
  font-size: 14px;
  color: #7c3aed;
  font-weight: 600;
}

.lucia-product-detail-kicker,
.lucia-product-detail-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 800;
}

.lucia-product-detail-kicker {
  margin-bottom: 3px;
}

.lucia-product-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.lucia-product-detail-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.25;
  color: #0f172a;
}

.lucia-product-detail-price-block strong {
  color: #c2410c;
  font-size: 24px;
}

.lucia-product-detail-original-price {
  display: inline-block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  text-decoration: line-through;
}

.lucia-product-detail-transfer-block {
  text-align: right;
}

#luciaProductDetailTransferStatus[data-tone="warning"] {
  color: #b45309;
}

#luciaProductDetailTransferStatus[data-tone="blocked"] {
  color: #b91c1c;
}

#luciaProductDetailTransferStatus[data-tone="ready"] {
  color: #15803d;
}

.lucia-product-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lucia-product-detail-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
}

.lucia-product-detail-meta-item strong {
  color: #334155;
  font-size: 11px;
}

.lucia-product-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lucia-product-detail-section p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.lucia-product-detail-section-title {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.lucia-product-detail-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.lucia-product-detail-summary-title {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.lucia-product-detail-attribute {
  min-width: 0;
}

.lucia-product-detail-attribute dt {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.lucia-product-detail-attribute dd {
  margin: 1px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lucia-product-detail-modalities,
.lucia-product-detail-advice {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  border-color: #dbeafe;
  background: #f8fafc;
  color: #334155;
}

.lucia-product-detail-modalities {
  border-color: #dbeafe;
  background: #f8fbff;
}

.lucia-product-detail-modalities-list,
.lucia-product-detail-advice-list {
  margin-top: 9px;
}

.lucia-product-detail-advice[data-tone="attention"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.lucia-product-detail-advice[data-tone="blocked"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.lucia-product-detail-advice p {
  margin-top: 6px;
  color: inherit;
}

.lucia-product-detail-merchant-followup {
  margin-top: 0;
}

.lucia-product-detail-advice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lucia-product-detail-advice-open {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
}

.lucia-product-detail-advice-open svg {
  width: 14px;
  height: 14px;
}

.lucia-product-detail-advice-open:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.lucia-product-detail-actions {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  padding: 14px 24px 16px;
  border-top: 1px solid #eef2f7;
  background: rgba(255, 255, 255, 0.98);
  box-sizing: border-box;
}

.lucia-product-detail-main-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px;
  width: min(100%, 430px);
}

.lucia-product-detail-main-actions .lucia-btn-primary,
.lucia-product-detail-main-actions .lucia-btn-secondary {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  line-height: 1.2;
  white-space: normal;
}

.lucia-product-detail-main-actions .lucia-btn-secondary {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.lucia-product-detail-map {
  order: -1;
  margin-right: auto;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lucia-product-detail-close:focus-visible,
.lucia-product-detail-thumb:focus-visible,
.lucia-product-detail-map:focus-visible,
.lucia-product-detail-main-actions button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .lucia-product-detail-overlay {
    padding: 12px;
  }

  .lucia-product-detail-card {
    width: min(94vw, 720px);
    height: auto;
    max-height: 92dvh;
  }

  .lucia-product-detail-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 20px;
  }

  .lucia-product-detail-media-column {
    position: static;
  }

  .lucia-product-detail-media {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .lucia-product-detail-media.is-fallback {
    min-height: 190px;
  }
}

@media (max-width: 480px) {
  .lucia-product-detail-overlay {
    padding: 8px;
  }

  .lucia-product-detail-card {
    width: calc(100vw - 16px);
    height: auto;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .lucia-product-detail-header {
    gap: 10px;
    padding: 13px 13px 11px 15px;
  }

  .lucia-product-detail-head h3 {
    font-size: 18px;
  }

  .lucia-product-detail-head p {
    font-size: 12px;
  }

  .lucia-product-detail-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .lucia-product-detail-body {
    gap: 14px;
    padding: 14px;
    scrollbar-gutter: auto;
  }

  .lucia-product-detail-info-column {
    gap: 13px;
  }

  .lucia-product-detail-media {
    min-height: 190px;
    aspect-ratio: 4 / 3;
  }

  .lucia-product-detail-media.is-fallback {
    min-height: 150px;
  }

  .lucia-product-detail-thumb {
    width: 48px;
    height: 48px;
  }

  .lucia-product-detail-summary {
    gap: 12px;
    padding-bottom: 11px;
  }

  .lucia-product-detail-price-block strong {
    font-size: 21px;
  }

  .lucia-product-detail-transfer-block strong {
    font-size: 13px;
  }

  .lucia-product-detail-section p {
    font-size: 13px;
  }

  .lucia-product-detail-actions {
    gap: 8px;
    padding: 10px 14px 12px;
  }

  .lucia-product-detail-main-actions {
    width: 100%;
  }

  .lucia-product-detail-map {
    position: absolute;
    left: 14px;
    bottom: 62px;
    margin: 0;
    padding: 3px;
    font-size: 10px;
  }

  .lucia-product-detail-actions:has(.lucia-product-detail-map:not(.lucia-hidden)) {
    padding-top: 27px;
  }
}

@media (max-width: 340px) {
  .lucia-product-detail-main-actions {
    grid-template-columns: 1fr;
  }

  .lucia-product-detail-map {
    bottom: 104px;
  }

  .lucia-product-detail-actions:has(.lucia-product-detail-map:not(.lucia-hidden)) {
    padding-top: 26px;
  }
}

.lucia-btn-secondary {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lucia-card-cart-zone.is-added .lucia-card-cart-marker {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.42) 100%);
}

.lucia-card-content .lucia-card-body {
  flex: 1;
  min-width: 0;
}

.lucia-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 3px 8px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.lucia-tag-save {
  background: #E8F5E9;
  color: #2E7D32;
}

.lucia-tag-sdc {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.lucia-tag-match {
  background: #E3F2FD;
  color: #1565C0;
}

.lucia-tag-match-high {
  background: #C8E6C9;
  color: #2E7D32;
}

.lucia-card-reason {
  display: block;
  font-size: 10px;
  color: #888;
  font-style: italic;
  margin-top: 2px;
  line-height: 1.35;
  min-height: 27px;
  max-height: calc(1.35em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lucia-card-reason.is-placeholder {
  color: #c0c7d4;
  font-style: normal;
}

.lucia-tag-placeholder {
  background: #f8fafc;
  color: #c0c7d4;
  border: 1px dashed #e2e8f0;
}

/* EMPTY/NOTIFY STATE */
.lucia-empty {
  text-align: center;
  padding: 20px 0;
}

.lucia-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.lucia-empty p {
  color: #666;
  font-size: 13px;
  margin: 0 0 12px 0;
}

/* NOT FOUND STATE - IMPROVED */
.lucia-not-found {
  text-align: center;
  padding: 16px 12px;
}

.lucia-not-found-compact {
  padding: 12px 10px 4px;
}

.lucia-not-found-compact .lucia-empty-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.lucia-not-found-compact .lucia-not-found-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.lucia-not-found-compact .lucia-not-found-subtitle {
  margin-bottom: 0;
}

.lucia-not-found-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 8px 0 4px 0;
}

.lucia-not-found-subtitle {
  font-size: 12px;
  color: #888;
  margin: 0 0 16px 0;
}

.lucia-not-found-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lucia-no-product-state {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #edf1f7;
  background: #ffffff;
}

.lucia-target-state-shell {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
}

.lucia-target-state-shell .lucia-not-found {
  width: 100%;
  max-width: 100%;
}

.lucia-target-state .lucia-empty-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.lucia-target-state .lucia-not-found-options {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.lucia-target-manual-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-top: 8px;
}

.lucia-target-manual-form label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.lucia-target-manual-form input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.lucia-target-manual-form input:focus {
  outline: none;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.lucia-target-manual-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.lucia-target-manual-actions .lucia-option-btn {
  flex: 0 1 auto;
  padding: 7px 10px;
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .lucia-target-badge[data-state="loading"] {
    animation: none;
  }

  .lucia-target-badge[data-state="loading"] .lucia-target-badge-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .lucia-target-btn.is-loading svg {
    animation: none;
  }
}

/* Accordeon item container */
.lucia-accordion-item {
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: white;
  overflow: hidden;
  transition: all 0.2s ease;
}

.lucia-accordion-item:hover {
  border-color: #4CAF50;
}

.lucia-accordion-item.open {
  border-color: #4CAF50;
  background: #f8fff8;
}

#accordionSubmitRequest.open {
  border-color: #c4d9c8;
  background: #fbfdfb;
}

.lucia-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lucia-option-standalone {
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: white;
}

.lucia-option-standalone:hover {
  border-color: #4CAF50;
  background: #f8fff8;
}

.lucia-option-btn:active {
  transform: scale(0.98);
}

.lucia-option-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.lucia-option-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.lucia-accordion-arrow {
  font-size: 10px;
  color: #999;
  transition: transform 0.2s ease;
}

.lucia-accordion-item.open .lucia-accordion-arrow {
  transform: rotate(180deg);
}

/* Contenu de l'accordeon */
.lucia-accordion-content {
  padding: 0 14px 14px 14px;
  background: #f8fff8;
  animation: slideDown 0.2s ease;
}

#submitRequestPanel {
  background: #fbfdfb;
}

#phaseNotify.is-request-open .lucia-not-found {
  padding: 10px 12px 12px;
}

#phaseNotify.is-request-open .lucia-not-found > .lucia-empty-icon,
#phaseNotify.is-request-open .lucia-not-found > .lucia-not-found-title,
#phaseNotify.is-request-open .lucia-not-found > .lucia-not-found-subtitle,
#phaseNotify.is-request-open #accordionExpandZone,
#phaseNotify.is-request-open #btnSubmitRequest,
#phaseNotify.is-request-open #btnNewSearch {
  display: none;
}

#phaseNotify.is-request-open #accordionSubmitRequest,
#phaseNotify.is-request-open #accordionSubmitRequest.open {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#phaseNotify.is-request-open #submitRequestPanel {
  padding: 0 2px 8px;
  background: transparent;
}

#phaseNotify.is-request-open .lucia-not-found-options {
  gap: 8px;
}

.lucia-local-request-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
}

.lucia-community-broadcast {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #d4e6d7;
  border-bottom: 1px solid #d4e6d7;
  background: #f7fbf7;
}

.lucia-community-broadcast-heading {
  display: grid;
  gap: 2px;
  text-align: center;
}

.lucia-community-broadcast-heading strong {
  color: #24452b;
  font-size: 12.5px;
  line-height: 1.25;
}

.lucia-community-broadcast-eyebrow {
  color: #397346;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.lucia-community-scene {
  position: relative;
  height: 118px;
  overflow: hidden;
  border: 1px solid #dce9df;
  border-radius: 7px;
  background: #eef7f0;
  isolation: isolate;
}

.lucia-community-scene::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  background: #e3f0e6;
  clip-path: polygon(0 62%, 12% 40%, 24% 58%, 38% 30%, 52% 55%, 67% 36%, 82% 56%, 100% 30%, 100% 100%, 0 100%);
  z-index: -1;
}

.lucia-community-lucia {
  position: absolute;
  top: 28px;
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  z-index: 3;
}

.lucia-community-avatar {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(35, 71, 43, 0.2);
}

.lucia-community-avatar img {
  position: absolute;
  top: -7px;
  left: -9px;
  width: 82px;
  height: 82px;
  max-width: none;
}

.lucia-community-megaphone {
  position: absolute;
  top: 27px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #ffefe5;
  font-size: 13px;
  transform: rotate(-8deg);
}

.lucia-community-lucia small {
  margin-top: 2px;
  color: #24452b;
  font-size: 8px;
  font-weight: 800;
}

.lucia-community-signal {
  position: absolute;
  top: 52px;
  left: 50%;
  border: 1px solid rgba(71, 142, 84, 0.7);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  animation: luciaCommunityBroadcast 2.7s ease-out infinite;
}

.lucia-community-signal-one {
  width: 72px;
  height: 72px;
}

.lucia-community-signal-two {
  width: 116px;
  height: 116px;
  animation-delay: 0.55s;
}

.lucia-community-signal-three {
  width: 164px;
  height: 164px;
  animation-delay: 1.1s;
}

.lucia-community-merchant {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid #d7e6da;
  border-radius: 999px;
  background: #ffffff;
  color: #36523c;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(35, 71, 43, 0.08);
  z-index: 2;
}

.lucia-community-merchant::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #41a854;
}

.lucia-community-shop {
  font-size: 13px;
}

.lucia-community-merchant-west {
  top: 17px;
  left: 10px;
}

.lucia-community-merchant-east {
  top: 15px;
  right: 10px;
}

.lucia-community-merchant-south {
  right: 6px;
  bottom: 7px;
}

@keyframes luciaCommunityBroadcast {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }
  18% {
    opacity: 0.68;
  }
  78%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lucia-community-signal {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(1);
    animation: none;
  }
}

.lucia-request-product-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  margin: 8px 10px 4px;
  padding: 8px;
  border: 1px solid #e3ded8;
  border-radius: 9px;
  background: #fffdfb;
  box-shadow: 0 2px 7px rgba(52, 45, 42, 0.06);
}

.lucia-request-product-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f7f3;
}

.lucia-request-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.lucia-request-product-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #497751;
  font-size: 22px;
}

.lucia-request-product-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.lucia-request-product-source {
  margin-bottom: 2px;
  overflow: hidden;
  color: #778079;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucia-request-product-title {
  display: -webkit-box;
  overflow: hidden;
  color: #303632;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lucia-request-product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
}

.lucia-request-product-price {
  color: #c84f18;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.lucia-request-product-brand {
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 999px;
  background: #eef5ef;
  color: #55705b;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lucia-local-request-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #d6e6d9;
  border-radius: 7px;
  background: linear-gradient(135deg, #f2f9f3 0%, #fff9f6 100%);
}

.lucia-local-request-heading-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lucia-local-request-heading small {
  color: #68796c;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
}

.lucia-local-request-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e4f1e7;
  font-size: 14px;
}

.lucia-local-request-return {
  display: none;
  align-items: center;
  min-height: 28px;
  margin: 5px 10px -2px;
}

#phaseNotify.is-request-open .lucia-local-request-return {
  display: flex;
}

.lucia-local-request-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 8px 3px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #55705b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.lucia-local-request-back > span:first-child {
  font-size: 15px;
  line-height: 0.8;
}

.lucia-local-request-back:hover {
  border-color: #d6e6d9;
  background: #f4faf5;
  color: #315c39;
  transform: translateX(-1px);
}

.lucia-local-request-back:focus-visible {
  outline: 2px solid rgba(79, 138, 89, 0.36);
  outline-offset: 1px;
}

#phaseNotify.is-request-open .lucia-local-request-form {
  gap: 7px;
  padding-top: 4px;
}

#phaseNotify.is-request-open .lucia-community-broadcast {
  margin-inline: -2px;
}

#phaseNotify.is-request-open .lucia-local-request-title {
  font-size: 12px;
}

#phaseNotify.is-request-open .lucia-request-preference {
  padding: 6px 7px;
}

#phaseNotify.is-request-open #submitNotifyBtn {
  padding: 8px;
  font-size: 12px;
}

.lucia-local-request-title {
  color: #24452b;
  font-size: 13px;
  line-height: 1.3;
}

.lucia-local-request-form .lucia-expand-title {
  margin: 0;
  color: #607064;
  line-height: 1.4;
  text-align: left;
}

.lucia-community-broadcast .lucia-expand-title {
  font-size: 10px;
  text-align: center;
}

.lucia-lokolocals-network-link {
  align-self: flex-start;
  color: #4f7f58;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.lucia-lokolocals-network-link:hover {
  color: #365d3d;
  text-decoration: underline;
}

.lucia-lokolocals-network-link:focus-visible {
  outline: 2px solid rgba(79, 138, 89, 0.28);
  outline-offset: 2px;
  border-radius: 2px;
}

.lucia-community-tracking-actions {
  display: grid;
  gap: 7px;
}

.lucia-community-tracking-actions.lucia-hidden {
  display: none;
}

.lucia-community-sms-status {
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #91c99a;
  border-left-width: 4px;
  border-radius: 7px;
  background: #eef8f0;
  color: #245b2d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.lucia-community-sms-status.is-failed,
.lucia-community-sms-status.is-blocked {
  border-color: #e3a352;
  background: #fff7e8;
  color: #7a4500;
}

.lucia-community-sms-status.is-test,
.lucia-community-sms-status.is-pending,
.lucia-community-sms-status.is-unknown {
  border-color: #a9b7c6;
  background: #f3f6f8;
  color: #465665;
}

.lucia-community-sms-status.lucia-hidden {
  display: none;
}

.lucia-community-tracking-cta {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
}

.lucia-community-tracking-cta:hover {
  color: #fff;
  text-decoration: none;
}

.lucia-community-new-request {
  width: 100%;
  padding: 7px 10px;
  font-size: 11px;
}

.lucia-request-preferences {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.lucia-request-preferences legend {
  margin-bottom: 5px;
  color: #526457;
  font-size: 10.5px;
  font-weight: 700;
}

.lucia-request-preference {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid #d8e7da;
  border-radius: 7px;
  background: #ffffff;
  color: #344a39;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}

.lucia-request-preference:has(input:checked) {
  border-color: #78a980;
  background: #f1f8f2;
}

.lucia-request-preference input {
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #4f8a59;
}

.lucia-request-account,
.lucia-request-phone-label {
  color: #526457;
  font-size: 10.5px;
  line-height: 1.35;
}

.lucia-request-account {
  padding: 7px 8px;
  border-radius: 6px;
  background: #eef6ef;
}

.lucia-request-phone-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.lucia-local-request-form .lucia-input {
  margin-bottom: 0;
}

.lucia-expand-panel {
  margin-top: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 10px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lucia-expand-title {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px 0;
  text-align: center;
}

.lucia-radius-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lucia-radius-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: white;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-radius-btn:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: #f0fff0;
}

.lucia-radius-btn:active,
.lucia-radius-btn.active {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.lucia-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.lucia-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.lucia-btn-primary {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.lucia-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lucia-success-msg {
  margin-top: 10px;
  padding: 10px 12px;
  background: #e8f5e9;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  font-size: 12px;
  color: #2e7d32;
  line-height: 1.4;
}

.lucia-error-msg {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 8px;
  font-size: 12px;
  color: #c62828;
}

.lucia-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.lucia-btn-secondary:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: #f8fff8;
}

.lucia-btn-secondary svg {
  stroke: currentColor;
}

.lucia-product-detail-main-actions .lucia-btn-secondary {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
}

.lucia-product-detail-main-actions .lucia-btn-secondary:hover {
  border-color: #cbd5e1;
  color: #334155;
  background: #f1f5f9;
}

.lucia-new-search-wrap {
  padding: 8px;
  border-top: 1px solid #e8e8e8;
}

.lucia-btn-text {
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
}

.lucia-btn-text:hover {
  color: #333;
}

/* GEOLOCATION REQUEST */
.lucia-geo-request {
  text-align: center;
  padding: 24px 16px;
}

.lucia-geo-request p {
  color: #666;
  font-size: 13px;
  margin: 12px 0 16px 0;
}

/* ICON BTN ACTIVE STATE */
.lucia-icon-btn.active {
  background: linear-gradient(180deg, #edf9ef 0%, #def3e4 100%);
  border-color: #b7e4c7;
  color: #1f7a45;
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(31, 122, 69, 0.12);
}

.lucia-icon-btn.active:hover {
  transform: none;
  background: linear-gradient(180deg, #edf9ef 0%, #def3e4 100%);
}

/* HIDDEN STATE */
.lucia-hidden { display: none !important; }

/* ACCOUNT SECTION */
.lucia-account-section {
  border-top: 1px solid #e8e8e8;
  padding: 12px;
  margin-top: 8px;
}

.lucia-account-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lucia-account-icon {
  font-size: 20px;
}

.lucia-account-prompt p {
  flex: 1;
  margin: 0;
  font-size: 12px;
  color: #666;
}

.lucia-account-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lucia-account-section,
#phaseAccount,
#phaseAccount .lucia-panel-body,
#phaseAccount .lucia-input,
#phaseAccount button {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#phaseAccount .lucia-panel-body {
  overflow-x: hidden;
}

.lucia-account-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.lucia-account-note {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucia-phone-display {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-family: monospace;
}

.lucia-auth-summary {
  border: 1px solid #e8eef4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  padding: 10px 12px;
  min-width: 0;
}

.lucia-auth-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lucia-auth-summary-row strong {
  font-size: 13px;
  color: #244057;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucia-auth-summary-row span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7ee;
  color: #2e7d32;
  font-size: 10px;
  font-weight: 700;
}

.lucia-auth-summary p {
  margin: 0;
  font-size: 12px;
  color: #607081;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucia-auth-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.lucia-auth-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #e8eef4;
}

.lucia-auth-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
}

.lucia-auth-detail strong {
  font-size: 13px;
  color: #244057;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucia-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.lucia-auth-logout {
  align-self: flex-start;
}

.lucia-layout-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 12px;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: #244057;
  font-size: 12px;
}

.lucia-layout-toast span {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lucia-layout-toast button {
  border: none;
  background: transparent;
  color: #2f6bff;
  font-weight: 700;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}

.lucia-layout-toast button:hover {
  text-decoration: underline;
}

.lucia-account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lucia-account-summary {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  text-align: left;
  min-width: 0;
}

.lucia-account-email {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  min-width: 0;
}

.lucia-account-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lucia-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  background: #fff;
}

.lucia-account-row span {
  font-size: 12px;
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucia-account-row strong {
  font-size: 12px;
  color: #1f2937;
  font-family: monospace;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

/* Code boxes (6 individual inputs) */
.lucia-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 2vw, 8px);
  width: 100%;
  max-width: 268px;
  margin: 12px auto;
  box-sizing: border-box;
}

.lucia-code-box {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  font-family: monospace;
  background: #fafafa;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

.lucia-code-box:focus {
  border-color: #9b59b6;
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.15);
}

.lucia-code-box.filled {
  border-color: #9b59b6;
  background: white;
}

.lucia-code-box.error {
  border-color: #e53935;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Plus tard button */
.lucia-btn-later {
  display: block;
  margin: 12px auto 0;
  color: #999;
  font-size: 11px;
}

.lucia-btn-later:hover {
  color: #666;
}

.lucia-account-success {
  font-size: 14px;
  color: #4CAF50;
  font-weight: 500;
  margin-bottom: 8px;
}

.lucia-btn-link {
  background: none;
  border: none;
  color: #9b59b6;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}

.lucia-btn-link:hover {
  color: #7b49a6;
}

/* ACCOUNT LINK UNDER HEADER */
.lucia-account-link {
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.08), rgba(156, 39, 176, 0.08));
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(233, 30, 99, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lucia-account-link:hover {
  background: linear-gradient(90deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
}

.lucia-account-link span {
  font-size: 11px;
  color: #e91e63;
  font-weight: 500;
}

.lucia-account-link.lucia-hidden {
  display: none;
}

.lucia-expanded.lucia-has-cart .lucia-account-link {
  display: none;
}

/* SYNC INDICATOR */
.lucia-sync-indicator {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.08), rgba(129, 199, 132, 0.08));
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(76, 175, 80, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #4CAF50;
  font-weight: 500;
}

.lucia-sync-indicator.lucia-hidden {
  display: none;
}

.lucia-sync-indicator svg {
  stroke: #4CAF50;
}

/* MINIMIZED STATE ENHANCEMENT */
.lucia-minimized {
  position: relative;
}

.lucia-minimized::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.lucia-minimized:hover::after {
  background: rgba(155, 89, 182, 0.1);
}

@media (max-width: 768px) {
  .lucia-expanded,
  .lucia-expanded.lucia-has-cart { width: calc(100vw - 40px); right: 20px; }
  .lucia-expanded.lucia-has-cart .lucia-loko-cart { flex-basis: 244px; width: 244px; }
}

@media (max-width: 480px) {
  .lucia-expanded .lucia-main-container {
    position: relative;
  }

  .lucia-expanded.lucia-has-cart .lucia-loko-cart,
  .lucia-expanded.lucia-has-cart.lucia-no-primary-panel .lucia-loko-cart {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 6px 10px;
    flex: none;
    box-sizing: border-box;
  }
}
