/**
 * Chat Robot Widget Styles
 */

/* Chat Button */
.chat-robot-button {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.5);
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 14px;
  animation: pulseGlow 2s ease-in-out infinite;
  visibility: visible !important;
  opacity: 1 !important;
}

.chat-robot-button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.3;
  z-index: -1;
  animation: ripple 2s ease-out infinite;
  pointer-events: none;
}

.chat-robot-button::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.2;
  z-index: -2;
  animation: ripple 2s ease-out infinite 0.5s;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6), 0 0 0 8px rgba(102, 126, 234, 0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.chat-robot-button img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 10;
  display: block;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.chat-robot-button:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6), 0 0 0 4px rgba(102, 126, 234, 0.2);
  animation: none;
}

.chat-robot-button:hover::before,
.chat-robot-button:hover::after {
  animation: none;
  opacity: 0;
}

.chat-robot-button:hover img {
  transform: scale(1.1) rotate(-5deg);
  animation: none;
}

.chat-robot-button:active {
  transform: scale(1.05);
  box-shadow: 0 2px 15px rgba(102, 126, 234, 0.5);
}

.chat-robot-button.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 20px rgba(240, 147, 251, 0.5), 0 0 0 0 rgba(240, 147, 251, 0.6);
  animation: pulseGlowActive 2s ease-in-out infinite;
}

@keyframes pulseGlowActive {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.5), 0 0 0 0 rgba(240, 147, 251, 0.6);
  }
  50% {
    box-shadow: 0 4px 25px rgba(240, 147, 251, 0.7), 0 0 0 8px rgba(240, 147, 251, 0);
  }
}

.chat-robot-button.active::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chat-robot-button.active::after {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chat-robot-button.chat-robot-position-right {
  right: 20px;
  left: auto;
}

.chat-robot-button.chat-robot-position-left {
  right: auto;
  left: 20px;
}

/* Chat Window */
.chat-robot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 600px;
  max-height: calc(100vh - 110px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.chat-robot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-robot-window.chat-robot-position-right {
  right: 20px;
  left: auto;
}

.chat-robot-window.chat-robot-position-left {
  right: auto;
  left: 20px;
}

/* Chat Header */
.chat-robot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.chat-robot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.chat-robot-title-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: invert(1);
}

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

.chat-robot-new-chat {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 6px;
  font-size: 14px;
  width: 24px;
  height: 24px;
}
.chat-robot-new-chat img {
  filter: brightness(0) invert(1);
}

.chat-robot-new-chat:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chat-robot-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  width: 24px;
  height: 24px;
}

.chat-robot-close img {
  filter: brightness(0) invert(1);
}

.chat-robot-close:hover {
  transform: rotate(90deg);
}

/* Messages Container */
.chat-robot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f5f7fa;
	font-size: 14px;
}

.chat-robot-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-robot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-robot-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.chat-robot-messages::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Welcome Message */
.chat-robot-welcome {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.chat-robot-welcome-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
}

.chat-robot-welcome p {
  font-size: 16px;
  margin: 0;
}

/* Message */
.chat-robot-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

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

.chat-robot-message-user {
  flex-direction: row-reverse;
}

.chat-robot-message-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 10px;
}

.chat-robot-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-robot-message-user .chat-robot-message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-robot-message-user .chat-robot-message-avatar img {
  filter: brightness(0) invert(1);
}

.chat-robot-message-assistant .chat-robot-message-avatar {
  background: #e0e0e0;
}

.chat-robot-message-content {
  flex: 1;
  min-width: 0;
}

.chat-robot-message-text {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  word-wrap: break-word;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Markdown Styles */
.chat-robot-message-text p {
  margin: 0 0 8px 0;
}

.chat-robot-message-text p:last-child {
  margin-bottom: 0;
}

.chat-robot-message-text strong,
.chat-robot-message-text b {
  font-weight: 600;
  color: inherit;
}

.chat-robot-message-text em,
.chat-robot-message-text i {
  font-style: italic;
  color: inherit;
}

.chat-robot-message-text code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.chat-robot-message-user .chat-robot-message-text code {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chat-robot-message-text pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid #e0e0e0;
	direction: ltr;
}

.chat-robot-message-user .chat-robot-message-text pre {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-robot-message-text pre code {
  background: transparent;
  padding: 0;
  color: #333;
  font-size: 0.85em;
  line-height: 1.5;
}

.chat-robot-message-user .chat-robot-message-text pre code {
  color: #fff;
}

.chat-robot-message-text a {
  color: #FFF;
  text-decoration: none;
  transition: border-color 0.2s;
}

.chat-robot-message-text a:hover {
  border-bottom-color: #667eea;
}

.chat-robot-message-user .chat-robot-message-text a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.chat-robot-message-user .chat-robot-message-text a:hover {
  border-bottom-color: #fff;
}

.chat-robot-message-text ul,
.chat-robot-message-text ol {
  margin: 8px 0;
  padding-right: 24px;
  padding-left: 0;
}

.chat-robot-message-text li {
  margin: 4px 0;
  line-height: 1.6;
}

.chat-robot-message-text ul {
  list-style-type: disc;
}

.chat-robot-message-text ol {
  list-style-type: decimal;
}

.chat-robot-message-user .chat-robot-message-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.chat-robot-message-assistant .chat-robot-message-text {
  background: #fff;
  color: #333;
}

.chat-robot-message.error .chat-robot-message-text {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.chat-robot-message-time {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-robot-message-user .chat-robot-message-time {
  text-align: right;
}

/* Typing Indicator */
.chat-robot-typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-robot-typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  animation: typing 1.4s infinite;
}

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

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

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

/* Input Container */
.chat-robot-input-container {
  padding: 10px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-robot-input-container > *:first-child {
  order: 2;
}

.chat-robot-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: 100%;
}

.chat-robot-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 10px !important;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.2s;
}

.chat-robot-input:focus {
  border-color: #667eea;
}

.chat-robot-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 10px;
}

.chat-robot-send img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-robot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-robot-send:active {
  transform: scale(0.95);
}

/* Image Upload Button */
.chat-robot-image-upload {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 8px;
}

.chat-robot-image-upload img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.6) contrast(1);
  transition: filter 0.2s;
}

.chat-robot-image-upload:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.chat-robot-image-upload:hover img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0) contrast(1);
}

.chat-robot-image-upload:active {
  transform: scale(0.95);
}

/* Powered By Badge */
.chat-robot-powered-by {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	padding: 2px;
	font-size: 8px;
	color: #7070e0;
	text-decoration: none;
	border-top: 1px solid #e5e7eb;
	background: #fafbff;
	transition: color 0.2s ease, filter 0.2s ease;
}

.chat-robot-powered-by:hover {
  color: #c470e0;
}

.chat-robot-powered-by-icon {
  width: 12px;
  height: 12px;
  display: block;
  filter: brightness(0) saturate(100%) invert(55%) sepia(26%) saturate(6283%) hue-rotate(215deg) brightness(88%) contrast(92%);
}

.chat-robot-powered-by:hover .chat-robot-powered-by-icon {
  filter: brightness(0) saturate(100%) invert(49%) sepia(69%) saturate(522%) hue-rotate(226deg) brightness(93%) contrast(95%);
}

.chat-robot-powered-by-text {
  white-space: nowrap;
  position: relative;
	font-weight: 600;
  overflow: hidden;
}

.chat-robot-powered-by-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.chat-robot-window.chat-robot-dark .chat-robot-powered-by {
  background: #111827;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
}

.chat-robot-window.chat-robot-dark .chat-robot-powered-by:hover {
  color: #ebafff;
}

.chat-robot-window.chat-robot-dark .chat-robot-powered-by-text::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 24, 39, 0.4),
    transparent
  );
}

.chat-robot-window.chat-robot-dark .chat-robot-powered-by-icon {
  filter: brightness(0) saturate(100%) invert(84%) sepia(12%) saturate(534%) hue-rotate(188deg) brightness(95%) contrast(92%);
}

.chat-robot-window.chat-robot-dark .chat-robot-powered-by:hover .chat-robot-powered-by-icon {
  filter: brightness(0) saturate(100%) invert(76%) sepia(62%) saturate(460%) hue-rotate(207deg) brightness(102%) contrast(91%);
}

/* Image Preview Container */
.chat-robot-image-preview-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.chat-robot-image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.chat-robot-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-robot-image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
}

.chat-robot-image-preview-remove:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Progress Overlay */
.chat-robot-image-preview-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.chat-robot-progress-circle {
  width: 40px;
  height: 40px;
}

.chat-robot-progress-circle-fill {
  transition: stroke-dashoffset 0.3s ease;
}

/* Dark theme for progress */
.chat-robot-dark .chat-robot-image-preview-progress {
  background: rgba(0, 0, 0, 0.7);
}

.chat-robot-dark .chat-robot-progress-circle circle:first-child {
  stroke: rgba(255, 255, 255, 0.2);
}

.chat-robot-dark .chat-robot-progress-circle-fill {
  stroke: #fff;
}

/* Message Images */
.chat-robot-message-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-robot-message-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  max-width: 300px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-robot-message-image-wrapper:hover {
  transform: scale(1.02);
}

.chat-robot-message-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.chat-robot-message-user .chat-robot-message-image-wrapper {
  margin-left: auto;
  margin-right: 0;
}

.chat-robot-message-assistant .chat-robot-message-image-wrapper {
  margin-left: 0;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 480px) {
  .chat-robot-window {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
  }

  .chat-robot-button {
    bottom: 15px;
    right: 15px;
    width: 56px;
    height: 56px;
  }

  .chat-robot-window {
    bottom: 80px;
  }
}

/* Product Cards */
.chat-robot-product-card-wrapper {
  margin: 16px 0;
}

.chat-robot-product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.chat-robot-product-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  animation: productCardFadeIn 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.chat-robot-product-card-link:hover .chat-robot-product-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.chat-robot-product-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.chat-robot-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.chat-robot-product-card-link:hover .chat-robot-product-image img {
  transform: scale(1.08);
}

.chat-robot-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  background: #f8f9fa;
}

.chat-robot-product-placeholder svg {
  width: 60px;
  height: 60px;
}

.chat-robot-product-placeholder-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #667eea;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 4px;
  vertical-align: middle;
}

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

.chat-robot-product-info {
	background: #f3f2ff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-robot-dark .chat-robot-product-info {
	background: rgb(0 0 0 / 25%);
}
.chat-robot-product-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-robot-product-description {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-robot-product-price-container {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.chat-robot-product-price {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  direction: ltr;
  text-align: left;
}

.chat-robot-product-old-price {
  font-size: 16px;
  color: #adb5bd;
  text-decoration: line-through;
  direction: ltr;
  text-align: left;
}

.chat-robot-product-button {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  pointer-events: none; /* Prevent button from intercepting clicks */
}

.chat-robot-product-card-link:hover .chat-robot-product-button {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chat-robot-inline-link {
  color: #4c51bf;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(76, 81, 191, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.chat-robot-inline-link:hover {
  color: #2b6cb0;
  text-decoration-color: rgba(43, 108, 176, 0.7);
}

/* Dark theme for product cards */
.chat-robot-dark .chat-robot-product-card {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-robot-dark .chat-robot-product-card-link:hover .chat-robot-product-card {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.chat-robot-dark .chat-robot-product-image {
  background: #1a202c;
}

.chat-robot-dark .chat-robot-product-placeholder {
  background: #1a202c;
  color: #4a5568;
}

.chat-robot-dark .chat-robot-product-title {
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-product-description {
  color: #a0aec0;
}

/* Page, Article, Category Cards - Similar to Product Cards */
.chat-robot-page-card,
.chat-robot-article-card,
.chat-robot-category-card {
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  animation: productCardFadeIn 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.chat-robot-page-card:hover,
.chat-robot-article-card:hover,
.chat-robot-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.chat-robot-page-title,
.chat-robot-article-title,
.chat-robot-category-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  line-height: 1.4;
}

.chat-robot-page-description,
.chat-robot-article-description,
.chat-robot-category-description {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-robot-article-image {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
}

.chat-robot-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.chat-robot-article-card:hover .chat-robot-article-image img {
  transform: scale(1.08);
}

.chat-robot-page-button,
.chat-robot-article-button,
.chat-robot-category-button {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  border: none;
  cursor: pointer;
}

.chat-robot-page-button:hover,
.chat-robot-article-button:hover,
.chat-robot-category-button:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: #fff;
  text-decoration: none;
}

.chat-robot-page-placeholder-loading,
.chat-robot-article-placeholder-loading,
.chat-robot-category-placeholder-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #667eea;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 4px;
  vertical-align: middle;
}

/* Dark theme for page, article, category cards */
.chat-robot-dark .chat-robot-page-card,
.chat-robot-dark .chat-robot-article-card,
.chat-robot-dark .chat-robot-category-card {
  background: #2d3748;
  border-color: #4a5568;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-robot-dark .chat-robot-page-card:hover,
.chat-robot-dark .chat-robot-article-card:hover,
.chat-robot-dark .chat-robot-category-card:hover {
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.chat-robot-dark .chat-robot-page-title,
.chat-robot-dark .chat-robot-article-title,
.chat-robot-dark .chat-robot-category-title {
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-page-description,
.chat-robot-dark .chat-robot-article-description,
.chat-robot-dark .chat-robot-category-description {
  color: #a0aec0;
}

.chat-robot-dark .chat-robot-article-image {
  background: #1a202c;
}

.chat-robot-dark .chat-robot-product-price {
  color: #667eea;
}

.chat-robot-dark .chat-robot-product-old-price {
  color: #718096;
}

.chat-robot-dark .chat-robot-product-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-robot-dark .chat-robot-product-button:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive product cards */
@media (max-width: 480px) {
  .chat-robot-product-image {
    height: 180px;
  }

  .chat-robot-product-info {
    padding: 12px;
  }

  .chat-robot-product-title {
    font-size: 16px;
  }

  .chat-robot-product-description {
    font-size: 13px;
  }

  .chat-robot-product-price {
    font-size: 18px;
  }

  .chat-robot-product-button {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Dark Theme */
.chat-robot-dark .chat-robot-window {
  background: #1e1e1e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.chat-robot-dark .chat-robot-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.chat-robot-dark .chat-robot-messages {
  background: #1e1e1e;
}

.chat-robot-dark .chat-robot-welcome {
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-welcome-icon {
  filter: invert(100%);
}

.chat-robot-dark .chat-robot-input-container {
  background: #2d3748;
  border-top: 1px solid #4a5568;
}

.chat-robot-dark .chat-robot-input {
  background: #2d3748;
  color: #e2e8f0;
  border-color: #4a5568;
}

.chat-robot-dark .chat-robot-input:focus {
  border-color: #667eea;
  background: #374151;
}

.chat-robot-dark .chat-robot-input::placeholder {
  color: #9ca3af;
}

.chat-robot-dark .chat-robot-image-upload {
  background: #374151;
  border-color: #4a5568;
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-image-upload img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(1) contrast(1);
}

.chat-robot-dark .chat-robot-image-upload:hover {
  background: #4a5568;
}

.chat-robot-dark .chat-robot-image-upload:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(1) contrast(1);
}

.chat-robot-dark .chat-robot-image-preview-container {
  background: #2d3748;
}

.chat-robot-dark .chat-robot-image-preview {
  border-color: #4a5568;
}

.chat-robot-dark .chat-robot-send {
  background: #667eea;
  color: #fff;
}

.chat-robot-dark .chat-robot-send:hover {
  background: #5568d3;
}

.chat-robot-dark .chat-robot-send:disabled {
  background: #4a5568;
  color: #9ca3af;
}

.chat-robot-dark .chat-robot-message-text {
  background: #2d3748;
  color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.chat-robot-dark .chat-robot-message-assistant .chat-robot-message-text {
  background: #2d3748;
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-message.error .chat-robot-message-text {
  background: #742a2a;
  color: #fca5a5;
  border: 1px solid #991b1b;
}

.chat-robot-dark .chat-robot-message-time {
  color: #9ca3af;
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-robot-dark .chat-robot-message-assistant .chat-robot-message-avatar {
  background: #374151;
}

.chat-robot-dark .chat-robot-message-assistant .chat-robot-message-avatar img {
  filter: brightness(0) invert(1);
}

/* Dark Theme - Markdown Styles */
.chat-robot-dark .chat-robot-message-text code {
  background: rgba(0, 0, 0, 0.3);
  color: #f472b6;
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-text code {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chat-robot-dark .chat-robot-message-text pre {
  background: #1a1a1a;
  border: 1px solid #374151;
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-text pre {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-robot-dark .chat-robot-message-text pre code {
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-text pre code {
  color: #fff;
}

.chat-robot-dark .chat-robot-message-text a {
  color: #FFF;
}

.chat-robot-dark .chat-robot-message-user .chat-robot-message-text a {
  color: #fff;
}

/* Dark Theme - Loading */
.chat-robot-dark .chat-robot-loading .chat-robot-message-text {
  background: #2d3748;
}

.chat-robot-dark .chat-robot-loading-dot {
  background: #9ca3af;
}

/* Retry Button Styles */
.chat-robot-retry-button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.chat-robot-retry-button img {
  width: 14px;
	height: 14px;
	filter: brightness(0) invert(1);
}

.chat-robot-retry-button:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.chat-robot-retry-button:active {
  transform: translateY(0);
}

.chat-robot-retry-button svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-left: 4px;
}

.chat-robot-dark .chat-robot-retry-button {
  background: #1976d2;
}

.chat-robot-dark .chat-robot-retry-button:hover {
  background: #1565c0;
}

/* Dark Theme - New Chat Button */
.chat-robot-dark .chat-robot-new-chat {
  background: rgba(255, 255, 255, 0.15);
}

.chat-robot-dark .chat-robot-new-chat:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Quick Reply Buttons */
.chat-robot-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.chat-robot-quick-reply-button {
  padding: 10px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  color: #495057;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
}

.chat-robot-quick-reply-button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-robot-quick-reply-button:active {
  transform: translateY(0);
}

/* Dark theme for quick replies */
.chat-robot-dark .chat-robot-quick-replies {
  border-top-color: #4a5568;
}

.chat-robot-dark .chat-robot-quick-reply-button {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

.chat-robot-dark .chat-robot-quick-reply-button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #667eea;
}

/* Contact Information Cards */
.chat-robot-contact-card {
  margin: 10px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.chat-robot-contact-link {
  display: flex;
  align-items: center;
  padding: 0;
  text-decoration: none;
  color: inherit;
  gap: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: none;
  min-width: 0;
  background: transparent;
}

.chat-robot-contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.chat-robot-contact-link:hover .chat-robot-contact-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-robot-contact-link:hover::before {
  opacity: 1;
}

.chat-robot-contact-link:hover .chat-robot-contact-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-robot-contact-link:hover .chat-robot-contact-icon-img {
  transform: scale(1.08);
}

.chat-robot-contact-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	margin: 5px;
}

.chat-robot-contact-icon-img {
  width: 28px;
  height: 28px;
  transition: all 0.25s ease;
}

/* Brand-specific colors */
.chat-robot-contact-card.contact-whatsapp {
  border-color: #25D366;
}

.chat-robot-contact-card.contact-whatsapp .chat-robot-contact-icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.chat-robot-contact-card.contact-whatsapp .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.chat-robot-contact-card.contact-whatsapp .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-telegram {
  border-color: #0088cc;
}

.chat-robot-contact-card.contact-telegram .chat-robot-contact-icon {
  background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
}

.chat-robot-contact-card.contact-telegram .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
}

.chat-robot-contact-card.contact-telegram .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-instagram {
  border-color: #E4405F;
}

.chat-robot-contact-card.contact-instagram .chat-robot-contact-icon {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
}

.chat-robot-contact-card.contact-instagram .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
}

.chat-robot-contact-card.contact-instagram .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-youtube {
  border-color: #FF0000;
}

.chat-robot-contact-card.contact-youtube .chat-robot-contact-icon {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.chat-robot-contact-card.contact-youtube .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.chat-robot-contact-card.contact-youtube .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-email {
  border-color: #EA4335;
}

.chat-robot-contact-card.contact-email .chat-robot-contact-icon {
  background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

.chat-robot-contact-card.contact-email .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

.chat-robot-contact-card.contact-email .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-phone {
  border-color: #667eea;
}

.chat-robot-contact-card.contact-phone .chat-robot-contact-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-robot-contact-card.contact-phone .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-robot-contact-card.contact-phone .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-address {
  border-color: #10b981;
}

.chat-robot-contact-card.contact-address .chat-robot-contact-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.chat-robot-contact-card.contact-address .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.chat-robot-contact-card.contact-address .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-card.contact-default {
  border-color: #6b7280;
}

.chat-robot-contact-card.contact-default .chat-robot-contact-icon {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.chat-robot-contact-card.contact-default .chat-robot-contact-link:hover::before {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.chat-robot-contact-card.contact-default .chat-robot-contact-icon-img {
  filter: brightness(0) invert(1);
}

.chat-robot-contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  padding: 8px 0;
  padding-right: 5px;
  min-width: 0;
}

.chat-robot-contact-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.25s ease;
  line-height: 1.2;
}

.chat-robot-contact-link:hover .chat-robot-contact-label, .chat-robot-contact-link:hover .chat-robot-contact-value {
  color: #FFF;
}

.chat-robot-contact-value {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  transition: color 0.25s ease;
  line-height: 1.4;
  word-break: break-word;
}

.chat-robot-contact-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
  opacity: 0.5;
  margin-left: auto;
  margin-right: 5px;
}

.chat-robot-contact-link:hover .chat-robot-contact-arrow {
  opacity: 1;
  transform: translateX(-4px);
}

.chat-robot-contact-arrow-img {
  width: 20px;
  height: 20px;
  filter: brightness(0) opacity(0.4);
  transition: all 0.25s ease;
}

.chat-robot-contact-link:hover .chat-robot-contact-arrow-img {
  filter: brightness(0) opacity(1) invert(1);
  transform: translateX(-1px);
}

/* Dark theme for contact cards */
.chat-robot-dark .chat-robot-contact-card {
  background: #1f2937;
  border-color: #374151;
}

.chat-robot-dark .chat-robot-contact-label {
  color: #9ca3af;
}

.chat-robot-dark .chat-robot-contact-value {
  color: #f3f4f6;
}

.chat-robot-dark .chat-robot-contact-arrow-img {
  filter: brightness(0) invert(0.5);
}

.chat-robot-dark .chat-robot-contact-card.contact-whatsapp {
  border-color: #25D366;
}

.chat-robot-dark .chat-robot-contact-card.contact-telegram {
  border-color: #0088cc;
}

.chat-robot-dark .chat-robot-contact-card.contact-instagram {
  border-color: #E4405F;
}

.chat-robot-dark .chat-robot-contact-card.contact-youtube {
  border-color: #FF0000;
}

.chat-robot-dark .chat-robot-contact-card.contact-email {
  border-color: #EA4335;
}

.chat-robot-dark .chat-robot-contact-card.contact-phone {
  border-color: #667eea;
}

.chat-robot-dark .chat-robot-contact-card.contact-address {
  border-color: #10b981;
}

/* Focused Items Styles */
.chat-robot-product-focus-btn,
.chat-robot-article-focus-btn {
  width: 100%;
  padding: 8px 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.chat-robot-product-focus-btn::before,
.chat-robot-article-focus-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.chat-robot-product-focus-btn:hover::before,
.chat-robot-article-focus-btn:hover::before {
  left: 100%;
}

.chat-robot-product-focus-btn:hover,
.chat-robot-article-focus-btn:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  transform: translateY(-2px);
}

.chat-robot-product-focus-btn:active,
.chat-robot-article-focus-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.chat-robot-product-focus-btn.chat-robot-focused,
.chat-robot-article-focus-btn.chat-robot-focused {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.chat-robot-product-focus-btn.chat-robot-focused:hover,
.chat-robot-article-focus-btn.chat-robot-focused:hover {
  background: linear-gradient(135deg, #e879f9 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
  transform: translateY(-2px);
}

/* Focus button content */
.chat-robot-focus-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.chat-robot-focus-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.chat-robot-focus-btn-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Highlight focused cards */
.chat-robot-product-card-wrapper.chat-robot-item-focused,
.chat-robot-article-card-wrapper.chat-robot-item-focused {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.25);
}

/* Article card wrapper (similar to product wrapper) */
.chat-robot-article-card-wrapper {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.chat-robot-dark .chat-robot-article-card-wrapper {
  background: #2d3748;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Focused Items Indicator in Header */
.chat-robot-focused-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-right: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.chat-robot-focused-indicator-text {
  white-space: nowrap;
}

.chat-robot-focused-clear-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.chat-robot-focused-clear-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chat-robot-dark .chat-robot-focused-indicator {
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

/* Responsive styles for focus buttons */
@media (max-width: 480px) {
  .chat-robot-product-focus-btn,
  .chat-robot-article-focus-btn {
    font-size: 11px;
    padding: 5px 10px;
    gap: 4px;
  }
  
  .chat-robot-focus-icon {
    width: 12px;
    height: 12px;
  }
  
  .chat-robot-focused-indicator {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .chat-robot-focused-indicator-text {
    display: none;
  }
}
