:root{--dp-extra-green:#39e58c;--dp-extra-dark:#07111f;--dp-extra-line:#dbe3ed;--dp-extra-text:#172033;--dp-extra-muted:#667085}
#dp-promo-bar{position:sticky;top:0;z-index:9998;background:linear-gradient(90deg,#7c2d12,#ea580c 34%,#f59e0b 70%,#7c2d12);color:#fff;box-shadow:0 8px 26px rgba(124,45,18,.26);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#dp-promo-bar .dp-promo-inner{max-width:1180px;margin:auto;min-height:66px;padding:9px 18px;display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
#dp-promo-bar .dp-promo-badge{font-size:11px;font-weight:1000;letter-spacing:.9px;background:#fff;color:#9a3412;border-radius:999px;padding:7px 10px;white-space:nowrap}
#dp-promo-bar .dp-promo-copy{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;justify-content:center;font-weight:800}
#dp-promo-bar .dp-promo-copy strong{font-size:20px}.dp-old-price{text-decoration:line-through;opacity:.78;font-size:14px}.dp-new-price{font-size:25px;font-weight:1000;color:#fff}.dp-save{font-size:12px;background:#7f1d1d;border:1px solid #ffffff55;padding:5px 8px;border-radius:7px}
#dp-promo-bar .dp-promo-clock{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:900;white-space:nowrap}.dp-clock-value{font-variant-numeric:tabular-nums;background:#111827;border:1px solid #ffffff55;border-radius:9px;padding:8px 10px;font-size:15px;letter-spacing:.7px}
#dp-promo-bar .dp-promo-cta{background:#fff;color:#7c2d12;text-decoration:none;font-size:12px;font-weight:1000;padding:11px 14px;border-radius:10px;box-shadow:0 4px 12px #0002;white-space:nowrap}
#dp-promo-bar .dp-promo-cta:hover{transform:translateY(-1px)}
#dp-support-launcher{position:fixed;right:18px;bottom:18px;z-index:9997;border:0;border-radius:50%;background:#1769d2;color:#fff;box-shadow:0 14px 34px rgba(7,17,31,.3);width:58px;height:58px;padding:0;cursor:pointer;display:grid;place-items:center;overflow:visible}
#dp-support-launcher::before{content:'';display:block;width:30px;height:30px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a8 8 0 0 1 16 0'/%3E%3Cpath d='M18 19c0 1.1-.9 2-2 2h-3'/%3E%3Cpath d='M4 14v3a2 2 0 0 0 2 2h1v-7H6a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M20 14v3a2 2 0 0 1-2 2h-1v-7h1a2 2 0 0 1 2 2Z'/%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3C/svg%3E")}
#dp-support-launcher:hover{transform:translateY(-1px)}
.dp-support-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(4,12,24,.55);display:grid;place-items:end;padding:18px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dp-support-panel{width:min(430px,100%);height:min(690px,calc(100vh - 36px));background:#fff;border-radius:20px;box-shadow:0 30px 90px #0006;display:flex;flex-direction:column;overflow:hidden;color:var(--dp-extra-text)}
.dp-support-head{background:#09182b;color:#fff;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.dp-support-head h2{font-size:18px;margin:0 0 3px;letter-spacing:-.3px}.dp-support-head p{font-size:11px;color:#b8c5d8;margin:0}.dp-support-close{border:0;background:#ffffff14;color:#fff;width:36px;height:36px;border-radius:10px;font-size:22px;cursor:pointer}
.dp-support-body{flex:1;min-height:0;background:#f5f7fb;padding:16px;overflow:auto}.dp-support-intro{background:#fff;border:1px solid var(--dp-extra-line);border-radius:14px;padding:13px 14px;margin-bottom:14px;font-size:12px;line-height:1.5;color:#536176}.dp-support-intro strong{display:block;color:#172033;font-size:13px;margin-bottom:4px}
.dp-chat{display:flex;flex-direction:column;gap:9px}.dp-msg{max-width:88%;padding:10px 12px;border-radius:14px;font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.dp-msg.customer{align-self:flex-end;background:#16304f;color:#fff;border-bottom-right-radius:5px}.dp-msg.admin{align-self:flex-start;background:#fff;border:1px solid #dde5ef;border-bottom-left-radius:5px;color:#27364b}.dp-msg.purchase{border-color:#9be7be;background:#effdf5}.dp-msg small{display:block;font-size:9px;margin-top:6px;opacity:.62}
.dp-support-form{border-top:1px solid #e3e9f1;background:#fff;padding:12px;display:flex;gap:8px}.dp-support-form textarea{flex:1;resize:none;min-height:48px;max-height:120px;border:1px solid #cad5e3;border-radius:11px;padding:10px 11px;font:13px system-ui;outline:none}.dp-support-form textarea:focus{border-color:#2d6cdf;box-shadow:0 0 0 3px #2d6cdf18}.dp-support-form button{align-self:flex-end;border:0;border-radius:10px;background:#1f66d1;color:#fff;font-weight:900;padding:12px 14px;cursor:pointer}.dp-support-form button:disabled{opacity:.55;cursor:wait}
.dp-support-prelogin{padding:24px 18px;text-align:center}.dp-support-prelogin h3{margin:0 0 8px;font-size:21px}.dp-support-prelogin p{color:#667085;line-height:1.55;font-size:13px}.dp-support-actions{display:grid;gap:9px;margin-top:18px}.dp-support-actions a{display:block;text-decoration:none;border-radius:11px;padding:13px 14px;font-weight:900;font-size:13px}.dp-support-actions .primary{background:#16304f;color:#fff}.dp-support-actions .email{border:1px solid #ccd7e5;color:#1f4c87;background:#fff}.dp-support-email{color:#2b63aa;font-weight:800;text-decoration:none}.dp-support-loading{display:grid;place-items:center;min-height:200px;color:#667085;font-size:13px}.dp-support-error{margin:12px;padding:10px 12px;border-radius:10px;background:#fff0f0;color:#9f1d1d;font-size:12px}
.dp-footer-support{margin-left:8px;color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){#dp-promo-bar .dp-promo-inner{padding:8px 10px;gap:7px;min-height:86px}.dp-promo-badge{display:none!important}#dp-promo-bar .dp-promo-copy{gap:6px;font-size:12px}#dp-promo-bar .dp-promo-copy strong{font-size:13px}.dp-old-price{font-size:11px}.dp-new-price{font-size:20px}.dp-save{display:none}.dp-clock-value{padding:6px 8px!important;font-size:13px!important}.dp-promo-cta{padding:9px 10px!important;font-size:10px!important}#dp-support-launcher{right:14px;bottom:18px;width:54px;height:54px;padding:0}.dp-support-backdrop{padding:0;place-items:end}.dp-support-panel{width:100%;height:min(82vh,720px);border-radius:20px 20px 0 0}}
.dp-account-sac-link{border:1px solid #cfd9e7;background:#fff;color:#214c86;border-radius:9px;padding:8px 10px;font:800 11px system-ui;cursor:pointer}.dp-account-sac-link:hover{background:#f4f7fb}

/* 5.8 · faixa promocional mais compacta e alinhada */
@media(min-width:1061px){
  #dp-promo-bar .dp-promo-inner{max-width:1420px;min-height:58px;padding:7px 20px;gap:14px;flex-wrap:nowrap;justify-content:center}
  #dp-promo-bar .dp-promo-badge{font-size:10px;padding:6px 9px}
  #dp-promo-bar .dp-promo-copy{gap:7px;flex-wrap:nowrap;white-space:nowrap}
  #dp-promo-bar .dp-promo-copy strong{font-size:17px}
  #dp-promo-bar .dp-old-price{font-size:12px}
  #dp-promo-bar .dp-new-price{font-size:22px}
  #dp-promo-bar .dp-save{font-size:10px;padding:4px 7px}
  #dp-promo-bar .dp-promo-clock{gap:6px;font-size:10px}
  #dp-promo-bar .dp-clock-value{padding:7px 9px;font-size:14px}
  #dp-promo-bar .dp-promo-cta{padding:9px 12px;font-size:11px}
}
@media(min-width:761px) and (max-width:1060px){
  #dp-promo-bar .dp-promo-inner{max-width:none;min-height:62px;padding:7px 12px;gap:9px;flex-wrap:nowrap}
  #dp-promo-bar .dp-promo-badge{display:none}
  #dp-promo-bar .dp-promo-copy{gap:6px;flex-wrap:nowrap;white-space:nowrap}
  #dp-promo-bar .dp-promo-copy strong{font-size:14px}
  #dp-promo-bar .dp-old-price{font-size:11px}
  #dp-promo-bar .dp-new-price{font-size:19px}
  #dp-promo-bar .dp-save{font-size:9px;padding:4px 6px}
  #dp-promo-bar .dp-promo-clock{font-size:9px}
  #dp-promo-bar .dp-clock-value{font-size:12px;padding:6px 7px}
  #dp-promo-bar .dp-promo-cta{font-size:10px;padding:8px 9px}
}

/* 5.9 · barra promocional realmente horizontal no desktop */
@media(min-width:1080px){
  #dp-promo-bar .dp-promo-inner{
    width:min(100%,1480px);max-width:1480px;min-height:52px;padding:6px 16px;
    display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;
    align-items:center;justify-content:center;column-gap:14px;row-gap:0;
  }
  #dp-promo-bar .dp-promo-copy{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;flex-wrap:nowrap;white-space:nowrap}
  #dp-promo-bar .dp-promo-clock{justify-self:end}
  #dp-promo-bar .dp-promo-cta{justify-self:end;margin:0}
}
@media(min-width:760px) and (max-width:1079px){
  #dp-promo-bar .dp-promo-inner{min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 10px;padding:7px 12px}
  #dp-promo-bar .dp-promo-badge{display:none!important}
  #dp-promo-bar .dp-promo-copy{justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
  #dp-promo-bar .dp-save{display:none}
  #dp-promo-bar .dp-promo-cta{margin:0}
}

.dp-account-recovery{display:block;max-width:760px;margin:20px auto 70px;padding:18px;border:1px solid #bfdccc;border-radius:12px;background:#eff9f3;color:#146648;font:700 13px system-ui;text-align:center;text-decoration:none}@media(max-width:760px){.dp-account-recovery{margin:16px 18px 85px}}


/* 9.3 · atendimento ao vivo por sessão */
#dp-support-launcher.has-live-message{background:#0b57b7;box-shadow:0 0 0 4px rgba(57,229,140,.18),0 14px 34px rgba(7,17,31,.3);animation:dp-live-pulse 1.8s ease-in-out infinite}
#dp-support-launcher.has-live-message::after{content:'';position:absolute;right:1px;top:1px;width:11px;height:11px;border-radius:50%;background:#39e58c;border:2px solid #fff}
@keyframes dp-live-pulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.dp-live-intro small{display:block;margin-top:7px;color:#75839a;line-height:1.45}
.dp-live-presence{display:inline-block;width:8px;height:8px;border-radius:50%;background:#39e58c;box-shadow:0 0 0 4px rgba(57,229,140,.15);margin-right:8px}
.dp-live-empty{margin:auto;padding:28px 16px;text-align:center;color:#77849a;font-size:12px;line-height:1.5;max-width:280px}
.dp-live-form textarea{min-height:52px}

/* Respostas automáticas de Fernando */
.dp-msg.ai{background:#eef5ff!important;border-color:#aac8ea!important}.dp-msg.ai small{color:#4f6f92!important;font-weight:700}


/* 10.1 · chat flutuante corrigido (isola estilos globais da landing) */
.dp-support-backdrop{
  background:rgba(3,11,20,.16)!important;
  display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;
}
.dp-support-panel{
  padding:0!important;margin:0!important;width:min(410px,calc(100vw - 36px))!important;
  height:min(620px,calc(100vh - 92px))!important;max-height:620px!important;
  border:1px solid #d8e2ee!important;border-radius:18px!important;
  box-shadow:0 24px 70px rgba(3,11,20,.28)!important;background:#fff!important;
  overflow:hidden!important;position:relative!important;
}
.dp-support-panel,.dp-support-panel *{box-sizing:border-box}
.dp-support-panel header,.dp-support-panel section,.dp-support-panel form{margin:0}
.dp-support-head{flex:0 0 auto!important;padding:14px 15px!important;background:linear-gradient(135deg,#0a1a2f,#102b4a)!important}
.dp-support-head h2{font-size:16px!important;line-height:1.2!important;margin:0 0 2px!important;color:#fff!important}
.dp-support-head p{font-size:10.5px!important;line-height:1.35!important;margin:0!important;color:#b9c8dc!important}
.dp-support-close{width:32px!important;height:32px!important;border-radius:9px!important;line-height:1!important}
.dp-support-body{padding:12px!important;background:linear-gradient(#f7f9fc,#f2f6fb)!important;scrollbar-width:thin}
.dp-support-intro{padding:11px 12px!important;margin:0 0 10px!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important;font-size:11.5px!important}
.dp-support-intro strong{font-size:12.5px!important}
.dp-chat{gap:7px!important;padding:2px 0 8px}
.dp-msg{max-width:84%!important;padding:9px 11px!important;border-radius:13px!important;font-size:12.5px!important;line-height:1.42!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.dp-msg.customer{background:linear-gradient(135deg,#153250,#0d2742)!important}
.dp-msg.admin{background:#fff!important;border-color:#dbe4ef!important}
.dp-msg.ai{background:#edf5ff!important;border:1px solid #b9d4f2!important;color:#213a58!important}
.dp-msg small{font-size:9px!important;margin-top:5px!important}
.dp-support-form{flex:0 0 auto!important;padding:10px!important;gap:8px!important;border-top:1px solid #e1e8f0!important;box-shadow:0 -8px 22px rgba(15,23,42,.035)!important}
.dp-support-form textarea{min-height:44px!important;max-height:104px!important;border-radius:12px!important;padding:11px 12px!important;font-size:13px!important;line-height:1.35!important;background:#fbfcfe!important}
.dp-support-form button{height:44px!important;align-self:flex-end!important;border-radius:11px!important;padding:0 14px!important;background:linear-gradient(135deg,#1768d8,#215ac4)!important;box-shadow:0 6px 14px rgba(31,102,209,.18)!important}
.dp-live-empty{padding:22px 14px!important}
@media(max-width:760px){
  .dp-support-backdrop{background:rgba(3,11,20,.26)!important;padding:0!important}
  .dp-support-panel{width:100%!important;height:min(78vh,680px)!important;max-height:none!important;border-radius:18px 18px 0 0!important;border-bottom:0!important}
  .dp-support-head{padding:13px 14px!important}.dp-support-body{padding:10px!important}.dp-support-form{padding:9px!important}
}

/* 10.5 · no checkout mobile o botão de SAC não cobre campos enquanto o teclado está ativo */
@media(max-width:760px){body.dp-inline-checkout.dpi-input-active #dp-support-launcher,body.dp-inline-checkout.dpi-keyboard-visible #dp-support-launcher{display:none!important}}


/* 10.6 · correções mobile do chat e formulários públicos */
.dp-support-form{width:100%!important;min-width:0!important}
.dp-support-form textarea{min-width:0!important;width:100%!important;max-width:100%!important;flex:1 1 auto!important}
.dp-support-form button{flex:0 0 auto!important;white-space:nowrap!important}
@media(max-width:760px){
  .dp-support-backdrop{
    inset:auto 0 auto 0!important;
    top:var(--dp-support-top,0px)!important;
    height:var(--dp-support-vh,100dvh)!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  .dp-support-panel{
    width:100%!important;
    height:min(680px,calc(var(--dp-support-vh,100dvh) - 4px))!important;
    max-height:calc(var(--dp-support-vh,100dvh) - 4px)!important;
    border-radius:18px 18px 0 0!important;
    border-bottom:0!important;
  }
  .dp-support-body{min-height:0!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  .dp-support-form{padding:9px max(9px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))!important;gap:7px!important;align-items:flex-end!important}
  .dp-support-form textarea{font-size:16px!important;min-height:46px!important;max-height:96px!important;padding:11px 12px!important;line-height:1.35!important}
  .dp-support-form button{height:46px!important;min-width:82px!important;padding:0 12px!important;font-size:12px!important}
  .c-input,.c-select{font-size:16px!important}
  .ck-form input:not([type=checkbox]){font-size:16px!important}
}


/* 11.7 · SAC: somente ícone azul de atendente; nunca exibe pill/texto legado */
#dp-support-launcher{
  width:58px!important;min-width:58px!important;max-width:58px!important;height:58px!important;
  padding:0!important;border:0!important;border-radius:50%!important;
  background:#1677ff!important;color:transparent!important;font-size:0!important;line-height:0!important;
  display:grid!important;place-items:center!important;overflow:visible!important;
  box-shadow:0 12px 30px rgba(22,119,255,.32)!important;
}
#dp-support-launcher>*{display:none!important}
#dp-support-launcher::before{
  content:''!important;display:block!important;width:31px!important;height:31px!important;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.1'/%3E%3Cpath d='M6.4 18.8c.9-3 2.8-4.7 5.6-4.7s4.7 1.7 5.6 4.7'/%3E%3Cpath d='M4 10.8a8 8 0 0 1 16 0'/%3E%3Cpath d='M4 11v3.2A1.8 1.8 0 0 0 5.8 16H7v-6H5.8A1.8 1.8 0 0 0 4 11Z'/%3E%3Cpath d='M20 11v3.2a1.8 1.8 0 0 1-1.8 1.8H17v-6h1.2A1.8 1.8 0 0 1 20 11Z'/%3E%3Cpath d='M17 16c-.2 2-1.3 3-3.4 3H12'/%3E%3C/svg%3E")!important;
}
@media(max-width:760px){
  #dp-support-launcher{width:54px!important;min-width:54px!important;max-width:54px!important;height:54px!important;right:14px!important;bottom:max(18px,env(safe-area-inset-bottom))!important}
  #dp-support-launcher::before{width:29px!important;height:29px!important}
}
/* 21.0 · No checkout o botão fica menor e mais alto, para não cobrir campos nem botões de pagamento.
   O conteúdo do checkout ganha espaço extra no fim (checkout-simple-v1.css). */
body.dp-inline-checkout #dp-support-launcher{bottom:96px!important;right:16px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;opacity:.92}
body.dp-inline-checkout #dp-support-launcher::before{width:26px!important;height:26px!important}
@media(max-width:760px){
  body.dp-inline-checkout #dp-support-launcher{bottom:max(96px,calc(env(safe-area-inset-bottom) + 84px))!important;right:10px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important}
  body.dp-inline-checkout #dp-support-launcher::before{width:24px!important;height:24px!important}
}
/* Se uma página antiga tentar manter o chat dentro da demo, ele continua oculto. */
body.dp-demo-mode #dp-support-launcher,body.dp-demo-mode .dp-support-backdrop{display:none!important}
