/* build: 20260505 */
/* iKopn Support Chat Widget — landing pages.
 * Design system : sharp 0 borders, brand teal #10BBC4, Inter, sentence case.
 * Self-contained — does not collide with host page styles.
 *
 * Source-canonical : v2/frontend/web/ikopn-support-widget.css
 *   → flutter build web copies it to deploy/ — survives deploy/assets/ wipes. */

.iks-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border: 1px solid #0F1729;
  background: #10BBC4;
  color: #0F1729;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 22px/1 "Inter", system-ui, sans-serif;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.iks-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.iks-fab-icon { display: inline-block; line-height: 1; }

body.iks-locked { overflow: hidden; }

.iks-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  font-family: "Inter", system-ui, sans-serif;
}
.iks-root.iks-root--open { pointer-events: auto; }

.iks-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.iks-root--open .iks-overlay { opacity: 1; }

.iks-drawer {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 78vh;
  max-height: 720px;
  background: #0F1729;
  color: #F0F4FF;
  border: 1px solid #1A2840;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}
.iks-root--open .iks-drawer { transform: translateY(0); opacity: 1; }

@media (max-width: 640px) {
  .iks-drawer {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 88vh;
    max-height: none;
  }
}

.iks-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 16px;
  border-bottom: 1px solid #1A2840;
  background: #0F1729;
}
.iks-bar { width: 4px; height: 36px; background: #10BBC4; flex-shrink: 0; }
.iks-header-text { flex: 1 1 auto; min-width: 0; }
.iks-title {
  font-size: 18px;
  font-weight: 700;
  color: #F0F4FF;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iks-subtitle {
  font-size: 12px;
  color: rgba(240, 244, 255, 0.55);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iks-lang-select {
  background: transparent;
  color: #F0F4FF;
  border: 1px solid #1A2840;
  padding: 6px 8px;
  font: 500 12px/1.2 "Inter", system-ui, sans-serif;
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.iks-lang-select:focus { outline: 1px solid #10BBC4; }
.iks-close {
  background: transparent;
  border: none;
  color: #F0F4FF;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: 2px;
  flex-shrink: 0;
}
.iks-close:hover { color: #10BBC4; }

.iks-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0F1729;
}
.iks-msgs { display: flex; flex-direction: column; gap: 12px; }

.iks-bubble { max-width: 85%; display: flex; flex-direction: column; gap: 6px; }
.iks-bubble--user { align-self: flex-end; }
.iks-bubble--user .iks-bubble-body {
  background: #10BBC4;
  color: #0F1729;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.iks-bubble--assistant { align-self: flex-start; }
.iks-bubble--assistant .iks-bubble-body {
  background: #1A2332;
  border: 1px solid #1A2840;
  color: #F0F4FF;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.iks-deeplink-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 187, 196, 0.1);
  border: 1px solid #10BBC4;
  color: #10BBC4;
  font-size: 11px;
  font-weight: 500;
  align-self: flex-start;
}

.iks-mailto-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #FF6B6B;
  color: #FF6B6B;
  font: 600 12px/1.2 "Inter", system-ui, sans-serif;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
  border-radius: 0;
}
.iks-mailto-cta:hover { background: rgba(255, 107, 107, 0.18); }

.iks-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  align-self: flex-start;
}
.iks-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(16, 187, 196, 0.25);
  border-top-color: #10BBC4;
  border-radius: 50%;
  animation: iks-spin 0.8s linear infinite;
}
@keyframes iks-spin { to { transform: rotate(360deg); } }
.iks-typing-label { font-size: 12px; color: rgba(240, 244, 255, 0.55); }

.iks-empty {
  text-align: center;
  padding: 40px 24px;
  color: rgba(240, 244, 255, 0.55);
}
.iks-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(16, 187, 196, 0.1);
  color: #10BBC4;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 12px;
}
.iks-empty-text { font-size: 13px; line-height: 1.5; }

.iks-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #FF6B6B;
  color: #FF6B6B;
}
.iks-error-msg { flex: 1 1 auto; font-size: 12px; }
.iks-error-retry {
  background: transparent;
  border: none;
  color: #FF6B6B;
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.1em;
}

.iks-privacy {
  font-size: 11px;
  color: rgba(240, 244, 255, 0.45);
  text-align: center;
  padding: 8px 12px 0;
}

.iks-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #1A2332;
  border-top: 1px solid #1A2840;
}
.iks-input {
  flex: 1 1 auto;
  background: #0F1729;
  border: 1px solid #1A2840;
  color: #F0F4FF;
  padding: 10px 12px;
  font: 400 14px/1.4 "Inter", system-ui, sans-serif;
  border-radius: 0;
}
.iks-input:focus { outline: none; border-color: #10BBC4; }
.iks-input::placeholder { color: rgba(240, 244, 255, 0.45); }
.iks-send {
  width: 44px;
  height: 44px;
  background: #10BBC4;
  color: #0F1729;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0;
  flex-shrink: 0;
}
.iks-send:disabled {
  background: #1A2840;
  color: rgba(240, 244, 255, 0.35);
  cursor: not-allowed;
}

.iks-powered {
  text-align: center;
  font-size: 11px;
  color: rgba(240, 244, 255, 0.35);
  padding: 8px 12px 12px;
  background: #1A2332;
  letter-spacing: 0.02em;
}

.iks-rating {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 12px;
}
.iks-rating-title {
  font: 700 22px/1.2 "Inter", system-ui, sans-serif;
  color: #F0F4FF;
  margin: 0;
}
.iks-rating-body {
  font: 400 13px/1.5 "Inter", system-ui, sans-serif;
  color: rgba(240, 244, 255, 0.55);
  margin: 0;
}
.iks-stars { display: flex; gap: 8px; margin: 12px 0 4px; }
.iks-star {
  background: transparent;
  border: none;
  color: rgba(240, 244, 255, 0.35);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.iks-star:hover, .iks-star--filled { color: #F59E0B; }
.iks-rating-comment {
  width: 100%;
  background: #0F1729;
  border: 1px solid #1A2840;
  color: #F0F4FF;
  padding: 10px 12px;
  font: 400 13px/1.4 "Inter", system-ui, sans-serif;
  border-radius: 0;
  resize: vertical;
}
.iks-rating-comment:focus { outline: none; border-color: #10BBC4; }
.iks-rating-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}
.iks-btn {
  flex: 1 1 auto;
  padding: 12px 14px;
  border-radius: 0;
  cursor: pointer;
  font: 600 14px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: transparent;
  color: #F0F4FF;
}
.iks-btn--primary { background: #10BBC4; color: #0F1729; }
.iks-btn--primary:disabled {
  background: #1A2840;
  color: rgba(240, 244, 255, 0.35);
  cursor: not-allowed;
}
.iks-btn--ghost { border-color: #1A2840; background: transparent; }

.iks-root[dir="rtl"] .iks-drawer { left: 16px; right: auto; }
@media (max-width: 640px) {
  .iks-root[dir="rtl"] .iks-drawer { left: 0; right: 0; }
}
