/**
* Theme Name: Helo Child
* Description: This is a child theme of Helo
* Author: <a href="http://themeforest.net/user/crowdytheme">CrowdyTheme</a>
* Template: helo
* Version: 1.0.0
*/

body .grecaptcha-badge {
	bottom: 160px !important;
}
body .wcf-scroll-to-top {
    bottom: 90px;
}
/* ===== WIDGET ===== */
.widget-trigger {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
}

.trigger-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #ff4a4a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 24px rgba(255,74,74,0.4);
  transition: all 0.25s;
  position: relative;
}

.trigger-btn:hover {
  transform: scale(1.08);
  background: #e03030;
  box-shadow: 0 8px 32px rgba(255,74,74,0.52);
}

.trigger-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 17px; height: 17px;
  background: #00c97e;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #111111;
  font-weight: 800;
}

.trigger-tooltip {
  position: absolute;
  bottom: calc(100% + 10px); right: 0;
  background: #111111;
  color: white;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.trigger-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; right: 22px;
  border: 5px solid transparent;
  border-top-color: #111111;
}

.trigger-btn:hover + .trigger-tooltip { opacity: 1; }

.chat-window {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 370px; height: 545px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.chat-window.closed { transform: scale(0.7) translateY(20px); opacity: 0; pointer-events: none; }
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; }

.chat-header {
  background: #111111;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4a4a, #00c97e);
}

.agent-avatar-wrap { position: relative; flex-shrink: 0; }

.agent-avatar {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #ff4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: white;
}

.online-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #00c97e;
  border: 2px solid #111111;
}

.agent-info { flex: 1; }

.agent-name {
  font-size: 13.5px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.agent-status {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.agent-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00c97e;
}

.close-chat {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.07);
  border: none; border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.close-chat:hover { background: rgba(255,255,255,0.14); color: white; }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: #fafafa;
  scroll-behavior: smooth;
}

.messages::-webkit-scrollbar { width: 3px; }
.messages::-webkit-scrollbar-thumb { background: #ebebeb; border-radius: 2px; }

.msg { display: flex; gap: 8px; animation: msgPop 0.25s ease; }

@keyframes msgPop {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg.user { flex-direction: row-reverse; }

.msg-av {
  width: 27px; height: 27px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
}

.msg-av.agent { background: #ff4a4a; font-weight: 800; color: white; }
.msg-av.user { background: #eeeeee; font-size: 13px; }

.bubble {
  max-width: 240px;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.55;
}

.msg.agent .bubble {
  background: white;
  border: 1px solid #ebebeb;
  border-top-left-radius: 3px;
  color: #111111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.msg.user .bubble {
  background: #111111;
  color: white;
  border-top-right-radius: 3px;
}

.bubble strong { color: #ff4a4a; }
.msg.user .bubble strong { color: #00c97e; }

.chips {
  padding: 10px 13px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid #ebebeb;
  background: white;
}

.chip {
  padding: 5px 11px;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  color: #444444;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.chip:hover { background: #fff0f0; border-color: #ff4a4a; color: #ff4a4a; }

.chat-input-area {
  padding: 10px 12px 12px;
  border-top: 1px solid #ebebeb;
  background: white;
  flex-shrink: 0;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f5f5f5;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  padding: 7px 8px 7px 13px;
  transition: border-color 0.2s;
}

.input-row:focus-within { border-color: #ff4a4a; }

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #111111;
  outline: none;
  resize: none;
  min-height: 22px;
  max-height: 80px;
  line-height: 1.4;
}

.chat-input::placeholder { color: #bbbbbb; }

.send-btn {
  width: 32px; height: 32px;
  background: #ff4a4a;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.send-btn:hover { background: #e03030; }
.send-btn:disabled { background: #dddddd; cursor: not-allowed; }

.powered-by {
  text-align: center;
  padding: 5px;
  font-size: 10px;
  color: #cccccc;
  background: white;
}

.powered-by span { color: #00c97e; font-weight: 700; }

.typing { display: flex; gap: 4px; align-items: center; padding: 10px 13px; }
.tdot { width: 5px; height: 5px; border-radius: 50%; background: #cccccc; animation: td 1.2s infinite; }
.tdot:nth-child(2) { animation-delay: 0.2s; }
.tdot:nth-child(3) { animation-delay: 0.4s; }
@keyframes td { 0%,60%,100%{transform:translateY(0);}30%{transform:translateY(-5px);} }

@media (max-width: 1024px) {
  .chat-window {
    width: 320px;
    height: 480px;
    right: 20px;
    bottom: 90px;
  }
}
@media (max-width: 767px) {
  .chat-window {
    height: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
  .widget-trigger {
    right: 16px;
    bottom: 16px;
  }
}
@media (max-width: 480px) {
  .chat-window {
    width: 100%;
    height: 100%;
  }
  .messages {
    padding: 12px;
  }
  .bubble {
    max-width: 85%;
  }
}
@media (max-height: 650px) and (min-width: 768px){
  .chat-window {
    width: 320px;
    height: 480px;
    right: 20px;
    bottom: 90px;
  }
}
@media (max-height: 570px) and (min-width: 768px){
  .chat-window {
    height: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}