/* frontend/public/bulky.css — Bulky chat widget, both floating and embedded modes */

.bulky-bubble {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--amber); color: #1a1a1a; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25); z-index: 999;
  transition: transform 0.2s ease;
}
.bulky-bubble:hover { transform: scale(1.06); }

.bulky-panel {
  position: fixed; bottom: 96px; right: 24px; width: 360px; max-height: 520px;
  background: var(--teal-dark, #16332c); color: #fff; border-radius: 18px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35); z-index: 999;
}
.bulky-panel.open { display: flex; }

.bulky-embedded .bulky-panel,
.bulky-embedded.bulky-panel {
  position: static; width: 100%; max-height: none; height: auto;
  display: flex; box-shadow: none; bottom: auto; right: auto;
}

.bulky-header { padding: 16px 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; }
.bulky-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; }

.bulky-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.bulky-embedded .bulky-messages { flex: none; max-height: 260px; min-height: 0; }
.bulky-embedded .bulky-messages:empty { padding: 0; }
.bulky-msg { font-size: 14px; line-height: 1.5; max-width: 90%; }
.bulky-msg.user { align-self: flex-end; background: rgba(255,255,255,0.12); padding: 10px 14px; border-radius: 14px 14px 2px 14px; }
.bulky-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); padding: 10px 14px; border-radius: 14px 14px 14px 2px; }

.bulky-products { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bulky-product-card {
  display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 10px; text-decoration: none; color: #fff;
}
.bulky-product-card:hover { background: rgba(255,255,255,0.14); }
.bulky-product-card .cover { width: 32px; height: 44px; border-radius: 4px; background-size: cover; background-position: center; flex-shrink: 0; background-color: rgba(255,255,255,0.1); }
.bulky-product-card .info { font-size: 12.5px; line-height: 1.35; }
.bulky-product-card .info .price { color: var(--amber); font-weight: 700; }

.bulky-fallback-btn {
  margin-top: 6px; background: var(--amber); color: #1a1a1a; border: none; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer; align-self: flex-start;
}

.bulky-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.bulky-input-row input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 14px;
}
.bulky-input-row input::placeholder { color: rgba(255,255,255,0.5); }
.bulky-input-row button {
  background: var(--amber); border: none; border-radius: 10px; padding: 0 16px;
  font-weight: 700; cursor: pointer; color: #1a1a1a;
}

@media (max-width: 480px) {
  .bulky-panel { width: calc(100vw - 32px); right: 16px; }
}
