/* SF-P03-R05 | Escopo exclusivo .samacon-sf | vermelho institucional #FF0000 */
.samacon-sf{--sf-accent:#FF0000;--sf-accent-soft:#fff0f0;--sf-ink:#24252a;--sf-muted:#80828b;--sf-line:#ededf0;--sf-bg:#f7f6f5;color:var(--sf-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--sf-bg);padding:clamp(10px,3vw,38px);min-height:100svh;box-sizing:border-box}
.samacon-sf *,.samacon-sf *::before,.samacon-sf *::after{box-sizing:border-box}
.samacon-sf__shell{margin:auto;width:min(1190px,100%);height:min(790px,calc(100svh - 72px));min-height:620px;display:grid;grid-template-columns:minmax(320px,39%) minmax(0,1fr);background:white;border:1px solid #eee;border-radius:24px;overflow:hidden;box-shadow:0 20px 70px #2222220f}
.samacon-sf__expert{position:relative;min-height:0;display:flex;flex-direction:column;background:#242426;color:white;overflow:hidden}
.samacon-sf__brand{z-index:2;position:relative;padding:32px 36px}.samacon-sf__brand img{display:block;max-width:155px;width:100%;max-height:52px;object-fit:contain;object-position:left;filter:brightness(0) invert(1)}
.samacon-sf__portrait-wrap{position:absolute;inset:0;overflow:hidden}.samacon-sf__portrait{width:100%;height:100%;object-fit:cover;object-position:center 25%;opacity:.9}.samacon-sf__portrait-wrap:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.26) 0%,rgba(0,0,0,.07) 36%,rgba(13,13,14,.79) 79%,rgba(12,12,15,.96) 100%)}
.samacon-sf__portrait-shade{position:absolute;inset:0;background:linear-gradient(132deg,rgba(255,0,0,.14),transparent 52%)}
.samacon-sf__expert-copy{position:relative;z-index:2;margin-top:auto;padding:38px 38px 44px}
.samacon-sf__eyebrow{display:flex;gap:10px;align-items:center;font-size:10px;letter-spacing:1.6px;font-weight:780;color:#f3e8e8}
.samacon-sf__status-dot,.samacon-sf__online{display:inline-block;flex-shrink:0;width:8px;height:8px;background:var(--sf-accent);border-radius:100%;box-shadow:0 0 0 4px #ff000027}
.samacon-sf__expert-copy h2{font-weight:780;color:white!important;font-size:clamp(30px,3.25vw,43px);letter-spacing:-1.4px;line-height:1.13;margin:23px 0 17px}
.samacon-sf__expert-copy p{font-size:14px;color:#dedee0;line-height:1.7;max-width:350px;margin:0 0 30px}
.samacon-sf__expert-person{display:flex;flex-direction:column;gap:4px;padding-top:17px;border-top:1px solid #ffffff36;font-size:12px;color:#babbc0}
.samacon-sf__expert-person strong{font-size:14px;color:white}
.samacon-sf__main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:25px 28px 18px;background:#fff}
.samacon-sf__topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;border-bottom:1px solid var(--sf-line);padding-bottom:17px}
.samacon-sf__topbrand{font-weight:850;font-size:14px;letter-spacing:1.2px;line-height:1.15}.samacon-sf__topbrand span{display:block;font-size:8px;color:#777;letter-spacing:1.4px;margin-top:4px}
.samacon-sf__chat-person{display:flex;align-items:center;gap:10px}.samacon-sf__topavatar{width:38px;height:38px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #ececef;object-fit:cover}
.samacon-sf__chat-person div{display:flex;flex-direction:column;gap:3px}.samacon-sf__chat-person strong{font-size:12px;white-space:nowrap}.samacon-sf__chat-person small{font-size:10px;color:var(--sf-muted);display:flex;align-items:center;gap:7px;white-space:nowrap}.samacon-sf__online{width:6px;height:6px;background:#28a862;box-shadow:none}
.samacon-sf__progress{padding:15px 0 14px}.samacon-sf__progress-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--sf-muted);margin-bottom:10px}.samacon-sf__progress-meta strong{color:var(--sf-ink);font-variant-numeric:tabular-nums}
.samacon-sf__progress-track{width:100%;height:4px;background:#eeeeef;border-radius:9px;overflow:hidden}.samacon-sf__progress-fill{display:block;height:100%;background:var(--sf-accent);border-radius:9px;transition:width .4s ease}
.samacon-sf__chat-region{flex:1;min-height:92px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddd transparent;padding:10px 2px 15px}
.samacon-sf__thread{display:flex;flex-direction:column;justify-content:flex-end;min-height:100%;gap:12px}
.samacon-sf__line{display:flex;align-items:flex-end;gap:10px;width:100%;animation:sf-msg .28s cubic-bezier(.16,1,.3,1) both}.samacon-sf__line--bot{justify-content:flex-start}.samacon-sf__line--user{justify-content:flex-end}.samacon-sf__line--instant{animation:none}
.samacon-sf__avatar{width:32px;height:32px;object-fit:cover;border-radius:50%;flex:none;background:#ececec}
.samacon-sf__bubble{max-width:min(90%,480px);padding:13px 16px;border-radius:16px;font-size:13px;line-height:1.58;white-space:pre-line;overflow-wrap:anywhere}
.samacon-sf__bubble--bot{background:#f3f3f5;color:#303139;border-bottom-left-radius:4px}
.samacon-sf__bubble--user{background:var(--sf-accent);color:#fff;border-bottom-right-radius:4px}
.samacon-sf__typing{display:inline-flex;gap:5px;align-items:center;background:#f2f2f4;min-height:37px;padding:10px 15px;border-radius:14px 14px 14px 3px}
.samacon-sf__typing i{display:block;width:6px;height:6px;border-radius:50%;background:#999aa3;animation:sf-typing 1s infinite ease-in-out}.samacon-sf__typing i:nth-child(2){animation-delay:.16s}.samacon-sf__typing i:nth-child(3){animation-delay:.32s}
.samacon-sf__reply-zone{flex:none;max-height:48%;min-height:112px;overflow-y:auto;padding:14px 3px 12px;border-top:1px solid var(--sf-line);scrollbar-width:thin;scrollbar-color:#ddd transparent}
.samacon-sf__quick-replies{display:grid;grid-template-columns:1fr;gap:7px}
.samacon-sf__button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 15px;min-height:44px;border-radius:11px;font-family:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:background .16s,border .16s,transform .16s;color:var(--sf-ink);background:white;border:1px solid #e7e7ec;line-height:1.38}
.samacon-sf__button:focus-visible,.samacon-sf__input:focus-visible{outline:3px solid #ff00007d;outline-offset:2px}
.samacon-sf__button--primary{background:var(--sf-accent);color:white;border-color:var(--sf-accent);font-weight:760}
.samacon-sf__button--primary:hover:not(:disabled){background:#d90000;border-color:#d90000}
.samacon-sf__button--primary:disabled{background:#ebebef;border-color:#ebebef;color:#888;cursor:not-allowed}
.samacon-sf__option{justify-content:flex-start;text-align:left;width:100%;background:#fff;border:1px solid #e6e6eb;font-size:12.5px;font-weight:590;padding:11px 14px;min-height:40px}
.samacon-sf__option:hover{border-color:var(--sf-accent);color:#bd0000;background:#fff8f8;transform:translateX(2px)}
.samacon-sf__option-number{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#f7f7f8;color:#a0a0a7;font-size:10px;flex:none}
.samacon-sf__option:hover .samacon-sf__option-number{background:#ffe5e5;color:#a90000}
.samacon-sf__input-row{display:flex;align-items:end;gap:10px}
.samacon-sf__field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.samacon-sf__field-label{font-size:11px;font-weight:750;color:#555862}
.samacon-sf__input{width:100%;min-width:0;min-height:45px;border:1px solid #dadce0!important;border-radius:11px!important;padding:10px 14px!important;box-shadow:none!important;background:#fff!important;line-height:1.2;font-family:inherit;font-size:14px!important;color:var(--sf-ink);outline:0}
.samacon-sf__input:focus{border-color:var(--sf-accent)!important;box-shadow:0 0 0 2px #ff00001a!important}
.samacon-sf__error{font-size:11px;min-height:0;color:#bd1212;font-weight:650;margin-top:8px}
.samacon-sf__button--skip{display:block;margin-top:8px;width:100%;background:#f7f7f8;color:#686a70}
.samacon-sf__reply-actions{margin-top:12px;display:flex;justify-content:flex-start}.samacon-sf__button--back{padding:6px 0;font-size:11px;min-height:30px;color:#888;background:none;border:none;font-weight:630;justify-content:flex-start}.samacon-sf__button--back:hover:not(:disabled){color:var(--sf-ink)}.samacon-sf__button--back:disabled{opacity:.4;cursor:default}
.samacon-sf__booking{border:1px solid #ededf0;background:#fafafa;border-radius:13px;padding:17px}.samacon-sf__booking-title{font-weight:790;font-size:13px;color:var(--sf-ink)}.samacon-sf__booking p{font-size:12px;color:#747780;line-height:1.6}.samacon-sf__booking .samacon-sf__button{width:100%;margin-top:4px}
.samacon-sf__footer{font-size:10px;color:#a0a1a8;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--sf-line)}
.samacon-sf__avatar-template{display:none}
@keyframes sf-msg{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes sf-typing{0%,60%,100%{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:880px){.samacon-sf{padding:0}.samacon-sf__shell{width:100%;border:0;border-radius:0;display:flex;flex-direction:column;height:100svh;min-height:550px}.samacon-sf__expert{min-height:135px;max-height:135px;flex:none}.samacon-sf__brand{padding:17px 22px}.samacon-sf__brand img{max-width:120px;max-height:42px}.samacon-sf__portrait{object-position:center 30%}.samacon-sf__expert-copy{padding:2px 22px 16px}.samacon-sf__expert-copy h2{font-size:20px;line-height:1.2;letter-spacing:-.4px;margin:8px 0 0;max-width:350px}.samacon-sf__eyebrow{font-size:9px}.samacon-sf__expert-copy p,.samacon-sf__expert-person{display:none}.samacon-sf__main{flex:1;padding:15px 18px 12px;min-height:0}.samacon-sf__reply-zone{max-height:48%}.samacon-sf__bubble{font-size:12.5px}}
@media(max-width:480px){.samacon-sf__expert{min-height:122px;max-height:122px}.samacon-sf__main{padding:12px 13px 11px}.samacon-sf__topbrand{font-size:12px}.samacon-sf__topbar{padding-bottom:10px;min-height:50px}.samacon-sf__topavatar{width:33px;height:33px}.samacon-sf__chat-person strong{font-size:11px}.samacon-sf__chat-person small{font-size:9px}.samacon-sf__reply-zone{max-height:53%;padding-top:12px}.samacon-sf__option{font-size:12px;min-height:40px;padding:10px 11px}.samacon-sf__chat-region{padding:5px 2px 12px}.samacon-sf__line{gap:7px}.samacon-sf__avatar{width:29px;height:29px}.samacon-sf__bubble{max-width:90%;padding:11px 12px}.samacon-sf__input-row{gap:8px}.samacon-sf__footer{font-size:9px}.samacon-sf__expert-copy h2{font-size:18px}.samacon-sf__brand{padding:10px 16px}}
@media(prefers-reduced-motion:reduce){.samacon-sf *{animation:none!important;transition:none!important}}

/* SF-P03-R05: sobrescreve temas Elementor/WordPress somente dentro da instância */
.samacon-sf .samacon-sf__button {
  font-family:inherit!important;
  font-size:12px!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  text-shadow:none!important;
  text-decoration:none!important;
  box-shadow:none!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--sf-ink)!important;
  border:1px solid #e7e7ec!important;
}
.samacon-sf .samacon-sf__button--primary {
  background:#FF0000!important;
  border-color:#FF0000!important;
  color:#fff!important;
}
.samacon-sf .samacon-sf__button--primary:hover:not(:disabled) {
  background:#d90000!important;
  border-color:#d90000!important;
  color:#fff!important;
}
.samacon-sf .samacon-sf__button--primary:disabled {
  background:#ebebef!important;
  border-color:#ebebef!important;
  color:#888!important;
}
.samacon-sf .samacon-sf__button--back,
.samacon-sf .samacon-sf__button--back:focus,
.samacon-sf .samacon-sf__button--back:hover {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:6px 0!important;
  font-weight:630!important;
  font-size:11px!important;
  color:#75777c!important;
  min-height:30px;
}
.samacon-sf .samacon-sf__button--skip {
  background:#f7f7f8!important;
  color:#686a70!important;
  border:1px solid #e7e7ec!important;
}
.samacon-sf .samacon-sf__option {
  font-size:12.5px!important;
  font-weight:590!important;
  text-align:left!important;
  justify-content:flex-start;
  width:100%;
}
.samacon-sf .samacon-sf__option:hover {
  background:#fff8f8!important;
  border-color:#FF0000!important;
  color:#bd0000!important;
}
.samacon-sf .samacon-sf__button:focus-visible {
  outline:3px solid #ff00007d!important;
  outline-offset:2px;
}
.samacon-sf .samacon-sf__typing {
  gap:10px;
  min-height:38px;
}
.samacon-sf .samacon-sf__typing-dots {display:inline-flex;align-items:center;gap:4px}
.samacon-sf .samacon-sf__typing-dots i {
  display:block;width:6px;height:6px;border-radius:50%;background:#8e9099;
  animation:sf-typing .72s infinite ease-in-out;
}
.samacon-sf .samacon-sf__typing-dots i:nth-child(2){animation-delay:.12s}
.samacon-sf .samacon-sf__typing-dots i:nth-child(3){animation-delay:.24s}
.samacon-sf .samacon-sf__typing-label{color:#737782;font-size:11px;font-style:italic;white-space:nowrap}
.samacon-sf .samacon-sf__portrait--fallback{object-position:center;filter:none}
@media (prefers-reduced-motion:reduce) {
 .samacon-sf .samacon-sf__typing-dots i { animation:none!important; }
}


/* SF-P03-R06 | Isolamento do grid do Elementor/Gutenberg.
 * Um construtor pode reordenar/alterar estilos genéricos de <main>/<aside>.
 * O layout fica determinado EXCLUSIVAMENTE pelos filhos diretos do shortcode.
 */
.samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
  box-sizing:border-box!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  max-width:1190px!important;
}
.samacon-sf .samacon-sf__shell > .samacon-sf__expert,
.samacon-sf .samacon-sf__shell > .samacon-sf__main {
  box-sizing:border-box!important;
  float:none!important;
  clear:none!important;
  position:relative!important;
  margin:0!important;
  min-width:0!important;
  overflow:hidden!important;
}
.samacon-sf .samacon-sf__portrait-wrap {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.samacon-sf .samacon-sf__portrait {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 25%!important;
}
@media (min-width:881px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
  }
  .samacon-sf .samacon-sf__shell > .samacon-sf__expert {
    display:flex!important;
    flex:0 0 39%!important;
    flex-direction:column!important;
    width:39%!important;
    max-width:39%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    align-self:stretch!important;
  }
  .samacon-sf .samacon-sf__shell > .samacon-sf__main {
    display:flex!important;
    flex:1 1 61%!important;
    flex-direction:column!important;
    width:61%!important;
    max-width:61%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    align-self:stretch!important;
    padding:25px 28px 18px!important;
  }
}
@media (max-width:880px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
    display:flex!important;
    flex-flow:column nowrap!important;
    grid-template-columns:none!important;
    height:100svh!important;
    min-height:550px!important;
  }
  .samacon-sf .samacon-sf__shell > .samacon-sf__expert {
    display:flex!important;
    flex:0 0 135px!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    height:135px!important;
    min-height:135px!important;
    max-height:135px!important;
  }
  .samacon-sf .samacon-sf__shell > .samacon-sf__main {
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    padding:15px 18px 12px!important;
  }
}
@media (max-width:480px) {
  .samacon-sf .samacon-sf__shell > .samacon-sf__expert {
    flex-basis:122px!important;
    min-height:122px!important;
    max-height:122px!important;
    height:122px!important;
  }
  .samacon-sf .samacon-sf__shell > .samacon-sf__main {
    padding:12px 13px 11px!important;
  }
}

/* SF-P03-R06 | Prioridade de cores acima dos widgets Elementor/tema. */
.samacon-sf.samacon-sf .samacon-sf__button {
  background:#fff!important;
  color:var(--sf-ink)!important;
  border:1px solid #e7e7ec!important;
  border-radius:11px!important;
  box-shadow:none!important;
  text-transform:none!important;
}
.samacon-sf.samacon-sf .samacon-sf__button--primary {
  background:#FF0000!important;
  color:#fff!important;
  border-color:#FF0000!important;
}
.samacon-sf.samacon-sf .samacon-sf__button--primary:disabled {
  background:#ebebef!important;
  color:#888!important;
  border-color:#ebebef!important;
}
.samacon-sf.samacon-sf .samacon-sf__button--back,
.samacon-sf.samacon-sf .samacon-sf__button--back:hover,
.samacon-sf.samacon-sf .samacon-sf__button--back:focus {
  background:transparent!important;
  color:#75777c!important;
  border:0!important;
  box-shadow:none!important;
  min-height:30px!important;
  padding:6px 0!important;
}
.samacon-sf.samacon-sf .samacon-sf__button--skip {
  background:#f7f7f8!important;
  color:#686a70!important;
}
.samacon-sf.samacon-sf .samacon-sf__option {
  background:#fff!important;
  color:var(--sf-ink)!important;
  border-color:#e6e6eb!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.samacon-sf.samacon-sf .samacon-sf__option:hover {
  background:#fff8f8!important;
  color:#bd0000!important;
  border-color:#FF0000!important;
}

/* SF-P03-R07 | contrato visual canônico Samacon | escopo do componente, sem CSS global.
 * A imagem do usuário já contém o degradê. Foto lateral removida em PHP.
 */
.samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
  background: #0D0D0D url("samacon-dark-background.png") center center / cover no-repeat !important;
}
.samacon-sf .samacon-sf__brand { z-index: 2; }
.samacon-sf .samacon-sf__brand img {
  width: 100% !important;
  max-width: 205px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}
.samacon-sf.samacon-sf .samacon-sf__topbar {
  justify-content: flex-end !important;
}
.samacon-sf.samacon-sf .samacon-sf__chat-person {
  margin-left: auto !important;
  margin-right: 0 !important;
  justify-content: flex-end !important;
}
.samacon-sf .samacon-sf__footer { justify-content: flex-start !important; }
@media (max-width: 880px) {
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    background-position: center top !important;
  }
  .samacon-sf .samacon-sf__brand img { max-width: 165px !important; }
  .samacon-sf.samacon-sf .samacon-sf__topbar { justify-content: flex-start !important; }
  .samacon-sf.samacon-sf .samacon-sf__chat-person {
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
  }
}

/* SF-P03-R08 — ajuste final exclusivamente para celulares.
 * Sem snippets globais. A copy do pre-atendimento permanece intacta em desktop/tablet.
 * A identificacao operacional da Julia continua no cabecalho direito do chat.
 */
@media (max-width:480px) {
  .samacon-sf.samacon-sf .samacon-sf__expert .samacon-sf__eyebrow {
    display:none!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__expert .samacon-sf__expert-copy {
    margin-top:0!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__expert .samacon-sf__expert-copy h2 {
    margin-top:0!important;
  }
}

/* SF-P04-R02 | Avatar circular blindado contra estilos Elementor. */
.samacon-sf.samacon-sf img.samacon-sf__topavatar,
.samacon-sf.samacon-sf img.samacon-sf__avatar {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
.samacon-sf.samacon-sf img.samacon-sf__topavatar { width: 38px !important; height: 38px !important; }
.samacon-sf.samacon-sf img.samacon-sf__avatar { width: 32px !important; height: 32px !important; }
.samacon-sf .samacon-sf__phone-notice {font-size:10px;line-height:1.5;color:#777982;margin:8px 0 0;}
@media (max-width: 480px) {
 .samacon-sf.samacon-sf img.samacon-sf__topavatar {width:33px !important;height:33px !important;}
 .samacon-sf.samacon-sf img.samacon-sf__avatar {width:29px !important;height:29px !important;}
}

/* SF-P04-R02C | v0.2.8 | Contrato de layout estável no container real.
   Root nunca escapa do container WP/Elementor; NUNCA usar 100vw ou margens -50vw.
   100dvh é a ALTURA MÍNIMA da experiência, não uma trava de crescimento:
   respostas compridas rolam apenas o documento (sem rolagem aninhada).
   O painel esquerdo permanece rigidamente em 100dvh no desktop, inclusive
   enquanto o JavaScript adiciona/remove o balão de digitação. */
.samacon-sf.samacon-sf {
  position:relative!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  overflow-x:clip!important;
  overflow-y:visible!important;
  contain:style;
}
.samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
  display:flex!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  align-items:stretch!important;
}
.samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main {
  overflow:visible!important;
  max-width:100%!important;
}
/* A conversa cresce na página, sem duas caixas de rolagem dentro dela. */
.samacon-sf.samacon-sf .samacon-sf__chat-region {
  flex:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  scrollbar-width:none!important;
  padding-top:12px;
}
.samacon-sf.samacon-sf .samacon-sf__thread {
  min-height:0!important;
  justify-content:flex-start!important;
}
.samacon-sf.samacon-sf .samacon-sf__reply-zone {
  flex:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
@media (min-width:881px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
    flex-flow:row nowrap!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    position:sticky!important;
    top:0!important;
    flex:0 0 39%!important;
    width:39%!important;
    min-width:0!important;
    max-width:39%!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    max-height:100vh!important;
    max-height:100dvh!important;
    align-self:flex-start!important;
    overflow:hidden!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    flex:1 1 61%!important;
    width:61%!important;
    max-width:61%!important;
    min-width:0!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    height:auto!important;
    align-self:stretch!important;
  }
}
@media (max-width:880px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
    flex-flow:column nowrap!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    height:auto!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    position:relative!important;
    top:auto!important;
    flex:0 0 135px!important;
    width:100%!important;
    max-width:100%!important;
    min-height:135px!important;
    max-height:135px!important;
    height:135px!important;
    align-self:auto!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    flex:1 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:calc(100dvh - 135px)!important;
    height:auto!important;
    align-self:stretch!important;
  }
}
@media (max-width:480px) {
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    flex-basis:122px!important;
    min-height:122px!important;
    max-height:122px!important;
    height:122px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    min-height:calc(100dvh - 122px)!important;
  }
}


/* SF-P04-R02D | v0.2.9 | VIEWPORT LOCK: fixar a tela, não a altura do histórico.
 * A única região com rolagem é o histórico do chat (e lista de alternativas
 * quando longa). O componente NÃO cria rolagem da página ou barra horizontal.
 * Outros formulários/páginas do WordPress não são alterados.
 */
.samacon-sf.samacon-sf {
  display:block!important;
  position:relative!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
  display:flex!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
.samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:100%!important;
  height:100%!important;
  overflow:hidden!important;
  align-self:stretch!important;
}
.samacon-sf.samacon-sf .samacon-sf__chat-region {
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin!important;
}
.samacon-sf.samacon-sf .samacon-sf__thread {
  min-height:100%!important;
  justify-content:flex-start!important;
}
.samacon-sf.samacon-sf .samacon-sf__reply-zone {
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:min(38%, 34dvh)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
}
.samacon-sf.samacon-sf .samacon-sf__topbar,
.samacon-sf.samacon-sf .samacon-sf__progress,
.samacon-sf.samacon-sf .samacon-sf__footer {
  flex:0 0 auto!important;
}
@media (min-width:881px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {flex-flow:row nowrap!important;}
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    position:relative!important;
    top:auto!important;
    flex:0 0 39%!important;
    width:39%!important;
    max-width:39%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    flex:1 1 61%!important;
    width:61%!important;
    max-width:61%!important;
  }
}
@media (max-width:880px) {
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {flex-flow:column nowrap!important;}
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    flex:0 0 135px!important;
    width:100%!important;
    max-width:100%!important;
    height:135px!important;
    min-height:135px!important;
    max-height:135px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    flex:1 1 0%!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__reply-zone {max-height:min(44%, 33dvh)!important;}
}
@media (max-width:480px) {
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    flex-basis:122px!important;
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__main.samacon-sf__main {padding:12px 13px 8px!important;}
  .samacon-sf.samacon-sf .samacon-sf__reply-zone {max-height:min(47%, 35dvh)!important;}
}
/* Apenas a página 368: a hierarquia Elementor que CONTÉM o shortcode
 * deve ocupar exatamente a viewport, sem espaçamentos herdados.
 * :has(.) é suportado pelo Chrome e limita a mudança a ancestrais reais.
 */
html:has(body.page-id-368) {
  height:100%!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
}
body.page-id-368:not(.elementor-editor-active) {
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
body.page-id-368:not(.elementor-editor-active) :is(
  #page, #content, #primary, .site, .site-content,
  .content-area, .site-main, .entry-content,
  .elementor, .elementor-section-wrap, .elementor-section,
  .elementor-container, .elementor-column, .elementor-widget-wrap,
  .elementor-widget, .elementor-widget-container,
  .e-con, .e-con-inner, article#post-368,
  .wp-block-post-content
):has(.samacon-sf) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  overflow:hidden!important;
  gap:0!important;
}
/* Suporte à barra administrativa, somente enquanto o usuário edita logado. */
body.page-id-368.admin-bar:not(.elementor-editor-active) {
  padding-top:var(--wp-admin--admin-bar--height,32px)!important;
}
body.page-id-368.admin-bar:not(.elementor-editor-active) .samacon-sf.samacon-sf {
  height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))!important;
  max-height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))!important;
}


/* SF-P04-R04 | v0.2.10 | Conversa mobile em rolagem unica.
 * Desktop (min 881px): sem alteracoes de geometria.
 * Apenas pagina 368: mantem o viewport original, sem rolagem do body.
 */
.samacon-sf .samacon-sf__mobile-brand { display:none!important; }
@media (max-width:880px) {
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__expert.samacon-sf__expert {
    display:none!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell.samacon-sf__shell {
    flex-flow:column nowrap!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    flex:1 1 100%!important;
    overflow:hidden!important;
    padding:12px clamp(12px,3.5vw,22px) 10px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__topbar {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-height:62px!important;
    padding-bottom:10px!important;
    width:100%!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-person {
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    margin:0!important;
    min-width:0!important;
    flex:1 1 auto!important;
    justify-content:flex-start!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-person > div {
    min-width:0!important;
  }
  .samacon-sf.samacon-sf img.samacon-sf__topavatar {
    width:42px!important;
    height:42px!important;
    flex:none!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-person strong {
    font-size:14px!important;
    line-height:1.28!important;
    letter-spacing:-.2px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-person small {
    font-size:11.5px!important;
    line-height:1.3!important;
    gap:5px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__mobile-brand {
    flex:0 1 35%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:35%!important;
    min-width:90px!important;
    max-width:156px!important;
    margin-left:auto!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__mobile-brand img {
    display:block!important;
    width:100%!important;
    max-width:156px!important;
    height:auto!important;
    max-height:37px!important;
    object-fit:contain!important;
    object-position:right center!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__progress {
    padding:12px 0 13px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__progress-meta {
    font-size:13px!important;
    line-height:1.4!important;
    margin-bottom:8px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-region {
    display:block!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
    padding:12px 2px 16px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__chat-region::-webkit-scrollbar {
    display:none!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__thread {
    min-height:0!important;
    justify-content:flex-start!important;
    gap:12px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__reply-zone {
    display:block!important;
    flex:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    margin-top:14px!important;
    padding:14px 0 9px!important;
    border-top:1px solid var(--sf-line)!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__bubble {
    font-size:16px!important;
    line-height:1.52!important;
    padding:12px 14px!important;
    max-width:92%!important;
  }
  .samacon-sf.samacon-sf img.samacon-sf__avatar {
    width:33px!important;
    height:33px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__button,
  .samacon-sf.samacon-sf .samacon-sf__option {
    font-size:15px!important;
    line-height:1.35!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__option {
    min-height:52px!important;
    padding:13px 12px!important;
    text-align:left!important;
    white-space:normal!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__option-number {
    width:27px!important;
    height:27px!important;
    font-size:12px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__field-label,
  .samacon-sf.samacon-sf .samacon-sf__error {
    font-size:14px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__input {
    font-size:16px!important;
    min-height:51px!important;
    padding:12px 13px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__button--back {
    font-size:13px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__booking-title {
    font-size:16px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__booking p {
    font-size:15px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__typing-label {
    font-size:13px!important;
  }
  .samacon-sf.samacon-sf .samacon-sf__footer {
    font-size:11px!important;
    line-height:1.25!important;
    padding-top:8px!important;
  }
}
@media (max-width:360px) {
  .samacon-sf.samacon-sf .samacon-sf__chat-person {gap:6px!important;}
  .samacon-sf.samacon-sf .samacon-sf__chat-person strong {font-size:13px!important;}
  .samacon-sf.samacon-sf .samacon-sf__chat-person small {font-size:10.5px!important;}
  .samacon-sf.samacon-sf .samacon-sf__mobile-brand {
    flex-basis:31%!important;
    width:31%!important;
    min-width:80px!important;
  }
}


/* SF-P04-R07-R04: etapa de calendário, isolada da jornada de perguntas. */
.samacon-sf.samacon-sf--calendar .samacon-sf__chat-region{display:none!important}
.samacon-sf.samacon-sf--calendar .samacon-sf__reply-zone{
  flex:1 1 auto!important;min-height:0!important;max-height:none!important;
  height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
  border-top:0!important;padding:4px 2px 8px!important;margin-top:0!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__booking{
  border:0!important;background:#fff!important;padding:4px 0 0!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__booking-title{
  font-size:clamp(17px,2vw,21px)!important;color:#24252a!important;
  font-weight:800!important;margin:5px 0 5px!important;line-height:1.3!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-hint{
  font-size:12px!important;line-height:1.4!important;color:#777a81!important;margin:0 0 12px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-nav{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:10px!important;margin:0 0 10px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-month{
  flex:1;text-align:center;margin:0!important;font-size:15px!important;font-weight:800!important;
  color:#292a30!important;text-transform:capitalize!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__month-arrow{
  width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;
  border:1px solid #e5e5e7!important;border-radius:10px!important;
  background:#f9f9fa!important;color:#303139!important;font-size:25px!important;cursor:pointer!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__month-arrow:disabled{opacity:.35!important;cursor:default!important}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-grid{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;align-items:center!important;width:100%!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-weekday{
  text-align:center!important;font-size:11px!important;font-weight:750!important;color:#85868e!important;
  padding:2px 0 5px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day{
  display:grid!important;place-items:center!important;height:39px!important;min-height:39px!important;
  padding:0!important;border:1px solid #e8e8ec!important;border-radius:9px!important;
  background:#fff!important;color:#303139!important;font-size:13px!important;font-weight:700!important;
  text-transform:none!important;box-shadow:none!important;cursor:pointer!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day:hover:not(:disabled){
  border-color:#ff0000!important;background:#fff4f4!important;color:#b00000!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day:disabled{
  background:#f7f7f8!important;color:#bcbcc2!important;border-color:#f2f2f3!important;cursor:default!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day--selected{
  background:#ff0000!important;color:#fff!important;border-color:#ff0000!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-availability{
  margin-top:13px!important;padding:12px!important;border:1px solid #ededf0!important;
  background:#fafafa!important;border-radius:11px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-date{
  display:block!important;text-transform:capitalize!important;font-size:13px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-state,
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-confirmation{
  margin:5px 0 0!important;color:#70737a!important;font-size:12px!important;line-height:1.4!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-times{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__time-option{
  min-width:0!important;min-height:40px!important;padding:5px 2px!important;border:1px solid #ddd!important;
  background:#fff!important;color:#24252a!important;border-radius:9px!important;font-size:13px!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__time-option--selected{
  border-color:#ff0000!important;background:#fff2f2!important;color:#c00!important;
}
.samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day:focus-visible,
.samacon-sf.samacon-sf--calendar .samacon-sf__time-option:focus-visible{
  outline:2px solid #ff0000!important;outline-offset:2px!important;
}
@media(max-width:880px){
  .samacon-sf.samacon-sf--calendar .samacon-sf__reply-zone{margin-top:0!important;padding-top:4px!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day{height:35px!important;min-height:35px!important;font-size:12px!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-grid{gap:4px!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-times{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__booking-title{font-size:17px!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-hint{font-size:11px!important}
}
@media(max-height:700px) and (max-width:880px){
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-day{height:30px!important;min-height:30px!important}
  .samacon-sf.samacon-sf--calendar .samacon-sf__calendar-availability{padding:8px!important;margin-top:8px!important}
}

/* Telas móveis baixas: rolagem da página, nunca calendário cortado sob o rodapé. */
@media(max-width:880px){
  .samacon-sf.samacon-sf--calendar,
  .samacon-sf.samacon-sf--calendar .samacon-sf__shell{
    height:auto!important;min-height:100svh!important;max-height:none!important;
    overflow:visible!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__main{
    height:auto!important;min-height:100svh!important;max-height:none!important;
    flex:1 1 auto!important;overflow:visible!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__reply-zone{
    flex:0 0 auto!important;min-height:0!important;max-height:none!important;
    height:auto!important;overflow:visible!important;padding-bottom:20px!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__footer{margin-top:auto!important}
}

/* R07-R08 v0.2.13 | Mensagens finais ficam visiveis ate clique consciente.
   Isolado ao shortcode Smart Forms; outros formularios nao sao alterados. */
.samacon-sf.samacon-sf .samacon-sf__booking-intro {
  display:flex!important;flex-direction:column!important;gap:9px!important;
  padding:12px 2px 4px!important;align-items:stretch!important;
}
.samacon-sf.samacon-sf .samacon-sf__booking-start {
  width:100%!important;min-height:49px!important;font-size:14px!important;
  font-weight:780!important;text-align:center!important;background:#ff0000!important;
  color:#fff!important;border:1px solid #ff0000!important;cursor:pointer!important;
}
.samacon-sf.samacon-sf .samacon-sf__booking-start:hover,
.samacon-sf.samacon-sf .samacon-sf__booking-start:focus-visible {
  background:#d90000!important;border-color:#d90000!important;
}

/* R08 v0.2.14 | Transaction controls appear only after server gates (OFF by default). */
.samacon-sf .samacon-sf__secure-booking{display:flex;flex-direction:column;gap:12px;margin-top:15px;padding:13px;border:1px solid rgba(255,255,255,.16);border-radius:12px}
.samacon-sf .samacon-sf__privacy-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}
.samacon-sf .samacon-sf__privacy-consent input{margin-top:4px;flex:0 0 auto}
.samacon-sf .samacon-sf__privacy-consent a{text-decoration:underline;color:inherit}
.samacon-sf .samacon-sf__verification-controls{display:flex;flex-direction:column;gap:9px}
.samacon-sf .samacon-sf__verification-code{min-height:45px;padding:10px 14px;border:1px solid rgba(255,255,255,.25);border-radius:9px;background:rgba(0,0,0,.22);color:inherit;font-size:15px}
.samacon-sf .samacon-sf__verification-controls .samacon-sf__button--primary:disabled{opacity:.50;cursor:default}
.samacon-sf .samacon-sf__booking-success{font-weight:700;font-size:15px;line-height:1.5}


/* R11 v0.2.17 | TABLET + MOBILE: calendario rolavel por toque.
   P04-R02D prende a viewport e P04-R07 no calendario transformava a zona
   de resposta em overflow:visible, deixando o botao abaixo da area visivel.
   Mantemos a viewport fixa aprovada; somente a zona de calendario rola.
   Escopo: shortcode na etapa calendario com ate 880px. */
@media screen and (max-width:880px) {
  .samacon-sf.samacon-sf--calendar {
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__shell.samacon-sf__shell {
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__shell > .samacon-sf__main.samacon-sf__main {
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    flex:1 1 auto!important;
    overflow:hidden!important;
  }
  .samacon-sf.samacon-sf--calendar .samacon-sf__reply-zone {
    flex:1 1 auto!important;
    height:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
    scrollbar-width:thin!important;
    padding-bottom:24px!important;
  }
}

/* R14 v0.2.19 | Popup pós-recibo real, independente do scroll do calendário. */
.samacon-sf-celebration,.samacon-sf-celebration *{box-sizing:border-box}
.samacon-sf-celebration{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(19,19,23,.74);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.samacon-sf-celebration__dialog{width:min(420px,100%);max-height:min(680px,calc(100dvh - 40px));overflow-y:auto;background:#fff;border-radius:20px;border:1px solid #ececec;box-shadow:0 24px 75px rgba(0,0,0,.24);display:flex;flex-direction:column;align-items:center;text-align:center;padding:27px 25px 25px;color:#282930}
.samacon-sf-celebration__pill{display:inline-block;margin:0 0 17px;padding:7px 13px;background:#eef9f2;color:#188542;border-radius:100px;font-size:10px;font-weight:850;letter-spacing:.8px}
.samacon-sf-celebration__photo{display:block;width:122px;height:122px;border:4px solid #fff;outline:2px solid #eee;border-radius:100%;object-fit:cover;object-position:center 29%;box-shadow:0 6px 19px #00000024}
.samacon-sf-celebration__title{margin:20px 0 6px!important;color:#1f2023!important;font-size:clamp(23px,5vw,29px)!important;font-weight:800!important;line-height:1.2!important;letter-spacing:-.5px!important}
.samacon-sf-celebration__lead{margin:0 0 13px!important;color:#23904d!important;font-size:15px!important;font-weight:750!important;line-height:1.4!important}
.samacon-sf-celebration__summary{font-size:14px!important;line-height:1.6!important;max-width:330px;margin:0 0 17px!important;color:#484a53!important}
.samacon-sf-celebration__details{width:100%;padding:13px 17px;background:#f7f7f8;border:1px solid #efeff0;border-radius:12px;margin:0 0 18px!important}
.samacon-sf-celebration__details p{font-size:13px!important;font-weight:700!important;line-height:1.55!important;color:#292a2f!important;margin:2px 0!important}
.samacon-sf-celebration__close{width:100%;min-height:48px;border:0!important;background:#ff0000!important;color:#fff!important;border-radius:11px!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;text-transform:none!important;cursor:pointer!important}
.samacon-sf-celebration__close:hover{background:#d90000!important}
.samacon-sf-celebration__close:focus-visible{outline:3px solid #ff000070;outline-offset:3px}
@media(max-width:480px){.samacon-sf-celebration{padding:14px}.samacon-sf-celebration__dialog{padding:23px 18px;max-height:calc(100dvh - 28px);border-radius:16px}.samacon-sf-celebration__photo{width:110px;height:110px}}
@media(prefers-reduced-motion:reduce){.samacon-sf-celebration *{transition:none!important;animation:none!important}}

/* R15 v0.2.20 — Google Agenda opcional no popup de confirmação; preservado na v0.2.21. */
.samacon-sf-celebration__actions{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:9px}
.samacon-sf-celebration__calendar{display:flex;justify-content:center;align-items:center;text-align:center;width:100%;min-height:48px;padding:10px 13px;border:1.5px solid #d7d8db!important;background:#fff!important;color:#272b33!important;border-radius:11px!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;text-decoration:none!important;line-height:1.35;cursor:pointer}
.samacon-sf-celebration__calendar:hover{border-color:#7d828d!important;background:#f7f8fa!important;text-decoration:none!important}
.samacon-sf-celebration__calendar:focus-visible{outline:3px solid #ff000070;outline-offset:3px}
.samacon-sf-celebration__calendar-hint{margin:0 0 4px!important;color:#676c75!important;font-size:11px!important;font-weight:450!important;line-height:1.35!important;text-align:center!important}


/* P-PRIV-R01 | Aviso flutuante canonico, externo ao layout do Smart Forms.
   Oculta exclusivamente os avisos improvisados anteriormente no Elementor. */
.samacon-aviso-privacidade, .samacon-privacy-consent{display:none!important}
.samacon-sf-privacy-toast,.samacon-sf-privacy-toast *{box-sizing:border-box}
.samacon-sf-privacy-toast{
  position:fixed!important;left:12px!important;right:12px!important;
  bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;
  z-index:2147482000!important;width:min(720px,calc(100% - 24px))!important;
  max-width:720px!important;margin:0 auto!important;
  padding:12px 15px!important;display:flex!important;flex-flow:row nowrap!important;
  align-items:center!important;justify-content:space-between!important;gap:15px!important;
  border:1px solid #e4e4e7!important;border-radius:12px!important;
  background:#fff!important;color:#303033!important;
  box-shadow:0 8px 30px rgba(0,0,0,.19)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:left!important;
}
.samacon-sf-privacy-toast__copy{
  margin:0!important;padding:0!important;min-width:0!important;flex:1 1 auto!important;
  font-size:12px!important;font-weight:450!important;line-height:1.5!important;
  color:#303033!important;text-align:left!important;
}
.samacon-sf-privacy-toast__link{
  color:#c30c1d!important;text-decoration:underline!important;
  font-size:inherit!important;font-weight:650!important;
}
.samacon-sf-privacy-toast__accept{
  appearance:none!important;display:block!important;flex:0 0 auto!important;
  width:auto!important;min-width:93px!important;min-height:40px!important;
  padding:10px 17px!important;margin:0!important;
  border:0!important;border-radius:9px!important;
  background:#ed111c!important;color:#fff!important;cursor:pointer!important;
  font-family:inherit!important;font-size:13px!important;font-weight:750!important;
  line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;
}
.samacon-sf-privacy-toast__accept:hover{background:#c90e1a!important}
.samacon-sf-privacy-toast__accept:focus-visible{outline:3px solid #f24853!important;outline-offset:2px!important}
@media(max-width:520px){
  .samacon-sf-privacy-toast{
    left:10px!important;right:10px!important;width:calc(100% - 20px)!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    flex-flow:column nowrap!important;align-items:stretch!important;gap:9px!important;
    padding:11px 13px!important;
  }
  .samacon-sf-privacy-toast__accept{width:100%!important;min-height:39px!important}
}
@media(prefers-reduced-motion:reduce){.samacon-sf-privacy-toast *{transition:none!important}}

/* P-PRIV-R02: bloqueio visual do formulário até a leitura do aviso; aviso na posição original. */
.samacon-sf-privacy-backdrop{position:fixed!important;inset:0!important;z-index:2147481999!important;background:rgba(12,15,22,.56)!important;pointer-events:auto!important;touch-action:none!important}
.samacon-sf-privacy-toast{z-index:2147482000!important}
