:root{
  --orderbot-color: #a92500;
  --orderbot-color-dark: color-mix(in srgb, var(--orderbot-color) 72%, #000);
}
.orderbot-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1038;
  border-radius: 50%;
  border:1px solid var(--orderbot-color);
  background: linear-gradient(135deg, var(--orderbot-color), #6f1600);
  background: #fff;
  color: #fff;
  box-shadow: 0 12px 28px rgba(221, 44, 0, 0.33);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  overflow: hidden;
}


.orderbot-fab:hover,
.orderbot-fab:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(221, 44, 0, 0.42);
}

.orderbot-fab i {
  font-size: 27px;
  line-height: 1;
}

.orderbot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 27, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease;
  z-index: 1039;
}

.orderbot-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.orderbot-sidebar {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(420px, calc(100vw - 24px));
  height: min(78vh, 760px);
  border-radius: 18px;
  overflow: hidden;
  background: #f6f8fd;
  box-shadow: 0 24px 52px rgba(18, 23, 36, 0.27);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 170ms ease, transform 170ms ease;
  z-index: 1040;
  display: flex;
  flex-direction: column;
}

.orderbot-sidebar.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.orderbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(130deg, var(--orderbot-color-dark), var(--orderbot-color));
}

.orderbot-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.orderbot-title-wrap strong {
  font-size: 15px;
  line-height: 1.15;
}

.orderbot-title-wrap small {
  font-size: 12px;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orderbot-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orderbot-actions .btn {
  padding: 0.2rem 0.45rem;
}

.orderbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orderbot-message {
  display: flex;
}

.orderbot-message.is-user {
  justify-content: flex-end;
}

.orderbot-message.is-bot {
  justify-content: flex-start;
}

.orderbot-bubble {
  max-width: 84%;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.orderbot-message.is-user .orderbot-bubble {
  background: var(--orderbot-color);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.orderbot-message.is-bot .orderbot-bubble {
  background: #fff;
  color: #111828;
  border: 1px solid #dce3f2;
  border-bottom-left-radius: 6px;
}

.orderbot-message.is-error .orderbot-bubble {
  border-color: #f6b4b4;
  background: #fff6f6;
  color: #8f2323;
}

.orderbot-footer {
  border-top: 1px solid #dce3f2;
  background: #fff;
  padding: 8px 10px 10px;
}

.orderbot-waiting-text {
  font-size: 12px;
  color: #5a6478;
  margin-bottom: 6px;
  min-height: 18px;
}

.orderbot-form {
  display: flex;
  gap: 8px;
}

.orderbot-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccd6ea;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 14px;
  outline: none;
}

.orderbot-form input:focus {
  border-color: var(--orderbot-color);
  box-shadow: 0 0 0 3px rgba(221, 44, 0, 0.16);
}

.orderbot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #6d7690;
  margin-right: 4px;
  animation: orderbot-dot-pulse 1s infinite ease-in-out;
}

.orderbot-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.orderbot-dot:nth-child(3) {
  animation-delay: 0.32s;
  margin-right: 0;
}

@keyframes orderbot-dot-pulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .orderbot-fab {
    right: 14px;
    bottom: 14px;
  }

  .orderbot-fab::after {
    left: 2px;
    bottom: -2px;
    width: 9px;
    height: 9px;
  }

  .orderbot-sidebar {
    right: 10px;
    bottom: 78px;
    width: calc(100vw - 20px);
    height: min(80vh, 760px);
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orderbot-fab,
  .orderbot-overlay,
  .orderbot-sidebar,
  .orderbot-dot {
    animation: none !important;
    transition: none !important;
  }
}

.orderbot-bubble p {
  margin: 0 0 0.55rem 0;
}

.orderbot-bubble p:last-child {
  margin-bottom: 0;
}

.orderbot-bubble ul {
  margin: 0.35rem 0 0.35rem 1.15rem;
  padding: 0;
}

.orderbot-bubble ol {
  margin: 0.35rem 0 0.35rem 1.2rem;
  padding: 0;
}

.orderbot-bubble li {
  margin: 0.2rem 0;
}

.orderbot-bubble h1,
.orderbot-bubble h2,
.orderbot-bubble h3,
.orderbot-bubble h4,
.orderbot-bubble h5,
.orderbot-bubble h6 {
  margin: 0.2rem 0 0.55rem 0;
  line-height: 1.28;
  color: #4a1200;
}

.orderbot-bubble h1 { font-size: 1.08rem; }
.orderbot-bubble h2 { font-size: 1.03rem; }
.orderbot-bubble h3 { font-size: 0.98rem; }
.orderbot-bubble h4,
.orderbot-bubble h5,
.orderbot-bubble h6 { font-size: 0.94rem; }

.orderbot-bubble blockquote {
  margin: 0.45rem 0;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid #f0b7a8;
  background: #fffaf8;
  border-radius: 8px;
}

.orderbot-bubble pre.orderbot-pre {
  margin: 0.45rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8f8fb;
  border: 1px solid #d7dce7;
  overflow-x: auto;
}

.orderbot-bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: #f4f4f6;
  border-radius: 5px;
  padding: 0.08rem 0.3rem;
}

.orderbot-bubble pre code {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.88em;
}

.orderbot-bubble .orderbot-hr {
  border: 0;
  border-top: 1px solid #e5e8ef;
  margin: 0.6rem 0;
}

.orderbot-bubble a {
  color: #b32100;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.orderbot-bubble a:hover,
.orderbot-bubble a:focus {
  color: #8f1b00;
}

.orderbot-overlay {
  display: none !important;
  pointer-events: none !important;
}

.orderbot-sidebar {
  box-shadow: 0 42px 82px color-mix(in srgb, var(--orderbot-color) 34%, transparent), 0 12px 24px color-mix(in srgb, var(--orderbot-color) 20%, transparent);
}

.orderbot-teaser {
  position: fixed;
  right: 92px;
  bottom: 31px;
  z-index: 1041;
  border: 1px solid color-mix(in srgb, var(--orderbot-color) 18%, #fff);
  border-radius: 999px;
  background: #ffffff;
  color: var(--orderbot-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  box-shadow: 0 18px 30px color-mix(in srgb, var(--orderbot-color) 24%, transparent);
  transform-origin: right center;
  animation: orderbot-teaser-pop 2.4s ease-in-out infinite;
  white-space: nowrap;
}

.orderbot-teaser:hover,
.orderbot-teaser:focus {
  color: var(--orderbot-color-dark);
  background: color-mix(in srgb, var(--orderbot-color) 6%, #fff);
}

@media (max-width: 720px) {
  .orderbot-teaser {
    right: 82px;
    bottom: 22px;
    max-width: calc(100vw - 104px);
    font-size: 14px;
    padding: 11px 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@keyframes orderbot-teaser-pop {
  0%, 82%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  86% {
    transform: translateY(-2px) scale(1.04) rotate(-1.2deg);
  }
  90% {
    transform: translateY(0) scale(1) rotate(1.1deg);
  }
  94% {
    transform: translateY(-1px) scale(1.02) rotate(-0.8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orderbot-teaser {
    animation: none !important;
    transition: none !important;
  }
}

.orderbot-suggestions {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 2px;
  margin-top: -2px;
  background: transparent;
}

.orderbot-suggestion-btn {
  border: 1px solid color-mix(in srgb, var(--orderbot-color) 18%, #fff);
  background: #fff;
  color: var(--orderbot-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 7px 11px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.orderbot-suggestion-btn:hover,
.orderbot-suggestion-btn:focus {
  background: color-mix(in srgb, var(--orderbot-color) 8%, #fff);
  border-color: color-mix(in srgb, var(--orderbot-color) 28%, #fff);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .orderbot-suggestions {
    padding: 1px 0 2px;
    gap: 6px;
  }

  .orderbot-suggestion-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}

.orderbot-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.orderbot-header-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-bottom:-8px;
}

.orderbot-header-title-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.orderbot-bot-avatar-wrap {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: flex-start;
}

.orderbot-bot-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--orderbot-color) 18%, #fff);
}

.orderbot-bot-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: calc(100% - 42px);
}

.orderbot-bot-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--orderbot-color-dark);
  margin-left: 2px;
}

.orderbot-message.is-bot {
  align-items: flex-start;
  gap: 8px;
}

.orderbot-message.is-bot .orderbot-bubble {
  max-width: 100%;
}

@media (max-width: 720px) {
  .orderbot-header-avatar,
  .orderbot-bot-avatar,
  .orderbot-bot-avatar-wrap {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .orderbot-bot-content {
    max-width: calc(100% - 38px);
  }
}
