/* Studio Demo — light BlingAI */
#gcw-chat-bubble {
  position: fixed; bottom: 20px; right: 20px;
  background: #1c1814; color: #fbf7f0; 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;
  border: 1px solid rgba(196,92,50,0.5);
  box-shadow: 0 10px 32px rgba(28,24,20,0.2);
  cursor: pointer;
}
#gcw-chat-bubble .gcw-bubble-icon { color: #c45c32; display: flex; flex-shrink: 0; font-size: 1.3rem; }
#gcw-chat-bubble .gcw-bubble-text {
  max-width: 0; overflow: hidden; margin-left: 0;
  font-family: "Sora", system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fbf7f0;
  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: #c45c32;
}
#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: #fbf7f0; border-radius: 22px; box-shadow: 0 20px 55px rgba(28,24,20,0.18);
  display: flex; flex-direction: column; z-index: 10000; overflow: hidden;
  border: 1px solid rgba(28,24,20,0.1);
  font-family: "Sora", system-ui, sans-serif; color: #1c1814;
}
@media (max-height: 700px) { #gcw-chat-container { height: 90vh; } }
.gcw-hidden { display: none !important; }

#gcw-chat-header {
  background: #1c1814; color: #fbf7f0; padding: 16px 20px; text-align: center;
  font-family: "Fraunces", serif; font-size: 1.15rem; position: relative;
}
#gcw-chat-header::after {
  content: "Vprašaj o seji";
  display: block; font-family: "Sora", sans-serif; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #c45c32; margin-top: 4px;
}
#gcw-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(196,92,50,0.15); color: #c45c32; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; border: 1px solid rgba(196,92,50,0.3);
}
#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;
}
.gcw-message.user { background: #c45c32; color: #fbf7f0; margin-left: auto; border-bottom-right-radius: 5px; }
.gcw-message.bot {
  background: #f3eee4; color: #1c1814; border: 1px solid rgba(28,24,20,0.08);
  border-bottom-left-radius: 5px;
}

#gcw-suggestions { display: flex; gap: 8px; padding: 10px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.gcw-suggestion {
  background: rgba(196,92,50,0.1); color: #c45c32; border: 1px solid rgba(196,92,50,0.3);
  border-radius: 999px; padding: 0.4rem 0.7rem; white-space: nowrap; font-size: 12px;
}

#gcw-chat-input-area { display: flex; gap: 0.4rem; padding: 12px; align-items: flex-end; border-top: 1px solid rgba(28,24,20,0.08); }
.gcw-input-wrapper { flex: 1; display: flex; gap: 0.3rem; background: #f3eee4; border: 1px solid rgba(28,24,20,0.1); border-radius: 14px; padding: 0.3rem; }
#gcw-user-input { flex: 1; border: 0; background: transparent; padding: 0.55rem; outline: none; color: #1c1814; cursor: text; }
#gcw-attach-btn, #gcw-voice-btn, #gcw-send-btn {
  border: 0; background: transparent; color: #c45c32; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}
#gcw-send-btn { background: #c45c32; color: #fbf7f0; }

.cookie-notice {
  position: fixed; left: 50%; bottom: 18px; z-index: 9000;
  transform: translate(-50%, 12px);
  max-width: min(520px, calc(100vw - 120px));
  background: #1c1814; color: #fbf7f0;
  padding: 0.55rem 0.7rem; opacity: 0; transition: 0.3s;
  border-radius: 999px;
}
.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(251,247,240,0.75); }
.cookie-notice__text a { color: #c45c32; }
.cookie-notice__btn {
  background: #c45c32; color: #fbf7f0; border: 0; padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer;
}
@media (max-width: 768px) {
  #gcw-chat-container {
    width: calc(100vw - 24px) !important; height: 78vh !important;
    bottom: 90px !important; left: 50% !important; transform: translateX(-50%) !important;
  }
  #gcw-user-input { font-size: 16px !important; }
  #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; }
}
@media (max-width: 640px) {
  .cookie-notice {
    left: 12px; right: 12px; max-width: none; bottom: 76px;
    border-radius: 16px; transform: translateY(12px);
  }
  .cookie-notice.is-visible { transform: none; }
}
