/**
 * Mayū AI Assistant — Premium Frontend Stylesheet
 * Brand: Deep Peacock Blue (#0B2B40), Rich Antique Gold (#D4AF37), Warm Sacred Ivory (#FAF7F2 / #FBF8F2)
 * Designed to strictly match Golden Age Media Desktop & Mobile Reference Layouts.
 * Scoped strictly to #gama-widget-container to never interfere with active theme styles.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --gama-primary: #0B2B40;
  --gama-primary-deep: #052331;
  --gama-primary-mid: #0B3349;
  --gama-primary-light: #0E3D58;
  --gama-accent: #D4AF37;
  --gama-accent-hover: #E5C378;
  --gama-accent-light: #FBF4E2;
  --gama-accent-border: rgba(212, 175, 55, 0.42);
  --gama-bg: #FAF7F2;
  --gama-surface: #FFFFFF;
  --gama-cream: #FBF8F2;
  --gama-text: #1E293B;
  --gama-text-dark: #0B2B40;
  --gama-muted: #64748B;
  --gama-border: #E8DFD0;
  --gama-border-subtle: rgba(212, 175, 55, 0.28);
  --gama-shadow-widget: 0 20px 48px rgba(7, 31, 45, 0.32), 0 4px 14px rgba(0, 0, 0, 0.08);
  --gama-shadow-card: 0 2px 8px rgba(11, 43, 64, 0.04);
}

#gama-widget-container {
  position: fixed;
  z-index: 999990;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

#gama-widget-container * {
  box-sizing: border-box;
}

/* Accessible Focus Outlines */
#gama-widget-container button:focus-visible,
#gama-widget-container textarea:focus-visible,
#gama-widget-container a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.55) !important;
}

/* Positioning */
.gama-position-bottom-right {
  bottom: 24px;
  right: 24px;
}

.gama-position-bottom-left {
  bottom: 24px;
  left: 24px;
}

/* -------------------------------------------------------------
 * 1. FLOATING MASCOT LAUNCHER BUTTON
 * ------------------------------------------------------------- */
.gama-launcher-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--gama-accent);
  background: var(--gama-primary);
  box-shadow: 0 10px 28px rgba(11, 43, 64, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gama-launcher-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(11, 43, 64, 0.45), 0 0 24px rgba(212, 175, 55, 0.55);
}

.gama-launcher-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gama-bg);
  position: relative;
}

.gama-launcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animations */
.gama-launcher-btn.gama-anim-float {
  animation: gamaFloat 3.6s ease-in-out infinite;
}

.gama-launcher-btn.gama-anim-pulse {
  animation: gamaPulseAura 2.2s infinite;
}

.gama-launcher-btn.gama-anim-bounce {
  animation: gamaBounceMascot 4s ease infinite;
}

@keyframes gamaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes gamaPulseAura {
  0%, 100% { box-shadow: 0 8px 24px rgba(11, 43, 64, 0.35), 0 0 0 0 rgba(212, 175, 55, 0.7); }
  50% { box-shadow: 0 12px 32px rgba(11, 43, 64, 0.45), 0 0 0 12px rgba(212, 175, 55, 0); }
}

@keyframes gamaBounceMascot {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.gama-launcher-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gama-accent);
  opacity: 0.6;
  animation: gamaPulseRing 2.6s infinite;
  pointer-events: none;
}

@keyframes gamaPulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.gama-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------
 * 2. WELCOME CALLOUT BUBBLE
 * ------------------------------------------------------------- */
.gama-launcher-callout {
  position: absolute;
  bottom: 84px;
  right: 0;
  width: 270px;
  background: var(--gama-bg);
  border: 1.5px solid var(--gama-accent);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(11, 43, 64, 0.15);
  color: var(--gama-primary);
  animation: gamaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gama-position-bottom-left .gama-launcher-callout {
  right: auto;
  left: 0;
}

.gama-callout-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--gama-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.gama-callout-close:hover {
  color: var(--gama-primary);
  background: rgba(0, 0, 0, 0.05);
}

.gama-callout-title {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--gama-primary);
}

.gama-callout-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gama-text);
}

/* -------------------------------------------------------------
 * 3. CHAT WINDOW MODAL (DESKTOP & FLOATING PANEL OVERLAY)
 * ------------------------------------------------------------- */
.gama-chat-window {
  position: absolute;
  bottom: 88px;
  right: 0;
  width: 540px;
  max-width: calc(100vw - 32px);
  height: auto;
  min-height: 480px;
  max-height: min(690px, calc(100vh - 100px));
  background: var(--gama-cream);
  border: 1.5px solid var(--gama-accent-border);
  border-radius: 28px;
  box-shadow: var(--gama-shadow-widget);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: gamaWindowIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gama-position-bottom-left .gama-chat-window {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

@keyframes gamaWindowIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gamaSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Handle Indicator (Hidden on Desktop) */
.gama-mobile-handle {
  display: none;
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  margin: 8px auto 2px auto;
}

/* -------------------------------------------------------------
 * 4. HEADER BAR
 * ------------------------------------------------------------- */
.gama-chat-header {
  background: linear-gradient(135deg, #052331 0%, #0B3045 50%, #0A3952 100%);
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
    linear-gradient(135deg, #052331 0%, #0B3045 50%, #0A3952 100%);
  color: #FFFFFF;
  padding: 16px 20px 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
}

.gama-header-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.gama-header-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gama-mascot-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.gama-mascot-subtitle {
  font-size: 13px;
  font-style: italic;
  font-family: "Playfair Display", Georgia, serif;
  color: #E8DCBE;
  letter-spacing: 0.2px;
  opacity: 0.95;
  margin-top: 1px;
}

.gama-header-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  width: 140px;
}

.gama-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.75));
}

.gama-header-divider .gama-divider-line:last-child {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.75), rgba(212, 175, 55, 0.2));
}

.gama-divider-gem {
  color: #D4AF37;
  font-size: 11px;
  line-height: 1;
}

.gama-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Circular Header Buttons */
.gama-header-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.gama-header-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Minimize Button: Dark teal circle with gold border & gold dash */
.gama-btn-minimize {
  background: rgba(5, 35, 49, 0.88);
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
}

.gama-btn-minimize:hover {
  background: rgba(11, 43, 64, 1);
  border-color: #E5C378;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* Close Button: Warm gold/amber circle with dark X */
.gama-btn-close {
  background: linear-gradient(135deg, #E6C575 0%, #CFA74E 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: #2C1F03;
}

.gama-btn-close:hover {
  background: linear-gradient(135deg, #F0D48B 0%, #D8B257 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* Sound and reset auxiliary buttons */
.gama-btn-sound,
.gama-btn-reset {
  background: transparent;
  color: #E2E8F0;
  opacity: 0.85;
}

.gama-btn-sound:hover,
.gama-btn-reset:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* -------------------------------------------------------------
 * 5. MESSAGE STREAM & WELCOME HERO SECTION
 * ------------------------------------------------------------- */
.gama-messages-stream {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 90% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
              var(--gama-cream);
}

/* Devotional Welcome Hero Container */
.gama-welcome-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
  width: 100%;
}

.gama-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
}

/* Mascot Cameo on Left */
.gama-hero-mascot {
  flex: 0 0 130px;
  width: 130px;
  border-radius: 24px 24px 12px 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gama-cameo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(11, 43, 64, 0.12));
  transition: transform 0.3s ease;
}

.gama-cameo-img:hover {
  transform: scale(1.02);
}

/* Speech / Greeting Bubble on Right */
.gama-greeting-bubble {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 18px;
  padding: 14px 18px;
  position: relative;
  box-shadow: 0 4px 14px rgba(11, 43, 64, 0.05);
  margin-top: 0;
}

/* Speech Bubble Left Tail */
.gama-greeting-bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid #FFFFFF;
  z-index: 2;
}

.gama-greeting-bubble::after {
  content: "";
  position: absolute;
  top: 23px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid rgba(212, 175, 55, 0.38);
  z-index: 1;
}

.gama-greeting-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gama-text-dark);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.gama-greeting-text {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin-bottom: 4px;
}

.gama-greeting-motif {
  position: absolute;
  bottom: 8px;
  right: 10px;
  opacity: 0.85;
}

/* -------------------------------------------------------------
 * 6. QUICK ACTIONS GRID (3x2 Desktop, 2x3 Mobile)
 * ------------------------------------------------------------- */
.gama-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  width: 100%;
}

/* Quick Action Button Card */
.gama-action-card {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(11, 43, 64, 0.04);
  cursor: pointer;
  text-decoration: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  min-width: 0;
}

.gama-action-card:hover {
  background: #FFFDF9;
  border-color: #D4AF37;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.22);
}

.gama-action-card:active {
  transform: scale(0.98);
  background: #FAF5EB;
}

.gama-action-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gama-action-icon svg {
  display: block;
}

.gama-action-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 11.2px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

.gama-action-arrow {
  color: #D4AF37;
  font-size: 15px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
}

/* -------------------------------------------------------------
 * 7. CHAT MESSAGE STREAM BUBBLES
 * ------------------------------------------------------------- */
.gama-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.gama-msg-user {
  align-self: flex-end;
}

.gama-msg-assistant {
  align-self: flex-start;
}

.gama-msg-bubble {
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 16px;
  word-break: break-word;
}

.gama-msg-user .gama-msg-bubble {
  background: var(--gama-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(11, 43, 64, 0.18);
}

.gama-msg-assistant .gama-msg-bubble {
  background: var(--gama-surface);
  color: var(--gama-text);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gama-msg-assistant .gama-msg-bubble a {
  color: #0369A1;
  font-weight: 600;
  text-decoration: underline;
}

.gama-msg-assistant .gama-msg-bubble strong {
  color: var(--gama-primary);
}

.gama-msg-assistant .gama-msg-bubble ul,
.gama-msg-assistant .gama-msg-bubble ol {
  margin: 6px 0;
  padding-left: 20px;
}

.gama-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 11px;
  color: var(--gama-muted);
  margin-top: 4px;
}

.gama-feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 12px;
  color: var(--gama-muted);
  border-radius: 4px;
  transition: all 0.2s;
}

.gama-feedback-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--gama-primary);
}

/* -------------------------------------------------------------
 * 8. PRODUCT RECOMMENDATION CARDS
 * ------------------------------------------------------------- */
.gama-cards-carousel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.gama-product-card {
  display: flex;
  background: var(--gama-surface);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.gama-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 43, 64, 0.12);
  border-color: var(--gama-accent);
}

.gama-card-thumb {
  width: 86px;
  min-width: 86px;
  background: #F8FAFC;
  position: relative;
}

.gama-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gama-card-body {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gama-card-title {
  margin: 0 0 2px 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gama-primary);
}

.gama-card-author {
  font-size: 11.5px;
  color: var(--gama-muted);
  margin-bottom: 4px;
}

.gama-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.gama-card-price {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F5132;
}

.gama-card-actions {
  display: flex;
  gap: 6px;
}

.gama-btn-card-cart,
.gama-btn-card-view {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.2s;
}

.gama-btn-card-cart {
  background: var(--gama-primary);
  color: #FFFFFF !important;
  border: 1px solid var(--gama-accent);
}

.gama-btn-card-cart:hover {
  background: var(--gama-primary-deep);
}

.gama-btn-card-view {
  background: var(--gama-bg);
  color: var(--gama-primary) !important;
  border: 1px solid var(--gama-border);
}

.gama-btn-card-view:hover {
  background: #EFE9DE;
  border-color: var(--gama-accent);
}

/* -------------------------------------------------------------
 * 9. TYPING INDICATOR
 * ------------------------------------------------------------- */
.gama-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: var(--gama-surface);
  border-radius: 14px;
  align-self: flex-start;
  margin: 0 18px 8px 18px;
  width: fit-content;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gama-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gama-primary);
  border-radius: 50%;
  animation: gamaBounceDot 1.4s infinite ease-in-out both;
}

.gama-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.gama-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes gamaBounceDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.gama-typing-text {
  font-size: 11.5px;
  color: var(--gama-muted);
  margin-left: 6px;
}

/* -------------------------------------------------------------
 * 10. CHAT INPUT BAR (CAPSULE DESIGN)
 * ------------------------------------------------------------- */
.gama-chat-form {
  padding: 10px 18px 14px 18px;
  background: transparent;
  border-top: none;
}

.gama-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 30px;
  padding: 4px 6px 4px 12px;
  box-shadow: 0 2px 10px rgba(11, 43, 64, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gama-input-wrapper:focus-within {
  border-color: var(--gama-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.gama-input-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: all 0.2s ease;
  outline: none;
  border-radius: 50%;
}

.gama-btn-attach:hover {
  color: var(--gama-primary);
}

.gama-btn-emoji:hover {
  transform: scale(1.15);
}

.gama-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--gama-text);
  resize: none;
  max-height: 80px;
  line-height: 1.4;
  padding: 7px 0;
}

.gama-input-field::placeholder {
  color: #94A3B8;
}

.gama-btn-mic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--gama-muted);
  transition: all 0.2s;
  padding: 0;
}

.gama-btn-mic:hover {
  color: var(--gama-primary);
  background: rgba(0, 0, 0, 0.05);
}

.gama-btn-mic.listening {
  color: #EF4444;
  animation: gamaPulseRing 1s infinite;
}

/* Circular Send Button with Paper Plane */
.gama-btn-send {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: none;
  background: var(--gama-primary-deep);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  box-shadow: 0 2px 8px rgba(5, 35, 49, 0.25);
}

.gama-btn-send:hover {
  background: #0B3D59;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(11, 43, 64, 0.35);
}

.gama-btn-send svg {
  transform: translate(1px, -1px);
}

/* -------------------------------------------------------------
 * 11. IN-WIDGET MODALS (CONFIRM & ORDER TRACKING)
 * ------------------------------------------------------------- */
.gama-confirm-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 31, 45, 0.65);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gamaFadeIn 0.2s ease;
}

@keyframes gamaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gama-confirm-card {
  background: var(--gama-cream);
  border: 2px solid var(--gama-accent);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  max-width: 330px;
}

.gama-confirm-card h4 {
  margin: 0 0 8px 0;
  color: var(--gama-primary);
  font-size: 17px;
  font-weight: 700;
}

.gama-confirm-card p {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: var(--gama-text);
  line-height: 1.45;
}

.gama-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gama-btn-confirm-yes {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.gama-btn-confirm-no {
  background: var(--gama-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------------------------------------
 * 12. RESPONSIVE BEHAVIOR (MOBILE & TABLET POLISH)
 * ------------------------------------------------------------- */

/* Tablet & Smaller Laptops */
@media (max-width: 991px) and (min-width: 641px) {
  .gama-chat-window {
    width: 480px;
  }
}

/* Mobile Portrait & Narrow Screens */
@media (max-width: 640px) {
  .gama-position-bottom-right,
  .gama-position-bottom-left {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .gama-launcher-btn {
    width: 60px;
    height: 60px;
  }

  .gama-launcher-avatar {
    width: 52px;
    height: 52px;
  }

  /* Floating Bottom-Sheet Panel over background */
  .gama-chat-window {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    margin: 0 auto;
    width: calc(100vw - 24px);
    max-width: 430px;
    max-height: calc(100dvh - 36px);
    border-radius: 26px;
    border: 1.5px solid var(--gama-accent-border);
    box-shadow: 0 16px 45px rgba(7, 31, 45, 0.4);
  }

  .gama-mobile-handle {
    display: block;
  }

  .gama-chat-header {
    padding: 8px 16px 12px 16px;
  }

  .gama-mascot-title {
    font-size: 20px;
  }

  .gama-mascot-subtitle {
    font-size: 11.5px;
  }

  .gama-hero-card {
    gap: 10px;
  }

  .gama-hero-mascot {
    flex: 0 0 95px;
    width: 95px;
  }

  .gama-greeting-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    margin-top: 6px;
  }

  .gama-greeting-title {
    font-size: 14px;
  }

  .gama-greeting-text {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 2 Columns x 3 Rows on Mobile */
  .gama-quick-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gama-action-card {
    min-height: 46px;
    padding: 7px 10px;
  }

  .gama-action-text {
    font-size: 11.5px;
  }

  .gama-chat-form {
    padding: 8px 14px max(10px, env(safe-area-inset-bottom, 12px)) 14px;
  }

  .gama-input-wrapper {
    padding: 3px 5px 3px 10px;
  }

  .gama-input-field {
    font-size: 13px;
  }

  .gama-btn-send {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
