/* ============================================
   Priya — Organic Urban Skin Guide
   Chat Widget Styles
   Brand-first, warm, premium feel
   ============================================ */

:root {
  --chat-bg: #faf8f5;
  --chat-bg-warm: #f5f0e8;
  --chat-header: linear-gradient(135deg, #f7f3ed 0%, #ede5d8 100%);
  --chat-accent: #1f4d41;
  --chat-accent-light: #2d5a4f;
  --chat-text: #2b2520;
  --chat-text-muted: #7a7168;
  --chat-border: #e8e1d7;
  --chat-bubble-bot: #ffffff;
  --chat-bubble-user: linear-gradient(135deg, #1f4d41 0%, #2d5a4f 100%);
  --chat-shadow: 0 20px 50px rgba(30, 25, 20, 0.15);
  --chat-radius: 24px;
  /* Use site-wide font tokens for consistency */
  --chat-font: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
}

/* ============================================
   Container & Button
   ============================================ */
.ou-chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  /* Must stay below cart/search/mobile-nav overlays */
  z-index: var(--z-chatbot, 9000);
  font-family: var(--chat-font);
}

.ou-chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--chat-accent) 0%, var(--chat-accent-light) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 77, 65, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Subtle pulsing animation */
  animation: chatbotButtonPulse 3s ease-in-out infinite;
}

@keyframes chatbotButtonPulse {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(31, 77, 65, 0.3);
  }

  50% {
    box-shadow: 0 10px 32px rgba(31, 77, 65, 0.45);
  }
}

.ou-chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(31, 77, 65, 0.4);
  animation: none;
}

.ou-chatbot-button svg {
  width: 28px;
  height: 28px;
}

/* Hide button when panel is open */
.ou-chatbot.open .ou-chatbot-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  animation: none;
}

/* ============================================
   Panel
   ============================================ */
.ou-chatbot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-height: 600px;
  background: var(--chat-bg);
  border-radius: var(--chat-radius);
  box-shadow: var(--chat-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--chat-border);
}

.ou-chatbot.open .ou-chatbot-panel {
  display: flex;
  animation: panelSlideIn 0.35s ease forwards;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   Header with Avatar
   ============================================ */
.ou-chatbot-header {
  padding: 16px 20px;
  background: var(--chat-header);
  border-bottom: 1px solid var(--chat-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ou-chatbot-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8dfd3 0%, #f1ece4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-photo.avatar-fallback .avatar-fallback-icon,
.avatar-photo:not(:has(img)) .avatar-fallback-icon {
  font-size: 22px;
}

.avatar-photo img+.avatar-fallback-icon {
  display: none;
}

.avatar-fallback-icon {
  font-size: 22px;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chat-text);
  line-height: 1.2;
}

.avatar-subtitle {
  font-size: 0.8rem;
  color: var(--chat-text-muted);
  font-weight: 400;
}

.ou-chatbot-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--chat-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ou-chatbot-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--chat-text);
}

/* ============================================
   Messages Body
   ============================================ */
.ou-chatbot-body {
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--chat-bg);
  min-height: 280px;
  max-height: 350px;
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on iOS */
  overscroll-behavior: contain;
  /* Prevent scroll chaining */
  scroll-behavior: smooth;
}

/* Message Container */
.ou-chatbot-message {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: messageSlideIn 0.3s ease forwards;
}

@keyframes messageSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ou-chatbot-message.bot {
  justify-content: flex-start;
  align-items: flex-end;
}

.ou-chatbot-message.user {
  justify-content: flex-end;
}

/* Message Avatar (Bot only) */
.message-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8dfd3 0%, #f1ece4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.ou-chatbot-message.user .message-avatar {
  display: none;
}

/* Message Content */
.message-content {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 768px) {

  .ou-chatbot-body .message-content,
  .message-content {
    max-width: 90% !important;
    min-width: 70% !important;
  }

  .ou-chatbot-body .ou-chatbot-message.user .message-content,
  .ou-chatbot-message.user .message-content {
    max-width: 94% !important;
    min-width: 75% !important;
  }

  .ou-chatbot-message {
    margin-bottom: 6px !important;
  }
}

.message-text {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .message-text {
    padding: 16px 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
  }
}

/* Bot Message Style */
.ou-chatbot-message.bot .message-text {
  background: var(--chat-bubble-bot);
  border: 1px solid var(--chat-border);
  color: var(--chat-text);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Consecutive bot messages */
.ou-chatbot-message.bot+.ou-chatbot-message.bot {
  margin-top: -4px;
}

.ou-chatbot-message.bot+.ou-chatbot-message.bot .message-avatar {
  visibility: hidden;
}

.ou-chatbot-message.bot+.ou-chatbot-message.bot .message-text {
  border-radius: 20px 20px 20px 6px;
}

/* User Message Style */
.ou-chatbot-message.user .message-text {
  background: var(--chat-bubble-user);
  color: #fff;
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 4px 12px rgba(31, 77, 65, 0.2);
}

/* ============================================
   Typing Indicator
   ============================================ */
.ou-chatbot-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 12px;
  background: var(--chat-bg);
}

.typing-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8dfd3 0%, #f1ece4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.typing-avatar-icon {
  font-size: 14px;
}

.typing-content {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chat-bubble-bot);
  border: 1px solid var(--chat-border);
  border-radius: 20px;
  padding: 10px 14px;
}

.typing-name {
  font-size: 0.8rem;
  color: var(--chat-text-muted);
  font-weight: 500;
}

.typing-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chat-accent);
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ============================================
   Dynamic Suggestions
   ============================================ */
.ou-chatbot-suggestions {
  padding: 0 16px 12px;
  background: var(--chat-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggestion-chip {
  background: #ffffff;
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--chat-text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.suggestion-chip:hover {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
  transform: translateY(-1px);
}

/* ============================================
   Input Footer
   ============================================ */
.ou-chatbot-footer {
  padding: 12px 16px 16px;
  background: var(--chat-bg-warm);
  border-top: 1px solid var(--chat-border);
}

.input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ou-chatbot-input {
  flex: 1;
  border: 1px solid var(--chat-border);
  background: #ffffff;
  border-radius: 24px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--chat-text);
  transition: all 0.2s ease;
}

.ou-chatbot-input::placeholder {
  color: var(--chat-text-muted);
}

.ou-chatbot-input:focus {
  outline: none;
  border-color: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(31, 77, 65, 0.1);
}

.ou-chatbot-send {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--chat-accent);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ou-chatbot-send:hover {
  background: var(--chat-accent-light);
  transform: scale(1.05);
}

.ou-chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ou-chatbot-send svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Input Meta */
.input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  align-items: center;
  padding: 0 4px;
}

.input-secure {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--chat-text-muted);
}

.input-secure svg {
  opacity: 0.6;
}

.expert-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--chat-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.expert-link:hover {
  background: rgba(31, 77, 65, 0.08);
}

/* ============================================
   Quick Action Buttons
   ============================================ */
.quick-actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 8px 38px;
  margin-top: -4px;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  border: 1px solid var(--chat-border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--chat-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--chat-font);
}

.quick-action-btn:hover {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 77, 65, 0.2);
}

.quick-action-btn:hover svg {
  stroke: #fff;
}

.quick-action-btn svg {
  flex-shrink: 0;
  stroke: var(--chat-accent);
  transition: stroke 0.2s ease;
}

.quick-action-btn span {
  white-space: nowrap;
}

/* Mobile adjustments for quick actions */
@media (max-width: 768px) {
  .quick-actions-container {
    padding-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .quick-action-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: auto;
    flex: 0 1 auto;
  }
}

/* ============================================
   Escalation Banner
   ============================================ */
.escalation-banner {
  margin: 8px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3d4 100%);
  border: 1px solid #f5d77a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.escalation-icon {
  font-size: 20px;
}

.escalation-text {
  flex: 1;
  font-size: 0.85rem;
  color: #8b6914;
  line-height: 1.4;
}

.escalation-btn {
  background: var(--chat-accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.escalation-btn:hover {
  background: var(--chat-accent-light);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {

  #ouChatbot.ou-chatbot,
  .ou-chatbot {
    z-index: var(--z-chatbot, 9000);
    /* Wrapper positioning matters less for the fixed panel, but keep it constrained */
  }

  .ou-chatbot-button {
    width: 56px !important;
    height: 56px !important;
    background: #1f4d41 !important;
    /* Solid Green */
    box-shadow: 0 4px 12px rgba(31, 77, 65, 0.3) !important;

    /* Ensure button stays reachable if closed */
    position: fixed;
    right: 16px;
    bottom: calc(var(--mobile-bottom-nav-height, 64px) + 20px + env(safe-area-inset-bottom));
  }

  .ou-chatbot-button svg {
    width: 20px;
    height: 20px;
  }

  /* Structural Fix: Panel is Fixed + Flex Column */
  .ou-chatbot-panel {
    display: none;
    /* Hidden by default */
  }

  .ou-chatbot.open .ou-chatbot-panel {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;

    /* Anchors - Key Fix for Viewport Conflict */
    top: 60px !important;
    /* Header height */
    left: 0 !important;
    right: 0 !important;
    /* Bottom is nav height + safe area */
    bottom: calc(var(--mobile-bottom-nav-height, 64px) + env(safe-area-inset-bottom)) !important;

    /* Dimensions */
    width: 100% !important;
    height: auto !important;
    /* Let anchors determine height */
    max-height: none !important;

    /* Reset & Decor */
    background: #faf8f5 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    /* Contain scrolls */
    z-index: 9999 !important;
  }

  /* Header: Fixed height, no shrink */
  .ou-chatbot-header {
    flex: 0 0 auto !important;
    padding: 12px 16px !important;
    padding-top: max(16px, calc(env(safe-area-inset-top) + 12px)) !important;
    position: relative !important;
    z-index: 2 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #faf8f5 !important;
  }

  .ou-chatbot-header .avatar-subtitle,
  .avatar-subtitle {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin-top: 1px !important;
    color: var(--chat-text-muted) !important;
  }

  /* Body: Flex grow, scrolls itself */
  .ou-chatbot-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    /* Crucial for flex scrolling */
    max-height: none !important;
    height: auto !important;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;

    padding: 16px 14px !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
  }

  .ou-chatbot-message {
    gap: 8px !important;
    margin-bottom: 1px !important;
    flex-shrink: 0 !important;
    /* Prevent message squashing */
  }

  /* Footer: No shrink, stay at bottom of flex container */
  .ou-chatbot-footer {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #fff !important;
    position: relative !important;
  }

  .ou-chatbot-footer .input-wrapper,
  .input-wrapper {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    gap: 8px !important;
  }

  .ou-chatbot-input {
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
    border: 1px solid #e1e1e1 !important;
  }

  .ou-chatbot-send {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
  }

  .ou-chatbot-footer .input-meta,
  .input-meta {
    display: none !important;
  }

  /* Mobile Message Styles */
  .ou-chatbot-body .message-content,
  .message-content {
    max-width: 88% !important;
    min-width: unset !important;
  }

  .ou-chatbot-body .ou-chatbot-message.user .message-content,
  .ou-chatbot-message.user .message-content {
    max-width: 88% !important;
    min-width: unset !important;
  }

  .message-text {
    padding: 12px 16px !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    border-radius: 18px !important;
  }

  .message-time {
    font-size: 11px !important;
    opacity: 0.6 !important;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
  }

  .message-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-bubble-animate {
  animation: bubbleIn 0.25s ease forwards;
}

/* ============================================
   Product Cards - SCOPED TO CHATBOT ONLY
   IMPORTANT: All selectors prefixed with .ou-chatbot-panel
   to prevent bleeding into site-wide .product-card styles
   ============================================ */
.ou-chatbot-panel .product-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 8px 38px;
  margin-top: -4px;
}

/* CHATBOT-ONLY product card - horizontal layout for chat context */
.ou-chatbot-panel .product-card {
  display: flex;
  flex-direction: row;
  /* Horizontal for chatbot */
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.2s ease;
  animation: bubbleIn 0.25s ease forwards;
}

.ou-chatbot-panel .product-card:hover {
  border-color: var(--chat-accent);
  box-shadow: 0 4px 12px rgba(31, 77, 65, 0.1);
}

.ou-chatbot-panel .product-card-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ou-chatbot-panel .product-card-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--chat-bg-warm);
}

.ou-chatbot-panel .product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f0e8 0%, #ede5d8 100%);
}

/* Product Badges - Chatbot */
.ou-chatbot-panel .product-badges {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ou-chatbot-panel .product-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ou-chatbot-panel .badge-bestseller {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.ou-chatbot-panel .badge-new {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.ou-chatbot-panel .badge-featured {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.ou-chatbot-panel .product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ou-chatbot-panel .product-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--chat-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Rating - Chatbot */
.ou-chatbot-panel .product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0;
}

.ou-chatbot-panel .rating-stars {
  display: flex;
  gap: 1px;
}

.ou-chatbot-panel .star {
  font-size: 0.7rem;
  line-height: 1;
}

.ou-chatbot-panel .star-full {
  color: #f59e0b;
}

.ou-chatbot-panel .star-half {
  color: #f59e0b;
  opacity: 0.6;
}

.ou-chatbot-panel .star-empty {
  color: #d1d5db;
}

.ou-chatbot-panel .rating-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--chat-text);
}

.ou-chatbot-panel .rating-count {
  font-size: 0.65rem;
  color: var(--chat-text-muted);
}

.ou-chatbot-panel .product-card-benefit {
  font-size: 0.7rem;
  color: var(--chat-text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ou-chatbot-panel .product-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.ou-chatbot-panel .price-current {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--chat-accent);
}

.ou-chatbot-panel .price-mrp {
  font-size: 0.7rem;
  color: var(--chat-text-muted);
  text-decoration: line-through;
}

.ou-chatbot-panel .price-discount {
  font-size: 0.6rem;
  color: #16a34a;
  font-weight: 600;
  background: #dcfce7;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Product Action Buttons - Chatbot */
.ou-chatbot-panel .product-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.ou-chatbot-panel .product-card-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  flex: 1;
}

.ou-chatbot-panel .btn-view {
  background: transparent;
  color: var(--chat-accent);
  border: 1px solid var(--chat-accent);
}

.ou-chatbot-panel .btn-view:hover {
  background: var(--chat-accent);
  color: #fff;
}

.ou-chatbot-panel .btn-cart {
  background: var(--chat-accent);
  color: #fff;
  border: 1px solid var(--chat-accent);
}

.ou-chatbot-panel .btn-cart:hover {
  background: var(--chat-accent-light);
  transform: translateY(-1px);
}

/* ============================================
   Skin Type Selection Buttons - Chatbot
   ============================================ */
.ou-chatbot-panel .skin-type-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 8px 38px;
  margin-top: -4px;
}

.ou-chatbot-panel .skin-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #ffffff;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  min-width: 120px;
  flex: 1;
  max-width: calc(50% - 4px);
}

.ou-chatbot-panel .skin-type-btn:hover {
  border-color: var(--chat-accent);
  background: linear-gradient(135deg, #f7f3ed 0%, #ffffff 100%);
  transform: translateY(-1px);
}

.ou-chatbot-panel .skin-type-btn:active {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
}

.ou-chatbot-panel .skin-type-btn:active .skin-type-label,
.ou-chatbot-panel .skin-type-btn:active .skin-type-desc {
  color: #fff;
}

.ou-chatbot-panel .skin-type-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chat-text);
  line-height: 1.2;
}

.ou-chatbot-panel .skin-type-desc {
  font-size: 0.7rem;
  color: var(--chat-text-muted);
  line-height: 1.3;
}

/* ============================================
   Concern Selection Buttons - Chatbot
   ============================================ */
.ou-chatbot-panel .concern-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 8px 38px;
  margin-top: -4px;
}

.ou-chatbot-panel .concern-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #ffffff;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  min-width: 110px;
  flex: 1;
  max-width: calc(50% - 4px);
}

.ou-chatbot-panel .concern-btn:hover {
  border-color: var(--chat-accent);
  background: linear-gradient(135deg, #f7f3ed 0%, #ffffff 100%);
  transform: translateY(-1px);
}

.ou-chatbot-panel .concern-btn:active {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
}

.ou-chatbot-panel .concern-btn:active .concern-label,
.ou-chatbot-panel .concern-btn:active .concern-desc {
  color: #fff;
}

.ou-chatbot-panel .concern-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--chat-text);
  line-height: 1.2;
}

.ou-chatbot-panel .concern-desc {
  font-size: 0.68rem;
  color: var(--chat-text-muted);
  line-height: 1.3;
}

/* ============================================
   Follow-up Suggestions - Chatbot
   ============================================ */
.ou-chatbot-panel .follow-up-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 8px 38px;
  margin-top: 4px;
}

.ou-chatbot-panel .follow-up-btn {
  background: linear-gradient(135deg, #f7f3ed 0%, #ffffff 100%);
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  padding: 7px 12px;
  font-size: 0.75rem;
  color: var(--chat-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: var(--chat-font);
}

.ou-chatbot-panel .follow-up-btn:hover {
  background: var(--chat-accent);
  color: #fff;
  border-color: var(--chat-accent);
  transform: translateY(-1px);
}

/* Mobile adjustments for chatbot product cards and buttons */
@media (max-width: 768px) {
  .ou-chatbot-panel .product-cards-container {
    padding-left: 0;
  }

  .ou-chatbot-panel .product-card {
    padding: 10px;
    gap: 10px;
  }

  .ou-chatbot-panel .product-card-image {
    width: 70px;
    height: 70px;
  }

  .ou-chatbot-panel .product-card-actions {
    gap: 4px;
  }

  .ou-chatbot-panel .product-card-btn {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .ou-chatbot-panel .skin-type-buttons-container {
    padding-left: 0;
  }

  .ou-chatbot-panel .skin-type-btn {
    min-width: 100px;
    padding: 8px 12px;
  }

  .ou-chatbot-panel .concern-buttons-container {
    padding-left: 0;
  }

  .ou-chatbot-panel .concern-btn {
    min-width: 90px;
    padding: 8px 10px;
  }

  .ou-chatbot-panel .follow-up-suggestions {
    padding-left: 0;
    justify-content: center;
  }

  .ou-chatbot-panel .follow-up-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}