/* Studio Demo — BlingAI chatbot */
#gcw-chat-bubble {
  position: fixed; bottom: 20px; right: 20px;
  background: linear-gradient(145deg, #14110e, #1c1814);
  color: #f3ece1; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; overflow: hidden; white-space: nowrap;
  transition: width 0.5s ease, border-radius 0.5s, padding 0.5s, box-shadow 0.3s;
  border: 1px solid rgba(212,165,116,0.45);
  box-shadow: 0 10px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,165,116,0.2);
  cursor: pointer;
}
#gcw-chat-bubble, #gcw-chat-container, #gcw-chat-container button, #gcw-chat-container input {
  cursor: pointer;
}
body.gcw-open #gcw-chat-container,
body.gcw-open #gcw-chat-container * { cursor: auto; }
body.gcw-open #gcw-chat-container button,
body.gcw-open #gcw-chat-container [role="button"] { cursor: pointer; }
#gcw-user-input { cursor: text; }
#gcw-chat-bubble .gcw-bubble-icon { color: #d4a574; display: flex; flex-shrink: 0; }
#gcw-chat-bubble .gcw-bubble-text {
  max-width: 0; overflow: hidden; margin-left: 0;
  font-family: "Syne", system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #f3ece1;
  transition: max-width 0.6s ease 0.1s, margin-left 0.5s ease 0.1s;
}
#gcw-chat-bubble:hover, #gcw-chat-bubble.show-text {
  width: 232px; border-radius: 32px; padding: 0 18px; justify-content: flex-start;
  background: linear-gradient(145deg, #1c1814, #c4843c);
}
#gcw-chat-bubble:hover .gcw-bubble-text, #gcw-chat-bubble.show-text .gcw-bubble-text {
  max-width: 180px; margin-left: 10px;
}

#gcw-chat-container {
  position: fixed; bottom: 92px; right: 20px; width: 380px; height: 620px;
  background: linear-gradient(165deg, #161310 0%, #0e0c0a 100%);
  border-radius: 22px; box-shadow: 0 20px 55px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; z-index: 10000; overflow: hidden;
  border: 1px solid rgba(232,201,160,0.22);
  font-family: "Syne", system-ui, sans-serif; color: #f3ece1;
}
@media (max-height: 700px) { #gcw-chat-container { height: 90vh; } }
.gcw-hidden { display: none !important; }

#gcw-chat-header {
  background: linear-gradient(135deg, #070605, #14110e);
  color: #f3ece1; padding: 16px 20px; text-align: center;
  font-family: "Instrument Serif", serif; font-size: 1.15rem; position: relative;
  border-bottom: 1px solid rgba(232,201,160,0.18);
}
#gcw-chat-header::after {
  content: "Ask about dates, the cut, or a part";
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #d4a574; margin-top: 4px;
}
#gcw-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(212,165,116,0.12); color: #d4a574; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; border: 1px solid rgba(212,165,116,0.3);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s, color 0.3s;
}
#gcw-close:hover {
  transform: translateY(-50%) rotate(90deg) scale(1.08);
  background: rgba(212,165,116,0.28); color: #e8c9a0;
}
#gcw-chat-messages { flex: 1; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.gcw-message {
  margin: 10px 6px; padding: 12px 16px; border-radius: 16px; max-width: 84%;
  width: fit-content; font-size: 13.5px; line-height: 1.55; animation: gcwFadeIn 0.4s forwards;
}
.gcw-message.user { background: #d4a574; color: #070605; margin-left: auto; border-bottom-right-radius: 5px; }
.gcw-message.bot {
  background: #1c1814; color: #f3ece1; border: 1px solid rgba(232,201,160,0.12);
  border-bottom-left-radius: 5px;
}
.gcw-message img { max-width: 200px; border-radius: 12px; margin: 8px 0; display: block; }

#gcw-suggestions {
  display: flex; gap: 8px; padding: 10px 14px 4px;
  overflow-x: auto; overflow-y: hidden; flex-shrink: 0;
  min-width: 0; width: 100%; max-width: 100%;
  touch-action: pan-x; overscroll-behavior: contain;
  scrollbar-width: thin; cursor: grab;
}
#gcw-suggestions::-webkit-scrollbar { height: 4px; }
#gcw-suggestions::-webkit-scrollbar-thumb { background: rgba(212,165,116,.35); border-radius: 99px; }
.gcw-suggestion {
  background: rgba(212,165,116,0.12); color: #e8c9a0; border: 1px solid rgba(212,165,116,0.3);
  padding: 8px 14px; border-radius: 30px; cursor: pointer; font-size: 12.5px; flex-shrink: 0;
}
.gcw-suggestion:hover { background: rgba(212,165,116,0.25); }

.gcw-calendly-btn, .gcw-consult-btn {
  background: #d4a574; color: #070605; border: none; padding: 11px 18px; border-radius: 30px;
  cursor: pointer; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 5px 15px; align-self: flex-start;
}
.gcw-learn-more-btn {
  background: transparent; color: #d4a574; border: 1px solid rgba(212,165,116,0.4);
  padding: 10px 16px; border-radius: 30px; cursor: pointer; font-size: 13px; margin: 5px 15px;
}

#gcw-chat-input-area { display: flex; align-items: center; gap: 8px; margin: 10px; padding-top: 4px; border-top: 1px solid rgba(232,201,160,0.12); }
.gcw-input-wrapper {
  position: relative; flex: 1; background: #14110e; border: 1px solid rgba(232,201,160,0.18);
  border-radius: 30px; height: 40px; display: flex; align-items: center;
}
#gcw-user-input {
  width: 100%; height: 100%; padding: 0 80px 0 16px; background: transparent; color: #f3ece1;
  border: none; font-size: 13px; outline: none;
}
#gcw-user-input::placeholder { color: rgba(243,236,225,0.35); }
#gcw-attach-btn, #gcw-voice-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none;
  color: rgba(243,236,225,0.5); cursor: pointer; width: 20px; height: 20px; padding: 0;
}
#gcw-attach-btn svg, #gcw-voice-btn svg { width: 18px; height: 18px; }
#gcw-attach-btn { right: 46px; }
#gcw-voice-btn { right: 14px; }
#gcw-voice-btn.recording { color: #e07a7a; }
#gcw-send-btn {
  background: #d4a574; color: #070605; border: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), background 0.28s;
}
#gcw-send-btn:hover { transform: scale(1.08) rotate(-8deg); background: #e8c9a0; }
#gcw-send-btn svg { width: 18px; height: 18px; }
#gcw-pending-preview { display: none; padding: 0 15px 8px; gap: 8px; }
#gcw-pending-preview.visible { display: flex; }
.gcw-preview-item { position: relative; }
.gcw-preview-item img { max-width: 70px; border-radius: 12px; display: block; }
.gcw-preview-item button {
  position: absolute; top: -6px; right: -6px; background: #070605; color: #f3ece1;
  border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer;
}
@keyframes gcwFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  #gcw-chat-container {
    width: auto !important;
    left: 12px !important;
    right: 12px !important;
    height: 78vh !important;
    bottom: 90px !important;
    transform: none !important;
    max-width: none !important;
  }
  #gcw-user-input { font-size: 16px !important; }
  body.gcw-chat-mobile-open { overflow: hidden; }
}

.cookie-notice {
  position: fixed; left: 50%; right: auto; bottom: 18px; z-index: 9000;
  transform: translate(-50%, 12px);
  max-width: min(520px, calc(100% - 120px));
  background: #14110e; border: 1px solid rgba(232,201,160,0.22); color: #f3ece1;
  padding: 0.55rem 0.7rem; opacity: 0; transition: 0.3s;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  pointer-events: auto;
}
.cookie-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-notice__inner { display: flex; gap: 0.75rem; align-items: center; }
.cookie-notice__text { margin: 0; font-size: 0.75rem; color: rgba(243,236,225,0.75); line-height: 1.35; flex: 1; min-width: 0; }
.cookie-notice__text a { color: #d4a574; }
.cookie-notice__btn {
  background: #d4a574; color: #070605; border: 0; padding: 0.45rem 0.85rem; border-radius: 999px; flex-shrink: 0;
  cursor: pointer;
}
@media (max-width: 640px) {
  .cookie-notice {
    left: 12px; right: 12px; max-width: none;
    bottom: 18px; padding: 0.5rem 0.6rem;
    border-radius: 16px;
    transform: translateY(12px);
  }
  .cookie-notice.is-visible { transform: none; }
  .cookie-notice__text { font-size: 0.68rem; }
}
@media (max-width: 768px) {
  #gcw-chat-bubble:hover, #gcw-chat-bubble.show-text {
    width: 62px; border-radius: 50%; padding: 0; justify-content: center;
  }
  #gcw-chat-bubble:hover .gcw-bubble-text,
  #gcw-chat-bubble.show-text .gcw-bubble-text {
    max-width: 0; margin-left: 0;
  }
}
