/* QTC TRB WhatsApp Button v1.8 */
:root {
  --qtcwsp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --qtcwsp-accent: #84bd00;
  --qtcwsp-green: #00ac2c;
  --qtcwsp-text: #191919;
  --qtcwsp-muted: #666;
  --qtcwsp-line: #eee;
  --qtcwsp-mobile-bottom: 200px;
  --qtcwsp-desktop-bottom: 280px;
}
#qtc-trb-wsp,
#qtc-trb-wsp * { box-sizing: border-box; }
#qtc-trb-wsp { font-family: var(--qtcwsp-font); }
#qtc-trb-wsp .qtcwsp-hidden { display: none !important; }
#qtc-trb-wsp .qtcwsp-auto-avatar { opacity: 0; visibility: hidden; pointer-events: none; animation: qtcwsp-auto-avatar-show .22s ease 3s forwards; }
#qtc-trb-wsp .qtcwsp-auto-bubble { opacity: 0; visibility: hidden; pointer-events: none; animation: qtcwsp-auto-avatar-show .22s ease 3.08s forwards; }
@keyframes qtcwsp-auto-avatar-show { to { opacity: 1; visibility: visible; pointer-events: auto; } }
@keyframes qtcwsp-auto-fab-hide { to { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.9); } }


#qtc-trb-wsp .qtcwsp-fab {
  position: fixed;
  bottom: var(--qtcwsp-desktop-bottom, 30px);
  right: 30px;
  z-index: 999999;
  width: 60px;
  height: 60px;
  background: var(--qtcwsp-green);
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, bottom .28s ease;
  animation: qtcwsp-fab-pulse 2.5s ease-in-out infinite, qtcwsp-auto-fab-hide .22s ease 3s forwards;
}
#qtc-trb-wsp .qtcwsp-fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,.26); animation: none; color: #fff; text-decoration: none; }
#qtc-trb-wsp .qtcwsp-fab svg { fill: #fff; pointer-events: none; }
#qtc-trb-wsp .qtcwsp-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 21px;
  height: 21px;
  background: #ff2d2d;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
@keyframes qtcwsp-fab-pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 0 rgba(0,172,44,.5); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 14px rgba(0,172,44,0); }
}

#qtc-trb-wsp .qtcwsp-avatar {
  position: fixed;
  bottom: var(--qtcwsp-desktop-bottom, 30px);
  right: 30px;
  z-index: 999999;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform .18s ease, bottom .28s ease;
}
#qtc-trb-wsp .qtcwsp-avatar:hover { transform: scale(1.05); }
#qtc-trb-wsp .qtcwsp-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--qtcwsp-green);
  object-fit: cover;
  object-position: center 18%;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  background: #fff;
}
#qtc-trb-wsp .qtcwsp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #ff2d2d;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: qtcwsp-badge-bounce 1.6s ease-in-out infinite;
}
#qtc-trb-wsp .qtcwsp-wsp-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  background: var(--qtcwsp-green);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  color: #fff;
}
#qtc-trb-wsp .qtcwsp-wsp-dot svg { fill: #fff; pointer-events: none; }
#qtc-trb-wsp .qtcwsp-avatar-enter { animation: qtcwsp-avatar-in .4s cubic-bezier(.175,.885,.32,1.275) forwards; }
#qtc-trb-wsp .qtcwsp-avatar.qtcwsp-pulsing .qtcwsp-avatar-img { animation: qtcwsp-avatar-pulse 3s ease-in-out infinite; }
#qtc-trb-wsp .qtcwsp-avatar.qtcwsp-attention { animation: qtcwsp-attention .9s ease both; }
@keyframes qtcwsp-avatar-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes qtcwsp-avatar-pulse { 0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 0 rgba(0,172,44,.5); } 50% { box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 12px rgba(0,172,44,0); } }
@keyframes qtcwsp-attention { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes qtcwsp-badge-bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 35% { transform: translateY(-4px); } 65% { transform: translateY(-2px); } }

#qtc-trb-wsp .qtcwsp-popup {
  position: fixed;
  bottom: calc(var(--qtcwsp-desktop-bottom, 30px) + 80px);
  right: 80px;
  z-index: 999998;
  width: 392px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--qtcwsp-line);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  overflow: hidden;
  transform-origin: bottom right;
  transition: bottom .28s ease;
}
#qtc-trb-wsp .qtcwsp-popup-enter { animation: qtcwsp-popup-in 250ms cubic-bezier(.25,.46,.45,.94) forwards; }
#qtc-trb-wsp .qtcwsp-popup-exit { animation: qtcwsp-popup-out 200ms ease-in forwards; }
@keyframes qtcwsp-popup-in { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes qtcwsp-popup-out { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(.95) translateY(8px); } }

#qtc-trb-wsp .qtcwsp-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  padding: 0;
  font-size: 20px;
  line-height: 32px;
}
#qtc-trb-wsp .qtcwsp-close-btn:hover { background: #ebebeb; }
#qtc-trb-wsp .qtcwsp-popup-header { display: flex; align-items: center; gap: 16px; padding: 28px 28px 20px; background: #fff; }
#qtc-trb-wsp .qtcwsp-header-avatar-wrap { position: relative; flex-shrink: 0; }
#qtc-trb-wsp .qtcwsp-header-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--qtcwsp-line);
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: #fff;
}
#qtc-trb-wsp .qtcwsp-header-online {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #15c65d;
  border-radius: 50%;
  border: 2.5px solid #fff;
  animation: qtcwsp-online-blink 2.5s ease-in-out infinite;
}
@keyframes qtcwsp-online-blink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
#qtc-trb-wsp .qtcwsp-header-info { flex: 1; min-width: 0; padding-right: 36px; }
#qtc-trb-wsp .qtcwsp-header-name { font-size: 19px; font-weight: 800; color: var(--qtcwsp-text); margin: 0 0 3px; line-height: 1.25; }
#qtc-trb-wsp .qtcwsp-header-name span { color: var(--qtcwsp-accent); }
#qtc-trb-wsp .qtcwsp-header-role { font-size: 13.5px; color: var(--qtcwsp-muted); margin: 0 0 6px; font-weight: 400; }
#qtc-trb-wsp .qtcwsp-header-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #999; margin: 0; }
#qtc-trb-wsp .qtcwsp-status-dot { width: 7px; height: 7px; background: #15c65d; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#qtc-trb-wsp .qtcwsp-popup-sep { height: 1px; background: var(--qtcwsp-line); margin: 0 28px; }
#qtc-trb-wsp .qtcwsp-popup-body { padding: 18px 28px 10px; }
#qtc-trb-wsp .qtcwsp-product-question { font-size: 13.5px; color: #777; margin: 0 0 8px; line-height: 1.45; font-weight: 400; }
#qtc-trb-wsp .qtcwsp-product-name { color: var(--qtcwsp-accent); font-weight: 800; }
#qtc-trb-wsp .qtcwsp-popup-message { font-size: 16.5px; color: var(--qtcwsp-text); margin: 0 0 6px; line-height: 1.42; font-weight: 800; }
#qtc-trb-wsp .qtcwsp-popup-help-label { font-size: 13px; color: #666; margin: 0; line-height: 1.45; font-weight: 400; }
#qtc-trb-wsp .qtcwsp-popup-footer { padding: 8px 28px 0; }
#qtc-trb-wsp .qtcwsp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  background: var(--qtcwsp-green);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,172,44,.3);
}
#qtc-trb-wsp .qtcwsp-cta-btn:hover { background: #009925; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,172,44,.4); color: #fff; text-decoration: none; }
#qtc-trb-wsp .qtcwsp-cta-btn svg { fill: #fff; pointer-events: none; flex-shrink: 0; }
#qtc-trb-wsp .qtcwsp-trust-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 28px 18px; font-size: 11.8px; color: #777; font-weight: 400; text-align: center; }
#qtc-trb-wsp .qtcwsp-trust-icon { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
#qtc-trb-wsp .qtcwsp-drag-handle { display: none; }
#qtc-trb-wsp .qtcwsp-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999996; }
#qtc-trb-wsp.qtcwsp-popup-is-open .qtcwsp-backdrop { display: none; }
#qtc-trb-wsp .qtcwsp-mini-bubble { display: block; position: fixed; bottom: calc(var(--qtcwsp-desktop-bottom, 30px) + 14px); right: 124px; background: #fff; border-radius: 14px; padding: 10px 34px 10px 14px; max-width: 250px; box-shadow: 0 4px 20px rgba(0,0,0,.15); font-size: 13px; line-height: 1.45; color: #1a1a1a; z-index: 999999; cursor: default; }
#qtc-trb-wsp .qtcwsp-mini-bubble:after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 7px solid #fff; }
#qtc-trb-wsp .qtcwsp-mini-bubble-content { cursor: pointer; }
#qtc-trb-wsp .qtcwsp-mini-bubble-close { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; background: #ebebeb; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 14px; line-height: 20px; color: #555; }
#qtc-trb-wsp .qtcwsp-mini-bubble-enter { animation: qtcwsp-mini-bubble-in 250ms cubic-bezier(.25,.46,.45,.94) forwards; }
#qtc-trb-wsp .qtcwsp-mini-bubble-content { margin: 0; }

@keyframes qtcwsp-popup-slide-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes qtcwsp-popup-slide-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes qtcwsp-mini-bubble-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes qtcwsp-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  #qtc-trb-wsp .qtcwsp-fab { bottom: var(--qtcwsp-mobile-bottom); right: 16px; width: 55px; height: 55px; }
  #qtc-trb-wsp .qtcwsp-fab svg { width: 27px; height: 27px; }
  #qtc-trb-wsp .qtcwsp-avatar { bottom: var(--qtcwsp-mobile-bottom); right: 16px; }
  #qtc-trb-wsp .qtcwsp-avatar-img { width: 64px; height: 64px; }
  #qtc-trb-wsp .qtcwsp-popup { bottom: 0 !important; right: 0; left: 0; width: 100%; max-height: 82vh; overflow-x: hidden; overflow-y: auto; border-radius: 20px 20px 0 0; transform-origin: bottom center; }
  #qtc-trb-wsp .qtcwsp-popup-enter { animation: qtcwsp-popup-slide-in 280ms cubic-bezier(.25,.46,.45,.94) forwards; }
  #qtc-trb-wsp .qtcwsp-popup-exit { animation: qtcwsp-popup-slide-out 220ms ease-in forwards; }
  #qtc-trb-wsp .qtcwsp-popup-header { padding: 20px 20px 16px; gap: 14px; }
  #qtc-trb-wsp .qtcwsp-header-avatar { width: 62px; height: 62px; }
  #qtc-trb-wsp .qtcwsp-header-name { font-size: 17px; }
  #qtc-trb-wsp .qtcwsp-header-info { padding-right: 32px; }
  #qtc-trb-wsp .qtcwsp-popup-sep { margin: 0 20px; }
  #qtc-trb-wsp .qtcwsp-popup-body { padding: 16px 20px 10px; }
  #qtc-trb-wsp .qtcwsp-popup-footer { padding: 12px 20px 0; }
  #qtc-trb-wsp .qtcwsp-cta-btn { min-height: 52px; font-size: 14.5px; }
  #qtc-trb-wsp .qtcwsp-trust-footer { padding: 10px 20px 16px; }
  #qtc-trb-wsp .qtcwsp-close-btn { top: 14px; right: 14px; }
  #qtc-trb-wsp .qtcwsp-drag-handle { display: block; width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 12px auto 6px; }
  #qtc-trb-wsp.qtcwsp-popup-is-open .qtcwsp-backdrop { display: block; animation: qtcwsp-backdrop-in 280ms ease forwards; }
  #qtc-trb-wsp .qtcwsp-mini-bubble { display: block; position: fixed; bottom: calc(var(--qtcwsp-mobile-bottom) + 6px); right: 88px; background: #fff; border-radius: 14px; padding: 10px 34px 10px 14px; max-width: 220px; box-shadow: 0 4px 20px rgba(0,0,0,.15); font-size: 13px; line-height: 1.45; color: #1a1a1a; z-index: 999999; cursor: default; }
  #qtc-trb-wsp .qtcwsp-mini-bubble:after { content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 7px solid #fff; }
  #qtc-trb-wsp .qtcwsp-mini-bubble-content { cursor: pointer; }
  #qtc-trb-wsp .qtcwsp-mini-bubble-close { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; background: #ebebeb; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 14px; line-height: 20px; color: #555; }
  #qtc-trb-wsp .qtcwsp-mini-bubble-enter { animation: qtcwsp-mini-bubble-in 250ms cubic-bezier(.25,.46,.45,.94) forwards; }
}
