
/* CSS Multiple Whatsapp Chat */
#whatsapp-chat {
  position: fixed;
  background: #fff;
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
  bottom: 90px;
  right: 30px;
  overflow: hidden;
  z-index: 10090;
  animation-name: showchat;
  animation-duration: 1s;
  transform: scale(1);
}

/* ========== Central de atendimento da loja ========== */
#whatsapp-chat.dm-store-help-hub {
  width: min(400px, calc(100vw - 24px));
  max-height: min(86vh, 720px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
  display: none;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
}

#whatsapp-chat.dm-store-help-hub.show {
  display: flex !important;
}

#whatsapp-chat.dm-store-help-hub.hide {
  display: none !important;
}

/* Evita herdar position:fixed de style.css (header global da loja) */
#whatsapp-chat.dm-store-help-hub .dm-help-hub__header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 1 !important;
  padding-top: 0 !important;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: none !important;
  border: none !important;
}

.dm-help-hub__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dm-help-hub__header {
  padding: 20px 18px 14px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  flex-shrink: 0;
}

.dm-help-hub__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-right: 36px;
  flex-wrap: wrap;
}

.dm-help-hub__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1 1 160px;
  min-width: 0;
  color: #fff;
}

#whatsapp-chat.dm-store-help-hub .dm-help-hub__title-main {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.dm-help-hub__online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.dm-help-hub__online-badge.is-open {
  background: rgba(255, 255, 255, 0.22);
}

.dm-help-hub__online-badge.is-closed {
  background: rgba(0, 0, 0, 0.15);
}

.dm-help-hub__online-dot,
.dm-help-hub__hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbf7d0;
  flex-shrink: 0;
}

.dm-help-hub__online-badge.is-closed .dm-help-hub__online-dot,
.dm-help-hub__hours-line.is-closed .dm-help-hub__hours-dot {
  background: #fca5a5;
}

.dm-help-hub__response-hint {
  margin: 10px 0 0;
  font-size: 13px;
  opacity: 0.95;
}

.dm-help-hub__body {
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.dm-help-hub__wa-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-help-hub__wa-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.dm-help-hub__wa-primary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.dm-help-hub__wa-primary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dm-help-hub__wa-primary-text strong {
  font-size: 16px;
  font-weight: 700;
}

.dm-help-hub__wa-primary-text small {
  font-size: 12px;
  opacity: 0.92;
}

.dm-help-hub__chevron {
  font-size: 22px;
  opacity: 0.85;
  line-height: 1;
}

.dm-help-hub__contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dm-help-hub__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  font-size: 11px;
  text-align: center;
  transition: background 0.2s ease;
}

.dm-help-hub__contact:hover {
  background: #f1f5f9;
  text-decoration: none;
  color: #0f172a;
}

.dm-help-hub__contact-icon {
  font-size: 18px;
  line-height: 1;
}

.dm-help-hub__contact-label {
  font-weight: 600;
  color: #64748b;
}

.dm-help-hub__contact-value {
  font-size: 10px;
  color: #334155;
  word-break: break-word;
}

.dm-help-hub__store-card {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dm-help-hub__store-media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.dm-help-hub__store-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-help-hub__store-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.dm-help-hub__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  vertical-align: middle;
}

.dm-help-hub__rating {
  margin: 0 0 6px;
  font-size: 12px;
  color: #475569;
}

.dm-help-hub__rating span {
  color: #94a3b8;
}

.dm-help-hub__hours-line {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dm-help-hub__hours-line.is-open {
  color: #16a34a;
}

.dm-help-hub__hours-line.is-closed {
  color: #dc2626;
}

.dm-help-hub__tagline {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.dm-help-hub__section {
  margin-top: 14px;
}

.dm-help-hub__section-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dm-help-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-help-hub__action {
  flex: 1 1 calc(50% - 4px);
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dm-help-hub__action:hover {
  background: #f8fafc;
}

.dm-help-hub__link-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.dm-help-hub__link-row:last-child {
  border-bottom: none;
}

.dm-help-hub__link-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.dm-help-hub__link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-help-hub__link-text strong {
  font-size: 13px;
  color: #0f172a;
}

.dm-help-hub__link-text small {
  font-size: 11px;
  color: #94a3b8;
}

.dm-help-hub__footer {
  padding: 12px 16px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
  text-align: center;
}

.dm-help-hub__secure {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.dm-help-hub__footer-hours {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}


/* Botão padrão (landing, login) */
a.blantershow-chat:not(.dm-help-bubble) {
  background: linear-gradient(to right top, #34af23, #61c153);
  color: #fff;
  position: fixed;
  z-index: 10085;
  bottom: 25px;
  right: 30px;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 1px 15px rgba(32, 33, 36, 0.28);
  text-decoration: none;
}

a.blantershow-chat:not(.dm-help-bubble) i {
  transform: scale(1.2);
  margin: 0 10px 0 0;
}

/* Balão flutuante — WhatsApp moderno */
a.blantershow-chat.dm-help-bubble {
  position: fixed;
  z-index: 10085;
  bottom: 25px;
  right: 24px;
  width: 58px;
  height: 58px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 0;
  line-height: 1;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

a.blantershow-chat.dm-help-bubble.is-store-online .dm-help-bubble__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: dm-help-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes dm-help-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

a.blantershow-chat.dm-help-bubble:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.12);
  color: #fff;
  text-decoration: none;
}

.dm-help-bubble__icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

a.blantershow-chat.dm-help-bubble .dm-help-bubble__dots {
  display: none;
}

.header-chat {
  background: linear-gradient(to right top, #34af23, #61c153);
  color: #fff;
  padding: 20px;
}

.header-chat h3 { margin: 0 0 10px; }
.header-chat p { font-size: 14px; line-height: 1.7; margin: 0; }
.info-avatar { position: relative; }
.info-avatar img { border-radius: 100%; width: 50px; float: left; margin: 0 10px 0 0; }

a.informasi { padding: 20px; display: block; overflow: hidden; animation-name: showhide; animation-duration: 2.5s; }
a.informasi:hover { background: #f1f1f1; }
.info-chat span { display: block; }
.dm-help-chat__phone {
  margin: 0;
  padding: 0 20px 8px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.dm-help-chat__status {
  line-height: 1.6;
}
.dm-help-chat__status-label {
  display: inline-block;
  margin-left: 6px;
  font-weight: 700;
  font-size: 14px;
}
.dm-help-chat__status-label.is-open {
  color: #16a34a;
}
.dm-help-chat__status-label.is-closed {
  color: #dc2626;
}
#get-label, span.chat-label { font-size: 12px; color: #888; }
#get-nama, span.chat-nama { margin: 5px 0 0; font-size: 15px; font-weight: 700; color: #222; }
#get-label, #get-nama { color: #fff; }
span.my-number { display: none; }
.blanter-msg { color: #444; padding: 20px; font-size: 12.5px; text-align: center; border-top: 1px solid #ddd; }
textarea#chat-input { border: none; font-family: 'Arial', sans-serif; width: 100%; height: 20px; outline: none; resize: none; }
a#send-it { color: #555; width: 40px; margin-left: 6px; font-weight: 700; background: #eee; border-radius: 6px; padding-top: 10px; }
.first-msg { background: #f5f5f5; padding: 30px; text-align: center; }
.first-msg span { background: #e2e2e2; color: #333; font-size: 14.2px; line-height: 1.7; border-radius: 10px; padding: 15px 20px; display: inline-block; }
.start-chat .blanter-msg { display: flex; }
#get-number { display: none; }
a.close-chat { position: absolute; top: 5px; right: 15px; color: #fff; font-size: 30px; }

@keyframes showhide { from { transform: scale(0.5); opacity: 0; } }
@keyframes showchat { from { transform: scale(0); opacity: 0; } }

@media screen and (max-width: 480px) {
  #whatsapp-chat:not(.dm-store-help-hub) {
    width: auto;
    left: 5%;
    right: 5%;
    font-size: 80%;
  }

  #whatsapp-chat.dm-store-help-hub {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: 78vh;
  }

  a.blantershow-chat.dm-help-bubble {
    width: 54px;
    height: 54px;
    right: 16px;
  }

  .dm-help-bubble__icon {
    width: 28px;
    height: 28px;
  }

  .dm-help-hub__contacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hide { display: none !important; animation-name: showhide; animation-duration: 1.5s; transform: scale(1); opacity: 1; }
.show:not(.dm-store-help-hub) { display: block; animation-name: showhide; animation-duration: 1.5s; transform: scale(1); opacity: 1; }
