/* My Store Chatbot — teal premium UI */
#msc-chatbot-root {
  --msc-red: #1b8a8c;
  --msc-red-dark: #146668;
  --msc-red-soft: rgba(27, 138, 140, 0.12);
  --msc-amber: #e8b86d;
  --msc-amber-dark: #c9956a;
  --msc-cream: #f5faf9;
  --msc-paper: #f8fcfc;
  --msc-green: #2eb8bb;
  --msc-teal-deep: #0a4547;
  --msc-teal-mid: #157577;
  --msc-teal-light: #5ec4c6;
  --msc-accent-warm: #e07a5f;
  --msc-text: #141414;
  --msc-text-soft: #3d3d3d;
  --msc-muted: #6b6b6b;
  --msc-border: rgba(27, 138, 140, 0.1);
  --msc-surface: #ffffff;
  --msc-surface-chat: #eef5f5;
  --msc-user-bubble: linear-gradient(145deg, #1b8a8c 0%, #146668 100%);
  --msc-card-shadow: 0 4px 20px rgba(27, 138, 140, 0.08);
  --msc-card-shadow-hover: 0 12px 32px rgba(27, 138, 140, 0.14);
  --msc-radius: 14px;
  --msc-radius-lg: 18px;
  --msc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --msc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-family: var(--msc-font);
  font-size: 15px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Isolate typography from theme/global heading styles on live sites */
#msc-chatbot-root h1,
#msc-chatbot-root h2,
#msc-chatbot-root h3,
#msc-chatbot-root h4,
#msc-chatbot-root h5,
#msc-chatbot-root h6,
#msc-chatbot-root p,
#msc-chatbot-root label,
#msc-chatbot-root button,
#msc-chatbot-root input,
#msc-chatbot-root textarea,
#msc-chatbot-root strong {
  font-family: var(--msc-font) !important;
  letter-spacing: normal;
  text-transform: none;
}

#msc-chatbot-root *,
#msc-chatbot-root *::before,
#msc-chatbot-root *::after {
  box-sizing: inherit;
}

#msc-chatbot-root .msc-launcher-wrap {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

#msc-chatbot-root .msc-launcher-wrap .msc-launcher {
  pointer-events: auto;
}

#msc-chatbot-root .msc-launcher-tagline {
  pointer-events: none;
  margin: 0 !important;
  padding: 8px 16px;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.03em;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-transform: none !important;
  background: linear-gradient(135deg, #0a4547 0%, #1b8a8c 45%, #2eb8bb 100%);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(27, 138, 140, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: min(220px, 78vw);
  text-align: center;
  line-height: 1.3;
  animation: msc-tagline-nudge 3.5s ease-in-out infinite;
}

@keyframes msc-tagline-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

#msc-chatbot-root .msc-launcher,
#msc-chatbot-root .msc-bubble,
#msc-chatbot-root #msc-chat-bubble-preload {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(150deg, #2eb8bb 0%, #1b8a8c 35%, #157577 70%, #0a4547 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06) inset, 0 12px 36px rgba(27, 138, 140, 0.48), 0 6px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--msc-ease-out), box-shadow 0.25s ease, filter 0.2s ease;
  padding: 0;
  min-width: 64px;
  max-width: 64px;
}

#msc-chatbot-root .msc-launcher-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#msc-chatbot-root .msc-launcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 0;
  color: #fff;
}

#msc-chatbot-root .msc-launcher-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

#msc-chatbot-root .msc-launcher:hover,
#msc-chatbot-root .msc-bubble:hover,
#msc-chatbot-root #msc-chat-bubble-preload:hover {
  transform: scale(1.08) translateY(-3px);
  filter: brightness(1.05);
}

#msc-chatbot-root .msc-launcher.msc-first-load,
#msc-chatbot-root .msc-bubble.msc-first-load {
  animation: msc-pulse 1.8s ease-in-out 3;
}

@keyframes msc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 184, 187, 0.55), 0 12px 36px rgba(27, 138, 140, 0.48); }
  70% { box-shadow: 0 0 0 16px rgba(46, 184, 187, 0), 0 12px 36px rgba(27, 138, 140, 0.48); }
  100% { box-shadow: 0 0 0 0 rgba(46, 184, 187, 0), 0 12px 36px rgba(27, 138, 140, 0.48); }
}

#msc-chatbot-root .msc-launcher-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: none;
}

#msc-chatbot-root .msc-launcher-badge.msc-visible {
  display: block;
}

#msc-chatbot-root .msc-panel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  width: min(100vw - 24px, 400px);
  height: min(580px, calc(100dvh - 100px));
  max-height: calc(100dvh - 100px);
  background: var(--msc-surface);
  border-radius: var(--msc-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--msc-border);
  z-index: 99999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s var(--msc-ease-out), opacity 0.28s ease;
  isolation: isolate;
}

#msc-chatbot-root.msc-open .msc-panel {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

#msc-chatbot-root .msc-panel[hidden] {
  display: none !important;
}

#msc-chatbot-root.msc-open .msc-panel[hidden] {
  display: none !important;
}

#msc-chatbot-root.msc-open .msc-panel:not([hidden]) {
  display: flex !important;
}

#msc-chatbot-root .msc-header {
  flex-shrink: 0;
  background: linear-gradient(125deg, var(--msc-teal-deep) 0%, var(--msc-red-dark) 42%, var(--msc-red) 100%);
  color: #fff;
  padding: 10px 16px 14px;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

#msc-chatbot-root .msc-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#msc-chatbot-root .msc-header-text {
  flex: 1;
  min-width: 0;
}

#msc-chatbot-root .msc-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: -2px;
}

#msc-chatbot-root .msc-header-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff !important;
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

#msc-chatbot-root .msc-header-icon-btn .msc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

#msc-chatbot-root .msc-header-icon-btn .msc-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

#msc-chatbot-root .msc-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#msc-chatbot-root .msc-header .msc-header-title,
#msc-chatbot-root .msc-header h2.msc-header-title,
#msc-chatbot-root #msc-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-transform: none !important;
}

#msc-chatbot-root .msc-header .msc-header-sub,
#msc-chatbot-root .msc-header .msc-header-sub span {
  margin: 5px 0 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  text-transform: none !important;
}

#msc-chatbot-root .msc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

#msc-chatbot-root .msc-promo-banner {
  background: linear-gradient(90deg, #d4f0f0, #b8e8e8);
  color: #0a4547;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #9dd4d4;
  flex-shrink: 0;
}

#msc-chatbot-root .msc-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 10px 18px 8px;
  background: linear-gradient(180deg, #f5faf9 0%, var(--msc-surface-chat) 55%, #e4efef 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 138, 140, 0.35) transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#msc-chatbot-root .msc-row {
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}

#msc-chatbot-root .msc-msg-enter {
  animation: msc-msg-in 0.42s var(--msc-ease-out) both;
}

@keyframes msc-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#msc-chatbot-root .msc-row-bot { justify-content: flex-start; }
#msc-chatbot-root .msc-row-user { justify-content: flex-end; }

#msc-chatbot-root .msc-bubble-wrap { min-width: 0; }
#msc-chatbot-root .msc-row-bot .msc-bubble-wrap { flex: 1 1 auto; max-width: none; }
#msc-chatbot-root .msc-row-user .msc-bubble-wrap {
  flex: 0 1 auto;
  max-width: min(100%, 360px);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#msc-chatbot-root .msc-msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

#msc-chatbot-root .msc-bubble-bot {
  background: var(--msc-surface);
  color: var(--msc-text-soft);
  border-radius: 12px;
  box-shadow: var(--msc-card-shadow);
  border: 1px solid var(--msc-border);
}

#msc-chatbot-root .msc-bubble-user {
  background: var(--msc-user-bubble);
  color: #fff;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 6px 20px rgba(27, 138, 140, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#msc-chatbot-root .msc-msg-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--msc-muted);
  margin-top: 6px;
  padding: 0 6px;
}

#msc-chatbot-root .msc-row-user .msc-msg-meta {
  text-align: right;
  align-self: flex-end;
}

#msc-chatbot-root .msc-read { color: var(--msc-red); display: inline-flex; }

#msc-chatbot-root .msc-typing-row {
  flex-shrink: 0;
  padding: 0 12px 8px;
  background: transparent;
}

#msc-chatbot-root .msc-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--msc-surface);
  border-radius: 12px;
  border: 1px solid var(--msc-border);
  box-shadow: var(--msc-card-shadow);
}

#msc-chatbot-root .msc-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--msc-red);
  opacity: 0.35;
  animation: msc-typing-dot 1.05s infinite ease-in-out both;
}

#msc-chatbot-root .msc-typing span:nth-child(2) { animation-delay: 0.15s; }
#msc-chatbot-root .msc-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes msc-typing-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

#msc-chatbot-root .msc-welcome-hero {
  width: 100%;
  padding: 4px 6px 14px;
  animation: msc-msg-in 0.55s var(--msc-ease-out) both;
}

#msc-chatbot-root .msc-welcome-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(165deg, var(--msc-paper) 0%, #f0f8f8 52%, #e8f2f2 100%);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--msc-radius-lg);
  padding: 20px 16px 16px;
  box-shadow: var(--msc-card-shadow);
}

#msc-chatbot-root .msc-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--msc-red) 0%, var(--msc-amber) 50%, var(--msc-red-dark) 100%);
}

#msc-chatbot-root .msc-welcome-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(145deg, #ffffff 0%, #e8f6f6 100%);
  border: 2px solid rgba(27, 138, 140, 0.12);
  box-shadow: 0 6px 18px rgba(27, 138, 140, 0.12);
}

#msc-chatbot-root .msc-welcome-title {
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  color: #2c1810 !important;
  -webkit-text-fill-color: #2c1810 !important;
  text-transform: none !important;
}

#msc-chatbot-root .msc-welcome-tagline {
  margin: 0 auto;
  max-width: 300px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--msc-muted);
}

#msc-chatbot-root .msc-welcome-greeting {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#msc-chatbot-root .msc-welcome-greeting-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--msc-red) 0%, var(--msc-red-dark) 100%);
  box-shadow: 0 0 0 2px rgba(27, 138, 140, 0.15);
}

#msc-chatbot-root .msc-welcome-greeting-text {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: var(--msc-text-soft) !important;
  -webkit-text-fill-color: var(--msc-text-soft) !important;
}

#msc-chatbot-root .msc-quick-filters {
  padding: 4px 0 6px;
  flex-shrink: 0;
}

#msc-chatbot-root .msc-quick-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#msc-chatbot-root .msc-quick-btn {
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  transition: transform 0.18s var(--msc-ease-out), box-shadow 0.18s ease, border-color 0.18s ease;
}

#msc-chatbot-root .msc-quick-btn-ghost {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--msc-border);
  background: #fff;
  color: #2c1810 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  -webkit-text-fill-color: #2c1810 !important;
  text-transform: none !important;
}

#msc-chatbot-root .msc-quick-btn-ghost:hover,
#msc-chatbot-root .msc-quick-filter.msc-filter-active {
  background: #fff;
  border-color: rgba(27, 138, 140, 0.22);
  color: var(--msc-red) !important;
  -webkit-text-fill-color: var(--msc-red);
}

#msc-chatbot-root .msc-footer {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #e8f2f2 100%);
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

#msc-chatbot-root .msc-footer-compose-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
}

#msc-chatbot-root .msc-footer-compose {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#msc-chatbot-root .msc-input {
  flex: 1;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  font-family: inherit;
  outline: none;
  background: var(--msc-surface);
  color: var(--msc-text) !important;
  -webkit-text-fill-color: var(--msc-text) !important;
  min-width: 0;
}

#msc-chatbot-root .msc-input:focus {
  border-color: rgba(27, 138, 140, 0.45);
  box-shadow: 0 0 0 4px var(--msc-red-soft);
}

#msc-chatbot-root .msc-send {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, var(--msc-red) 0%, var(--msc-red-dark) 100%);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(27, 138, 140, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#msc-chatbot-root .msc-send:hover:not(:disabled) { transform: scale(1.06); }
#msc-chatbot-root .msc-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* Voice input & output */
#msc-chatbot-root .msc-voice-mic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(27, 138, 140, 0.35);
  background: var(--msc-surface);
  color: var(--msc-red);
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#msc-chatbot-root .msc-voice-mic:hover {
  background: var(--msc-red-soft);
  border-color: var(--msc-red);
}

#msc-chatbot-root .msc-voice-mic.msc-voice-active {
  background: linear-gradient(145deg, var(--msc-red) 0%, var(--msc-red-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px var(--msc-red-soft);
  animation: msc-voice-pulse 1.2s ease-in-out infinite;
}

#msc-chatbot-root .msc-footer-compose.msc-voice-listening .msc-input {
  border-color: var(--msc-red);
  box-shadow: 0 0 0 4px var(--msc-red-soft);
}

#msc-chatbot-root .msc-voice-status {
  margin: 6px 0 0;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--msc-red);
  text-align: center;
}

#msc-chatbot-root .msc-panel.msc-speaking .msc-dot {
  background: var(--msc-red);
  box-shadow: 0 0 0 4px var(--msc-red-soft);
  animation: msc-voice-pulse 1.2s ease-in-out infinite;
}

#msc-chatbot-root .msc-msg-bubble {
  position: relative;
}

#msc-chatbot-root .msc-msg-speak {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 0 0 8px;
  vertical-align: middle;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#msc-chatbot-root .msc-msg-speak:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes msc-voice-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

#msc-chatbot-root .msc-mini-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  background: var(--msc-surface);
  color: var(--msc-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#msc-chatbot-root .msc-mini-cart-badge:hover {
  border-color: rgba(27, 138, 140, 0.35);
  transform: translateY(-1px);
}

#msc-chatbot-root .msc-mini-cart-count-bubble {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--msc-red) 0%, var(--msc-red-dark) 100%);
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

/* Product cards */
#msc-chatbot-root .msc-products { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#msc-chatbot-root .msc-product-card {
  display: flex;
  gap: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5faf9 100%);
  border: 1px solid var(--msc-border);
  border-radius: var(--msc-radius-lg);
  overflow: hidden;
  box-shadow: var(--msc-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#msc-chatbot-root .msc-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--msc-card-shadow-hover);
}
#msc-chatbot-root .msc-product-card img {
  width: 72px;
  min-width: 72px;
  height: 72px;
  object-fit: cover;
  background: linear-gradient(145deg, #e8f6f6, #d4eeee);
}
#msc-chatbot-root .msc-product-info { flex: 1; padding: 8px 10px; min-width: 0; }
#msc-chatbot-root .msc-product-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 4px;
  color: #2c1810 !important;
  -webkit-text-fill-color: #2c1810 !important;
  text-transform: none !important;
}
#msc-chatbot-root .msc-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--msc-red);
  background: none;
  padding: 0;
  border-radius: 0;
}

#msc-chatbot-root .msc-product-price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#msc-chatbot-root .msc-product-price ins {
  text-decoration: none;
  background: none;
}

#msc-chatbot-root .msc-product-price ins,
#msc-chatbot-root .msc-product-price ins .amount,
#msc-chatbot-root .msc-product-price ins .woocommerce-Price-amount,
#msc-chatbot-root .msc-product-price > .amount,
#msc-chatbot-root .msc-product-price > .woocommerce-Price-amount {
  color: var(--msc-red) !important;
  -webkit-text-fill-color: var(--msc-red) !important;
  font-weight: 800;
}

#msc-chatbot-root .msc-product-price del,
#msc-chatbot-root .msc-product-price del .amount,
#msc-chatbot-root .msc-product-price del .woocommerce-Price-amount {
  color: var(--msc-muted) !important;
  -webkit-text-fill-color: var(--msc-muted) !important;
  text-decoration: line-through !important;
  font-weight: 500;
  font-size: 11px;
  opacity: 1;
}

#msc-chatbot-root .msc-product-price .woocommerce-Price-currencySymbol {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
#msc-chatbot-root .msc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#msc-chatbot-root .msc-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--msc-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
#msc-chatbot-root .msc-chip:hover {
  border-color: rgba(27, 138, 140, 0.22);
  color: var(--msc-red);
}

#msc-chatbot-root .msc-size-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--msc-muted);
  margin-bottom: 6px;
}
#msc-chatbot-root .msc-size-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
#msc-chatbot-root .msc-size-option {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-width: 34px;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border: 2px solid #e8e0dc !important;
  background: #fff !important;
  color: #2c1810 !important;
  -webkit-text-fill-color: #2c1810 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none !important;
}
#msc-chatbot-root .msc-size-option:hover:not(:disabled):not(.msc-size-selected) {
  border-color: var(--msc-amber) !important;
  color: #2c1810 !important;
  -webkit-text-fill-color: #2c1810 !important;
}
#msc-chatbot-root .msc-size-option.msc-size-selected {
  background: linear-gradient(135deg, var(--msc-green) 0%, #1b8a8c 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#msc-chatbot-root .msc-size-option.msc-size-oos,
#msc-chatbot-root .msc-size-option:disabled {
  opacity: 0.45 !important;
  color: #6b6b6b !important;
  -webkit-text-fill-color: #6b6b6b !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

#msc-chatbot-root .msc-product-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}
#msc-chatbot-root .msc-product-actions .msc-btn {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  padding: 5px 12px !important;
  min-height: 0;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.28px;
}
#msc-chatbot-root .msc-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 1;
  padding: 7px 10px !important;
  border: none !important;
  border-radius: 40px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  box-shadow: none !important;
}
#msc-chatbot-root .msc-btn-cart {
  background: linear-gradient(135deg, var(--msc-amber) 0%, var(--msc-amber-dark) 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#msc-chatbot-root .msc-btn-buy,
#msc-chatbot-root .msc-btn-checkout,
#msc-chatbot-root .msc-btn-primary {
  background: linear-gradient(135deg, var(--msc-red) 0%, var(--msc-red-dark) 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
#msc-chatbot-root .msc-btn-secondary {
  background: #fff !important;
  border: 2px solid var(--msc-red) !important;
  color: var(--msc-red) !important;
  -webkit-text-fill-color: var(--msc-red) !important;
}

/* Cart drawer overlay inside panel */
#msc-chatbot-root .msc-cart-drawer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--msc-paper) 0%, #f0f8f8 52%, #e8f2f2 100%);
  border-radius: var(--msc-radius-lg);
  overflow: hidden;
}
#msc-chatbot-root .msc-cart-drawer[hidden] { display: none !important; }
#msc-chatbot-root .msc-cart-drawer-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(125deg, var(--msc-teal-deep) 0%, var(--msc-red-dark) 45%, var(--msc-red) 100%);
  color: #fff;
}
#msc-chatbot-root .msc-cart-drawer-head strong {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}
#msc-chatbot-root .msc-cart-drawer-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
#msc-chatbot-root .msc-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
#msc-chatbot-root .msc-cart-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 20, 20, 0.06);
}
#msc-chatbot-root .msc-cart-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
#msc-chatbot-root .msc-cart-item-name { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
#msc-chatbot-root .msc-cart-item-price { font-size: 14px; font-weight: 800; color: var(--msc-red); margin: 0 0 8px; }
#msc-chatbot-root .msc-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#msc-chatbot-root .msc-qty-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 10px !important;
  border: 1px solid #e8e4e0 !important;
  background: #faf8f6 !important;
  color: #2c1810 !important;
  -webkit-text-fill-color: #2c1810 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit;
  box-shadow: none !important;
}
#msc-chatbot-root .msc-qty-btn:hover {
  border-color: rgba(27, 138, 140, 0.35) !important;
  background: #fff !important;
}
#msc-chatbot-root .msc-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2c1810;
}
#msc-chatbot-root .msc-cart-remove {
  margin-left: auto;
  border: none !important;
  background: none !important;
  color: var(--msc-muted) !important;
  -webkit-text-fill-color: var(--msc-muted) !important;
  font-size: 11px !important;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 !important;
  font-family: inherit;
}
#msc-chatbot-root .msc-cart-drawer-footer {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--msc-border);
}
#msc-chatbot-root .msc-cart-drawer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
#msc-chatbot-root .msc-cart-checkout-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 200px;
  min-height: 46px !important;
  padding: 12px 22px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}
#msc-chatbot-root .msc-cart-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
#msc-chatbot-root .msc-cart-total { font-weight: 800; font-size: 15px !important; color: var(--msc-red) !important; border-top: 1px dashed var(--msc-border); margin-top: 8px; padding-top: 8px; }
#msc-chatbot-root .msc-cart-empty { text-align: center; padding: 24px; color: var(--msc-muted); }
#msc-chatbot-root .msc-cart-note { font-size: 12px; color: var(--msc-muted); text-align: center; margin-top: 8px; }

#msc-chatbot-root .msc-order-card,
#msc-chatbot-root .msc-cart-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--msc-paper);
  border: 2px solid rgba(27, 138, 140, 0.2);
  font-size: 13px;
}
#msc-chatbot-root .msc-order-success { border-color: var(--msc-green); }

#msc-chatbot-root .msc-order-confirm {
  margin-top: 12px;
  padding: 16px 14px;
  border-radius: var(--msc-radius-lg);
  background: linear-gradient(165deg, #f5faf9 0%, #eef8f8 100%);
  border: 1px solid rgba(27, 138, 140, 0.22);
  text-align: center;
  box-shadow: var(--msc-card-shadow);
}

#msc-chatbot-root .msc-order-confirm-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--msc-green) 0%, var(--msc-red) 100%);
  box-shadow: 0 4px 14px rgba(27, 138, 140, 0.28);
}

#msc-chatbot-root .msc-order-confirm-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--msc-text);
}

#msc-chatbot-root .msc-order-confirm-number {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--msc-red);
}

#msc-chatbot-root .msc-order-confirm-details {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(27, 138, 140, 0.1);
}

#msc-chatbot-root .msc-order-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--msc-muted);
  border-bottom: 1px dashed rgba(27, 138, 140, 0.12);
}

#msc-chatbot-root .msc-order-confirm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#msc-chatbot-root .msc-order-confirm-row strong {
  color: var(--msc-text-soft);
  font-weight: 700;
  text-align: right;
}

#msc-chatbot-root .msc-order-confirm-email strong {
  word-break: break-all;
}

/* Checkout modal */
.msc-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 69, 71, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.msc-checkout-overlay[hidden] { display: none !important; }
body.msc-checkout-open { overflow: hidden; }

.msc-checkout-modal {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  background: var(--msc-paper);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--msc-border);
}
.msc-checkout-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(125deg, var(--msc-teal-deep) 0%, var(--msc-red-dark) 45%, var(--msc-red) 100%);
  color: #fff;
}
.msc-checkout-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.msc-checkout-modal-close {
  width: 42px;
  height: 42px;
  border: none !important;
  border-radius: 10px;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.msc-checkout-modal-close:hover {
  background: transparent !important;
  opacity: 0.85;
}
.msc-checkout-modal-close svg {
  width: 22px;
  height: 22px;
  display: block;
}
.msc-checkout-modal-body { overflow-y: auto; padding: 14px 16px 18px; flex: 1; }
.msc-checkout-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.msc-checkout-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--msc-muted);
  font-weight: 500;
}
.msc-checkout-field > span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.msc-checkout-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px !important;
  border: 1px solid #e8e0dc !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-family: inherit;
  min-height: 0 !important;
  height: 32px !important;
  margin: 0 !important;
}
.msc-checkout-field input:focus {
  outline: none;
  border-color: rgba(27, 138, 140, 0.45) !important;
  box-shadow: 0 0 0 2px var(--msc-red-soft);
}
.msc-checkout-field.msc-field-full { grid-column: 1 / -1; }
.msc-checkout-title { margin: 0 0 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--msc-muted); }
.msc-checkout-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.msc-checkout-form-actions .msc-checkout-submit {
  width: auto !important;
  min-width: 200px;
  min-height: 48px !important;
  height: auto !important;
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 12px !important;
  margin-top: 0 !important;
}
.msc-modal-cart-summary {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--msc-border);
}
.msc-modal-cart-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }

#msc-chatbot-root .msc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#msc-chatbot-root .msc-panel.msc-rtl { direction: rtl; }

@media (max-width: 520px) {
  #msc-chatbot-root .msc-panel {
    left: max(0px, env(safe-area-inset-left, 0px));
    right: max(0px, env(safe-area-inset-right, 0px));
    width: auto;
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    height: min(72dvh, 520px);
    border-radius: 20px 20px 0 0;
  }
  .msc-checkout-fields-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #msc-chatbot-root .msc-launcher-tagline,
  #msc-chatbot-root .msc-launcher.msc-first-load { animation: none !important; }
  #msc-chatbot-root .msc-msg-enter { animation: none !important; }
}
