.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.tcc-chat-panel{width:min(420px,calc(100vw - 32px))}
.tcc-chat-body{max-height:min(690px,calc(100vh - 118px));overflow-y:auto}
.tcc-chat-intro{display:grid;gap:12px}
.tcc-chat-safety-note{margin:0;padding:0 4px;color:#786B7E;font-size:.61rem;line-height:1.45;text-align:center}
.tcc-chat-log{display:none;max-height:250px;overflow-y:auto;padding:3px 2px 8px;gap:9px;scroll-behavior:smooth}
.tcc-chat-log.active{display:grid}
.tcc-chat-bubble{max-width:88%;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#F6F1F8;color:#322638;font-size:.78rem;line-height:1.45;border:1px solid rgba(72,29,91,.07)}
.tcc-chat-bubble.visitor{margin-left:auto;border-radius:14px 14px 4px 14px;background:linear-gradient(135deg,#7504AA,#9521C2);color:#fff;border-color:transparent}
.tcc-chat-bubble strong{display:block;margin-bottom:3px;font-size:.65rem;letter-spacing:.02em}
.tcc-chat-bubble small{display:block;margin-top:4px;font-size:.58rem;opacity:.65}
.tcc-chat-attachment{display:block;margin-top:8px;color:inherit;text-decoration:none}.tcc-chat-attachment-image{display:block;max-width:100%;max-height:190px;object-fit:cover;border-radius:10px;border:1px solid rgba(72,29,91,.12);background:#fff}.tcc-chat-attachment-file{display:block;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.72);border:1px solid rgba(72,29,91,.10);color:#443249}.tcc-chat-bubble.visitor .tcc-chat-attachment-file{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22);color:#fff}.tcc-chat-attachment-file strong{display:block;margin:0;font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tcc-chat-attachment-file small{display:block;margin-top:2px!important;font-size:.56rem!important;opacity:.72}
.tcc-chat-form{display:grid;gap:11px;padding-top:2px}
.tcc-chat-form-head{display:grid;gap:3px;padding-bottom:2px}
.tcc-chat-form-head strong{color:#4B155E;font-size:.92rem;line-height:1.2}
.tcc-chat-form-head span{color:#786B7E;font-size:.65rem;line-height:1.4}
.tcc-chat-identity{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.tcc-chat-field{display:grid;gap:5px;min-width:0}
.tcc-chat-field>span{color:#56465C;font-size:.61rem;font-weight:800;line-height:1.2}
.tcc-chat-field-wide{grid-column:1/-1}
.tcc-chat-field input,.tcc-chat-field select,.tcc-chat-field textarea{width:100%;border:1px solid rgba(72,29,91,.14);border-radius:11px;background:#FCFAFD;color:#2C2230;outline:none;font:500 .74rem/1.4 var(--sans);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.tcc-chat-field input,.tcc-chat-field select{height:42px;padding:0 10px}
.tcc-chat-field select{appearance:auto}
.tcc-chat-field textarea{min-height:76px;max-height:130px;resize:vertical;padding:10px 11px}
.tcc-chat-field input:focus,.tcc-chat-field select:focus,.tcc-chat-field textarea:focus{border-color:rgba(122,4,180,.42);box-shadow:0 0 0 3px rgba(122,4,180,.07);background:#fff}
.tcc-chat-message-only{grid-column:1/-1}
.tcc-chat-consent{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:10px;background:#FAF6FC;border:1px solid rgba(122,4,180,.08);color:#6D5E73;font-size:.61rem;line-height:1.4;cursor:pointer}
.tcc-chat-consent input{margin:1px 0 0;accent-color:#850DB8}
.tcc-chat-send-full{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 15px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#7203A6,#9821C6);font:800 .75rem/1 var(--sans);box-shadow:0 9px 20px rgba(122,4,180,.17);cursor:pointer}
.tcc-chat-send-full:disabled{opacity:.55;cursor:wait}
.tcc-chat-status{min-height:15px;color:#6D5E73;font-size:.62rem;line-height:1.35}
.tcc-chat-log.active + .tcc-chat-form{padding-top:8px}
.tcc-chat-log.active + .tcc-chat-form .tcc-chat-message-only textarea{min-height:68px}
.tcc-chat-form[hidden],.tcc-chat-intro[hidden],.tcc-chat-form-head[hidden],.tcc-chat-identity[hidden],.tcc-chat-consent[hidden]{display:none!important}
.tcc-chat-action-secondary{width:100%;border:1px solid rgba(122,4,180,.20);cursor:pointer}
.tcc-chat-action-secondary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.form-alert{padding:12px 14px;border-radius:12px;font-size:.78rem;line-height:1.5}
.form-alert.success{color:#245a35;background:#eef9f1;border:1px solid #cdebd5}
.form-alert.error{color:#7c2630;background:#fff2f3;border:1px solid #f2cbd0}
.nav-account-link{color:var(--brand)!important}
@media(max-width:520px){
  .tcc-chat-panel{width:min(390px,calc(100vw - 24px))}
  .tcc-chat-identity{grid-template-columns:1fr}
  .tcc-chat-field-wide{grid-column:auto}
  .tcc-chat-log{max-height:210px}
  .tcc-chat-body{max-height:calc(100vh - 96px)}
}

/* TCC mobile chat safety patch — panel must never block the page while closed. */
.tcc-chat-panel[hidden]{display:none!important}
.tcc-chat:not(.open) .tcc-chat-panel{pointer-events:none!important}
.tcc-chat.open .tcc-chat-panel{pointer-events:auto}

@media(max-width:600px){
  .tcc-chat{
    right:max(12px,env(safe-area-inset-right));
    bottom:max(12px,env(safe-area-inset-bottom));
  }

  /* Closed state is intentionally compact so it never covers mobile controls. */
  .tcc-chat-launcher{
    width:56px;
    height:56px;
    min-height:56px;
    padding:7px!important;
    justify-content:center;
    border-radius:50%;
  }
  .tcc-chat-launcher-copy{display:none!important}
  .tcc-chat-launcher-icon{
    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
  }

  /* Even when intentionally opened, keep useful page context visible. */
  .tcc-chat-panel{
    width:min(360px,calc(100vw - 24px));
    max-height:min(72dvh,520px);
    overflow:hidden!important;
  }
  .tcc-chat-body{
    max-height:min(55dvh,410px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}

