:root {
  --tatuka-chat-primary: #002d62;
  --tatuka-chat-primary-dark: #7eb8ff;
  --tatuka-chat-surface: rgba(255,255,255,0.98);
  --tatuka-chat-text: #101828;
  --tatuka-chat-muted: #667085;
  --tatuka-chat-border: #d0d5dd;
  --tatuka-chat-soft: #f2f4f7;
  --tatuka-chat-dark-surface: rgba(8,12,35,0.96);
  --tatuka-chat-dark-text: rgba(220,230,255,0.96);
  --tatuka-chat-dark-muted: rgba(170,190,230,0.82);
}

#tatuka-chat-widget-root,
#tatuka-chat-widget-root *,
#tatuka-chat-widget-root *::before,
#tatuka-chat-widget-root *::after {
  box-sizing: border-box !important;
}

#tatuka-chat-widget-root.tatuka-chat-root {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 999999 !important;
  width: auto !important;
  min-width: 60px !important;
  max-width: none !important;
  font-family: "Fira Sans", sans-serif !important;
}

/* Teaser */
#tatuka-chat-widget-root .tatuka-chat-teaser {
  position: absolute !important;
  right: 72px !important;
  bottom: 8px !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  background: rgba(255,255,255,0.98) !important;
  color: var(--tatuka-chat-primary) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  box-shadow: 0 10px 24px rgba(16,24,40,0.12) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  transition: opacity .25s ease, transform .25s ease !important;
  z-index: 3 !important;
}

#tatuka-chat-widget-root .tatuka-chat-teaser.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#tatuka-chat-widget-root .tatuka-chat-trigger {
  width: 60px !important;
  height: 60px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tatuka-chat-primary) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(0,45,98,0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 4 !important;
}

#tatuka-chat-widget-root .tatuka-chat-trigger-icon {
  font-size: 24px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#tatuka-chat-panel.tatuka-chat-panel {
  position: absolute !important;
  right: 0 !important;
  bottom: 76px !important;
  display: block !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  background: var(--tatuka-chat-surface) !important;
  color: var(--tatuka-chat-text) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(0,45,98,0.08) !important;
  box-shadow: 0 24px 60px rgba(16,24,40,0.18) !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  opacity: 0 !important;
  transform: translateY(8px) scale(0.98) !important;
  transition: opacity .22s ease, transform .22s ease !important;
  z-index: 2 !important;
}

#tatuka-chat-panel.is-open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

#tatuka-chat-panel[hidden] {
  display: none !important;
}

#tatuka-chat-panel .tatuka-chat-panel-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
}

#tatuka-chat-panel .tatuka-chat-logo {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  display: block !important;
}

#tatuka-chat-panel .tatuka-chat-panel-title-wrap {
  min-width: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-panel-head strong {
  display: block !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

#tatuka-chat-panel .tatuka-chat-panel-head small {
  display: block !important;
  margin: 2px 0 0 !important;
  color: var(--tatuka-chat-muted) !important;
  line-height: 1.3 !important;
}

#tatuka-chat-panel .tatuka-chat-close {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(0,45,98,0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-choices {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 0 16px 16px !important;
  width: 100% !important;
  max-height: 220px !important;
  opacity: 1 !important;
  overflow: hidden !important;
  transition: max-height .22s ease, opacity .22s ease, padding .22s ease !important;
}

#tatuka-chat-panel .tatuka-chat-choices.is-collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

#tatuka-chat-panel .tatuka-chat-choice {
  width: 100% !important;
  border: 1px solid #e4e7ec !important;
  background: #fff !important;
  border-radius: 18px !important;
  padding: 14px !important;
  text-align: left !important;
  cursor: pointer !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-choice-icon {
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 20px !important;
}

#tatuka-chat-panel .tatuka-chat-choice-copy {
  min-width: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-choice strong {
  display: block !important;
  margin: 0 !important;
  color: var(--tatuka-chat-text) !important;
  line-height: 1.2 !important;
}

#tatuka-chat-panel .tatuka-chat-choice small {
  display: block !important;
  margin: 2px 0 0 !important;
  color: var(--tatuka-chat-muted) !important;
  line-height: 1.3 !important;
}

#tatuka-chat-panel .tatuka-chat-live {
  border-top: 1px solid rgba(0,45,98,0.08) !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
  opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height .22s ease, opacity .22s ease, padding .22s ease !important;
}

#tatuka-chat-panel .tatuka-chat-live.is-open {
  opacity: 1 !important;
  max-height: 700px !important;
}

#tatuka-chat-panel .tatuka-chat-auth-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#tatuka-chat-panel .tatuka-chat-auth-box p {
  margin: 0 !important;
  line-height: 1.5 !important;
}

#tatuka-chat-panel .tatuka-chat-auth-actions {
  display: flex !important;
}

#tatuka-chat-panel .tatuka-chat-messages {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-msg {
  max-width: 82% !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

#tatuka-chat-panel .tatuka-chat-msg.user {
  margin-left: auto !important;
  background: var(--tatuka-chat-primary) !important;
  color: #fff !important;
  border-bottom-right-radius: 6px !important;
}

#tatuka-chat-panel .tatuka-chat-msg.admin {
  margin-right: auto !important;
  background: var(--tatuka-chat-soft) !important;
  color: var(--tatuka-chat-text) !important;
  border-bottom-left-radius: 6px !important;
}

#tatuka-chat-panel .tatuka-chat-meta {
  display: block !important;
  font-size: 11px !important;
  margin-top: 6px !important;
  opacity: .8 !important;
}

#tatuka-chat-panel .tatuka-chat-typing {
  font-size: 12px !important;
  color: var(--tatuka-chat-muted) !important;
  margin: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-form {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#tatuka-chat-panel .tatuka-chat-form textarea,
#tatuka-chat-panel textarea#tatuka-chat-message {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--tatuka-chat-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  resize: vertical !important;
  min-height: 96px !important;
  line-height: 1.5 !important;
  font: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#tatuka-chat-panel .tatuka-chat-btn,
#tatuka-chat-panel .tatuka-chat-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
}

#tatuka-chat-panel .tatuka-chat-btn-primary {
  background: var(--tatuka-chat-primary) !important;
  color: #fff !important;
}

#tatuka-chat-widget-root img.emoji,
#tatuka-chat-panel img.emoji {
  width: 1em !important;
  height: 1em !important;
  vertical-align: -0.12em !important;
  margin-left: 2px !important;
}

html[data-theme="dark"] #tatuka-chat-widget-root .tatuka-chat-teaser {
  background: rgba(12,17,29,0.94) !important;
  color: var(--tatuka-chat-primary-dark) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.32) !important;
}

html[data-theme="dark"] #tatuka-chat-widget-root .tatuka-chat-trigger {
  background: rgba(12,17,29,0.94) !important;
  color: var(--tatuka-chat-primary-dark) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.42) !important;
  border: 1px solid rgba(126,184,255,0.18) !important;
}

html[data-theme="dark"] #tatuka-chat-panel.tatuka-chat-panel {
  background: var(--tatuka-chat-dark-surface) !important;
  color: var(--tatuka-chat-dark-text) !important;
  border-color: rgba(126,184,255,0.18) !important;
  box-shadow: 0 26px 60px rgba(0,0,0,0.45) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-panel-head small,
html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-choice small,
html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-typing {
  color: var(--tatuka-chat-dark-muted) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-close {
  background: rgba(126,184,255,0.10) !important;
  color: #dce6ff !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-choice {
  background: rgba(20,30,70,0.82) !important;
  border-color: rgba(100,140,255,0.28) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-choice strong {
  color: var(--tatuka-chat-dark-text) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-msg.admin {
  background: rgba(20,30,70,0.82) !important;
  color: var(--tatuka-chat-dark-text) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-form textarea {
  background: rgba(12,17,29,0.9) !important;
  color: var(--tatuka-chat-dark-text) !important;
  border-color: rgba(126,184,255,0.20) !important;
}

@media (max-width: 1024px) {
  #tatuka-chat-widget-root.tatuka-chat-root {
    right: 12px !important;
    bottom: 88px !important;
  }

  #tatuka-chat-panel.tatuka-chat-panel {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
  }
}

@media (max-width: 768px) {
  #tatuka-chat-widget-root.tatuka-chat-root {
    right: 12px !important;
    bottom: 88px !important;
  }

  #tatuka-chat-widget-root .tatuka-chat-trigger {
    width: 56px !important;
    height: 56px !important;
  }

  #tatuka-chat-widget-root .tatuka-chat-teaser {
    display: none !important;
  }

  #tatuka-chat-panel.tatuka-chat-panel {
    width: calc(100vw - 16px) !important;
    min-width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    right: -4px !important;
    bottom: 70px !important;
  }

  #tatuka-chat-panel .tatuka-chat-choices {
    grid-template-columns: 1fr !important;
  }
}
#tatuka-chat-panel .tatuka-chat-form textarea::placeholder,
#tatuka-chat-panel textarea#tatuka-chat-message::placeholder {
  color: #98a2b3 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-form textarea,
html[data-theme="dark"] #tatuka-chat-panel textarea#tatuka-chat-message {
  background: rgba(12,17,29,0.96) !important;
  color: var(--tatuka-chat-dark-text) !important;
  border-color: rgba(126,184,255,0.22) !important;
}

html[data-theme="dark"] #tatuka-chat-panel .tatuka-chat-form textarea::placeholder,
html[data-theme="dark"] #tatuka-chat-panel textarea#tatuka-chat-message::placeholder {
  color: rgba(170,190,230,0.78) !important;
  opacity: 1 !important;
}
.tatuka-chat-order-search-card{
    margin-bottom:16px;
}

.tatuka-chat-order-search-row{
    display:flex;
    gap:8px;
    margin-top:10px;
    margin-bottom:12px;
}

.tatuka-chat-order-search-row input{
    flex:1;
    min-width:0;
}

.tatuka-chat-order-search-results{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.tatuka-order-search-result{
    width:100%;
    text-align:left;
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:12px;
    padding:12px;
    cursor:pointer;
}

.tatuka-order-search-result:hover{
    border-color:#cbd5e1;
    background:#f8fafc;
}

.tatuka-order-search-result-top{
    display:flex;
    justify-content:space-between;
    gap:8px;
    margin-bottom:6px;
}

.tatuka-order-search-result-meta{
    font-size:12px;
    line-height:1.5;
    color:#475467;
}
.tatuka-chat-choice-messenger {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tatuka-chat-choice-messenger-logo {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 24px;
    object-fit: cover;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}