/* ============================================================
 * Matter Studio — Matt AI  (consolidated styles)
 * Externalised from the former inline snippets for CDN/browser caching.
 * ============================================================ */

/* ---- Shared: typing dots ---- */
@keyframes matter-dot-pulse{0%,80%,100%{transform:scale(.4);opacity:.4}40%{transform:scale(1);opacity:1}}
.matter-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#999;animation:matter-dot-pulse 1.4s infinite ease-in-out both;vertical-align:middle}
.matter-dot:nth-child(2){animation-delay:.16s}
.matter-dot:nth-child(3){animation-delay:.32s}
@media(prefers-reduced-motion:reduce){.matter-dot{animation-duration:.01ms!important}}

/* ============================================================
 * STICKY CHAT
 * ============================================================ */
#matt-sticky-chat *,#matt-sticky-chat *::before,#matt-sticky-chat *::after{box-sizing:border-box;margin:0;padding:0}
#matt-sticky-chat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* The Elementor cart drawer and mobile off-canvas menu carry huge z-indexes
 * (9998 / 2147483630) but they live INSIDE the header's root stacking context
 * (.elementor-element-2b0022b, z:999), so at the root level the whole header —
 * cart + off-canvas included — paints at z:999. The chat is a root-level fixed
 * element, so it must sit BELOW 999 for the cart's __main and the off-canvas
 * __main to always render above it. 998 keeps it just under the header while
 * staying above normal page content. */
#matt-sticky-chat{position:fixed;bottom:48px;right:28px;z-index:2147483000;font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;color:#0f0f0f}

#matt-bubble-label{position:fixed;bottom:58px;right:98px;background:#0f0f0f;color:#fff;font-size:13px;font-weight:600;padding:9px 15px;border-radius:12px;white-space:nowrap;box-shadow:0 4px 18px rgba(0,0,0,.18);cursor:pointer;opacity:0;transform:translateX(12px) scale(.9);animation:mattLblIn .5s cubic-bezier(.34,1.56,.64,1) 1.5s forwards;transition:opacity .25s,transform .25s}
@keyframes mattLblIn{to{opacity:1;transform:translateX(0) scale(1)}}
#matt-sticky-chat.label-hidden #matt-bubble-label{opacity:0!important;pointer-events:none;transform:translateX(8px) scale(.9)}

#matt-bubble-btn{position:relative;width:58px;height:58px;border-radius:50%;background:#0f0f0f;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 28px rgba(0,0,0,.22);transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s;-webkit-tap-highlight-color:transparent}
#matt-bubble-btn:hover{transform:scale(1.08);box-shadow:0 10px 36px rgba(0,0,0,.28)}
#matt-bubble-btn:focus-visible{outline:3px solid #4a90e2;outline-offset:3px}
#matt-bubble-btn:active{transform:scale(.96)}
.matt-ico{transition:opacity .2s,transform .2s;position:absolute}
.matt-ico--avatar{width:32px;height:32px;opacity:1;transform:scale(1)}
.matt-ico--close{width:22px;height:22px;opacity:0;transform:scale(.6) rotate(-90deg);stroke:#fff}
#matt-sticky-chat.is-open .matt-ico--avatar{opacity:0;transform:scale(.6) rotate(90deg)}
#matt-sticky-chat.is-open .matt-ico--close{opacity:1;transform:scale(1) rotate(0)}

#matt-unread-dot{position:absolute;top:6px;right:6px;width:10px;height:10px;background:#ef4444;border-radius:50%;border:2px solid #0f0f0f;display:none}
#matt-unread-dot.visible{display:block;animation:mattPulseDot 2s ease-in-out infinite}
@keyframes mattPulseDot{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}

#matt-chat-window{position:fixed;bottom:124px;right:28px;z-index:9997;width:380px;max-width:calc(100vw - 40px);height:min(580px,calc(100vh - 180px));height:min(580px,calc(100dvh - 180px));background:#fff;border-radius:20px;box-shadow:0 16px 56px rgba(0,0,0,.16);display:flex;flex-direction:column;overflow:hidden;border:1px solid #ebebeb;opacity:0;transform:translateY(16px) scale(.97);pointer-events:none;transition:opacity .28s,transform .28s cubic-bezier(.34,1.56,.64,1);overscroll-behavior:contain}
#matt-sticky-chat.is-open #matt-chat-window{opacity:1;transform:translateY(0) scale(1);pointer-events:all}

#matt-chat-header{background:#0f0f0f;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:10px}
.matt-hdr-info{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.matt-hdr-avatar-wrap{position:relative;flex-shrink:0}
.matt-hdr-avatar{width:36px;height:36px;border-radius:50%;background:#fff;padding:2px;display:block}
.matt-status-dot{position:absolute;bottom:0;right:0;width:10px;height:10px;background:#22c55e;border-radius:50%;border:2px solid #0f0f0f;transition:background .2s}
#matt-sticky-chat.is-thinking .matt-status-dot{background:#f59e0b;animation:mattStatusPulse 1.2s ease-in-out infinite}
@keyframes mattStatusPulse{0%,100%{opacity:1}50%{opacity:.5}}
.matt-hdr-text{min-width:0}
.matt-hdr-text strong{display:block;color:#fff;font-size:14px;font-weight:700;line-height:1.2}
.matt-hdr-text span{display:block;color:#9ca3af;font-size:11px;line-height:1.3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#matt-clear-btn{background:none;border:none;cursor:pointer;padding:8px;border-radius:8px;transition:background .2s;color:#9ca3af;flex-shrink:0;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}
#matt-clear-btn:hover{background:rgba(255,255,255,.1);color:#fff}
#matt-clear-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
#matt-clear-btn svg{width:16px;height:16px;display:block}

#matt-chat-messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:18px 14px 8px!important;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
#matt-chat-messages:focus{outline:none}
#matt-chat-messages::-webkit-scrollbar{width:4px}
#matt-chat-messages::-webkit-scrollbar-track{background:transparent}
#matt-chat-messages::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:4px}
#matt-chat-messages::-webkit-scrollbar-thumb:hover{background:#bbb}

.matt-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 16px 12px;animation:mattMsgIn .4s ease both}
.matt-welcome-avatar{width:54px;height:54px;border-radius:50%;background:#f5f5f5;padding:6px;margin-bottom:12px}
.matt-welcome h3{font-size:16px;font-weight:700;color:#0f0f0f;margin-bottom:6px}
.matt-welcome p{font-size:13px;color:#6b6b6b;line-height:1.5;max-width:260px}

.matt-msg{max-width:84%;padding:11px 16px!important;border-radius:14px;font-size:14px;line-height:1.55;word-break:break-word;animation:mattMsgIn .3s cubic-bezier(.34,1.2,.64,1) both;position:relative}
@keyframes mattMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.matt-msg--user{align-self:flex-end;background:#0f0f0f;color:#fff;border-radius:14px 14px 4px 14px}
.matt-msg--bot{align-self:flex-start;background:#f5f5f5;color:#111;border-radius:14px 14px 14px 4px}
.matt-msg--bot.is-cached::before{content:"";position:absolute;top:8px;right:-4px;width:6px;height:6px;background:#22c55e;border-radius:50%;opacity:.5}
.matt-msg--bot b{font-weight:700;color:#0f0f0f}
.matt-msg--bot i{font-style:italic}
.matt-msg--bot code{font-family:'SF Mono',Monaco,monospace;font-size:12px;background:rgba(0,0,0,.06);padding:1px 5px;border-radius:4px}
.matt-msg--bot a{color:#0f0f0f;font-weight:600;text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.matt-msg--bot a:hover{text-decoration-thickness:2px}
.matt-msg--error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;align-self:flex-start;border-radius:14px 14px 14px 4px}

.matt-msg-time{font-size:10px;color:#a0a0a0;margin-top:4px;align-self:flex-start;padding-left:6px;opacity:0;transition:opacity .2s;height:0;overflow:hidden}
.matt-msg + .matt-msg-time{height:auto;margin-top:-4px;margin-bottom:4px}
.matt-msg:hover + .matt-msg-time{opacity:1}
.matt-msg--user + .matt-msg-time{align-self:flex-end;padding-right:6px;padding-left:0}

.matt-retry-btn{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 12px;background:#fff;border:1px solid #fecaca;color:#991b1b;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s;-webkit-tap-highlight-color:transparent}
.matt-retry-btn:hover{background:#fef2f2;border-color:#f87171}
.matt-retry-btn svg{width:12px;height:12px}

.matt-typing-bubble{display:inline-flex;gap:4px;padding:14px 16px;align-self:flex-start;background:#f5f5f5;border-radius:14px 14px 14px 4px;animation:mattMsgIn .25s ease both}

#matt-chat-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;flex-shrink:0;max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease}
#matt-chat-suggestions.visible{max-height:220px;padding:0 14px 10px}
.matt-suggestion-chip{background:#fff;border:1px solid #e5e5e5;color:#0f0f0f;padding:5px 10px!important;border-radius:8px;font-size:11px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s;-webkit-tap-highlight-color:transparent;line-height:1.3;text-align:left}
.matt-suggestion-chip:hover{background:#0f0f0f;color:#fff;border-color:#0f0f0f;transform:translateY(-1px)}
.matt-suggestion-chip:active{transform:translateY(0)}
.matt-suggestion-chip:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}
/* Follow-up chips get a subtle accent so they read as "next steps" */
.matt-suggestion-chip.is-followup{background:#f7f7f7;border-color:#e0e0e0}

#matt-chat-input-area{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid #f0f0f0;flex-shrink:0;background:#fff}
/* font-size >=16px: evita o zoom automático do iOS ao focar o campo (Safari faz
   zoom quando <16px). !important porque o WooCommerce Blocks aplica
   `textarea{font-size:var(--font-size-standard)!important}` (~13,8px) que, sem
   o !important aqui, ganhava e o campo ficava <16px → zoom no iOS. */
#matt-chat-input{flex:1;padding:10px 14px;border:1px solid #e0e0e0;border-radius:14px;font-family:inherit;font-size:16px!important;color:#111;outline:none;transition:border .2s,background .2s,box-shadow .2s;background:#fafafa;-webkit-appearance:none;resize:none;max-height:100px;min-height:40px;line-height:1.4;font-weight:400}
#matt-chat-input::placeholder{color:#9ca3af}
#matt-chat-input:focus{border-color:#0f0f0f;background:#fff;box-shadow:0 0 0 3px rgba(15,15,15,.06)}
#matt-chat-input:disabled{opacity:.5;cursor:not-allowed}
#matt-send-btn{width:40px;height:40px;background:#0f0f0f;border:none;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s;-webkit-tap-highlight-color:transparent;color:#fff}
#matt-send-btn:hover:not(:disabled){background:#000;transform:scale(1.05)}
#matt-send-btn:active:not(:disabled){transform:scale(.95)}
#matt-send-btn:disabled{background:#e5e5e5;cursor:not-allowed;color:#bbb}
#matt-send-btn:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}
#matt-send-btn svg{width:16px;height:16px;display:block}

#matt-chat-footer{padding:8px 14px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;border-top:1px solid #fafafa}
.matt-ai-tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#9ca3af;font-weight:500;letter-spacing:.2px;cursor:help}
.matt-ai-tag svg{flex-shrink:0;opacity:.7}
.matt-support-link{font-size:11px;color:#6b6b6b;text-decoration:none;font-weight:500;transition:color .15s}
.matt-support-link:hover{color:#0f0f0f;text-decoration:underline}

@media(max-width:480px){
    #matt-sticky-chat{bottom:20px;right:16px}
    #matt-bubble-label{right:86px;bottom:28px}
    #matt-chat-window{right:0;left:0;bottom:96px;width:92%;margin:0 auto;border-radius:20px;height:calc(100vh - 116px);height:calc(100dvh - 116px)}
    .matt-msg-time{opacity:1;font-size:9px}
}

@media(prefers-reduced-motion:reduce){
    #matt-sticky-chat *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ============================================================
 * SUPPORT CENTER
 * ============================================================ */
.matter-sc{font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif}
.matter-sc *,.matter-sc *::before,.matter-sc *::after{box-sizing:border-box}

.matter-sc__search{display:flex;gap:10px;align-items:stretch;width:100%}
.matter-sc__search-field{flex-grow:1;display:flex;position:relative;align-items:center}
.matter-sc__search-icon{position:absolute;left:18px;color:#9ca3af;pointer-events:none;transition:color .15s}
.matter-sc__search-field:has(input:focus) .matter-sc__search-icon{color:#0f0f0f}
#matterSearchInput{width:100%;padding:16px 20px 16px 46px;border:1px solid #ebebeb;border-radius:12px;font-size:16px;outline:none;background:#fff;font-family:inherit;color:#0f0f0f;transition:border .2s,box-shadow .2s}
#matterSearchInput:focus{border-color:#0f0f0f;box-shadow:0 0 0 3px rgba(15,15,15,.06)}
#matterSearchInput::placeholder{color:#9ca3af}

.matter-sc__ask-btn{background:#0f0f0f;border:none;border-radius:12px;padding:0 25px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;color:#fff;font-family:inherit;font-weight:600;font-size:clamp(.86rem,.847rem + .07vw,.89rem);white-space:nowrap;transition:transform .15s,background .15s}
.matter-sc__ask-btn:hover{background:#000!important;transform:translateY(-1px)}
.matter-sc__ask-btn:active{transform:translateY(0)}
.matter-sc__ask-btn:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}
.matter-sc__ask-btn:disabled{opacity:.7;cursor:not-allowed;background:#0f0f0f!important;transform:none}
.matter-sc__ask-ico{width:20px;height:20px}

.matter-sc__suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.matter-sc__chip{background:#fff;border:1px solid #ebebeb;color:#0f0f0f;padding:6px 11px;border-radius:8px;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s;line-height:1.3}
.matter-sc__chip:hover{background:#0f0f0f;color:#fff;border-color:#0f0f0f;transform:translateY(-1px)}
.matter-sc__chip:active{transform:translateY(0)}
.matter-sc__chip:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}
.matter-sc__suggestions.hidden{display:none}

.matter-sc__ai-box{margin-top:25px;padding:25px;background:#fff;border:1px solid #ebebeb;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.03);animation:mscFadeIn .35s ease both}
@keyframes mscFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.matter-sc__ai-box[hidden]{display:none}

.matter-sc__user-row{display:flex;justify-content:flex-end;margin-bottom:20px}
.matter-sc__user-bubble{background:#f4f4f4;padding:12px 18px;border-radius:14px 14px 2px 14px;max-width:80%;font-size:14px;color:#555;line-height:1.4}

.matter-sc__divider{border:0;border-top:1px solid #f0f0f0;margin:20px 0}

.matter-sc__bot-hdr{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.matter-sc__bot-avatar{width:35px;height:35px;border-radius:50%;background:#fff;padding:2px;border:1px solid #eee;transition:transform .3s;flex-shrink:0}
.matter-sc__bot-avatar.thinking{animation:mscPulse 1.5s infinite ease-in-out}
@keyframes mscPulse{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}
.matter-sc__bot-hdr small{display:block;color:#000;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.5px;line-height:1.2}
.matter-sc__ai-tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#9ca3af;font-weight:500;margin-top:3px;cursor:help}
.matter-sc__ai-tag svg{opacity:.7}

.matter-sc__bot-text{font-size:15px;line-height:1.6;color:#111}
.matter-sc__bot-text b{font-weight:700;color:#0f0f0f}
.matter-sc__bot-text i{font-style:italic}
.matter-sc__bot-text code{font-family:'SF Mono',Monaco,monospace;font-size:13px;background:#f4f4f4;padding:1px 6px;border-radius:4px}
.matter-sc__bot-text a{color:#0f0f0f;font-weight:600;text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.matter-sc__bot-text a:hover{text-decoration-thickness:2px}

.matter-sc__dots-inline{display:inline-flex;gap:5px;padding:4px 0;vertical-align:middle}

/* Follow-up chips inside the answer box */
.matter-sc__followups{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #f0f0f0}
.matter-sc__followups-label{width:100%;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#9ca3af;margin-bottom:2px}

.matter-sc__retry-btn{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:8px 14px;background:#fff;border:1px solid #fecaca;color:#991b1b;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s}
.matter-sc__retry-btn:hover{background:#fef2f2;border-color:#f87171}
.matter-sc__retry-btn svg{width:13px;height:13px}

.matter-sc__no-results{text-align:center;padding:50px 20px;border:1px dashed #ebebeb;border-radius:12px;margin-top:20px;animation:mscFadeIn .35s ease both}
.matter-sc__no-results[hidden]{display:none}
.matter-sc__no-results p{font-size:14px;color:#888;margin-bottom:20px}
.matter-sc__contact-btn{display:inline-block;background:#0f0f0f;color:#fff;padding:1rem 1.5rem;border-radius:12px;text-decoration:none;font-weight:600;font-size:clamp(.86rem,.847rem + .07vw,.89rem);cursor:pointer;transition:transform .15s,background .15s;border:none}
.matter-sc__contact-btn:hover{background:#000;color:#fff;transform:translateY(-1px)}

.hidden-faq{display:none!important}
#container-formulario{display:none!important}

@media(max-width:600px){
    .matter-sc__search{flex-direction:column}
    .matter-sc__ask-btn{padding:16px;justify-content:center}
    #matterSearchInput{padding-left:46px}
}

@media(prefers-reduced-motion:reduce){
    .matter-sc *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ============================================================
 * THEME ISOLATION
 * The stylesheet now loads in <head> (before theme CSS), so bare-class
 * selectors lost specificity ties to the theme. These ID-scoped rules
 * restore the intended look and win against theme/Elementor button/link
 * styles regardless of load order.
 * ============================================================ */
#matt-sticky-chat .matt-suggestion-chip{background:#fff;color:#0f0f0f;border:1px solid #e5e5e5;border-radius:8px;font-size:11px;padding:5px 10px}
#matt-sticky-chat .matt-suggestion-chip.is-followup{background:#f7f7f7;border-color:#e0e0e0}
#matt-sticky-chat .matt-suggestion-chip:hover{background:#0f0f0f;color:#fff;border-color:#0f0f0f}
#matt-sticky-chat .matt-retry-btn{background:#fff;color:#991b1b;border:1px solid #fecaca}
#matt-sticky-chat .matt-retry-btn:hover{background:#fef2f2;border-color:#f87171}
#matt-sticky-chat .matt-support-link{color:#6b6b6b;text-decoration:none}
#matt-sticky-chat .matt-support-link:hover{color:#0f0f0f;text-decoration:underline}
#matt-sticky-chat .matt-msg--user{background:#0f0f0f;color:#fff}
#matt-sticky-chat .matt-msg--bot{background:#f5f5f5;color:#111}
#matt-sticky-chat .matt-msg--bot a{color:#0f0f0f}
#matt-sticky-chat .matt-msg--error{background:#fef2f2;color:#991b1b}
#matt-sticky-chat #matt-chat-input{color:#111;background:#fafafa;border:1px solid #e0e0e0}

#matter-sc .matter-sc__chip{background:#fff;color:#0f0f0f;border:1px solid #ebebeb;border-radius:8px;font-size:12px;padding:6px 11px}
#matter-sc .matter-sc__chip:hover{background:#0f0f0f;color:#fff;border-color:#0f0f0f}
#matter-sc .matter-sc__ask-btn{background:#0f0f0f;color:#fff;border:none;border-radius:12px}
#matter-sc .matter-sc__ask-btn:hover{background:#000;color:#fff}
#matter-sc .matter-sc__contact-btn{background:#0f0f0f;color:#fff;text-decoration:none}
#matter-sc .matter-sc__retry-btn{background:#fff;color:#991b1b;border:1px solid #fecaca}
#matter-sc .matter-sc__bot-text a{color:#0f0f0f}
#matter-sc #matterSearchInput{color:#0f0f0f;background:#fff;border:1px solid #ebebeb}

/* ============================================================
 * Consulta de encomenda (v5.1)
 * ============================================================ */
.matt-order-chip { font-weight: 600; }
.matt-order-form { display: flex; flex-direction: column; gap: 8px; }
.matt-order-form .matt-of-intro { margin: 0 0 2px; font-size: 13px; opacity: .8; }
.matt-order-form input {
    width: 100%; box-sizing: border-box; padding: 9px 11px;
    border: 1px solid rgba(0,0,0,.16); border-radius: 10px;
    font-size: 16px; font-family: inherit; background: #fff; color: #111;
}
.matt-order-form input:focus { outline: none; border-color: #4a7259; }
.matt-of-err { color: #b3261e; font-size: 12.5px; }
.matt-of-submit {
    align-self: flex-start; padding: 9px 15px; border: none; border-radius: 10px;
    background: #0f0f0f; color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.matt-of-submit:disabled { opacity: .6; cursor: default; }
.matt-order-result .matt-or-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.matt-order-result .matt-or-badge {
    background: #4a7259; color: #fff; border-radius: 8px;
    padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.matt-order-result p { margin: 6px 0; }
.matt-or-items { margin: 6px 0; padding-left: 18px; }
.matt-or-items li { margin: 2px 0; }
.matt-or-items span { opacity: .6; }
.matt-order-result small { opacity: .7; display: block; margin-top: 6px; }

/* ============================================================
 * Takeover humano — mensagem da equipa (v5.2)
 * ============================================================ */
.matt-msg--team {
    border-left: 3px solid #4a7259;
    background: rgba(74, 114, 89, .10);
}
.matt-msg--team::before {
    content: "Equipa Matter Studio";
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #4a7259;
    margin-bottom: 3px;
}

/* ============================================================
 * Esconder a bolha quando um painel/modal do site está aberto
 * (menu off-canvas, minicart, popups) — v5.3
 * ============================================================ */
#matt-sticky-chat.matt-suppressed{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(8px) scale(.96)!important;transition:opacity .18s,transform .18s,visibility .18s}

/* ============================================================
 * v5.4 — sem sugestões de perguntas; ecrã inicial com ações
 * ============================================================ */
#matt-chat-suggestions{display:none!important}
.matt-welcome{padding:30px 20px 10px}
.matt-welcome h3{font-size:17px;margin-bottom:4px}
.matt-welcome p{max-width:280px}
.matt-welcome-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.matt-wa{background:#fff;border:1px solid #e2e2e2;color:#0f0f0f;font-family:inherit;font-size:13px;font-weight:600;padding:9px 15px;border-radius:12px;cursor:pointer;transition:background .15s,color .15s,border-color .15s,transform .15s;-webkit-tap-highlight-color:transparent}
.matt-wa:hover{background:#0f0f0f;color:#fff;border-color:#0f0f0f;transform:translateY(-1px)}
.matt-wa:active{transform:translateY(0)}
.matt-wa:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}

/* ============================================================
 * v5.5 — blindar botões/inputs do Matt contra o reset de botões
 * do tema (border rosa #c36 etc.). Scope por ID + !important
 * para ganhar sempre, no chat flutuante e no Centro de Apoio.
 * ============================================================ */
#matt-sticky-chat .matt-wa{
    background:#fff!important;border:1px solid #e2e2e2!important;color:#0f0f0f!important;
    border-radius:12px!important;padding:9px 15px!important;font-size:13px!important;font-weight:600!important;
    font-family:inherit!important;cursor:pointer!important;line-height:1.2!important;box-shadow:none!important;
}
#matt-sticky-chat .matt-wa:hover{background:#0f0f0f!important;color:#fff!important;border-color:#0f0f0f!important}

#matt-sticky-chat .matt-of-submit,#matter-sc .matt-of-submit{
    background:#0f0f0f!important;border:1px solid #0f0f0f!important;color:#fff!important;
    border-radius:12px!important;padding:9px 15px!important;font-size:14px!important;font-weight:600!important;
    font-family:inherit!important;cursor:pointer!important;line-height:1.2!important;box-shadow:none!important;
}
#matt-sticky-chat .matt-of-submit:hover,#matter-sc .matt-of-submit:hover{background:#2a2a2a!important;border-color:#2a2a2a!important}
#matt-sticky-chat .matt-of-submit:disabled,#matter-sc .matt-of-submit:disabled{opacity:.6!important}

#matt-sticky-chat .matt-of-order,#matt-sticky-chat .matt-of-email,
#matter-sc .matt-of-order,#matter-sc .matt-of-email{
    background:#fff!important;border:1px solid #e2e2e2!important;color:#111!important;
    border-radius:8px!important;padding:10px 12px!important;font-size:16px!important;font-family:inherit!important;
    width:100%!important;box-sizing:border-box!important;
}
#matt-sticky-chat .matt-of-order:focus,#matt-sticky-chat .matt-of-email:focus,
#matter-sc .matt-of-order:focus,#matter-sc .matt-of-email:focus{border-color:#4a7259!important;outline:none!important}
