/* Preview r51: Michael Talk CTA + no-type + gem clear (r57 rebase) */

/* Hide typing box in hero Partner surface on all sizes */
#ace-partner-form.partner-question-form,
#ace-partner-form[data-ace-no-type="1"],
.ace-partner-surface .partner-question-form{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

/* Desktop: Talk button hidden (Partner pill remains) */
#hero-talk.hero-talk{ display:none !important; }
.ace-mic-note{ display:none; }

/* Phone: remove Partner pill + fab; full-width Talk under See the demo */
@media (max-width:600px){
  #hero-partner,
  #hero-partner.partner-toggle,
  .hero-partner-row,
  .hero-partner-row .partner-hint,
  #ace-partner-fab.partner-fab,
  .partner-fab{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  #hero-talk.hero-talk{
    display:inline-flex !important;
    visibility:visible !important;
    pointer-events:auto !important;
    opacity:1 !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    min-height:48px !important;
    margin:12px 0 0 !important;
    padding:12px 18px !important;
    border-radius:14px !important;
    border:1px solid #e8b845aa !important;
    background:linear-gradient(180deg, #1a1408 0%, #050407 100%) !important;
    color:#f0d78a !important;
    font:600 16px/1.2 system-ui,sans-serif !important;
    box-shadow:0 0 0 1px #e8b84522, 0 8px 24px #000a, inset 0 1px 0 #e8b84533 !important;
    cursor:pointer !important;
    position:relative !important;
    z-index:5 !important;
    order:3;
  }
  .hero-actions{ display:flex; flex-direction:column; }
  .hero-actions #hero-talk.hero-talk{ order:3; }
  .hero-actions .cta-mobile{ order:1; }
  .hero-actions .button.secondary{ order:2; }

  #hero-talk.hero-talk[aria-pressed="true"],
  body.ace-partner-on #hero-talk.hero-talk{
    background:linear-gradient(180deg, #2a1f0a 0%, #120e06 100%) !important;
    border-color:#e8b845 !important;
    box-shadow:0 0 18px #e8b84555, inset 0 1px 0 #e8b84555 !important;
  }
  #hero-talk .hero-talk-spade{ flex:none; color:#e8b845; filter:drop-shadow(0 0 6px #e8b84588); }
  #hero-talk .hero-talk-live{ display:none; width:8px;height:8px;border-radius:50%; background:#e8b845; box-shadow:0 0 8px #e8b845; }
  #hero-talk.hero-talk[aria-pressed="true"] .hero-talk-live,
  body.ace-partner-on #hero-talk .hero-talk-live{ display:inline-block !important; }

  html[data-theme="light"] #hero-talk.hero-talk{
    background:linear-gradient(180deg,#fff8e8,#ffe7b0) !important;
    color:#5a3d00 !important;
    border-color:#c99212 !important;
  }

  /* Keep corner launcher hidden on phone — Talk is the entry */
  #ace-launcher, .ace-launcher{
    display:none !important; visibility:hidden !important; pointer-events:none !important;
  }

  body.ace-mic-blocked #ace-mic-note.ace-mic-note{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:static !important;
    max-width:100%;
    margin:10px 0 0;
    font-size:13px !important;
    line-height:1.4 !important;
    color:#f0d78a;
  }
}

/* Wave canvas always tall enough when Partner on */
body.ace-partner-on .partner-wave canvas{
  display:block !important;
  width:100% !important;
  min-height:56px !important;
  height:56px !important;
  opacity:1 !important;
}
body.ace-partner-on .partner-wave{ display:block !important; visibility:visible !important; }

body.ace-partner-on #ace-partner-wave,
body.ace-partner-on .partner-wave{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  min-height:72px !important;
}
body.ace-partner-on .partner-wave canvas{
  background: transparent !important;
}
