/* ==========================================================================
   CYB AI Chatbot Widget Styling - CustomYourBYD
   ========================================================================== */

:root {
  --cyb-chat-primary: #00d26a;
  --cyb-chat-primary-hover: #00b85c;
  --cyb-chat-accent: #0284c7;
  --cyb-chat-dark: #0f172a;
  --cyb-chat-dark-surface: #1e293b;
  --cyb-chat-card: #ffffff;
  --cyb-chat-border: rgba(226, 232, 240, 0.9);
  --cyb-chat-text: #1e293b;
  --cyb-chat-text-muted: #64748b;
  --cyb-chat-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 10px 20px -5px rgba(15, 23, 42, 0.1);
}

/* Floating Launcher Button */
.cyb-chat-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cyb-chat-launcher:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
  border-color: #38bdf8;
}

.cyb-launcher-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cyb-chat-launcher .cyb-launcher-icon {
  font-size: 26px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.cyb-chat-launcher:hover .cyb-launcher-icon {
  transform: rotate(12deg) scale(1.1);
}

.cyb-chat-launcher .cyb-launcher-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cyb-chat-launcher .cyb-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  opacity: 0;
  animation: cybPulse 2.5s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes cybPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Tooltip on Desktop */
.cyb-chat-tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyb-chat-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.cyb-chat-launcher:hover .cyb-chat-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chat Window Box */
.cyb-chat-window {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--cyb-chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid rgba(226, 232, 240, 0.85);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transform: scale(0.85) translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.cyb-chat-window.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Chat Header */
.cyb-chat-header {
  background: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cyb-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyb-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  background: #1e293b;
}

.cyb-header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.cyb-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.cyb-header-info h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyb-header-info h4 span.cyb-ai-tag {
  font-size: 8.5px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cyb-header-info p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #94a3b8;
}

.cyb-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyb-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.cyb-btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Chat Body (Messages) */
.cyb-chat-body {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  scroll-behavior: smooth;
  box-sizing: border-box;
  width: 100%;
}

.cyb-chat-body::-webkit-scrollbar {
  width: 5px;
}
.cyb-chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.cyb-chat-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Message Rows */
.cyb-msg-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: cybMsgFade 0.3s ease forwards;
}

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

.cyb-msg-row.user {
  margin-left: auto;
  flex-direction: row-reverse;
  max-width: 82%;
  width: auto;
}

.cyb-msg-row.bot {
  margin-right: auto;
  width: 100%;
  max-width: 100%;
}

.cyb-bot-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.cyb-avatar-mini-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.cyb-msg-bubble {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.46;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.cyb-msg-row.user .cyb-msg-bubble {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  padding: 7px 11px;
  font-size: 11.5px;
  line-height: 1.4;
}

.cyb-msg-row.bot .cyb-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border-bottom-left-radius: 3px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cyb-msg-bubble p {
  margin: 0 0 5px;
}
.cyb-msg-bubble p:last-child {
  margin-bottom: 0;
}

.cyb-msg-bubble ul, .cyb-msg-bubble ol {
  margin: 3px 0 5px 14px;
  padding: 0;
}
.cyb-msg-bubble li {
  margin-bottom: 2px;
  line-height: 1.42;
}
.cyb-msg-bubble h4, .cyb-msg-bubble h5, .cyb-heading {
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 3px;
  color: #0f172a;
}
.cyb-hr {
  border: none;
  border-top: 1px dashed #cbd5e1;
  margin: 6px 0;
}
/* Data Cards Container (Table Alternative + Responsive Table) */
.cyb-data-cards-container {
  margin: 12px 0 8px;
  width: 100%;
}

.cyb-table-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cyb-table-mode-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cyb-table-mode-title i {
  color: #0284c7;
  font-size: 13px;
}

.cyb-table-view-toggle {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.cyb-tv-btn {
  border: none;
  background: transparent;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cyb-tv-btn:hover {
  color: #0f172a;
}

.cyb-tv-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 1. Responsive Card View (Ultra clean layout on chat) */
.cyb-data-cards-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cyb-data-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cyb-data-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
}

.cyb-dc-header {
  margin-bottom: 4px;
}

.cyb-dc-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.cyb-dc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cyb-dc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 2px 0;
  border-bottom: 1px dashed #f1f5f9;
  gap: 8px;
}

.cyb-dc-row:last-child {
  border-bottom: none;
}

.cyb-dc-label {
  color: #64748b;
  font-weight: 500;
  font-size: 10px;
  flex-shrink: 0;
}

.cyb-dc-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.cyb-dc-val.cyb-dc-price {
  color: #0284c7;
  font-weight: 700;
  font-size: 11.5px;
}

.cyb-dc-val.cyb-dc-stock {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.cyb-dc-val.cyb-dc-stock.ready {
  background: #dcfce7;
  color: #15803d;
}

.cyb-dc-val.cyb-dc-stock.preorder {
  background: #fef3c7;
  color: #b45309;
}

.cyb-dc-footer {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.cyb-dc-action-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cyb-dc-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
}

/* 2. Scrollable Table View (Improved with proper padding & no squishing) */
.cyb-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 6px 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cyb-table-scroll-hint {
  font-size: 10.5px;
  color: #64748b;
  background: #f8fafc;
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.cyb-table-scroll-hint i {
  color: #0284c7;
}

.cyb-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.45;
  background: #ffffff;
}

.cyb-table th,
.cyb-table td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap; /* Stops crushed letters! */
  vertical-align: middle;
}

.cyb-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cyb-table td.cyb-col-title,
.cyb-table th.cyb-col-title {
  white-space: normal;
  min-width: 140px;
  max-width: 220px;
  font-weight: 600;
  color: #0f172a;
}

.cyb-table tr:nth-child(even) td {
  background: #f8fafc;
}

.cyb-table tr:hover td {
  background: #f0f9ff;
}

.cyb-table-link-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #0284c7;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cyb-table-link-btn:hover {
  background: #0369a1;
}

.cyb-msg-bubble a {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 600;
}
.cyb-msg-bubble strong {
  font-weight: 700;
  color: #0f172a;
}
.cyb-msg-row.user .cyb-msg-bubble strong {
  color: #ffffff;
}

.cyb-msg-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  display: block;
}
.cyb-msg-row.user .cyb-msg-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

/* Typing Indicator */
.cyb-typing-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cyb-typing-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cyb-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: cybTypingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes cybTypingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1.15); opacity: 1; background: #0284c7; }
}

/* ==========================================================================
   Horizontal Products Carousel (Scroll ke samping)
   ========================================================================== */
.cyb-carousel-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  position: relative;
  box-sizing: border-box;
}

.cyb-products-carousel {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.cyb-products-carousel.cyb-is-grabbing {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.cyb-products-carousel * {
  -webkit-user-drag: none;
}

.cyb-products-carousel::-webkit-scrollbar {
  height: 5px;
}
.cyb-products-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.cyb-products-carousel::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}
.cyb-products-carousel::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.cyb-carousel-card {
  flex: 0 0 148px;
  width: 148px;
  max-width: 148px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  cursor: grab;
}

.cyb-carousel-card a,
.cyb-carousel-card button {
  cursor: pointer;
}

.cyb-products-carousel.cyb-is-grabbing .cyb-carousel-card,
.cyb-products-carousel.cyb-is-grabbing .cyb-carousel-card a,
.cyb-products-carousel.cyb-is-grabbing .cyb-carousel-card button,
.cyb-products-carousel.cyb-is-grabbing .cyb-card-img-wrap {
  cursor: grabbing !important;
}

.cyb-carousel-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.12);
}

.cyb-card-img-wrap {
  width: 100%;
  height: 90px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.cyb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* Allows click & mousedown to bubble seamlessly to wrapper */
}
.cyb-carousel-card:hover .cyb-card-img {
  transform: scale(1.05);
}

.cyb-badge-cat {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 1.5px 5px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.cyb-badge-stock {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 3px;
}
.cyb-badge-stock.ready {
  background: #10b981;
  color: #ffffff;
}
.cyb-badge-stock.preorder {
  background: #f59e0b;
  color: #ffffff;
}

.cyb-card-body {
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  box-sizing: border-box;
}

.cyb-card-title-link {
  text-decoration: none;
  color: inherit;
}

.cyb-card-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 26px;
}

.cyb-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
}

.cyb-card-price {
  font-size: 11.5px;
  font-weight: 800;
  color: #0284c7;
}

.cyb-card-orig {
  font-size: 9.5px;
  text-decoration: line-through;
  color: #94a3b8;
}

.cyb-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cyb-btn-detail {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cyb-btn-detail:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cyb-btn-buy {
  flex: 1;
  height: 26px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
}
.cyb-btn-buy:hover {
  background: #0284c7;
}

.cyb-carousel-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  padding: 0 2px;
}
.cyb-hint-arrows {
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.5px;
}

/* Suggestion Chips */
.cyb-suggestions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cyb-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.cyb-chip:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Chat Footer / Input */
.cyb-chat-footer {
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.cyb-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 2px 4px 2px 10px;
  transition: all 0.2s ease;
}

.cyb-input-row:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.cyb-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 11.5px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}
.cyb-chat-input::placeholder {
  color: #94a3b8;
}

.cyb-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #0284c7);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cyb-send-btn:hover:not(:disabled) {
  background: #0369a1;
  transform: scale(1.05);
}

.cyb-send-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.cyb-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  padding: 0 2px;
}

.cyb-footer-meta a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.cyb-footer-meta a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cyb-chat-launcher {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px);
    right: max(14px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }
  .cyb-chat-launcher .cyb-launcher-icon {
    font-size: 22px;
  }
  .cyb-chat-tooltip {
    display: none;
  }

  .cyb-chat-window {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    border: none;
  }
}

