/* Foto Hit chatbot — subtle BlingAI credit */
#gcw-chat-bubble {
  position: fixed; bottom: 20px; right: 20px;
  background: #F6D91D;
  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, background 0.4s;
  border: 1px solid rgba(26,18,12,0.38);
  box-shadow: 0 12px 28px rgba(26,18,12,0.28);
  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: #1A120C; 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: 248px; border-radius: 32px; padding: 0 18px; justify-content: flex-start;
  background: #E2BE0C;
  color: #1A120C;
}
#gcw-chat-bubble:hover .gcw-bubble-icon, #gcw-chat-bubble.show-text .gcw-bubble-icon { color: #1A120C; }
#gcw-chat-bubble:hover .gcw-bubble-text, #gcw-chat-bubble.show-text .gcw-bubble-text { color: #1A120C; }
#gcw-chat-bubble:hover .gcw-bubble-text, #gcw-chat-bubble.show-text .gcw-bubble-text {
  max-width: 190px; margin-left: 10px;
}

#gcw-chat-container {
  position: fixed; bottom: 92px; right: 20px; width: 380px; height: 620px;
  background: linear-gradient(165deg, #FFFCFA 0%, #F8F4E6 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;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(0.96);
  transform-origin: 100% 100%;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.32, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.42s;
}
#gcw-chat-container.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}
@media (max-height: 700px) { #gcw-chat-container { height: 90vh; } }

#gcw-chat-header {
  background: #1A120C;
  color: #FFFCFA; padding: 14px 52px 12px 18px;
  text-align: left;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  position: relative; font-weight: 600;
  border-bottom: 1px solid rgba(122,86,32,0.18);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.gcw-header-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.gcw-title-row { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; min-width: 0; }
.gcw-header-title {
  font-size: 1.18rem; font-weight: 600; line-height: 1.15; letter-spacing: 0.01em;
}
.gcw-header-sub {
  font-family: "IBM Plex Mono", monospace; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #7A5620; font-weight: 500;
}
.gcw-powered {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #F6D91D;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.gcw-powered:hover { color: #fff; }
#gcw-close {
  position: absolute; right: 12px; 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(246,217,29,0.2); color: #1A120C; border: 1px solid rgba(198,164,14,0.45);
  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; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px; padding-top: 4px; border-top: 1px solid rgba(122,86,32,0.12); }
.gcw-privacy-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(122, 86, 32, 0.72);
}
.gcw-privacy-note a { color: #7A5620; text-decoration: underline; text-underline-offset: 2px; }
.gcw-privacy-note a:hover { color: #1A120C; }
.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: #F6D91D; 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-bubble {
    bottom: 18px !important;
    right: 14px !important;
    width: 52px;
    height: 52px;
  }
  #gcw-chat-bubble .gcw-bubble-icon svg { width: 22px; height: 22px; }
  #gcw-chat-container {
    width: auto !important;
    left: 12px !important;
    right: 12px !important;
    height: min(78vh, calc(100dvh - 96px)) !important;
    bottom: 76px !important;
    max-width: none !important;
    transform: translateY(18px) scale(0.98);
    transform-origin: 50% 100%;
  }
  #gcw-chat-container.is-open { transform: translateY(0) scale(1); }
  .gcw-input-wrapper { height: 52px; }
  #gcw-user-input { font-size: 16px !important; }
  #gcw-user-input::placeholder { font-size: 12px; }
  #gcw-send-btn { width: 52px; height: 52px; }
  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: 16px; 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: 52px; 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;
  }
}
