/* Bibi Steinmetz — Widget chatbot + panier — terracotta #A83F1E */
#bibi-floating-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  font-family: "Plus Jakarta Sans", sans-serif;
}

#bibi-chatbot-btn,
#bibi-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px -2px rgba(136, 40, 7, 0.25), 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

#bibi-chatbot-btn {
  background: #A83F1E;
  color: #ffffff;
}

#bibi-whatsapp-btn {
  background: #25D366;
  color: #ffffff;
}

#bibi-chatbot-btn:hover,
#bibi-whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -2px rgba(136, 40, 7, 0.3), 0 12px 32px rgba(0,0,0,0.1);
}

#bibi-chatbot-btn:active,
#bibi-whatsapp-btn:active {
  transform: translateY(0);
}

#bibi-chatbot-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  background: #FBF9F6;
  border: 1px solid #E8DDD5;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(36, 26, 21, 0.14), 0 4px 16px rgba(0,0,0,0.06);
  scrollbar-width: thin;
}

#bibi-chatbot-panel[hidden] {
  display: none !important;
}

.bibi-panel-header {
  position: sticky;
  top: 0;
  background: #FBF9F6;
  padding: 16px;
  border-bottom: 1px solid #E8DDD5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
  z-index: 1;
}

.bibi-panel-header h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: #241A15;
}

.bibi-panel-close {
  background: #F5EFEB;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B584E;
  font-size: 18px;
}

.bibi-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bibi-step-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #968175;
  font-weight: 600;
}

.bibi-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bibi-cat-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid #E8DDD5;
  background: #ffffff;
  color: #57423C;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.bibi-cat-btn.active,
.bibi-cat-btn:hover {
  background: #A83F1E;
  color: #ffffff;
  border-color: #A83F1E;
}

.bibi-dishes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.bibi-dish {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #E8DDD5;
  border-radius: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bibi-dish:hover {
  border-color: #A83F1E;
  box-shadow: 0 2px 12px rgba(168,63,30,0.08);
}

.bibi-dish img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bibi-dish-info {
  flex: 1;
  min-width: 0;
}

.bibi-dish-title {
  font-size: 13px;
  font-weight: 700;
  color: #241A15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bibi-dish-price {
  font-size: 13px;
  font-weight: 700;
  color: #A83F1E;
}

.bibi-dish-add {
  background: #A83F1E;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.bibi-cart {
  background: #fff;
  border: 1px solid #E8DDD5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bibi-cart-empty {
  text-align: center;
  color: #968175;
  font-size: 13px;
  padding: 12px;
}

.bibi-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #F5EFEB;
}

.bibi-cart-item:last-child {
  border-bottom: none;
}

.bibi-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bibi-qty button {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 1px solid #E8DDD5;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.bibi-totals {
  border-top: 1px solid #E8DDD5;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.bibi-totals-row {
  display: flex;
  justify-content: space-between;
}

.bibi-totals-row.total {
  font-weight: 700;
  color: #A83F1E;
  font-size: 15px;
}

.bibi-client-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bibi-client-form input,
.bibi-client-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E8DDD5;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #241A15;
  box-sizing: border-box;
}

.bibi-client-form input:focus,
.bibi-client-form textarea:focus {
  outline: none;
  border-color: #A83F1E;
  box-shadow: 0 0 0 3px rgba(168,63,30,0.08);
}

.bibi-btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: #A83F1E;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.bibi-btn-primary:hover {
  background: #882807;
}

.bibi-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bibi-error {
  color: #BA1A1A;
  font-size: 12px;
  background: #FFDAD6;
  padding: 8px 10px;
  border-radius: 8px;
}

.bibi-success {
  color: #23501E;
  font-size: 13px;
  background: #BCF0AE;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 480px) {
  #bibi-chatbot-panel {
    width: calc(100vw - 24px);
    right: 12px;
  }
  #bibi-floating-stack {
    bottom: 16px;
    right: 16px;
  }
}
