/* =====================================================================
   GRSHOP Chat — estilos (widget da loja + caixa de entrada do painel/Supreme)
   Tudo com prefixo .grc- para não conflitar com o resto do site.
   ===================================================================== */
:host { all: initial; }
.grc-root {
  --grc-brand: #22c55e;
  --grc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grc-radius: 18px;
  font-family: var(--grc-font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  color: var(--grc-text);
}
.grc-root, .grc-root[data-theme="light"] {
  --grc-bg: #f4f4f5; --grc-surface: #ffffff; --grc-surface-2: #f4f4f5; --grc-surface-3: #e4e4e7; --grc-line: rgba(9, 9, 11, .08); --grc-line-2: rgba(9, 9, 11, .14);
  --grc-text: #09090b; --grc-text-2: #3f3f46; --grc-muted: #71717a; --grc-subtle: #a1a1aa;
  --grc-in: #ffffff; --grc-in-text: #09090b; --grc-out: #18181b; --grc-out-text: #fafafa; --grc-chat-bg: #f1f1f3;
  --grc-accent: #09090b; --grc-on-accent: #ffffff; --grc-card: rgba(255, 255, 255, .08); --grc-card-in: #f4f4f5; --grc-tick-read: #60a5fa;
  --grc-dots: rgba(9, 9, 11, .05); --grc-shadow: 0 24px 70px rgba(9, 9, 11, .22);
}
.grc-root[data-theme="dark"] {
  --grc-bg: #09090b; --grc-surface: #131316; --grc-surface-2: #1c1c21; --grc-surface-3: #27272d; --grc-line: rgba(255, 255, 255, .07); --grc-line-2: rgba(255, 255, 255, .13);
  --grc-text: #fafafa; --grc-text-2: #d4d4d8; --grc-muted: #a1a1aa; --grc-subtle: #71717a;
  --grc-in: #1d1d22; --grc-in-text: #f4f4f5; --grc-out: #f4f4f5; --grc-out-text: #09090b; --grc-chat-bg: #0a0a0c;
  --grc-accent: #fafafa; --grc-on-accent: #09090b; --grc-card: rgba(0, 0, 0, .06); --grc-card-in: #27272d; --grc-tick-read: #2563eb;
  --grc-dots: rgba(255, 255, 255, .035); --grc-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.grc-root *, .grc-root *::before, .grc-root *::after { box-sizing: border-box; }
:where(.grc-root) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-appearance: none; appearance: none; }
:where(.grc-root) input, :where(.grc-root) textarea, :where(.grc-root) select { font: inherit; color: inherit; }
:where(.grc-root) svg { display: block; fill: currentColor; }
.grc-root [hidden] { display: none !important; }
:where(.grc-root) a { color: inherit; }

/* ---------------------------------------------------------- launcher */
.grc-launcher { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: center; gap: 10px; }
.grc-launcher-btn {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff; color: #09090b !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.grc-launcher:hover .grc-launcher-btn { transform: scale(1.06); }
.grc-launcher:active .grc-launcher-btn { transform: scale(.94); }
.grc-launcher-btn svg { width: 30px; height: 30px; grid-area: 1 / 1; transition: transform .3s, opacity .2s; }
.grc-launcher-btn .grc-i-x { width: 24px; height: 24px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.grc-root.is-open .grc-launcher-btn .grc-i-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.grc-root.is-open .grc-launcher-btn .grc-i-x { opacity: 1; transform: none; }
.grc-launcher-label {
  background: var(--grc-surface); color: var(--grc-text); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border: 1px solid var(--grc-line); white-space: nowrap; transition: opacity .3s, transform .3s; animation: grcLabelIn .5s .8s both;
}
@keyframes grcLabelIn { from { opacity: 0; transform: translateX(10px); } }
.grc-root.grc-label-hide .grc-launcher-label, .grc-root.is-open .grc-launcher-label { opacity: 0; transform: translateX(10px); pointer-events: none; }
.grc-root.has-unread .grc-launcher-label { opacity: 1; transform: none; }
.grc-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; animation: grcPop .4s; }
.grc-root.has-unread .grc-launcher-btn { animation: grcPulse 2s infinite; }
@keyframes grcPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes grcPop { from { transform: scale(.3); } 70% { transform: scale(1.15); } }

/* ---------------------------------------------------------- painel */
.grc-panel {
  position: fixed; z-index: 3; right: 20px; bottom: 92px; width: 400px; height: min(680px, calc(100vh - 116px));
  background: var(--grc-surface); border-radius: 24px; overflow: hidden; box-shadow: var(--grc-shadow); border: 1px solid var(--grc-line);
  transform-origin: bottom right; animation: grcPanelIn .32s cubic-bezier(.2, .9, .3, 1.1); display: flex; flex-direction: column;
}
.grc-root:not(.is-open) .grc-panel { animation: grcPanelOut .2s ease forwards; }
@keyframes grcPanelIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes grcPanelOut { to { opacity: 0; transform: translateY(16px) scale(.94); } }
.grc-panel > div { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@media (max-width: 600px) {
  .grc-panel {
    right: 0; left: 0; bottom: auto; top: var(--grc-vtop, 0); width: 100vw; height: var(--grc-vh, 100dvh); max-height: none; border-radius: 0; border: 0;
    animation: grcSheetIn .3s cubic-bezier(.2, .8, .2, 1);
  }
  .grc-root:not(.is-open) .grc-panel { animation: grcSheetOut .22s ease forwards; }
  .grc-root.is-open .grc-launcher { display: none; }
  .grc-launcher-btn { width: 56px; height: 56px; }
}
@keyframes grcSheetIn { from { transform: translateY(100%); } }
@keyframes grcSheetOut { to { transform: translateY(100%); } }

/* ---------------------------------------------------------- cabeçalho */
.grc-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--grc-surface); border-bottom: 1px solid var(--grc-line); position: relative; z-index: 2; }
.grc-head-txt { flex: 1; min-width: 0; line-height: 1.2; }
.grc-head-txt b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--grc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-typing-txt { color: #22c55e; font-weight: 600; }
.grc-dot-on { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); flex: 0 0 7px; }
.grc-avatar { position: relative; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--grc-surface-3); }
.grc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.grc-avatar.sm { width: 46px; height: 46px; flex-basis: 46px; }
.grc-av-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--grc-subtle); border: 2.5px solid var(--grc-surface); }
.grc-av-dot.on { background: #22c55e; }
.grc-icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--grc-text-2); flex: 0 0 38px; transition: background .15s; }
.grc-icon-btn:hover { background: var(--grc-surface-2); }
.grc-icon-btn svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------- home */
.grc-home { background: var(--grc-bg); overflow-y: auto; }
.grc-home-hero { background: var(--grc-surface); background: radial-gradient(120% 100% at 0% 0%, rgba(127, 127, 127, .14), transparent 60%), var(--grc-surface); border-bottom: 1px solid var(--grc-line); }
.grc-home-hero .grc-head { background: transparent; border: 0; }
.grc-hello { padding: 10px 22px 26px; }
.grc-hello h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.grc-hello p { margin: 4px 0 0; font-size: 17px; color: var(--grc-text-2); font-weight: 500; }
.grc-home-body { padding: 0 14px 14px; margin-top: -10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.grc-conv-card, .grc-actions, .grc-notice, .grc-paused-card { background: var(--grc-surface); border: 1px solid var(--grc-line); border-radius: 18px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.grc-conv-card { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; width: 100%; transition: transform .15s; }
.grc-conv-card:active { transform: scale(.98); }
.grc-conv-txt { flex: 1; min-width: 0; }
.grc-conv-txt b { display: block; font-size: 15px; }
.grc-conv-txt small { display: block; color: var(--grc-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-go { font-size: 24px; color: var(--grc-subtle); }
.grc-pill { min-width: 24px; height: 24px; border-radius: 99px; background: var(--grc-accent); color: var(--grc-on-accent); font-weight: 800; font-size: 12.5px; display: grid; place-items: center; padding: 0 7px; }
.grc-actions { padding: 6px; display: flex; flex-direction: column; }
.grc-actions button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 13px; text-align: left; width: 100%; }
.grc-actions button:hover { background: var(--grc-surface-2); }
.grc-actions b { display: block; font-size: 14.5px; }
.grc-actions small { display: block; font-size: 12.5px; color: var(--grc-muted); }
.grc-act-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--grc-surface-2); }
.grc-notice { padding: 12px 14px; font-size: 13.5px; color: var(--grc-text-2); }
.grc-paused-card { padding: 14px; border-color: rgba(245, 158, 11, .4); background: color-mix(in srgb, #f59e0b 9%, var(--grc-surface)); }
.grc-paused-card p { margin: 4px 0; font-size: 13.5px; color: var(--grc-text-2); }
.grc-paused-card small { color: var(--grc-muted); }
.grc-foot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--grc-muted); text-align: center; }
.grc-foot .grc-verified, .grc-set-foot .grc-verified { width: 15px; height: 15px; flex: 0 0 15px; }

/* ---------------------------------------------------------- conversa */
.grc-chat { background: var(--grc-chat-bg); position: relative; }
.grc-msgs {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 2px;
  background-image: radial-gradient(var(--grc-dots) 1.2px, transparent 1.2px); background-size: 20px 20px; -webkit-overflow-scrolling: touch;
}
.grc-notice-bar { padding: 9px 14px; font-size: 13px; background: var(--grc-surface-2); color: var(--grc-text-2); border-bottom: 1px solid var(--grc-line); }
.grc-protected { align-self: center; max-width: 88%; text-align: center; font-size: 12px; color: var(--grc-muted); background: color-mix(in srgb, #facc15 14%, var(--grc-surface)); border-radius: 10px; padding: 7px 12px; margin: 4px 0 10px; line-height: 1.4; order: -1; }
.grc-welcome-preview.grc-empty { align-self: stretch; margin: 0; padding: 1px 2px; font-size: inherit; color: inherit; }
.grc-empty { align-self: center; margin: auto; color: var(--grc-muted); font-size: 14px; padding: 20px; }
.grc-day { align-self: center; margin: 10px 0 6px; }
.grc-day span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--grc-muted); background: var(--grc-surface); padding: 5px 12px; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.grc-row { display: flex; padding: 1px 2px; }
.grc-out { justify-content: flex-end; }
.grc-row.grc-new .grc-bubble { animation: grcMsgIn .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes grcMsgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.grc-row.grc-hl .grc-bubble { animation: grcHl 2.4s ease; }
@keyframes grcHl { 0%, 40% { box-shadow: 0 0 0 3px #facc15; } }
.grc-bubble {
  position: relative; max-width: min(78%, 520px); padding: 7px 10px 6px; border-radius: 16px; font-size: 15px; line-height: 1.38;
  background: var(--grc-in); color: var(--grc-in-text); box-shadow: 0 1px 1.5px rgba(0, 0, 0, .1); word-wrap: break-word; overflow-wrap: anywhere;
}
.grc-in .grc-bubble { border-top-left-radius: 5px; }
.grc-out .grc-bubble { background: var(--grc-out); color: var(--grc-out-text); border-top-right-radius: 5px; }
.grc-pending .grc-bubble { opacity: .7; }
.grc-text { white-space: normal; }
.grc-text a { text-decoration: underline; word-break: break-all; }
.grc-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; opacity: .65; margin-top: 2px; float: right; margin-left: 10px; position: relative; top: 4px; }
.grc-t-image .grc-meta, .grc-t-video .grc-meta, .grc-t-product .grc-meta, .grc-t-purchase .grc-meta, .grc-t-audio .grc-meta { float: none; top: 0; }
.grc-tick svg { width: 17px; height: 11px; }
.grc-tick.read { color: var(--grc-tick-read); opacity: 1; }
.grc-out .grc-meta { opacity: .85; }
.grc-tick { display: inline-flex; }
.grc-tick svg[viewBox="0 0 16 16"] { width: 12px; height: 12px; }
.grc-author { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; color: var(--grc-muted); }
.grc-auto-tag { font-size: 10.5px; opacity: .7; margin-bottom: 3px; font-style: italic; }
.grc-from-grshop .grc-bubble { background: #0b0b0e !important; color: #fafafa !important; border: 1px solid rgba(59, 130, 246, .55); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12), 0 2px 8px rgba(0, 0, 0, .25); }
.grc-from-grshop .grc-tick.read { color: #60a5fa; }
.grc-author-grshop { display: flex; align-items: center; gap: 5px; color: #fafafa; font-weight: 800; letter-spacing: -.01em; }
.grc-author-grshop span { font-weight: 500; font-size: 11px; color: #a1a1aa; }
.grc-verified { width: 16px; height: 16px; fill: #3b82f6; flex: 0 0 16px; }
.grc-root .grc-verified path:first-child { fill: #3b82f6; }
.grc-tr-toggle { display: block; margin-top: 4px; font-size: 11.5px !important; opacity: .7; text-align: left; }
.grc-tr-toggle u { text-underline-offset: 2px; }
.grc-row-system { justify-content: center; }
.grc-system { font-size: 12.5px; color: var(--grc-muted); background: var(--grc-surface); padding: 6px 12px; border-radius: 10px; margin: 6px 0; text-align: center; max-width: 85%; }

/* mídia */
.grc-media { display: block; border-radius: 12px; overflow: hidden; margin: -3px -6px 4px; background: rgba(0, 0, 0, .15); position: relative; width: calc(100% + 12px); }
.grc-img { width: min(270px, 62vw) !important; aspect-ratio: 1 / var(--r, .75); max-height: 360px; }
.grc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grc-video video { display: block; width: min(280px, 64vw); max-height: 380px; background: #000; }
.grc-t-image, .grc-t-video { padding: 6px 6px 5px; }
.grc-t-image .grc-text, .grc-t-video .grc-text { padding: 2px 4px 0; }

/* áudio */
.grc-audio { display: flex; align-items: center; gap: 10px; min-width: min(250px, 60vw); padding: 2px 2px 0; }
.grc-audio-play { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.grc-in .grc-audio-play { background: var(--grc-accent); color: var(--grc-on-accent); }
.grc-out .grc-audio-play { background: var(--grc-out-text); color: var(--grc-out); }
.grc-audio-play svg { width: 20px; height: 20px; }
.grc-audio .grc-i-pause { display: none; }
.grc-audio.playing .grc-i-play { display: none; }
.grc-audio.playing .grc-i-pause { display: inline; }
.grc-audio-main { flex: 1; min-width: 0; }
.grc-wave { display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.grc-wave i { flex: 1; min-width: 2px; border-radius: 3px; background: currentColor; opacity: .32; transition: opacity .1s; }
.grc-wave i.on { opacity: 1; }
.grc-audio-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; opacity: .8; margin-top: 2px; }
.grc-audio-speed { font-size: 11px !important; font-weight: 700; padding: 1px 7px !important; border-radius: 99px; background: rgba(0, 0, 0, .12) !important; }
.grc-audio-err .grc-audio-play { opacity: .4; }

/* produto */
.grc-product { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px; margin: 0 -4px 4px; border-radius: 12px; background: var(--grc-card-in); min-width: min(260px, 62vw); flex-wrap: wrap; }
.grc-in .grc-product { background: var(--grc-surface-2); }
.grc-product-img, .grc-p-img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(0, 0, 0, .1); font-size: 22px; }
.grc-product-img img, .grc-p-img img { width: 100%; height: 100%; object-fit: cover; }
.grc-product-info { flex: 1; min-width: 0; line-height: 1.25; }
.grc-product-info small { display: block; font-size: 11.5px; opacity: .75; font-weight: 600; }
.grc-product-info b { display: block; font-size: 14px; }
.grc-product-info em { font-style: normal; font-size: 11.5px; opacity: .7; }
.grc-product-go { width: 100%; text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px; border-top: 1px solid rgba(127, 127, 127, .25); margin-top: 2px; }

/* verificação de compra */
.grc-purchase { min-width: min(270px, 64vw); border-radius: 12px; overflow: hidden; margin: 0 -4px 4px; background: transparent; }
.grc-in .grc-purchase { background: var(--grc-surface-2); }
.grc-purchase-head { display: flex; gap: 10px; align-items: center; padding: 10px; }
.grc-purchase-head b { display: block; font-size: 14.5px; }
.grc-purchase-head small { font-size: 12px; opacity: .8; }
.grc-purchase-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: #22c55e; }
.grc-purchase.none .grc-purchase-ic { background: #f59e0b; }
.grc-purchase ul { list-style: none; margin: 0; padding: 0 10px 8px; }
.grc-purchase li { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px dashed rgba(127, 127, 127, .35); font-size: 13px; }
.grc-purchase li span { font-weight: 600; }
.grc-purchase li em { font-style: normal; font-size: 11.5px; opacity: .8; }
.grc-purchase li.st-approved em::before { content: "● "; color: #22c55e; }
.grc-purchase li.st-pending em::before { content: "● "; color: #f59e0b; }
.grc-purchase li.st-refunded em::before, .grc-purchase li.st-chargeback em::before { content: "● "; color: #ef4444; }

/* digitando */
.grc-typing-bubble { position: absolute; left: 12px; bottom: 76px; display: flex; gap: 4px; padding: 11px 14px; background: var(--grc-in); border-radius: 16px 16px 16px 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); z-index: 2; }
.grc-typing-bubble i, .grc-loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--grc-muted); animation: grcDot 1.2s infinite; }
.grc-typing-bubble i:nth-child(2), .grc-loading i:nth-child(2) { animation-delay: .15s; }
.grc-typing-bubble i:nth-child(3), .grc-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes grcDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.grc-loading { display: flex; gap: 5px; justify-content: center; padding: 30px; }

.grc-banner { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--grc-surface); border-top: 1px solid var(--grc-line); text-align: center; font-size: 13.5px; color: var(--grc-text-2); line-height: 1.45; }
.grc-banner span { color: var(--grc-muted); }

/* ---------------------------------------------------------- composer */
.grc-composer { background: var(--grc-surface); border-top: 1px solid var(--grc-line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); position: relative; }
.grc-compose-row { display: flex; align-items: flex-end; gap: 6px; }
.grc-input-wrap { flex: 1; display: flex; align-items: flex-end; background: var(--grc-surface-2); border-radius: 22px; padding: 2px 4px 2px 14px; border: 1px solid var(--grc-line); min-width: 0; }
.grc-input-wrap:focus-within { border-color: var(--grc-line-2); }
.grc-composer textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; padding: 10px 0; min-height: 42px; max-height: 140px; font-size: 16px; line-height: 22px; color: var(--grc-text); }
.grc-composer textarea::placeholder { color: var(--grc-subtle); }
.grc-composer .grc-attach { color: var(--grc-muted); height: 44px; width: 40px; flex-basis: 40px; }
.grc-composer .grc-cam { color: var(--grc-muted); }
.grc-composer.has-text .grc-cam { display: none; }
.grc-send { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; color: var(--grc-on-accent) !important; background: var(--grc-accent) !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .15s; }
.grc-send:active { transform: scale(.9); }
.grc-send svg { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform .2s, opacity .2s; }
.grc-send .grc-i-send { opacity: 0; transform: scale(.4) rotate(-30deg); }
.grc-composer.has-text .grc-compose-row .grc-i-send { opacity: 1; transform: none; }
.grc-composer.has-text .grc-compose-row .grc-i-mic { opacity: 0; transform: scale(.4); }
.grc-composer.is-disabled { opacity: .55; pointer-events: none; }
.grc-reply-bar { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; padding: 8px 10px; border-radius: 12px; background: var(--grc-surface-2); border-left: 4px solid var(--grc-accent); }
.grc-reply-bar div { flex: 1; min-width: 0; font-size: 13px; }
.grc-reply-bar b { display: block; color: var(--grc-accent); font-size: 12.5px; }
.grc-reply-bar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--grc-muted); }
.grc-cmds { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); background: var(--grc-surface); border: 1px solid var(--grc-line-2); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); padding: 6px; z-index: 5; }
.grc-cmds button { display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; }
.grc-cmds button:hover { background: var(--grc-surface-2); }
.grc-cmds b { color: var(--grc-accent); font-size: 14px; }
.grc-cmds span { font-size: 13px; color: var(--grc-muted); }
/* gravação */
.grc-rec { display: flex; align-items: center; gap: 10px; padding: 0 2px; height: 46px; }
.grc-composer.is-recording .grc-compose-row { display: none; }
.grc-rec-cancel { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #ef4444; }
.grc-rec-cancel svg { width: 22px; height: 22px; }
.grc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: grcBlink 1s infinite; flex: 0 0 10px; }
@keyframes grcBlink { 50% { opacity: .2; } }
.grc-rec-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; min-width: 38px; }
.grc-rec-wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; overflow: hidden; justify-content: flex-end; }
.grc-rec-wave i { width: 3px; flex: 0 0 3px; border-radius: 3px; background: var(--grc-text); }

/* ---------------------------------------------------------- sheets */
.grc-sheet-host { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.grc-sheet-host:empty { display: none; }
.grc-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); pointer-events: auto; animation: grcFade .2s; }
@keyframes grcFade { from { opacity: 0; } }
.grc-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--grc-surface); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); pointer-events: auto; animation: grcSheetIn .28s cubic-bezier(.2, .8, .2, 1); max-height: 82%; overflow-y: auto; }
.grc-sheet-tall { height: 76%; display: flex; flex-direction: column; }
.grc-sheet-grip { width: 38px; height: 4.5px; border-radius: 9px; background: var(--grc-line-2); margin: 2px auto 12px; }
.grc-sheet h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.grc-sheet p { margin: 0 0 14px; color: var(--grc-muted); font-size: 14px; }
.grc-input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--grc-line-2); background: var(--grc-surface-2); padding: 0 16px; font-size: 16px !important; outline: 0; margin-bottom: 12px; }
.grc-input:focus { border-color: var(--grc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--grc-accent) 18%, transparent); }
.grc-input.err { border-color: #ef4444; }
.grc-btn { width: 100%; height: 50px; border-radius: 14px; background: var(--grc-text) !important; color: var(--grc-surface) !important; font-weight: 700; font-size: 15.5px; }
.grc-attach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 6px 0 4px; }
.grc-attach-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--grc-text-2); }
.grc-attach-grid span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 18%, var(--grc-surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.grc-products { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 -8px; }
.grc-products button { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-align: left; }
.grc-products button:hover { background: var(--grc-surface-2); }
.grc-p-txt b { display: block; font-size: 14.5px; }
.grc-p-txt small { color: var(--grc-muted); font-size: 12.5px; }
.grc-intent-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font-size: 15px; }
.grc-intents { display: flex; flex-direction: column; gap: 8px; }
.grc-intents button { height: 50px; border-radius: 14px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); font-weight: 600; text-align: left; padding: 0 16px; }
.grc-intents button:hover { border-color: var(--grc-accent); }
.grc-muted { color: var(--grc-muted); text-align: center; padding: 20px; }

/* ---------------------------------------------------------- configurações */
.grc-settings { background: var(--grc-bg); }
.grc-set-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.grc-field { display: flex; flex-direction: column; gap: 7px; }
.grc-field > span { font-size: 13px; font-weight: 700; color: var(--grc-text-2); }
.grc-field small { font-size: 12.5px; color: var(--grc-muted); line-height: 1.45; }
.grc-field input, .grc-field select { height: 50px; border-radius: 14px; border: 1px solid var(--grc-line-2); background: var(--grc-surface); padding: 0 14px; font-size: 16px; outline: 0; }
.grc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); }
.grc-seg button { height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--grc-muted); }
.grc-seg button.on { background: var(--grc-surface); color: var(--grc-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.grc-set-foot { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--grc-muted); margin: 0; }

/* ---------------------------------------------------------- lightbox / toast */
.grc-lightbox { position: fixed; inset: 0; z-index: 2147483600; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 50px 12px; animation: grcFade .2s; }
.grc-lightbox img, .grc-lightbox video { max-width: 100%; max-height: 100%; border-radius: 10px; }
.grc-lb-close, .grc-lb-dl { position: absolute; top: max(14px, env(safe-area-inset-top)); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14) !important; color: #fff !important; font-size: 18px; text-decoration: none; }
.grc-lb-close { right: 14px; }
.grc-lb-dl { right: 64px; }
.grc-toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #18181b; color: #fafafa; padding: 11px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 2147483500; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.grc-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .grc-root *, .grc-root *::before, .grc-root *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   CAIXA DE ENTRADA (painel do influenciador e Supreme)
   ===================================================================== */
.grc-desk { --grc-chat-bg: #efeae2; display: grid; grid-template-columns: var(--grc-cols, 360px 1fr); height: var(--grc-desk-h, calc(100vh - 170px)); min-height: 560px; background: var(--grc-surface); border: 1px solid var(--grc-line); border-radius: 22px; overflow: hidden; position: relative; }
.grc-desk[data-theme="dark"] { --grc-chat-bg: #0b0b0e; }
.grc-desk.has-stores { --grc-cols: 300px 340px 1fr; }
.grc-desk-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--grc-line); background: var(--grc-surface); }
.grc-desk-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--grc-chat-bg); }
.grc-col-head { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--grc-line); }
.grc-col-title { display: flex; align-items: center; gap: 8px; }
.grc-col-title h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.grc-search { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 12px; background: var(--grc-surface-2); padding: 0 12px; color: var(--grc-muted); border: 1px solid transparent; }
.grc-search:focus-within { border-color: var(--grc-line-2); }
.grc-search svg { width: 17px; height: 17px; flex: 0 0 17px; }
.grc-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--grc-text); min-width: 0; }
.grc-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.grc-chips button { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--grc-surface-2); color: var(--grc-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.grc-chips button.on { background: var(--grc-text); color: var(--grc-surface); }
.grc-chips em { font-style: normal; background: #ef4444; color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; }
.grc-list { flex: 1; overflow-y: auto; padding: 6px; }
.grc-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border-radius: 14px; text-align: left; position: relative; }
.grc-item:hover { background: var(--grc-surface-2); }
.grc-item.on { background: var(--grc-surface-3); }
.grc-ini { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: hsl(var(--h, 200) 55% 45%); position: relative; }
.grc-ini img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.grc-ini .grc-av-dot { width: 12px; height: 12px; }
.grc-item-txt { flex: 1; min-width: 0; line-height: 1.25; }
.grc-item-top { display: flex; align-items: baseline; gap: 6px; }
.grc-item-top b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-item-top time { font-size: 11.5px; color: var(--grc-subtle); white-space: nowrap; }
.grc-item.unread .grc-item-top time { color: var(--grc-accent); font-weight: 700; }
.grc-item-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.grc-item-sub small { flex: 1; min-width: 0; font-size: 13px; color: var(--grc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-item.unread .grc-item-sub small { color: var(--grc-text-2); font-weight: 600; }
.grc-item-sub .grc-pill { height: 21px; min-width: 21px; font-size: 11.5px; }
.grc-flag-pill { font-size: 11px; font-weight: 800; color: #fff; background: #ef4444; border-radius: 6px; padding: 1px 6px; }
.grc-tag { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--grc-surface-3); color: var(--grc-muted); white-space: nowrap; }
.grc-tag.ok { background: rgba(34, 197, 94, .14); color: #16a34a; }
.grc-tag.bad { background: rgba(239, 68, 68, .14); color: #dc2626; }
.grc-tag.warn { background: rgba(245, 158, 11, .16); color: #b45309; }
.grc-root[data-theme="dark"] .grc-tag.ok { color: #4ade80; }
.grc-root[data-theme="dark"] .grc-tag.bad { color: #f87171; }
.grc-root[data-theme="dark"] .grc-tag.warn { color: #fbbf24; }
.grc-list-empty { text-align: center; color: var(--grc-muted); padding: 40px 20px; font-size: 14px; }
.grc-list-empty b { display: block; color: var(--grc-text); font-size: 15px; margin-bottom: 4px; }
.grc-hits-title { font-size: 12px; font-weight: 700; color: var(--grc-muted); padding: 10px 10px 4px; }
.grc-hit small mark { background: #facc15; color: #000; border-radius: 3px; padding: 0 2px; }

.grc-desk-empty { margin: auto; text-align: center; color: var(--grc-muted); padding: 30px; max-width: 360px; }
.grc-desk-empty .grc-big-ic { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 38px; background: var(--grc-surface); border: 1px solid var(--grc-line); }
.grc-desk-empty > b { display: block; color: var(--grc-text); font-size: 17px; margin-bottom: 4px; }
.grc-conv-head .grc-head-txt small { display: flex; gap: 6px; align-items: center; }
.grc-conv-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.grc-mini-btn { height: 34px; padding: 0 11px; border-radius: 10px; background: var(--grc-surface-2) !important; border: 1px solid var(--grc-line) !important; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--grc-text) !important; }
.grc-mini-btn:hover { border-color: var(--grc-line-2) !important; }
.grc-mini-btn.danger { color: #ef4444 !important; }
.grc-mini-btn.ok { color: #16a34a !important; }
.grc-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 8px 8px; scrollbar-width: none; }
.grc-quick button { flex: 0 0 auto; max-width: 240px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--grc-text-2); }
.grc-quick button:hover { border-color: var(--grc-accent); color: var(--grc-text); }
.grc-as-grshop { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 0 10px 8px; color: var(--grc-muted); }
.grc-as-grshop .grc-verified { width: 15px; height: 15px; }
.grc-side-info { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--grc-surface); border-left: 1px solid var(--grc-line); z-index: 8; display: flex; flex-direction: column; animation: grcSlide .25s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 50px rgba(0, 0, 0, .2); }
@keyframes grcSlide { from { transform: translateX(100%); } }
.grc-side-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.grc-card { background: var(--grc-surface-2); border: 1px solid var(--grc-line); border-radius: 16px; padding: 14px; }
.grc-card h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.grc-card p { margin: 0 0 10px; font-size: 13px; color: var(--grc-muted); line-height: 1.5; }
.grc-switch-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.grc-switch-row b { display: block; font-size: 14.5px; }
.grc-switch-row small { display: block; color: var(--grc-muted); font-size: 12.5px; }
.grc-switch { position: relative; width: 46px; height: 28px; flex: 0 0 46px; border-radius: 99px; background: var(--grc-surface-3); transition: background .2s; }
.grc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.grc-switch.on { background: #22c55e; }
.grc-switch.on::after { transform: translateX(18px); }
.grc-switch:disabled { opacity: .45; cursor: not-allowed; }
.grc-ta { width: 100%; min-height: 80px; border-radius: 12px; border: 1px solid var(--grc-line-2); background: var(--grc-surface); padding: 10px 12px; font-size: 14px; resize: vertical; outline: 0; color: var(--grc-text); }
.grc-ta:focus, .grc-field input:focus { border-color: var(--grc-accent); }
.grc-qr-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.grc-qr-item { display: flex; gap: 6px; align-items: center; }
.grc-qr-item input { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--grc-line-2); background: var(--grc-surface); padding: 0 10px; font-size: 13.5px; outline: 0; color: var(--grc-text); }
.grc-pause-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.grc-pause-grid button { height: 38px; border-radius: 10px; background: var(--grc-surface); border: 1px solid var(--grc-line-2); font-weight: 700; font-size: 13px; }
.grc-pause-grid button.on { background: var(--grc-text); color: var(--grc-surface); }
.grc-lock-card { text-align: center; padding: 30px 20px; }
.grc-lock-card .grc-big-ic { margin: 0 auto 12px; }
.grc-desk .grc-btn.alt { background: var(--grc-surface-2) !important; color: var(--grc-text) !important; border: 1px solid var(--grc-line-2); }
.grc-desk .grc-btn.red { background: #ef4444 !important; color: #fff !important; }
.grc-flag-list { display: flex; flex-direction: column; gap: 6px; }
.grc-flag { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--grc-surface); border: 1px solid var(--grc-line); text-align: left; width: 100%; }
.grc-flag.sev-high { border-color: rgba(239, 68, 68, .5); }
.grc-flag.sev-medium { border-color: rgba(245, 158, 11, .45); }
.grc-flag.done { opacity: .5; }
.grc-flag-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(239, 68, 68, .14); }
.grc-flag.sev-medium .grc-flag-ic { background: rgba(245, 158, 11, .15); }
.grc-flag div { flex: 1; min-width: 0; }
.grc-flag b { display: block; font-size: 13px; }
.grc-flag small { display: block; font-size: 12.5px; color: var(--grc-muted); }
.grc-flag q { display: block; font-size: 12.5px; color: var(--grc-text-2); margin-top: 3px; font-style: italic; }
.grc-store-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--grc-surface); border-bottom: 1px solid var(--grc-line); flex-wrap: wrap; }
.grc-store-head .grc-head-txt { min-width: 160px; }
.grc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grc-kpis div { background: var(--grc-surface); border-radius: 12px; padding: 10px; border: 1px solid var(--grc-line); }
.grc-kpis small { display: block; font-size: 11.5px; color: var(--grc-muted); }
.grc-kpis b { font-size: 18px; }
.grc-mobile-back { display: none; }

@media (max-width: 991.98px) {
  .grc-desk, .grc-desk.has-stores { grid-template-columns: 1fr; height: var(--grc-desk-h, calc(100dvh - 150px)); border-radius: 18px; }
  .grc-desk .grc-desk-col, .grc-desk .grc-desk-main { display: none; }
  .grc-desk[data-pane="stores"] .grc-col-stores, .grc-desk[data-pane="list"] .grc-col-list, .grc-desk[data-pane="chat"] .grc-desk-main { display: flex; }
  .grc-mobile-back { display: grid; }
  .grc-conv-actions .grc-mini-btn span { display: none; }
  .grc-side-info { width: 100%; }
  .grc-bubble { max-width: 86%; }
}
.grc-out .grc-author { color: rgba(255, 255, 255, .9); }
.grc-tag:empty { display: none; }
.grc-col-stores .grc-chips { flex-wrap: wrap; }
.grc-desk-empty p { margin: 6px 0 0; line-height: 1.5; }

/* ---------- v2: cards de produto e de compra com visual neutro (iguais dos dois lados) ---------- */
.grc-row .grc-t-product, .grc-row .grc-t-purchase { background: var(--grc-surface) !important; color: var(--grc-text) !important; border: 1px solid var(--grc-line-2); padding: 8px 8px 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.grc-t-product .grc-product, .grc-t-purchase .grc-purchase { margin: 0 0 4px; }
.grc-card-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--grc-muted); text-transform: uppercase; letter-spacing: .04em; padding: 2px 4px 8px; }
.grc-card-label .grc-verified { width: 13px; height: 13px; flex: 0 0 13px; }
.grc-purchase-head { padding: 4px 4px 10px; }
.grc-purchase-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 17px; background: rgba(34, 197, 94, .14); color: #16a34a; }
.grc-root[data-theme="dark"] .grc-purchase-ic { color: #4ade80; }
.grc-purchase.none .grc-purchase-ic { background: rgba(245, 158, 11, .15); color: #d97706; }
.grc-purchase ul { padding: 0 4px 4px; }
.grc-purchase li { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin-top: 6px; border: 1px solid var(--grc-line); border-radius: 10px; background: var(--grc-surface-2); border-top-style: solid; }
.grc-purchase li span { font-size: 13px; min-width: 0; }
.grc-purchase li em { white-space: nowrap; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; opacity: 1; background: var(--grc-surface-3); }
.grc-purchase li.st-approved em { background: rgba(34, 197, 94, .14); color: #16a34a; }
.grc-purchase li.st-pending em { background: rgba(245, 158, 11, .15); color: #b45309; }
.grc-purchase li.st-refunded em, .grc-purchase li.st-chargeback em { background: rgba(239, 68, 68, .14); color: #dc2626; }
.grc-root[data-theme="dark"] .grc-purchase li.st-approved em { color: #4ade80; }
.grc-root[data-theme="dark"] .grc-purchase li.st-pending em { color: #fbbf24; }
.grc-root[data-theme="dark"] .grc-purchase li.st-refunded em, .grc-root[data-theme="dark"] .grc-purchase li.st-chargeback em { color: #f87171; }
.grc-purchase li em::before { content: none !important; }
.grc-purchase li small { display: block; font-size: 11.5px; color: var(--grc-muted); font-weight: 500; }
.grc-product-go { border-top: 1px solid var(--grc-line); color: var(--grc-text); }
.grc-product-info small { color: var(--grc-muted); opacity: 1; }
/* horários mais legíveis */
.grc-meta { font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }
.grc-out .grc-meta { opacity: .7; }
/* abas da caixa de entrada (painel) */
.grc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 10px 14px 0; border-radius: 12px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); }
.grc-tabs button { height: 34px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--grc-muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.grc-tabs button.on { background: var(--grc-surface); color: var(--grc-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.grc-tabs em { font-style: normal; font-size: 10.5px; font-weight: 800; background: #ef4444; color: #fff; border-radius: 99px; padding: 0 6px; }
.grc-client-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.grc-client-meta small { font-size: 12px; color: var(--grc-muted); }
.grc-item .grc-mini-btn { height: 30px; padding: 0 10px; flex: 0 0 auto; }
.grc-start-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* =====================================================================
   v3: ícones de verdade (sem emoji), resposta (reply), ações da mensagem,
   aviso de monitoramento discreto e menus
   ===================================================================== */
.grc-root .grc-ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; display: inline-block; vertical-align: middle; }
.grc-root .grc-ic-sm { width: 14px; height: 14px; }
.grc-root .grc-ic circle[r="1"], .grc-root .grc-ic circle[r="1.2"] { fill: currentColor; }

/* idioma do cliente */
.grc-lang { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--grc-surface-3); color: var(--grc-text-2); }

/* prévias com ícone (lista de conversas, home do widget) */
.grc-pv { display: flex; align-items: center; gap: 5px; min-width: 0; }
.grc-pv > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grc-pv .grc-ic { width: 15px; height: 15px; opacity: .8; }
.grc-pv .grc-verified { width: 14px; height: 14px; flex: 0 0 14px; }
.grc-item-sub small.grc-pv, .grc-item-sub small > .grc-pv { display: flex; }

/* widget: home */
.grc-act-ic { color: var(--grc-text); }
.grc-act-ic .grc-ic { width: 20px; height: 20px; }
.grc-go { display: grid; place-items: center; color: var(--grc-subtle); }
.grc-go .grc-ic { width: 20px; height: 20px; }
.grc-notice, .grc-notice-bar { display: flex; align-items: flex-start; gap: 10px; }
.grc-notice .grc-ic, .grc-notice-bar .grc-ic { width: 17px; height: 17px; margin-top: 1px; color: var(--grc-text); }
.grc-paused-card b { display: flex; align-items: center; gap: 8px; }
.grc-foot .grc-ic, .grc-set-foot .grc-ic { width: 15px; height: 15px; color: #3b82f6; }
.grc-protected { display: flex; align-items: center; gap: 7px; background: var(--grc-surface); border: 1px solid var(--grc-line); box-shadow: none; }
.grc-protected .grc-ic { width: 14px; height: 14px; color: #3b82f6; flex: 0 0 14px; }
.grc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.grc-empty .grc-ic { width: 28px; height: 28px; opacity: .6; }
.grc-banner { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.grc-banner .grc-ic { width: 20px; height: 20px; flex: 0 0 20px; color: var(--grc-text); }
.grc-banner span { color: var(--grc-text-2); }
.grc-status .grc-ic { width: 13px; height: 13px; }

/* anexos: círculos monocromáticos */
.grc-attach-grid span { background: var(--grc-surface-2) !important; border: 1px solid var(--grc-line-2) !important; color: var(--grc-text); transition: transform .15s, background .15s; }
.grc-attach-grid span .grc-ic { width: 24px; height: 24px; }
.grc-attach-grid button:hover span { background: var(--grc-text) !important; color: var(--grc-surface); transform: translateY(-2px); }
.grc-sheet h3 { display: flex; align-items: center; gap: 10px; }
.grc-sheet h3 .grc-ic { width: 22px; height: 22px; }
.grc-intents button { display: flex; align-items: center; gap: 12px; }
.grc-intents button .grc-ic { width: 20px; height: 20px; color: var(--grc-muted); }
.grc-p-img { color: var(--grc-muted); }
.grc-p-img .grc-ic, .grc-product-img .grc-ic { width: 24px; height: 24px; }
.grc-product-img { color: var(--grc-muted); }

/* dentro das mensagens */
.grc-product-go { display: flex; align-items: center; justify-content: center; gap: 4px; }
.grc-product-go .grc-ic { width: 15px; height: 15px; }
.grc-purchase-ic .grc-ic { width: 20px; height: 20px; }
.grc-tr-toggle { display: inline-flex; align-items: center; gap: 5px; }
.grc-tr-toggle .grc-ic { width: 13px; height: 13px; }
.grc-lb-close .grc-ic, .grc-lb-dl .grc-ic { width: 20px; height: 20px; }

/* citação (resposta) dentro do balão */
.grc-quote { display: block; width: 100%; min-width: 160px; text-align: left; margin: 1px 0 6px; padding: 6px 10px 7px; border-radius: 9px; border-left: 3px solid currentColor; background: color-mix(in srgb, currentColor 8%, transparent) !important; font-size: 13px; line-height: 1.3; cursor: pointer; }
.grc-quote:hover { background: color-mix(in srgb, currentColor 13%, transparent) !important; }
.grc-quote b { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.grc-quote b .grc-verified { width: 13px; height: 13px; flex: 0 0 13px; }
.grc-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .78; }
.grc-quote span .grc-ic { width: 13px; height: 13px; margin: -2px 4px 0 0; }
.grc-quote.is-grshop { border-left-color: #3b82f6; }
.grc-quote.is-grshop b { color: #60a5fa; }
.grc-quote.is-deleted { cursor: default; font-style: italic; opacity: .7; }
.grc-quote.is-deleted span { display: flex; align-items: center; gap: 5px; }
.grc-t-image .grc-quote, .grc-t-video .grc-quote { margin: 0 0 6px; width: auto; }

/* ações ao passar o mouse: responder / apagar */
.grc-row { align-items: center; gap: 4px; position: relative; }
.grc-msg-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.grc-out .grc-msg-actions { order: -1; }
.grc-row:hover .grc-msg-actions, .grc-row.grc-acts-on .grc-msg-actions { opacity: 1; }
.grc-msg-actions button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--grc-muted); background: var(--grc-surface) !important; border: 1px solid var(--grc-line) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.grc-msg-actions button:hover { color: var(--grc-text); border-color: var(--grc-line-2) !important; }
.grc-msg-actions button.danger:hover { color: #ef4444; }
.grc-msg-actions .grc-ic { width: 15px; height: 15px; }
@media (hover: none) { .grc-msg-actions { display: none; } .grc-row.grc-acts-on .grc-msg-actions { display: flex; } }
/* arrastar para responder (celular) */
.grc-row::before { content: ""; position: absolute; left: 8px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; opacity: 0; transition: opacity .15s, transform .15s; transform: scale(.6); pointer-events: none;
  background: var(--grc-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17 4 12l5-5'/%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.grc-row.grc-swipe-ready::before { opacity: 1; transform: none; }

/* barra "respondendo a" no campo de mensagem */
.grc-reply-bar { border-left: 0; background: var(--grc-surface-2); border: 1px solid var(--grc-line); padding: 8px 8px 8px 12px; animation: grcMsgIn .2s; }
.grc-reply-bar .grc-reply-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grc-surface); color: var(--grc-text); }
.grc-reply-ic .grc-ic { width: 16px; height: 16px; }
.grc-reply-bar b { color: var(--grc-text); }
.grc-reply-bar div span { display: flex; align-items: center; gap: 4px; }
.grc-reply-bar div span .grc-ic { width: 13px; height: 13px; }
.grc-reply-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--grc-muted); }
.grc-reply-x:hover { background: var(--grc-surface-3) !important; color: var(--grc-text); }
.grc-reply-x .grc-ic { width: 16px; height: 16px; }

/* ---------- caixa de entrada ---------- */
.grc-tabs button .grc-ic { width: 16px; height: 16px; }
.grc-tabs button span { overflow: hidden; text-overflow: ellipsis; }
.grc-chips button .grc-ic { width: 14px; height: 14px; }
.grc-mini-btn .grc-ic { width: 16px; height: 16px; }
.grc-mini-btn.primary { background: var(--grc-text) !important; color: var(--grc-surface) !important; border-color: transparent !important; }
.grc-mini-btn.grc-wide { justify-content: center; height: 42px; text-decoration: none; }
.grc-card h4 .grc-ic { width: 17px; height: 17px; color: var(--grc-text-2); }
.grc-card h4.is-ok .grc-ic { color: #22c55e; }
.grc-card h4.is-warn .grc-ic { color: #f59e0b; }
.grc-card-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grc-surface); border: 1px solid var(--grc-line); }
.grc-switch-row > div { flex: 1; min-width: 0; }
.grc-card-danger { border-color: rgba(239, 68, 68, .35); }
.grc-card-danger h4 .grc-ic { color: #ef4444; }
.grc-rules { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--grc-muted); line-height: 1.45; }
.grc-big-ic { color: var(--grc-text); }
.grc-desk-empty .grc-big-ic .grc-ic { width: 34px; height: 34px; stroke-width: 1.6; }
.grc-big-ic.danger { color: #ef4444; }
.grc-flag-ic { color: #ef4444; }
.grc-flag.sev-medium .grc-flag-ic { color: #d97706; }
.grc-flag-ic .grc-ic { width: 17px; height: 17px; }
.grc-flag-pill { display: inline-flex; align-items: center; gap: 3px; }
.grc-flag-pill .grc-ic { width: 11px; height: 11px; stroke-width: 2.6; }
.grc-tag { display: inline-flex; align-items: center; gap: 3px; }
.grc-tag .grc-ic { width: 11px; height: 11px; }
.grc-tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent); }
.grc-quick button { display: inline-flex; align-items: center; gap: 6px; }
.grc-quick button .grc-ic { width: 13px; height: 13px; color: var(--grc-muted); }
.grc-quick button span { overflow: hidden; text-overflow: ellipsis; }
.grc-as-grshop span { min-width: 0; }

/* aviso de monitoramento: uma linha discreta no rodapé da lista */
.grc-monitor-wrap { position: relative; border-top: 1px solid var(--grc-line); padding: 6px; }
.grc-monitor-line { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--grc-muted); text-align: left; }
.grc-monitor-line span { flex: 1; }
.grc-monitor-line .grc-ic { width: 16px; height: 16px; color: #3b82f6; }
.grc-monitor-line .grc-ic-sm { width: 14px; height: 14px; color: var(--grc-subtle); }
.grc-monitor-line:hover, .grc-monitor-line.on { background: var(--grc-surface-2) !important; color: var(--grc-text-2); }
.grc-monitor-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% - 2px); background: var(--grc-surface); border: 1px solid var(--grc-line-2); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); z-index: 6; animation: grcMsgIn .18s; }
.grc-monitor-pop b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 4px; }
.grc-monitor-pop b .grc-ic { width: 16px; height: 16px; color: #3b82f6; }
.grc-monitor-pop p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--grc-muted); }

/* menu "mais opções" (Supreme) */
.grc-menu-wrap { position: relative; }
.grc-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--grc-surface); border: 1px solid var(--grc-line-2); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); z-index: 9; animation: grcMsgIn .16s; }
.grc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-align: left; color: var(--grc-text); }
.grc-menu button:hover { background: var(--grc-surface-2) !important; }
.grc-menu button.danger { color: #ef4444; }
.grc-menu .grc-ic { width: 17px; height: 17px; }
.grc-conv-actions { align-items: center; flex-wrap: nowrap; }

@media (max-width: 991.98px) {
  .grc-tabs { margin: 8px 10px 0; }
  .grc-tabs button { font-size: 12.5px; gap: 5px; }
}
@media (max-width: 380px) {
  .grc-tabs button span { display: none; }
}
.grc-out .grc-author { color: inherit; opacity: .6; }
.grc-from-grshop .grc-author-grshop { opacity: 1; }
@media (max-width: 420px) {
  .grc-tabs button { font-size: 12px; gap: 4px; }
  .grc-tabs button .grc-ic { width: 14px; height: 14px; }
}

/* ---------- celular: chat em tela cheia, sem a loja aparecendo atrás (fix iPhone) ---------- */
@media (max-width: 600px) {
  /* fundo sólido cobrindo a loja inteira enquanto o chat está aberto */
  .grc-widget.is-open::before { content: ""; position: fixed; left: 0; right: 0; top: -50vh; bottom: -50vh; background: var(--grc-surface); z-index: 2; }
  .grc-panel { top: var(--grc-vtop, 0); height: var(--grc-vh, 100dvh); box-shadow: 0 50vh 0 0 var(--grc-surface); }
  .grc-widget:not(.is-open)::before { display: none; }
  .grc-chat, .grc-home, .grc-settings { overscroll-behavior: contain; }
}

/* ---------- compra em outra loja ---------- */
.grc-purchase.other .grc-purchase-ic { background: rgba(245, 158, 11, .15); color: #d97706; }
.grc-purchase-note { margin: 0 4px 8px; font-size: 12.5px; line-height: 1.45; color: var(--grc-text-2); }
.grc-elsewhere { margin: 8px 4px 2px; padding-top: 8px; border-top: 1px dashed var(--grc-line-2); }
.grc-elsewhere > small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grc-muted); margin-bottom: 6px; }
.grc-else-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); margin-top: 6px; }
.grc-else-row > .grc-ic { width: 18px; height: 18px; color: #d97706; }
.grc-else-row span { flex: 1; min-width: 0; font-size: 13px; }
.grc-else-row span b { display: block; }
.grc-else-row span small { display: block; font-size: 11.5px; color: var(--grc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-else-row a { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 6px 8px; border-radius: 8px; background: var(--grc-surface); border: 1px solid var(--grc-line-2); color: var(--grc-text); }
.grc-else-row a .grc-ic { width: 14px; height: 14px; }
.grc-card-warn { border-color: rgba(245, 158, 11, .45); }
.grc-card-warn h4 .grc-ic { color: #d97706; }

/* ---------- "Suas conversas" (todas as lojas) ---------- */
.grc-inbox { background: var(--grc-surface); border: 1px solid var(--grc-line); border-radius: 18px; padding: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.grc-inbox-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grc-muted); padding: 8px 10px 4px; }
.grc-inbox-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 13px; text-align: left; }
.grc-inbox-row:hover { background: var(--grc-surface-2) !important; }
.grc-inbox-row.is-off { opacity: .55; }
.grc-inbox-txt { flex: 1; min-width: 0; }
.grc-inbox-top { display: flex; align-items: baseline; gap: 6px; }
.grc-inbox-top b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-inbox-top time { font-size: 11.5px; color: var(--grc-subtle); white-space: nowrap; }
.grc-inbox-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.grc-inbox-sub small { flex: 1; min-width: 0; font-size: 13px; color: var(--grc-muted); }
.grc-inbox-sub .grc-pill { height: 21px; min-width: 21px; font-size: 11.5px; }
.grc-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; background: var(--grc-surface-3); color: var(--grc-muted); }
.grc-chip .grc-ic { width: 11px; height: 11px; }
.grc-chip.warn { background: rgba(245, 158, 11, .15); color: #b45309; }
.grc-root[data-theme="dark"] .grc-chip.warn { color: #fbbf24; }
/* faixa "Atendimento de <loja>" quando a conversa é de outra loja */
.grc-other-store { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12.5px; background: var(--grc-surface-2); border-bottom: 1px solid var(--grc-line); color: var(--grc-text-2); }
.grc-other-store > .grc-ic { width: 15px; height: 15px; }
.grc-other-store span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-other-store a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; color: var(--grc-text); white-space: nowrap; }
.grc-other-store a .grc-ic { width: 13px; height: 13px; }

/* ---------- entrar com o e-mail da compra (código) ---------- */
.grc-login { background: var(--grc-bg); }
.grc-login-body { flex: 1; overflow-y: auto; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.grc-login-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grc-surface); border: 1px solid var(--grc-line-2); color: var(--grc-text); margin-bottom: 16px; }
.grc-login-ic .grc-ic { width: 28px; height: 28px; stroke-width: 1.8; }
.grc-login-ic.warn { color: #d97706; }
.grc-login h2 { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.grc-login-p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--grc-muted); }
.grc-login-p b { color: var(--grc-text); font-weight: 700; }
.grc-login-form { display: flex; flex-direction: column; gap: 14px; }
.grc-login .grc-field input { background: var(--grc-surface); }
.grc-login .grc-field input:focus { border-color: var(--grc-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--grc-text) 10%, transparent); }
.grc-login .grc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.grc-login .grc-btn:disabled { opacity: .55; }
.grc-login .grc-btn.alt { background: var(--grc-surface) !important; color: var(--grc-text) !important; border: 1px solid var(--grc-line-2); margin-top: 10px; }
.grc-login .grc-btn.wa { background: #22c55e !important; color: #fff !important; text-decoration: none; margin-top: 12px; }
.grc-login .grc-btn .grc-ic { width: 18px; height: 18px; }
.grc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.grc-login-err { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: rgba(239, 68, 68, .1); color: #dc2626; border: 1px solid rgba(239, 68, 68, .25); }
.grc-root[data-theme="dark"] .grc-login-err { color: #fca5a5; }
.grc-login-foot { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--grc-muted); }
.grc-login-foot .grc-ic { width: 15px; height: 15px; margin-top: 1px; }
.grc-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grc-otp input { width: 100%; height: 58px; border-radius: 14px; border: 1px solid var(--grc-line-2); background: var(--grc-surface); text-align: center; font-size: 24px !important; font-weight: 700; font-variant-numeric: tabular-nums; outline: 0; color: var(--grc-text); caret-color: var(--grc-text); }
.grc-otp input:focus { border-color: var(--grc-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--grc-text) 10%, transparent); }
.grc-otp.shake { animation: grcShake .4s; }
@keyframes grcShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.grc-login-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.grc-login-links button { font-size: 13.5px; font-weight: 700; color: var(--grc-text); padding: 6px 2px; }
.grc-login-links button:disabled { color: var(--grc-subtle); font-weight: 600; cursor: default; }
.grc-wrong { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--grc-surface); border: 1px solid var(--grc-line); }
.grc-wrong p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--grc-text-2); }
.grc-login-cta .grc-act-ic { color: var(--grc-text); }
/* conta (configurações) */
.grc-account { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--grc-surface); border: 1px solid var(--grc-line); }
.grc-acc-photo { position: relative; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--grc-surface-3); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--grc-text-2); }
.grc-acc-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.grc-acc-photo.is-busy { opacity: .5; }
.grc-acc-edit { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grc-text); color: var(--grc-surface); border: 2px solid var(--grc-surface); cursor: pointer; }
.grc-acc-edit .grc-ic { width: 14px; height: 14px; }
.grc-acc-txt { min-width: 0; line-height: 1.3; }
.grc-acc-txt small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grc-muted); }
.grc-acc-txt b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-acc-txt span { display: block; font-size: 13px; color: var(--grc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.grc-mini { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--grc-surface) !important; border: 1px solid var(--grc-line-2) !important; color: var(--grc-text); }
.grc-mini .grc-ic { width: 15px; height: 15px; }
.grc-mini.danger { color: #ef4444; }
/* vendedor: e-mail confirmado + cartão */
.grc-verified-mail { display: inline-flex; align-items: center; gap: 3px; color: #3b82f6; font-weight: 600; }
.grc-verified-mail .grc-ic { width: 13px; height: 13px; }
.grc-card-verified { margin-left: auto; font-size: 10px; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; background: rgba(59, 130, 246, .12); color: #3b82f6; }
.grc-conv-head .grc-status .grc-tag { font-size: 10.5px; }
.grc-mail-ok { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-weight: 700; color: #3b82f6; white-space: nowrap; }
.grc-mail-ok .grc-ic { width: 12px; height: 12px; }
.grc-purchase-head small { display: block; }

/* barra do cliente logado na página: o chat abre pela barra */
.grc-widget.has-dock .grc-launcher { display: none; }
@media (min-width: 601px) { .grc-widget.has-dock .grc-panel { bottom: 100px; } }

/* =====================================================================
   v9: aparência do chat, configurações em página, manutenção, aviso para todos
   ===================================================================== */
/* link dentro da mensagem: sempre legível (o CSS do painel deixava branco no balão branco) */
.grc-root .grc-text a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; font-weight: 600; opacity: .95; word-break: break-all; }
.grc-root .grc-out .grc-text a:hover, .grc-root .grc-in .grc-text a:hover { opacity: 1; }

/* fundos do chat (a loja escolhe nas configurações) */
.grc-root[data-bg] .grc-msgs, .grc-preview .grc-msgs { background-color: var(--grc-chat-bg); }
.grc-root[data-bg="plain"] .grc-msgs, .grc-preview[data-bg="plain"] .grc-msgs { background-image: none; }
.grc-root[data-bg="grid"] .grc-msgs, .grc-preview[data-bg="grid"] .grc-msgs { background-image: linear-gradient(var(--grc-dots) 1px, transparent 1px), linear-gradient(90deg, var(--grc-dots) 1px, transparent 1px); background-size: 24px 24px; }
.grc-root[data-bg="aurora"] .grc-msgs, .grc-preview[data-bg="aurora"] .grc-msgs { background-image: radial-gradient(60% 50% at 10% 0%, color-mix(in srgb, var(--grc-brand) 22%, transparent), transparent 70%), radial-gradient(50% 45% at 100% 100%, rgba(59, 130, 246, .18), transparent 70%); background-size: 100% 100%; background-attachment: local; }
.grc-root[data-bg="waves"] .grc-msgs, .grc-preview[data-bg="waves"] .grc-msgs { background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 18px, var(--grc-dots) 18px 19px); background-size: 120px 120px; }
.grc-root[data-bg="carbon"] .grc-msgs, .grc-preview[data-bg="carbon"] .grc-msgs { background-image: linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%), linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.grc-root[data-bg="dots"] .grc-msgs, .grc-preview[data-bg="dots"] .grc-msgs { background-image: radial-gradient(var(--grc-dots) 1.2px, transparent 1.2px); background-size: 20px 20px; }
/* bolhas na cor da loja: no cliente, as mensagens da LOJA; no painel, as SUAS */
.grc-widget.grc-brand-bubbles .grc-in:not(.grc-from-grshop) .grc-t-text { background: var(--grc-brand); color: #fff; }
.grc-desk.grc-brand-bubbles .grc-out:not(.grc-from-grshop) .grc-t-text, .grc-preview.grc-brand-bubbles .grc-out .grc-bubble { background: var(--grc-brand); color: #fff; }
/* cantos */
.grc-root[data-round="square"] .grc-bubble, .grc-preview[data-round="square"] .grc-bubble { border-radius: 6px; }
.grc-root[data-round="round"] .grc-bubble, .grc-preview[data-round="round"] .grc-bubble { border-radius: 22px; }
.grc-root[data-round="round"] .grc-in .grc-bubble, .grc-preview[data-round="round"] .grc-in .grc-bubble { border-top-left-radius: 8px; }
.grc-root[data-round="round"] .grc-out .grc-bubble, .grc-preview[data-round="round"] .grc-out .grc-bubble { border-top-right-radius: 8px; }

/* cabeçalho da conversa em 2 linhas (nada espremido) */
.grc-conv-head .grc-head-txt small.grc-status { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: normal; overflow: visible; }
.grc-st-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.grc-st-row > * { flex: 0 0 auto; }
.grc-st-sub { color: var(--grc-subtle); font-size: 12px; gap: 0; }
.grc-st-sub .grc-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; margin: 0 7px; flex: 0 0 3px; }
.grc-bit { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.grc-bit-mail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.grc-conv-head { align-items: center; min-height: 66px; }
.grc-head-act { width: 34px; height: 34px; flex: 0 0 34px; margin-left: 2px; border: 1px solid var(--grc-line) !important; border-radius: 10px; }
.grc-head-act .grc-ic { width: 17px; height: 17px; }
.grc-head-act.is-alert { color: #ef4444; border-color: rgba(239, 68, 68, .45) !important; background: rgba(239, 68, 68, .1) !important; }
.grc-col-title .grc-tag + .grc-head-act { margin-left: auto; }

/* página (configurações, aviso, manutenção) */
.grc-page-head { gap: 10px; }
.grc-page-head .grc-card-ic { width: 38px; height: 38px; flex: 0 0 38px; }
.grc-btn-sm { width: auto !important; height: 38px !important; padding: 0 16px !important; font-size: 14px !important; border-radius: 11px !important; display: inline-flex !important; align-items: center; gap: 6px; }
.grc-btn-sm .grc-ic { width: 16px; height: 16px; }
.grc-btn-sm:disabled { opacity: .5; }
.grc-page { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: var(--grc-bg); }
.grc-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; align-items: start; }
.grc-span-2 { grid-column: 1 / -1; }
.grc-set-card { background: var(--grc-surface); border: 1px solid var(--grc-line); border-radius: 18px; padding: 18px; min-width: 0; }
.grc-set-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.grc-set-card h4 .grc-ic { width: 18px; height: 18px; color: var(--grc-text-2); }
.grc-set-card > p { margin: 0 0 14px; font-size: 13px; color: var(--grc-muted); line-height: 1.5; }
.grc-set-card .grc-btn { height: 46px; font-size: 14.5px; }
.grc-desk .grc-btn.alt, .grc-root .grc-btn.alt { background: var(--grc-surface-2) !important; color: var(--grc-text) !important; border: 1px solid var(--grc-line-2); }
.grc-set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--grc-line); }
.grc-set-row b { display: block; font-size: 14px; }
.grc-set-row small { display: block; font-size: 12.5px; color: var(--grc-muted); margin-top: 2px; }
.grc-set-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); color: var(--grc-text-2); }
.grc-set-alert .grc-ic { width: 17px; height: 17px; color: #d97706; margin-top: 1px; }
.grc-set-alert.ok { background: var(--grc-surface-2); border-color: var(--grc-line); margin: 0 0 12px; }
.grc-set-alert.ok .grc-ic { color: var(--grc-text-2); }
.grc-seg-mini { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); }
.grc-seg-mini button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--grc-muted); }
.grc-seg-mini button.on { background: var(--grc-surface); color: var(--grc-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.grc-bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.grc-bg-opt { display: flex; flex-direction: column; gap: 7px; padding: 6px; border-radius: 14px; border: 1px solid var(--grc-line) !important; font-size: 12.5px; font-weight: 600; color: var(--grc-text-2); }
.grc-bg-opt.on { border-color: var(--grc-text) !important; color: var(--grc-text); box-shadow: 0 0 0 1px var(--grc-text); }
.grc-bg-swatch { position: relative; height: 62px; border-radius: 10px; overflow: hidden; background-color: var(--grc-chat-bg); }
.grc-bg-swatch i { position: absolute; height: 12px; border-radius: 6px; }
.grc-bg-swatch .b1 { left: 8px; top: 12px; width: 52%; background: var(--grc-in); }
.grc-bg-swatch .b2 { right: 8px; bottom: 12px; width: 44%; background: var(--grc-out); }
.grc-bg-swatch[data-sw="dots"] { background-image: radial-gradient(var(--grc-dots) 1.2px, transparent 1.2px); background-size: 10px 10px; }
.grc-bg-swatch[data-sw="grid"] { background-image: linear-gradient(var(--grc-dots) 1px, transparent 1px), linear-gradient(90deg, var(--grc-dots) 1px, transparent 1px); background-size: 12px 12px; }
.grc-bg-swatch[data-sw="aurora"] { background-image: radial-gradient(70% 70% at 0 0, color-mix(in srgb, var(--grc-brand) 35%, transparent), transparent 70%), radial-gradient(70% 70% at 100% 100%, rgba(59, 130, 246, .3), transparent 70%); }
.grc-bg-swatch[data-sw="waves"] { background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 8px, var(--grc-dots) 8px 9px); background-size: 50px 50px; }
.grc-bg-swatch[data-sw="carbon"] { background-image: linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%), linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.grc-preview { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--grc-line); }
.grc-preview .grc-msgs { padding: 14px; min-height: 120px; overflow: visible; }
.grc-switch.danger.on { background: #ef4444; }
.grc-btn-discord { background: #5865f2 !important; color: #fff !important; text-decoration: none; }

/* aviso de manutenção (cliente) */
.grc-maint { text-align: center; padding: 6px 2px 2px; }
.grc-maint-ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: rgba(245, 158, 11, .14); color: #d97706; }
.grc-maint-ic .grc-ic { width: 22px; height: 22px; }
.grc-maint > b { display: block; font-size: 16px; color: var(--grc-text); }
.grc-maint > p { margin: 4px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--grc-text-2); }
.grc-maint-copy { text-align: left; margin-bottom: 10px; }
.grc-maint-copy small { display: block; font-size: 11.5px; font-weight: 700; color: var(--grc-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.grc-maint-copy pre { margin: 0; max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 500 13px/1.5 var(--grc-font); padding: 10px 12px; border-radius: 12px; background: var(--grc-surface-2); border: 1px dashed var(--grc-line-2); color: var(--grc-text); }
.grc-maint-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grc-maint-btns .grc-btn { height: 44px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.grc-maint-btns .grc-ic { width: 16px; height: 16px; }
.grc-banner.grc-banner-maint { display: block; max-height: 62%; overflow-y: auto; text-align: center; }
.grc-maint-home { background: var(--grc-surface); border: 1px solid rgba(245, 158, 11, .35); border-radius: 18px; padding: 16px; }
.grc-maint-preview { border-radius: 14px; padding: 16px; background: var(--grc-surface-2); border: 1px solid var(--grc-line); }
.grc-maint-card.is-on { border-color: rgba(239, 68, 68, .5); background: color-mix(in srgb, #ef4444 7%, var(--grc-surface)); }
.grc-maint-strip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; background: rgba(239, 68, 68, .12); color: #fca5a5; border-bottom: 1px solid rgba(239, 68, 68, .3); }
.grc-root[data-theme="light"] .grc-maint-strip { color: #b91c1c; }
.grc-maint-strip .grc-ic { width: 16px; height: 16px; flex: 0 0 16px; }
.grc-banner-maint .grc-ic { color: #d97706; }
.grc-desk .grc-banner.grc-banner-maint { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }

/* aviso para todos */
.grc-bc { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.grc-bc .grc-field > span { font-size: 13px; font-weight: 700; color: var(--grc-text-2); }
.grc-bc-count { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--grc-surface); border: 1px solid var(--grc-line); font-size: 14px; color: var(--grc-text-2); }
.grc-bc-count b { color: var(--grc-text); font-size: 18px; }
.grc-bc-count .grc-ic { width: 20px; height: 20px; }
.grc-bc-count > i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--grc-line-2); border-top-color: var(--grc-text); animation: grcSpin .8s linear infinite; }
.grc-bc-count.zero b { color: var(--grc-muted); }
@keyframes grcSpin { to { transform: rotate(360deg); } }
.grc-bc-compose .grc-composer { border-radius: 16px; border: 1px solid var(--grc-line); }
.grc-bc-log { display: flex; flex-direction: column; gap: 6px; }
.grc-bc-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; font-size: 13px; background: var(--grc-surface); border: 1px solid var(--grc-line); color: var(--grc-text-2); }
.grc-bc-item .grc-ic { width: 16px; height: 16px; color: #d97706; }
.grc-bc-item.ok .grc-ic { color: #22c55e; }
.grc-bc-item span { flex: 1; }
.grc-bc-item time { font-size: 11.5px; color: var(--grc-subtle); }
@media (max-width: 991.98px) {
  .grc-page { padding: 12px; }
  .grc-page-grid { grid-template-columns: 1fr; }
  .grc-bit-mail { max-width: 180px; }
}

/* prévia das configurações: vale o fundo escolhido (mais forte que o fundo atual do painel) */
.grc-root .grc-preview[data-bg="plain"] .grc-msgs { background-image: none; }
.grc-root .grc-preview[data-bg="dots"] .grc-msgs { background-image: radial-gradient(var(--grc-dots) 1.2px, transparent 1.2px); background-size: 20px 20px; }
.grc-root .grc-preview[data-bg="grid"] .grc-msgs { background-image: linear-gradient(var(--grc-dots) 1px, transparent 1px), linear-gradient(90deg, var(--grc-dots) 1px, transparent 1px); background-size: 24px 24px; }
.grc-root .grc-preview[data-bg="aurora"] .grc-msgs { background-image: radial-gradient(60% 50% at 10% 0%, color-mix(in srgb, var(--grc-brand) 22%, transparent), transparent 70%), radial-gradient(50% 45% at 100% 100%, rgba(59, 130, 246, .18), transparent 70%); background-size: 100% 100%; }
.grc-root .grc-preview[data-bg="waves"] .grc-msgs { background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 18px, var(--grc-dots) 18px 19px); background-size: 120px 120px; }
.grc-root .grc-preview[data-bg="carbon"] .grc-msgs { background-image: linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%), linear-gradient(45deg, var(--grc-dots) 25%, transparent 25%, transparent 75%, var(--grc-dots) 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.grc-root .grc-preview[data-round="soft"] .grc-bubble { border-radius: 16px; }
.grc-root .grc-preview[data-round="soft"] .grc-in .grc-bubble { border-top-left-radius: 5px; }
.grc-root .grc-preview[data-round="soft"] .grc-out .grc-bubble { border-top-right-radius: 5px; }
.grc-root .grc-preview[data-round="square"] .grc-bubble { border-radius: 6px; }
.grc-root .grc-preview[data-round="round"] .grc-bubble { border-radius: 22px; }
.grc-root .grc-preview[data-round="round"] .grc-in .grc-bubble { border-top-left-radius: 8px; }
.grc-root .grc-preview[data-round="round"] .grc-out .grc-bubble { border-top-right-radius: 8px; }
.grc-root .grc-preview:not(.grc-brand-bubbles) .grc-out .grc-bubble { background: var(--grc-out); color: var(--grc-out-text); }
.grc-col-stores .grc-col-title h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
