/* Right-Float Catering Chat Widget - Nấu Cỗ Hưng Thịnh */
.ht-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ht-chat-bubble-tip {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #fde68a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  max-width: 265px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  cursor: pointer;
  animation: htSlideUp 0.28s ease-out;
}

.ht-chat-bubble-tip-close {
  position: absolute;
  top: 4px;
  right: 7px;
  font-size: 14px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}

.ht-chat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.48);
}

.ht-chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}

.ht-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 500px;
  max-height: calc(100vh - 44px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ht-chat-panel.ht-open {
  display: flex;
  animation: htSlideUp 0.22s ease-out;
}

.ht-chat-header {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ht-chat-header-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.ht-chat-header-sub {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 2px;
}

.ht-chat-close {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ht-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #fffbeb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ht-msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.48;
  word-wrap: break-word;
  white-space: pre-line;
}

.ht-msg-bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #fde68a;
  border-bottom-left-radius: 4px;
}

.ht-msg-user {
  align-self: flex-end;
  background: #d97706;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ht-chat-chips {
  padding: 8px 12px 4px;
  background: #fffbeb;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ht-chip {
  background: #ffffff;
  color: #b45309;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.ht-chip:hover {
  background: #fef3c7;
}

.ht-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.ht-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  outline: none;
}

.ht-chat-input:focus {
  border-color: #d97706;
}

.ht-chat-send {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ht-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes htSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .ht-chat-launcher {
    right: 14px;
    bottom: 72px;
  }
  .ht-chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 78vh;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
  }
}
