/* Studio Demo — BlingAI chatbot */
#gcw-chat-bubble {
  position: fixed; bottom: 20px; right: 20px;
  background: linear-gradient(145deg, #FFFCFA, #E8DFD2);
  color: #1A120C; 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.85s cubic-bezier(0.22,1,0.32,1), border-radius 0.85s, padding 0.85s, box-shadow 0.7s;
  border: 1px solid rgba(122,86,32,0.45);
  box-shadow: 0 10px 32px rgba(26,18,12,0.16), 0 0 0 1px rgba(122,86,32,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: #7A5620; display: flex; flex-shrink: 0; }
#gcw-chat-bubble .gcw-bubble-text {
  max-width: 0; overflow: hidden; margin-left: 0;
  font-family: "Figtree", system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1A120C;
  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, #7A5620, #5C3D1F);
  color: #FFFCFA;
}
#gcw-chat-bubble:hover .gcw-bubble-icon, #gcw-chat-bubble.show-text .gcw-bubble-icon { color: #FFFCFA; }
#gcw-chat-bubble:hover .gcw-bubble-text, #gcw-chat-bubble.show-text .gcw-bubble-text { color: #FFFCFA; }
#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, #FFFCFA 0%, #F6F1EA 100%);
  border-radius: 22px; box-shadow: 0 20px 55px rgba(26,18,12,0.16);
  display: flex; flex-direction: column; z-index: 10000; overflow: hidden;
  border: 1px solid rgba(122,86,32,0.22);
  font-family: "Figtree", system-ui, sans-serif; color: #1A120C;
}
@media (max-height: 700px) { #gcw-chat-container { height: 90vh; } }
.gcw-hidden { display: none !important; }

#gcw-chat-header {
  background: #1A120C;
  color: #FFFCFA; padding: 16px 20px; text-align: center;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.15rem; position: relative; font-weight: 600;
  border-bottom: 1px solid rgba(122,86,32,0.18);
}
#gcw-chat-header::after {
  content: "Kopiranje · tisk · dokumenti";
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #7A5620; margin-top: 4px;
}
#gcw-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(122,86,32,0.12); color: #7A5620; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; border: 1px solid rgba(122,86,32,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(122,86,32,0.28); color: #C4A35A;
}
#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: #C4A35A; color: #1A120C; margin-left: auto; border-bottom-right-radius: 5px; }
.gcw-message.bot {
  background: #E8DFD2; color: #1A120C; border: 1px solid rgba(122,86,32,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; scrollbar-width: none; }
#gcw-suggestions::-webkit-scrollbar { display: none; }
.gcw-suggestion {
  background: rgba(122,86,32,0.12); color: #C4A35A; border: 1px solid rgba(122,86,32,0.3);
  padding: 8px 14px; border-radius: 30px; cursor: pointer; font-size: 12.5px; flex-shrink: 0;
}
.gcw-suggestion:hover { background: rgba(122,86,32,0.25); }

.gcw-calendly-btn, .gcw-consult-btn {
  background: #C4A35A; color: #1A120C; 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: #7A5620; border: 1px solid rgba(122,86,32,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(122,86,32,0.12); }
.gcw-input-wrapper {
  position: relative; flex: 1; background: #FFFCFA; border: 1px solid rgba(122,86,32,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: #1A120C;
  border: none; font-size: 13px; outline: none;
}
#gcw-user-input::placeholder { color: #5E5144; }
#gcw-attach-btn, #gcw-voice-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none;
  color: #5E5144; 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: #7A5620; color: #1A120C; 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: #C4A35A; }
#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: #1A120C; color: #1A120C;
  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: #FFFCFA; border: 1px solid rgba(122,86,32,0.22); color: #1A120C;
  padding: 0.55rem 0.7rem; opacity: 0; transition: 0.3s;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(26,18,12,0.16);
  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: #3A2E24; line-height: 1.35; flex: 1; min-width: 0; }
.cookie-notice__text a { color: #7A5620; }
.cookie-notice__btn {
  background: #7A5620; color: #1A120C; 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;
  }
}
