/* ══════════════════════════════════════════════════════════════════
  INKIE CHATBOT  ·  2026 Design System
  ══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   2026 Design Tokens
   ───────────────────────────────────────── */
:root {
  /* Brand */
  --ink-primary:        #8b5cf6;
  --ink-primary-deep:   #7c3aed;
  --ink-primary-light:  #a78bfa;
  --ink-accent:         #f43f5e;
  --ink-success:        #22c55e;

  /* Surfaces (dark glass) */
  --ink-widget-bg:      linear-gradient(155deg, #12062e 0%, #1a0b3e 60%, #0e1840 100%);
  --ink-header-bg:      linear-gradient(135deg, rgba(124,58,237,0.92) 0%, rgba(109,40,217,0.85) 100%);
  --ink-body-bg:        transparent;
  --ink-surface:        rgba(255, 255, 255, 0.055);
  --ink-surface-hover:  rgba(255, 255, 255, 0.10);
  --ink-input-bg:       rgba(255, 255, 255, 0.08);
  --ink-footer-bg:      rgba(18, 6, 46, 0.9);
  --ink-quick-bg:       rgba(18, 6, 46, 0.80);

  /* Borders */
  --ink-border:         rgba(167, 139, 250, 0.18);
  --ink-border-strong:  rgba(167, 139, 250, 0.38);

  /* Text */
  --ink-text:           #e2e8f0;
  --ink-text-muted:     rgba(203, 213, 225, 0.60);
  --ink-text-inv:       #ffffff;

  /* Shadows & Glows */
  --ink-glow:           0 0 40px rgba(139, 92, 246, 0.35);
  --ink-shadow-widget:  0 40px 100px rgba(90, 50, 200, 0.40),
                        0 8px 24px  rgba(0, 0, 0, 0.50);
  --ink-shadow-card:    0 6px 20px rgba(0, 0, 0, 0.45);
  --ink-shadow-send:    0 10px 28px rgba(139, 92, 246, 0.50);

  /* Geometry */
  --ink-r-widget:   32px;
  --ink-r-bubble:   18px;
  --ink-r-card:     18px;
  --ink-r-btn:      14px;
  --ink-r-launcher: 22px;

  /* Motion */
  --ink-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --ink-ease:       cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --ink-font:       -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
                    "Segoe UI", Roboto, sans-serif;
}

/* ─────────────────────────────────────────
   Launcher
   ───────────────────────────────────────── */
#inkie-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 2147483647;
  cursor: pointer;
}

#inkie-teaser { display: none !important; }

#inkie-bubble {
  width: 64px;
  height: 64px;
  border-radius: var(--ink-r-launcher);
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ink-shadow-send), 0 0 0 1px rgba(255,255,255,0.12);
  transition: transform 0.22s var(--ink-spring), box-shadow 0.22s var(--ink-ease);
  padding: 0;
  overflow: hidden;
  position: relative;
}

#inkie-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}

#inkie-launcher:hover #inkie-bubble {
  transform: scale(1.10) translateY(-3px);
  box-shadow: 0 20px 50px rgba(139,92,246,0.65), 0 0 0 1px rgba(255,255,255,0.15);
}

#inkie-bubble img,
#inkie-bubble-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  z-index: 1;
}

/* Resume chip */
#inkie-resume {
  position: fixed;
  bottom: 104px;
  right: 28px;
  background: rgba(18,6,46,0.9);
  backdrop-filter: blur(14px);
  color: var(--ink-text);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px var(--ink-border);
  border: 1px solid var(--ink-border);
  z-index: 2147483647;
  cursor: pointer;
  transition: transform 0.18s var(--ink-spring);
}

#inkie-resume:hover { transform: translateY(-2px); }

/* ─────────────────────────────────────────
   Widget Container
   ───────────────────────────────────────── */
@keyframes inkieIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes inkieOut {
  from { opacity: 1; transform: translateY(0)    scale(1); }
  to   { opacity: 0; transform: translateY(18px) scale(0.94); }
}
@keyframes inkie-launcher-pop {
  0%   { transform: scale(0);    opacity: 0; }
  65%  { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

#inkie-widget {
  position: fixed;
  bottom: 106px;
  right: 28px;
  width: min(440px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 120px));
  max-height: 720px;
  display: flex;
  flex-direction: column;
  background: var(--ink-widget-bg);
  border-radius: var(--ink-r-widget);
  border: 1px solid var(--ink-border-strong);
  box-shadow: var(--ink-shadow-widget);
  overflow: hidden;
  z-index: 2147483647;
  font-family: var(--ink-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#inkie-widget.hidden { display: none; }

#inkie-widget:not(.hidden):not(.inkie-closing) {
  animation: inkieIn 0.30s var(--ink-spring) both;
}
#inkie-widget.inkie-closing {
  animation: inkieOut 0.22s var(--ink-ease) both;
  pointer-events: none;
}

.inkie-launcher-popin #inkie-bubble {
  animation: inkie-launcher-pop 0.38s var(--ink-spring) both;
}

/* ─────────────────────────────────────────
   Header
   ───────────────────────────────────────── */
#inkie-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--ink-header-bg);
  color: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(167,139,250,0.22);
  position: relative;
  overflow: hidden;
}

/* subtle inner-light sheen */
#inkie-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  pointer-events: none;
}
#inkie-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.inkie-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 76px;
  z-index: 1;
}

.inkie-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inkie-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.inkie-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.01em;
  line-height: 1;
}

.inkie-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: static;
  flex-shrink: 0;
}

.inkie-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Language toggle */
.inkie-lang-toggle {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  position: absolute;
  left: 18px;
  z-index: 1;
  overflow: hidden;
}

.inkie-lang-toggle button {
  min-width: 34px;
  min-height: 32px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.80);
  font-size: 10px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.18s var(--ink-ease);
}

.inkie-lang-toggle button:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.inkie-lang-toggle button.active {
  background: rgba(255,255,255,0.92);
  color: var(--ink-primary-deep);
}

.inkie-lang-select {
  min-width: 118px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 34px 0 12px;
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.inkie-lang-toggle .inkie-lang-select ~ button {
  display: none;
}

.inkie-lang-toggle::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  pointer-events: none;
}

.inkie-lang-select option {
  color: #111827;
  background: #ffffff;
}

/* Close button */
.inkie-close-btn {
  position: absolute;
  right: 18px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.06) 28%, transparent 29%),
    linear-gradient(135deg, rgba(56,189,248,0.28) 0%, rgba(139,92,246,0.28) 48%, rgba(244,63,94,0.24) 100%);
  border: 1px solid rgba(255,255,255,0.20);
  color: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform 0.18s var(--ink-ease), background 0.18s var(--ink-ease), box-shadow 0.18s var(--ink-ease), border-color 0.18s var(--ink-ease);
  z-index: 1;
  overflow: hidden;
}

.inkie-close-btn:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.10) 28%, transparent 29%),
    linear-gradient(135deg, rgba(34,211,238,0.36) 0%, rgba(139,92,246,0.34) 48%, rgba(244,63,94,0.30) 100%);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 14px 28px rgba(30, 41, 59, 0.34), inset 0 1px 0 rgba(255,255,255,0.20);
}

.inkie-close-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.16), 0 0 0 5px rgba(167,139,250,0.42);
}

.inkie-close-btn::before,
.inkie-close-btn::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 8px rgba(76, 29, 149, 0.28);
}

.inkie-close-btn::before {
  transform: rotate(45deg);
}

.inkie-close-btn::after {
  transform: rotate(-45deg);
}

.inkie-close-btn svg {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.inkie-site-answer {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.inkie-site-answer-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.92);
}

.inkie-site-answer-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.inkie-site-answer-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
}

.inkie-site-answer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.inkie-site-answer-link::after {
  content: '↗';
  font-size: 12px;
  line-height: 1;
}

.inkie-site-answer-link:hover {
  color: #ddd6fe;
  text-decoration: underline;
}

.inkie-advisor-breadcrumb {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(10, 8, 35, 0.22);
  max-width: 92%;
  margin-left: 38px;
}

.inkie-advisor-breadcrumb-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.92);
}

.inkie-advisor-breadcrumb-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inkie-advisor-crumb {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(167, 139, 250, 0.14);
}

.inkie-advisor-crumb.is-current {
  background: linear-gradient(135deg, rgba(139,92,246,0.24) 0%, rgba(59,130,246,0.14) 100%);
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.18);
}

.inkie-advisor-crumb.is-done {
  background: rgba(76, 29, 149, 0.18);
  border-color: rgba(196, 181, 253, 0.26);
}

.inkie-advisor-crumb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.82);
  margin-bottom: 3px;
}

.inkie-advisor-crumb-value {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inkie-advisor-sep {
  color: rgba(196, 181, 253, 0.58);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* ─────────────────────────────────────────
   Scroll & Message Body
   ───────────────────────────────────────── */
#inkie-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ink-body-bg);
  scroll-behavior: smooth;
  min-height: 0;
  padding-bottom: 8px;
}

#inkie-scroll::-webkit-scrollbar { width: 4px; }
#inkie-scroll::-webkit-scrollbar-track { background: transparent; }
#inkie-scroll::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,0.35);
  border-radius: 2px;
}
#inkie-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(139,92,246,0.60);
}

#inkie-body {
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#inkie-body::after {
  content: '';
  display: block;
  height: 6px;
}

/* ─── Message Bubbles ─── */
.inkie-msg-row {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.inkie-msg-user { flex-direction: row-reverse; }

.inkie-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.inkie-msg-avatar-user {
  background: rgba(139,92,246,0.25);
  color: var(--ink-primary-light);
}

.inkie-msg-avatar-bot {
  background: rgba(99,102,241,0.20);
  color: #a5b4fc;
}

.inkie-msg-avatar .inkie-bot-icon {
  width: 14px;
  height: 14px;
  margin: 0;
  object-fit: contain;
}

.inkie-msg-bubble { max-width: 82%; }

/* Bot message */
.inkie-bot {
  background: var(--ink-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink-border);
  color: var(--ink-text);
  padding: 11px 14px;
  border-radius: var(--ink-r-bubble);
  border-bottom-left-radius: 5px;
  font-size: 13px;
  line-height: 1.50;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  align-self: flex-start;
  max-width: 84%;
  display: block;
  transition: background 0.15s;
}

.inkie-bot-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  object-fit: contain;
}

/* User message */
.inkie-user {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  padding: 11px 14px;
  border-radius: var(--ink-r-bubble);
  border-bottom-right-radius: 5px;
  font-size: 13px;
  line-height: 1.50;
  word-wrap: break-word;
  align-self: flex-end;
  max-width: 84%;
  box-shadow: 0 8px 20px rgba(124,58,237,0.40);
}

/* ─── Typing Indicator ─── */
@keyframes inkie-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-5px); }
}

.inkie-typing-indicator {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.inkie-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  padding: 12px 16px;
}

.inkie-typing-bubble span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-primary-light);
  animation: inkie-dot-bounce 1.2s ease-in-out infinite;
}
.inkie-typing-bubble span:nth-child(1) { animation-delay: 0s; }
.inkie-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.inkie-typing-bubble span:nth-child(3) { animation-delay: 0.30s; }

/* ─────────────────────────────────────────
   Quick Replies
   ───────────────────────────────────────── */
#inkie-quick {
  flex-shrink: 0;
  padding: 10px 16px 6px;
  background: var(--ink-quick-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--ink-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

#inkie-quick button {
  background: rgba(139,92,246,0.18);
  border: 1px solid var(--ink-border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-primary-light);
  transition: all 0.18s var(--ink-ease);
  white-space: nowrap;
  letter-spacing: 0.02em;
  min-height: 36px;
  font-family: var(--ink-font);
  -webkit-font-smoothing: antialiased;
}

#inkie-quick button:hover {
  background: rgba(139,92,246,0.35);
  border-color: var(--ink-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139,92,246,0.30);
}

#inkie-quick .inkie-quick-btn--expert {
  flex: 1 1 100%;
  background: linear-gradient(135deg, rgba(244,63,94,0.20) 0%, rgba(217,40,109,0.20) 100%);
  border-color: rgba(244,63,94,0.45);
  color: #fda4af;
  border-radius: 14px;
  min-height: 42px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

#inkie-quick .inkie-quick-btn--expert:hover {
  background: linear-gradient(135deg, rgba(244,63,94,0.38) 0%, rgba(217,40,109,0.38) 100%);
  border-color: rgba(244,63,94,0.75);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244,63,94,0.30);
}

.inkie-actions-menu {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  align-self: flex-start;
}

.inkie-actions-menu-toggle {
  width: auto;
  min-width: 122px;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid var(--ink-border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--ink-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s var(--ink-ease);
}

.inkie-actions-menu-toggle:hover {
  background: rgba(139,92,246,0.20);
  color: #fff;
}

.inkie-actions-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 190px;
  z-index: 25;
  background: var(--ink-quick-bg);
  border: 1px solid var(--ink-border-strong);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.38);
}

.inkie-actions-menu-panel[hidden] {
  display: none !important;
}

/* ─────────────────────────────────────────
   Input Area
   ───────────────────────────────────────── */
#inkie-input-area {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--ink-border);
  background: rgba(18, 6, 46, 0.88);
  backdrop-filter: blur(20px);
  gap: 10px;
}

#inkie-input-menu-slot {
  display: none;
  flex: 0 0 auto;
  position: relative;
  align-items: center;
  height: 46px;
  align-self: center;
}

#inkie-input-menu-slot .inkie-actions-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

#inkie-input-menu-slot .inkie-actions-menu-toggle {
  min-height: 46px;
  height: 46px;
  min-width: 42px;
  border-radius: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(139,92,246,0.20);
  color: var(--ink-primary-light);
  border-color: var(--ink-border-strong);
}

#inkie-input-menu-slot .inkie-actions-menu-toggle:hover {
  background: rgba(139,92,246,0.35);
  color: #fff;
}

.inkie-menu-icon {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

#inkie-input-menu-slot .inkie-actions-menu-panel {
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 170px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}

#inkie-input-menu-slot .inkie-actions-menu-panel .inkie-quick-btn {
  width: 100%;
  justify-content: center;
  background: rgba(139,92,246,0.18);
  border: 1px solid var(--ink-border-strong);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-primary-light);
  cursor: pointer;
  transition: all 0.18s var(--ink-ease);
  font-family: var(--ink-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#inkie-input-menu-slot .inkie-actions-menu-panel .inkie-quick-btn:hover {
  background: rgba(139,92,246,0.35);
  border-color: var(--ink-primary-light);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139,92,246,0.30);
}

#inkie-input {
  flex: 1;
  height: 46px;
  background: var(--ink-input-bg);
  border: 1px solid var(--ink-border);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 13px;
  font-family: var(--ink-font);
  color: var(--ink-text);
  outline: none;
  transition: all 0.18s var(--ink-ease);
  caret-color: var(--ink-primary-light);
}

#inkie-input::placeholder { color: var(--ink-text-muted); }

#inkie-input:focus {
  border-color: var(--ink-primary-light);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}

#inkie-send {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ink-spring), box-shadow 0.18s var(--ink-ease);
  box-shadow: var(--ink-shadow-send);
  flex-shrink: 0;
  padding: 0;
  font-size: 0;
  -webkit-font-smoothing: antialiased;
}

#inkie-send svg {
  display: block;
  flex-shrink: 0;
  stroke: #fff;
  width: 18px;
  height: 18px;
}

#inkie-send:hover {
  transform: scale(1.10) translateY(-1px);
  box-shadow: 0 14px 36px rgba(139,92,246,0.65);
}

#inkie-send:active { transform: scale(0.96); }

/* ─────────────────────────────────────────
  Footer
  ───────────────────────────────────────── */
#inkie-footer {
  padding: 8px 16px 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.55);
  background: var(--ink-footer-bg);
  border-top: 1px solid var(--ink-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


/* ─────────────────────────────────────────
   Cart Bar
   ───────────────────────────────────────── */
#inkie-cart-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(139,92,246,0.22);
  border-top: 1px solid var(--ink-border-strong);
  color: var(--ink-text);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.inkie-cart-bar-icon { font-size: 18px; line-height: 1; }
.inkie-cart-bar-total { margin-left: auto; font-size: 12px; opacity: 0.85; }

.inkie-cart-bar-checkout {
  background: var(--ink-primary-light);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.inkie-cart-bar-checkout:hover { opacity: 0.85; color: #fff; }

.inkie-cart-bar-view {
  background: transparent;
  border: 1px solid var(--ink-border-strong);
  color: var(--ink-primary-light);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.inkie-cart-bar-view:hover { background: rgba(139,92,246,0.25); }

/* ─────────────────────────────────────────
   Products (Horizontal Scroll Carousel)
   ───────────────────────────────────────── */
.inkie-products {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 16px 6px;
  margin: 4px 0 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.inkie-products::-webkit-scrollbar { display: none; }

.inkie-product-card {
  min-width: 192px;
  max-width: 192px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink-border);
  border-radius: var(--ink-r-card);
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.22s var(--ink-spring), box-shadow 0.22s var(--ink-ease),
              border-color 0.18s var(--ink-ease);
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden;
}

.inkie-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink-border-strong);
  box-shadow: 0 14px 32px rgba(139,92,246,0.22);
}

.inkie-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  display: block;
}

.inkie-prod-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-text);
  margin: 8px 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.inkie-prod-price,
.inkie-prod-price *,
.inkie-product-card .price,
.inkie-product-card .price *,
#inkie-widget .inkie-product-card .inkie-prod-price .woocommerce-Price-amount,
#inkie-widget .inkie-product-card .inkie-prod-price .woocommerce-Price-currencySymbol,
#inkie-widget .inkie-product-card .inkie-prod-price bdi,
#inkie-widget .inkie-product-card .inkie-prod-price ins,
#inkie-widget .inkie-product-card .inkie-prod-price del {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.inkie-prod-rating {
  font-size: 10px;
  color: var(--ink-text-muted);
  margin-bottom: 6px;
}

.inkie-prod-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Product card action buttons */
.inkie-card-actions {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 7px;
  grid-auto-rows: 36px;
  align-items: stretch;
  margin-top: 8px;
}

.inkie-atc-btn,
.inkie-card-view-btn,
.inkie-compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ink-r-btn);
  font-family: var(--ink-font);
  font-weight: 700;
  transition: all 0.18s var(--ink-ease);
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

.inkie-atc-btn {
  min-height: 36px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-shadow: 0 6px 16px rgba(124,58,237,0.30);
  gap: 5px;
}

.inkie-atc-btn::before {
  content: '';
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h7.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h7.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.inkie-atc-btn-label { display: inline-block; line-height: 1; }

.inkie-atc-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(124,58,237,0.45);
}

.inkie-atc-btn:disabled { cursor: default; }

.inkie-atc-btn-added { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; }

.inkie-atc-btn.inkie-atc-oos {
  background: rgba(255,255,255,0.08);
  color: var(--ink-text-muted);
  cursor: default;
  box-shadow: none;
}
.inkie-atc-btn.inkie-atc-oos::before { display: none; }
.inkie-atc-btn.inkie-atc-oos:hover { transform: none; }

.inkie-card-view-btn {
  width: 34px;
  min-width: 34px;
  min-height: 36px;
  padding: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--ink-border);
  color: var(--ink-text-muted);
  font-size: 14px;
  cursor: pointer;
}
.inkie-card-view-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--ink-border-strong);
  color: var(--ink-text);
}

.inkie-compare-btn {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  border: 1px solid var(--ink-border);
  background: rgba(139,92,246,0.10);
  color: var(--ink-primary-light);
  cursor: pointer;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  grid-column: 1 / -1;
  box-shadow: none;
  padding: 0 10px;
}
.inkie-compare-btn:hover:not(:disabled) {
  border-color: var(--ink-border-strong);
  background: rgba(139,92,246,0.22);
  color: #fff;
}

.inkie-compare-btn-active {
  background: rgba(34,197,94,0.22) !important;
  border-color: rgba(34,197,94,0.55) !important;
  color: #86efac !important;
  cursor: default !important;
}

/* ─────────────────────────────────────────
   Product Action Row (load more / back)
   ───────────────────────────────────────── */
.inkie-product-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 0 16px;
}

.inkie-action-btn {
  flex: 1;
  min-height: 42px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ink-ease);
  font-family: var(--ink-font);
  letter-spacing: 0.02em;
}

.inkie-load-more {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  color: #fff;
  box-shadow: 0 8px 20px rgba(124,58,237,0.35);
}
.inkie-load-more:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124,58,237,0.50); }

.inkie-back-menu {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ink-border-strong);
  color: var(--ink-primary-light);
}
.inkie-back-menu:hover { background: rgba(139,92,246,0.18); }

.inkie-action-btn:active { transform: translateY(0); }

/* ─────────────────────────────────────────
   Products Table
   ───────────────────────────────────────── */
.inkie-products-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ink-border);
}

.inkie-products-table thead {
  background: rgba(139,92,246,0.14);
  border-bottom: 1px solid var(--ink-border);
}

.inkie-products-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-primary-light);
}

.inkie-products-table tbody tr {
  border-bottom: 1px solid var(--ink-border);
  transition: background 0.15s;
}
.inkie-products-table tbody tr:last-child { border-bottom: none; }
.inkie-products-table tbody tr:hover { background: var(--ink-surface-hover); }

.inkie-products-table td {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-text);
}

.inkie-table-product {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inkie-table-product img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--ink-border);
}
.inkie-table-product div { display: flex; flex-direction: column; gap: 3px; }
.inkie-table-product strong { color: var(--ink-text); font-weight: 600; font-size: 12px; }
.inkie-prod-price,
.inkie-prod-price *,
#inkie-widget .inkie-product-card .inkie-prod-price .woocommerce-Price-amount,
#inkie-widget .inkie-product-card .inkie-prod-price .woocommerce-Price-currencySymbol,
#inkie-widget .inkie-product-card .inkie-prod-price bdi,
#inkie-widget .inkie-product-card .inkie-prod-price ins,
#inkie-widget .inkie-product-card .inkie-prod-price del { color: #ffffff !important; font-weight: 700; font-size: 13px; }

/* ─────────────────────────────────────────
   Orders
   ───────────────────────────────────────── */
.inkie-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  margin: 8px 0;
}

.inkie-order-card {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
}

.inkie-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inkie-order-number { font-weight: 700; color: var(--ink-primary-light); }

.inkie-order-status {
  background: rgba(139,92,246,0.18);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-primary-light);
}

.inkie-order-date { color: var(--ink-text-muted); font-size: 11px; margin-bottom: 8px; }

.inkie-order-items {
  margin: 8px 0;
  padding: 8px 0;
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
}

.inkie-order-item { padding: 3px 0; color: var(--ink-text); }

.inkie-order-total {
  text-align: right;
  color: var(--ink-primary-light);
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   Comparison Table
   ───────────────────────────────────────── */
.inkie-compare {
  margin-top: 14px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ink-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ink-shadow-card);
}

.inkie-cmp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(139,92,246,0.22);
  border-bottom: 1px solid var(--ink-border);
}

.inkie-cmp-title { font-size: 12px; font-weight: 700; color: var(--ink-text); }

.inkie-cmp-clear-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--ink-border-strong);
  color: var(--ink-text);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.inkie-cmp-clear-btn:hover { background: rgba(255,255,255,0.20); }

.inkie-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.inkie-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: auto;
}

.inkie-cmp-table th,
.inkie-cmp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink-border);
  vertical-align: middle;
  color: var(--ink-text);
}

.inkie-cmp-table thead tr { background: rgba(139,92,246,0.12); }

.inkie-cmp-attr-col {
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  font-size: 10px;
  color: var(--ink-text-muted);
  width: 85px;
  white-space: nowrap;
  vertical-align: top;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inkie-cmp-prod-col {
  background: rgba(255,255,255,0.04);
  text-align: center;
  color: var(--ink-text);
  min-width: 100px;
}

.inkie-cmp-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ink-border);
  display: block;
  margin: 0 auto 5px;
}

.inkie-cmp-col-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-primary-light);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.inkie-cmp-row-label {
  background: rgba(255,255,255,0.04);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inkie-cmp-table td:not(.inkie-cmp-row-label):not(.inkie-cmp-prod-col):not(.inkie-cmp-attr-col) {
  text-align: center;
  color: var(--ink-text);
  font-size: 11px;
}

.inkie-cmp-winner {
  background: rgba(34,197,94,0.12) !important;
  font-weight: 700;
  color: #86efac !important;
}

.inkie-cmp-badge {
  display: inline-block;
  background: rgba(34,197,94,0.30);
  color: #86efac;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  margin-left: 3px;
  vertical-align: middle;
}

.inkie-cmp-stars { color: #fbbf24; letter-spacing: -1px; }
.inkie-cmp-rev { font-size: 9px; color: var(--ink-text-muted); }
.inkie-cmp-value-row td { font-weight: 700; }

.inkie-cmp-price-row td:not(.inkie-cmp-row-label) {
  color: #ffffff;
  font-weight: 700;
}

.inkie-cmp-price-row td:not(.inkie-cmp-row-label),
.inkie-cmp-price-row td:not(.inkie-cmp-row-label) .inkie-cmp-price-val,
.inkie-cmp-price-row td:not(.inkie-cmp-row-label) .inkie-cmp-price-val * {
  color: #ffffff !important;
}

.inkie-cmp-add-btn {
  display: block;
  margin: 6px auto 0;
  border: 1px solid rgba(139,92,246,0.45);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(139,92,246,0.20);
  color: var(--ink-primary-light);
  transition: all 0.15s;
}

.inkie-cmp-add-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.40);
  color: #fff;
}

.inkie-cmp-add-btn:disabled {
  opacity: 0.9;
  cursor: default;
}

.inkie-cmp-remove-btn {
  display: block;
  margin: 4px auto 0;
  background: transparent;
  border: 1px solid var(--ink-border);
  color: var(--ink-text-muted);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.inkie-cmp-remove-btn:hover { border-color: #f87171; color: #f87171; }

.inkie-cmp-desc {
  font-size: 10px;
  color: var(--ink-text-muted);
  line-height: 1.45;
  max-width: 150px;
}

.inkie-cmp-note {
  padding: 6px 12px;
  font-size: 9px;
  color: var(--ink-text-muted);
  background: rgba(255,255,255,0.04);
  border-top: 1px solid var(--ink-border);
  text-align: center;
}

.inkie-view-details-link {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(139,92,246,0.22);
  color: var(--ink-primary-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 10px;
  transition: all 0.15s;
}
.inkie-view-details-link:hover {
  background: rgba(139,92,246,0.40);
  color: #fff;
}

.inkie-no-link {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(255,255,255,0.06);
  color: var(--ink-text-muted);
  border-radius: 5px;
  font-size: 10px;
}

/* ─────────────────────────────────────────
   Support Box
   ───────────────────────────────────────── */
.inkie-support-box {
  margin: 10px 0;
  background: rgba(139,92,246,0.10);
  border: 1px solid var(--ink-border-strong);
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}

.inkie-support-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-border);
}
.inkie-support-item:last-child { border-bottom: none; padding-bottom: 0; }

.inkie-support-icon {
  font-size: 22px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inkie-support-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inkie-support-label {
  font-weight: 700;
  color: var(--ink-primary-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inkie-support-link {
  color: var(--ink-text);
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink-border);
  transition: color 0.15s;
}
.inkie-support-link:hover { color: var(--ink-primary-light); }

.inkie-support-message {
  color: var(--ink-text-muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
  font-style: italic;
}

/* ─────────────────────────────────────────
   Advisor Card
   ───────────────────────────────────────── */
.inkie-advisor-card {
  margin: 8px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--ink-border);
  background: var(--ink-surface);
}

.inkie-advisor-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-text);
  margin-bottom: 7px;
}

.inkie-advisor-row {
  font-size: 12px;
  color: var(--ink-text);
  margin-bottom: 4px;
}

.inkie-advisor-meta {
  margin-top: 7px;
  font-size: 11px;
  color: var(--ink-text-muted);
}

/* ─────────────────────────────────────────
   Cart Summary
   ───────────────────────────────────────── */
.inkie-cart-summary {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  font-size: 12px;
}

.inkie-cart-summary-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-primary-light);
  margin-bottom: 10px;
}

.inkie-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }

.inkie-cart-row td {
  padding: 5px 4px;
  border-bottom: 1px solid var(--ink-border);
  vertical-align: middle;
  color: var(--ink-text);
}
.inkie-cart-row:last-child td { border-bottom: none; }

.inkie-cart-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ink-border);
}

.inkie-cart-item-name {
  font-weight: 500;
  color: var(--ink-text);
  padding-left: 6px;
  max-width: 120px;
  word-break: break-word;
}

.inkie-cart-item-qty { color: var(--ink-text-muted); text-align: center; white-space: nowrap; }

.inkie-cart-item-price {
  font-weight: 700;
  color: var(--ink-primary-light);
  text-align: right;
  white-space: nowrap;
}

.inkie-cart-total-row {
  font-size: 12px;
  text-align: right;
  color: var(--ink-text);
  margin-bottom: 10px;
}

.inkie-cart-summary-actions { display: flex; gap: 8px; }

.inkie-checkout-cta {
  flex: 1;
  display: inline-block;
  text-align: center;
  padding: 9px 0;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.inkie-checkout-cta:hover { opacity: 0.88; color: #fff; }

.inkie-cart-cta {
  display: inline-block;
  text-align: center;
  padding: 9px 12px;
  border: 1px solid var(--ink-border);
  color: var(--ink-text-muted);
  border-radius: 10px;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.15s;
}
.inkie-cart-cta:hover { border-color: var(--ink-border-strong); color: var(--ink-text); }

/* ─────────────────────────────────────────
   Bundle Card
   ───────────────────────────────────────── */
.inkie-bundle-card {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(167,139,250,0.30);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  font-size: 12px;
}

.inkie-bundle-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary-light);
  margin-bottom: 3px;
}

.inkie-bundle-subtitle {
  font-size: 11px;
  color: var(--ink-text-muted);
  margin-bottom: 10px;
}

.inkie-bundle-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.inkie-bundle-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 6px 8px;
  border: 1px solid var(--ink-border);
}

.inkie-bundle-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ink-border);
  flex-shrink: 0;
}

.inkie-bundle-item-info { flex: 1; min-width: 0; }

.inkie-bundle-item-name {
  font-weight: 600;
  color: var(--ink-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.inkie-bundle-item-price { font-size: 11px; color: var(--ink-primary-light); font-weight: 700; }

.inkie-bundle-atc,
.inkie-upsell-atc {
  width: auto !important;
  min-width: 112px;
  min-height: 32px;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: 0 12px !important;
  font-size: 10px !important;
  white-space: nowrap;
}

.inkie-atc-oos {
  font-size: 10px;
  color: var(--ink-text-muted);
  padding: 3px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  flex-shrink: 0;
}

.inkie-bundle-one-click {
  display: block;
  text-align: center;
  padding: 10px 0;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s;
}
.inkie-bundle-one-click:hover { opacity: 0.88; color: #fff; }

/* ─────────────────────────────────────────
   Upsell Card
   ───────────────────────────────────────── */
.inkie-upsell-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(167,139,250,0.28);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
}

.inkie-upsell-header {
  background: linear-gradient(135deg, rgba(124,58,237,0.85) 0%, rgba(139,92,246,0.75) 100%);
  padding: 11px 14px;
  color: #fff;
  border-bottom: 1px solid var(--ink-border);
}

.inkie-upsell-heading { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.inkie-upsell-subheading { font-size: 11px; opacity: 0.82; }

.inkie-upsell-groups { padding: 10px 12px 4px; }

.inkie-upsell-group { margin-bottom: 8px; }

.inkie-upsell-group-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.inkie-upsell-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: var(--ink-surface);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 5px;
  border: 1px solid var(--ink-border);
}

.inkie-upsell-card .inkie-bundle-one-click {
  display: block;
  margin: 4px 12px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   WhatsApp / Account Handoff Buttons
   ───────────────────────────────────────── */
.inkie-handoff-btn {
  display: block;
  padding: 13px 18px;
  margin: 10px 0;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(37,211,102,0.30);
  transition: all 0.18s var(--ink-ease);
}
.inkie-handoff-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,211,102,0.45); color: #fff !important; }

.inkie-account-btn {
  display: block;
  padding: 13px 18px;
  margin: 10px 0;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(124,58,237,0.35);
  transition: all 0.18s var(--ink-ease);
}
.inkie-account-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(124,58,237,0.50); color: #fff !important; }

/* ─────────────────────────────────────────
   Order Privacy / Inline Links
   ───────────────────────────────────────── */
.inkie-order-privacy {
  margin-top: 8px;
  padding: 8px;
  background: rgba(139,92,246,0.14);
  border-radius: 7px;
  font-size: 11px;
  color: var(--ink-primary-light);
  text-align: center;
  font-weight: 500;
}

.inkie-inline-link { font-weight: 700; color: var(--ink-primary-light); text-decoration: underline; }
.inkie-inline-link:hover { color: #c4b5fd; }
.inkie-checkout-link { color: #4ade80; }

/* ─────────────────────────────────────────
   Handoff Summary Box
   ───────────────────────────────────────── */
.inkie-handoff-summary-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--ink-border);
  border-radius: 10px;
  background: var(--ink-surface);
}

.inkie-handoff-summary-preview {
  margin-top: 6px;
  max-height: 130px;
  overflow-y: auto;
  border: 1px dashed var(--ink-border);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--ink-text);
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.inkie-copy-summary-btn {
  margin-top: 8px;
  border: 1px solid var(--ink-border-strong);
  background: rgba(139,92,246,0.12);
  color: var(--ink-primary-light);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ink-ease);
}
.inkie-copy-summary-btn:hover { background: rgba(139,92,246,0.28); color: #fff; }

/* ─────────────────────────────────────────
   Combo / Upsell Badges
   ───────────────────────────────────────── */
.inkie-combo-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.inkie-badge-pen      { background: rgba(59,130,246,0.18);  color: #93c5fd; }
.inkie-badge-ink      { background: rgba(139,92,246,0.18);  color: #c4b5fd; }
.inkie-badge-notebook { background: rgba(34,197,94,0.18);   color: #86efac; }

/* ─────────────────────────────────────────
   Responsive (Mobile)
   ───────────────────────────────────────── */
@media (max-width: 520px) {
  #inkie-widget {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 10px;
    height: min(86vh, 710px);
    border-radius: 26px;
  }

  #inkie-launcher {
    bottom: 18px;
    right: 18px;
  }

  #inkie-header {
    height: 68px;
    padding: 0 14px;
  }

  .inkie-header-center { height: 68px; }
  .inkie-title { font-size: 16px; }

  #inkie-body { padding: 14px 12px 6px; }

  #inkie-quick,
  #inkie-input-area { padding-left: 12px; padding-right: 12px; }

  .inkie-product-card {
    min-width: 170px;
    max-width: 170px;
  }

  .inkie-product-card img { height: 120px; }

  .inkie-card-actions {
    grid-template-columns: 1fr 32px;
    gap: 6px;
  }

  .inkie-product-actions { padding: 0 12px; }

  #inkie-send {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  #inkie-input-menu-slot .inkie-actions-menu-toggle {
    min-height: 42px;
    height: 42px;
    min-width: 42px;
  }

  #inkie-input-menu-slot { height: 42px; }

  #inkie-input { height: 42px; }
}
