/* Packora — tính năng chuyển từ trang cũ: nút nổi, chat trực tiếp, popup đăng ký.
   Mọi class dùng tiền tố pkf- để không đụng giao diện hiện có. */
.pkf-hidden { display: none !important; }

/* ---------- Nút Messenger / WhatsApp nổi ---------- */
.pkf-float { position: fixed; right: 20px; bottom: 24px; z-index: 2500; display: flex; flex-direction: column; gap: 12px; }
.pkf-float-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease;
}
.pkf-float-btn:hover { transform: scale(1.1); }
.pkf-float-btn svg { width: 26px; height: 26px; fill: #fff; }
.pkf-float-messenger { background: #0084FF; }
.pkf-float-whatsapp { background: #25D366; }

/* ---------- Nút Liên hệ duy nhất ---------- */
.pkf-contact-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: #0084FF; color: #fff; font: 700 .95rem 'Inter', sans-serif; letter-spacing: .01em;
  box-shadow: 0 8px 26px rgba(0,132,255,.45); transition: transform .2s ease, background .2s ease;
}
.pkf-contact-btn:hover { transform: translateY(-2px); background: #0066CC; }
.pkf-contact-btn svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .pkf-float { right: 14px; bottom: 16px; } .pkf-contact-btn { height: 50px; padding: 0 18px; } }

/* ---------- Chat trực tiếp ---------- */
#pkfChatBubble {
  position: fixed; left: 20px; bottom: 24px; z-index: 2500; width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer; background: #0084FF; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0,132,255,.45); transition: transform .2s ease;
}
#pkfChatBubble:hover { transform: scale(1.08); }
#pkfChatBubble svg { width: 27px; height: 27px; }
#pkfChatDot { display: none; position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #E85D56; border: 2px solid #fff; }
#pkfChatPanel {
  display: none; position: fixed; left: 20px; bottom: 94px; z-index: 2600; width: 360px; max-width: calc(100vw - 24px);
  height: 520px; max-height: calc(100vh - 120px); flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(7,23,43,.35); font-family: 'Inter', sans-serif;
}
.pkf-chat-head { position: relative; padding: 16px 52px 16px 18px; background: linear-gradient(135deg, #0C2340, #0066CC); color: #fff; }
.pkf-chat-head h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pkf-chat-head p { font-size: .8rem; margin: 0; opacity: .85; }
.pkf-chat-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.2rem; cursor: pointer; }
.pkf-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F4F8FC; }
.pkf-welcome { background: #fff; border: 1px solid #D8E5F2; border-radius: 12px; padding: 14px; font-size: .86rem; line-height: 1.5; color: #1C2D42; }
.pkf-welcome h4 { margin: 0 0 6px; font-size: 1rem; }
.pkf-field { margin-top: 10px; }
.pkf-field input, #pkfChatInput, .pkf-form input {
  width: 100%; padding: 11px 13px; border: 1px solid #D8E5F2; border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; color: #1C2D42;
}
.pkf-field input:focus, #pkfChatInput:focus, .pkf-form input:focus { outline: 0; border-color: #0084FF; box-shadow: 0 0 0 3px rgba(0,132,255,.15); }
.pkf-btn {
  width: 100%; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: #0084FF; color: #fff; font: inherit; font-weight: 700; font-size: .92rem; transition: background .2s;
}
.pkf-btn:hover { background: #0066CC; }
.pkf-btn:disabled { opacity: .6; cursor: wait; }
.pkf-error { display: none; margin-top: 8px; color: #E85D56; font-size: .8rem; text-align: center; }
.pkf-trust { margin-top: 10px; font-size: .75rem; color: #5B6B7C; text-align: center; }
.pkf-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.4; word-wrap: break-word; }
.pkf-msg.customer { align-self: flex-end; background: #0084FF; color: #fff; border-bottom-right-radius: 4px; }
.pkf-msg.staff { align-self: flex-start; background: #fff; color: #1C2D42; border: 1px solid #D8E5F2; border-bottom-left-radius: 4px; }
.pkf-msg.image { padding: 5px; background: transparent !important; border: 0 !important; }
.pkf-msg-img { max-width: 100%; border-radius: 10px; display: block; cursor: pointer; }
#pkfComposerWrap { display: none; border-top: 1px solid #D8E5F2; background: #fff; }
#pkfPreviewRow { display: none; padding: 10px 12px 0; }
.pkf-thumb-wrap { position: relative; display: inline-block; }
#pkfPreviewThumb { max-height: 70px; max-width: 100px; border-radius: 8px; display: block; object-fit: cover; }
#pkfPreviewRemove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #0C2340; color: #fff; cursor: pointer; line-height: 1; }
#pkfComposer { display: flex; align-items: center; gap: 8px; padding: 12px; }
.pkf-icon-btn { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #D8E5F2; background: #fff; color: #0C2340; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pkf-icon-btn.send { background: #0084FF; border-color: #0084FF; color: #fff; }
.pkf-icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) { #pkfChatPanel { left: 12px; right: 12px; width: auto; } }
