/* =========================================================
   SKY RECLINERS — LUXURY CONCIERGE CHATBOT
   v2.0 | skyrecliners.com
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* =========================================================
   WHATSAPP BUTTON — fixed bottom-right (LOWEST)
========================================================= */
#sky-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,.38);
  transition: .3s ease;
  text-decoration: none;
}
#sky-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 40px rgba(37,211,102,.48);
}
#sky-whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* =========================================================
   CHAT WIDGET WRAPPER — sits ABOVE WhatsApp
========================================================= */
#sky-chat-widget {
  position: fixed;
  bottom: 92px;
  right: 25px;
  z-index: 999999;
  font-family: 'DM Sans', sans-serif;
}

/* =========================================================
   TOGGLE BUTTON
========================================================= */
#sky-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #D8BE8A, #B89258);
  color: #111;
  font-size: 22px;
  box-shadow: 0 10px 36px rgba(201,169,110,.35), 0 0 20px rgba(201,169,110,.15);
  transition: .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#sky-chat-toggle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(201,169,110,.45);
}
#sky-chat-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,110,.35);
  animation: skyChatPulse 2.5s ease-out infinite;
}
@keyframes skyChatPulse {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}
#sky-notif-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 15px;
  height: 15px;
  background: #E8534A;
  border-radius: 50%;
  border: 2.5px solid #fff;
  font-size: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}

/* =========================================================
   CHAT WINDOW
========================================================= */
#sky-chat-window {
  width: 370px;
  height: 620px;
  background: linear-gradient(180deg, rgba(9,9,9,.99), rgba(13,13,13,.99));
  border: 1px solid rgba(201,169,110,.14);
  border-radius: 28px;
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(201,169,110,.04);
  animation: skySlideUp .3s cubic-bezier(.16,1,.3,1);
}
@keyframes skySlideUp {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   HEADER
========================================================= */
.sky-chat-header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(201,169,110,.055), transparent);
  flex-shrink: 0;
}
.sky-header-left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sky-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D8BE8A, #B89258);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,169,110,.28);
}
.sky-header-text h3 {
  color: #D7BB83;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.1;
  margin: 0;
}
.sky-header-text p {
  color: rgba(255,255,255,.42);
  font-size: 11.5px;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sky-online-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  display: inline-block;
  animation: skyBlink 2s ease-in-out infinite;
}
@keyframes skyBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
#sky-chat-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 17px;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#sky-chat-close:hover {
  background: rgba(255,255,255,.09);
  transform: rotate(90deg);
  color: #fff;
}

/* =========================================================
   QUICK CHIPS
========================================================= */
.sky-quick-chips {
  padding: 10px 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.01);
  flex-shrink: 0;
}
.sky-chip {
  padding: 5px 13px;
  border: 1px solid rgba(201,169,110,.2);
  border-radius: 20px;
  color: rgba(201,169,110,.82);
  font-size: 11.5px;
  cursor: pointer;
  transition: .25s;
  background: rgba(201,169,110,.04);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.sky-chip:hover {
  background: rgba(201,169,110,.1);
  border-color: rgba(201,169,110,.42);
  color: #D8BE8A;
}

/* =========================================================
   MESSAGES AREA
========================================================= */
#sky-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
#sky-chat-messages::-webkit-scrollbar { width: 4px; }
#sky-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(201,169,110,.2);
  border-radius: 20px;
}

/* =========================================================
   BUBBLES
========================================================= */
.sky-message {
  max-width: 86%;
  padding: 13px 16px;
  border-radius: 20px;
  line-height: 1.65;
  font-size: 13.5px;
  animation: skyFade .3s ease;
}
.sky-bot {
  background: linear-gradient(160deg, rgba(201,169,110,.09), rgba(201,169,110,.04));
  border: 1px solid rgba(201,169,110,.1);
  color: rgba(255,255,255,.88);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.sky-bot strong { color: #D8BE8A; font-weight: 500; }
.sky-bot a { color: #D8BE8A; text-decoration: underline; }
.sky-user {
  background: linear-gradient(135deg, rgba(201,169,110,.24), rgba(201,169,110,.12));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  border: 1px solid rgba(201,169,110,.14);
}

/* Product card bubble */
.sky-product-card {
  align-self: flex-start;
  background: linear-gradient(160deg, rgba(201,169,110,.09), rgba(201,169,110,.04));
  border: 1px solid rgba(201,169,110,.15);
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  padding: 14px 16px;
  max-width: 92%;
  animation: skyFade .3s ease;
}
.sky-product-card .sky-prod-name {
  color: #D8BE8A;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sky-product-card .sky-prod-price {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  margin-bottom: 6px;
}
.sky-product-card .sky-prod-desc {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.55;
}
.sky-prod-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #D8BE8A, #B89258);
  color: #111;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: .25s;
}
.sky-prod-cta:hover { opacity: .88; transform: scale(1.03); }

/* WhatsApp bubble */
.sky-wa-bubble {
  align-self: center;
  background: rgba(37,211,102,.06);
  border: 1px solid rgba(37,211,102,.2);
  color: rgba(255,255,255,.78);
  border-radius: 16px;
  padding: 11px 15px;
  font-size: 12.5px;
  text-align: center;
  max-width: 92%;
  animation: skyFade .3s ease;
}
.sky-wa-bubble a {
  color: #4ADE80;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}

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

/* =========================================================
   TYPING
========================================================= */
.sky-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 11px 15px;
  background: rgba(201,169,110,.06);
  border: 1px solid rgba(201,169,110,.08);
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
  width: 58px;
  animation: skyFade .3s ease;
}
.sky-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D8BE8A;
  animation: skyTyping 1.4s infinite;
}
.sky-dot:nth-child(2) { animation-delay: .2s; }
.sky-dot:nth-child(3) { animation-delay: .4s; }
@keyframes skyTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* =========================================================
   INPUT AREA
========================================================= */
.sky-chat-input {
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(0deg, rgba(8,8,8,.95), rgba(12,12,12,.8));
  flex-shrink: 0;
}
#sky-input {
  flex: 1;
  height: 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,169,110,.1);
  border-radius: 50px;
  color: #fff;
  padding: 0 18px;
  outline: none;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  transition: .3s;
}
#sky-input:focus {
  border-color: rgba(201,169,110,.4);
  box-shadow: 0 0 0 3px rgba(201,169,110,.07);
  background: rgba(255,255,255,.06);
}
#sky-input::placeholder { color: rgba(255,255,255,.28); }
#sky-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #D8BE8A, #B89258);
  color: #111;
  transition: .3s;
  box-shadow: 0 6px 18px rgba(201,169,110,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#sky-send:hover { transform: scale(1.07); box-shadow: 0 10px 26px rgba(201,169,110,.4); }
#sky-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#sky-send svg { width: 17px; height: 17px; }

/* =========================================================
   MOBILE  ≤ 480px
========================================================= */
@media (max-width: 480px) {
  #sky-chat-widget  { right: 16px; bottom: 88px; }
  #sky-whatsapp-btn { right: 16px; bottom: 20px; }
  #sky-chat-window  {
    width: calc(100vw - 20px);
    height: 75vh;
    right: -4px;
    bottom: 66px;
    border-radius: 22px;
  }
  .sky-chat-header h3 { font-size: 18px; }
}
