/* ===== Embed overrides for Wix iframe ===== */

/* Compact header — no logo/title, just buttons */
.embed-mode #siteHeader {
  padding: 4px 8px;
  gap: 0;
  justify-content: center;
  border-bottom: 1px solid #333;
}
.embed-mode .site-logo,
.embed-mode .site-title {
  display: none;
}
.embed-mode .header-buttons {
  width: 100%;
  justify-content: center;
}
.embed-mode .header-buttons {
  gap: 6px;
}
.embed-mode .header-buttons button {
  height: 32px;
  font-size: 11px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  border-radius: 6px;
  transition: all 0.2s;
}
.embed-mode .header-buttons button:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}
.embed-mode .header-buttons button i {
  font-size: 16px;
  color: #fff;
}
.embed-mode .header-buttons button .btn-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.embed-mode .header-buttons #helpButton {
  background: #32CD32;
  border-color: #32CD32;
}
.embed-mode .header-buttons #helpButton:hover {
  background: #28a428;
  border-color: #28a428;
}

/* Remove extra spacing */
.embed-mode #inputRow {
  margin-top: 6px;
  padding: 4px 6px;
  gap: 4px;
}

/* Line 1: Message input only (full width) */
.embed-mode #messageInputRow {
  gap: 4px;
}
.embed-mode #messageInputRow #gifSearchWrap,
.embed-mode #messageInputRow #emojiButton,
.embed-mode #messageInputRow #sendButton {
  display: none;
}
.embed-mode #messageInput {
  height: 38px;
  font-size: 15px;
  border-radius: 20px;
  padding: 5px 14px;
}

/* Line 2: GIF search + Emoji + Camera + Send (all same row) */
#toolsRow {
  display: flex;
  gap: 5px;
  align-items: center;
}
#toolsRow #gifSearchWrap {
  flex: 1;
  height: 34px;
}
#toolsRow #gifSearchInput {
  height: 100%;
  font-size: 13px;
  border-radius: 16px;
  padding: 4px 32px 4px 12px;
}
#toolsRow #gifSearchButton {
  width: 26px;
  height: 26px;
  right: 3px;
}

/* All three icon buttons — same size */
#toolsRow #emojiButton,
#toolsRow #uploadPhotoButton,
#toolsRow #sendButton {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

#toolsRow #emojiButton {
  background: #2a2a2a;
}
#toolsRow #emojiButton i {
  font-size: 16px;
  color: #FFD700;
}
#toolsRow #emojiButton:hover {
  background: #3a3a3a;
  transform: scale(1.1);
}

#toolsRow #uploadPhotoButton {
  background: #2a2a2a;
}
#toolsRow #uploadPhotoButton i {
  font-size: 16px;
  color: #4da6ff;
}
#toolsRow #uploadPhotoButton:hover {
  background: #3a3a3a;
  transform: scale(1.1);
}

#toolsRow #sendButton {
  background: #4da6ff;
}
#toolsRow #sendButton i {
  font-size: 15px;
  color: #fff;
}
#toolsRow #sendButton:hover {
  background: #3b8ee6;
  transform: scale(1.1);
}

/* Chat area — tighter on mobile */
.embed-mode #chat {
  padding: 6px 8px;
  padding-bottom: 10px;
}
.embed-mode .msg-wrapper {
  padding: 4px 6px;
  margin-bottom: 4px;
}
.embed-mode .avatar {
  width: 26px;
  height: 26px;
}
.embed-mode .is-text .msg-content {
  padding-left: 34px;
  font-size: 14px;
}
.embed-mode .timestamp {
  font-size: 10px;
}
.embed-mode .msg-header {
  gap: 6px;
}

/* Popups centered for embed */
.embed-mode .popup-container,
.embed-mode #emojiPopup,
.embed-mode #gifPopup {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 55vh;
  width: 95%;
}
.embed-mode .popup-container[style*="display: flex"],
.embed-mode #emojiPopup[style*="display: flex"],
.embed-mode #gifPopup[style*="display: flex"] {
  transform: translate(-50%, -50%);
}
.embed-mode #emojiPicker,
.embed-mode #gifResults {
  max-height: 50vh;
}

/* Modals — full width in embed */
.embed-mode .modalContent {
  max-width: 90vw;
}
.embed-mode #authModalContent {
  max-width: 90vw;
  width: 90vw;
  padding: 18px 16px;
}

/* Chat container border thinner */
.embed-mode #chatContainer {
  border-width: 1px;
}

/* GIF results smaller in embed */
.embed-mode #gifResults img {
  width: 120px;
}
