.absbot-root { --absbot-brand: #2a3f2a; --absbot-bg: #ffffff; --absbot-fg: #1a1a1a; --absbot-muted: #6b7280; --absbot-border: #e5e7eb; --absbot-user-bg: #2a3f2a; --absbot-user-fg: #ffffff; --absbot-bot-bg: #f3f4f6; --absbot-bot-fg: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.absbot-bubble { position: fixed; right: 24px; bottom: 90px; width: 50px; height: 50px; border-radius: 50%; background: var(--absbot-brand); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.18); z-index: 999998; border: none; }
.absbot-bubble:hover { filter: brightness(1.08); }
.absbot-bubble svg { width: 24px; height: 24px; }

.absbot-panel { position: fixed; right: 24px; bottom: 154px; width: 380px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 180px); background: var(--absbot-bg); color: var(--absbot-fg); border: 1px solid var(--absbot-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); display: none; flex-direction: column; overflow: hidden; z-index: 999999; }
.absbot-panel.absbot-open { display: flex; }

.absbot-header { background: var(--absbot-brand); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.absbot-header-title { font-weight: 600; font-size: 15px; line-height: 1.2; }
.absbot-header-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.absbot-close { background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }

.absbot-notice { font-size: 11px; color: var(--absbot-muted); padding: 8px 14px; border-bottom: 1px solid var(--absbot-border); background: #fafafa; }
.absbot-notice a { color: var(--absbot-brand); text-decoration: underline; }

.absbot-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.absbot-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.absbot-msg-user { align-self: flex-end; background: var(--absbot-user-bg); color: var(--absbot-user-fg); border-bottom-right-radius: 4px; }
.absbot-msg-bot { align-self: flex-start; background: var(--absbot-bot-bg); color: var(--absbot-bot-fg); border-bottom-left-radius: 4px; }
.absbot-msg-bot a { color: var(--absbot-brand); text-decoration: underline; font-weight: 500; }
.absbot-msg-bot a:hover { filter: brightness(1.15); }

.absbot-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; margin-bottom: 4px; max-width: 85%; }
.absbot-cart-btn { background: var(--absbot-brand); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: filter 0.15s ease; }
.absbot-cart-btn:hover:not(:disabled) { filter: brightness(1.1); }
.absbot-cart-btn:disabled { cursor: default; opacity: 0.85; }
.absbot-cart-btn-done { background: #6b7c5a; }
.absbot-cart-btn-error { background: #c2410c; }
.absbot-cart-link { align-self: center; color: var(--absbot-brand); font-size: 13px; text-decoration: underline; font-weight: 500; }
.absbot-cart-link:hover { filter: brightness(1.15); }

.absbot-typing { align-self: flex-start; background: var(--absbot-bot-bg); padding: 10px 14px; border-radius: 12px; display: flex; gap: 4px; }
.absbot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--absbot-muted); opacity: 0.5; animation: absbot-bounce 1.2s infinite; }
.absbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.absbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes absbot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.absbot-input-area { border-top: 1px solid var(--absbot-border); padding: 10px 12px; background: #fff; }
.absbot-input-row { display: flex; gap: 8px; align-items: flex-end; }
.absbot-textarea { flex: 1; resize: none; border: 1px solid var(--absbot-border); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; outline: none; min-height: 38px; max-height: 120px; }
.absbot-textarea:focus { border-color: var(--absbot-brand); }
.absbot-send { background: var(--absbot-brand); color: #fff; border: none; border-radius: 8px; padding: 0 14px; height: 38px; font-size: 14px; cursor: pointer; font-weight: 500; }
.absbot-send:disabled { opacity: 0.5; cursor: not-allowed; }

.absbot-consent { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--absbot-muted); }
.absbot-consent input { margin: 0; }

@media (max-width: 500px) {
  .absbot-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: none; }
  .absbot-bubble { right: 16px; bottom: 80px; }
}

/* Shops mit Bubble links (z.B. vincent-becker.de) */
.absbot-root.absbot-left .absbot-bubble { right: auto; left: 24px; }
.absbot-root.absbot-left .absbot-panel { right: auto; left: 24px; }
@media (max-width: 480px) {
  .absbot-root.absbot-left .absbot-bubble { right: auto; left: 16px; }
}
