.botmarley-root { --bm-primary: #1a7f5a; --bm-secondary: #ffffff; --bm-bg: rgba(26,127,90,.08); position: fixed !important; z-index: 99999 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.botmarley-launcher { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--bm-primary); color: var(--bm-secondary); font-size: 24px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.botmarley-launcher-ico { width: 100%; height: 100%; display: block; pointer-events: none; -webkit-mask-image: var(--bm-launcher-ico); mask-image: var(--bm-launcher-ico); -webkit-mask-size: cover; mask-size: cover; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; background-color: var(--bm-secondary); }
.botmarley-launcher-img { width: 100%; height: 100%; display: block; pointer-events: none; object-fit: cover; }
.botmarley-panel { display: none; flex-direction: column; width: 340px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 120px); margin-bottom: 12px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.botmarley-header { background: var(--bm-primary); color: var(--bm-secondary); padding: 14px 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.botmarley-header-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.botmarley-header-name { line-height: 1.2; }
.botmarley-powered { font-size: 10px; font-weight: 400; color: var(--bm-secondary); opacity: 0.7; text-decoration: none; white-space: nowrap; }
.botmarley-powered:hover { opacity: 1; text-decoration: underline; }
.botmarley-close { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); color: var(--bm-secondary); font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; margin-left: 6px; }
.botmarley-close:hover { background: rgba(255,255,255,.35); }
.botmarley-lead-wrap { max-width: 100% !important; width: 100%; align-self: stretch; }
.botmarley-products { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 4px 0; }
.botmarley-product-card { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid #e5e5ea; border-radius: 10px; padding: 10px; width: 100%; box-sizing: border-box; }
.botmarley-product-img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f2f2f2; }
.botmarley-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.botmarley-product-name { font-size: 14px; font-weight: 600; color: #1d1d1f; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.botmarley-product-name:hover { text-decoration: underline; }
.botmarley-product-price { font-size: 14px; font-weight: 700; color: #d3232f; line-height: 1.3; }
.botmarley-product-price * { font-size: 14px !important; }
/* WooCommerce's price_html: <del> is the pre-sale price, <ins> the current one. */
.botmarley-product-price del, .botmarley-product-price del * { color: #8a8a8e; font-weight: 400; text-decoration: line-through; }
.botmarley-product-price ins, .botmarley-product-price ins * { color: #d3232f; font-weight: 700; text-decoration: none; }
/* price_html ships a11y text ("Original price was: …"). Themes normally hide
   .screen-reader-text, but the widget cannot rely on a theme's stylesheet. */
.botmarley-product-price .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.botmarley-product-atc { display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; padding: 8px 14px; background: var(--bm-atc, var(--bm-primary)); color: var(--bm-atc-text, var(--bm-secondary)) !important; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.botmarley-product-atc:hover { opacity: .85; }
/* Dimmed rather than recoloured: the button's colour is admin-configurable, so a
   hardcoded success green would clash with whatever they picked. */
.botmarley-product-atc-busy { opacity: .55; cursor: progress; }
.botmarley-product-atc-done, .botmarley-product-atc-done:hover { opacity: .5; cursor: default; }
.botmarley-product-cart-link { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--bm-primary); text-decoration: underline; }
.botmarley-product-cart-link:hover { opacity: .8; }
.botmarley-product-view { background: #f0f0f0; color: #1d1d1f !important; }
.botmarley-lead-card { background: var(--bm-primary-10, #f7f7f7); border: 2px solid var(--bm-primary); border-radius: 12px; padding: 14px 14px 7px; display: flex; flex-direction: column; gap: 8px; width: 100%; box-sizing: border-box; }
/* Negative margins halve the flex gap under the heading and above the
   (usually empty) message line below the send button. */
.botmarley-lead-title { margin: 0 0 -4px; font-size: 13px; font-weight: 600; color: #1d1d1f; }
.botmarley-lead-input { padding: 9px 11px !important; border: 1px solid #d2d2d7 !important; border-radius: 8px !important; font-size: 13px !important; outline: none !important; width: 100%; box-sizing: border-box; background: #fff !important; color: #1d1d1f !important; box-shadow: none !important; }
.botmarley-lead-input:focus { border-color: var(--bm-primary) !important; background: #fff !important; color: #1d1d1f !important; box-shadow: none !important; outline: none !important; }
.botmarley-lead-btn { padding: 10px; background: var(--bm-primary); color: var(--bm-secondary); border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; }
.botmarley-lead-btn:hover { opacity: .88; }
.botmarley-lead-btn:disabled { opacity: .5; cursor: default; }
.botmarley-lead-privacy { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #3a3a3c; line-height: 1.4; cursor: pointer; }
.botmarley-lead-privacy input[type="checkbox"] { -webkit-appearance: checkbox !important; appearance: checkbox !important; display: inline-block !important; visibility: visible !important; opacity: 1 !important; position: static !important; width: 15px !important; height: 15px !important; min-width: 15px; margin-top: 1px; flex-shrink: 0; accent-color: var(--bm-primary); }
.botmarley-lead-privacy a { color: var(--bm-primary); text-decoration: underline; }
.botmarley-lead-msg { margin: -4px 0 0; font-size: 12px; color: #b32d2e; }
.botmarley-lead-thanks { margin: 0; font-size: 13px; color: #1a7f5a; font-weight: 600; text-align: center; }
.botmarley-footer { margin: 0; padding: 7px 12px; font-size: 11px; color: #8e8e93; text-align: center; background: #fff; border-top: 1px solid #f0f0f0; line-height: 1.4; }
.botmarley-footer a { color: var(--bm-primary); text-decoration: underline; }
.botmarley-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bm-bg); }
.botmarley-msg { display: flex; flex-direction: column; max-width: 85%; }
.botmarley-user { align-self: flex-end; align-items: flex-end; }
.botmarley-assistant { align-self: flex-start; }
.botmarley-bubble { padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.botmarley-user .botmarley-bubble { background: var(--bm-primary); color: var(--bm-secondary); border-bottom-right-radius: 4px; }
.botmarley-assistant .botmarley-bubble { background: #fff; color: #1d1d1f; border: 1px solid #e5e5ea; border-bottom-left-radius: 4px; }
.botmarley-typing .botmarley-bubble { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.botmarley-dot { width: 7px; height: 7px; border-radius: 50%; background: #a0a0a6; display: inline-block; animation: botmarley-bounce 1.2s infinite ease-in-out; }
.botmarley-dot:nth-child(2) { animation-delay: .15s; }
.botmarley-dot:nth-child(3) { animation-delay: .3s; }
@keyframes botmarley-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.botmarley-bubble a { color: var(--bm-primary); text-decoration: underline; word-break: normal; overflow-wrap: break-word; }
.botmarley-user .botmarley-bubble a { color: var(--bm-secondary); }
/* WhatsApp contact pill: white icon + bold white label on the widget colour.
   The !importants override the generic bubble-anchor rule above. */
.botmarley-bubble a.botmarley-wa-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; margin: 1px 0; background: var(--bm-primary); color: #fff !important; border-radius: 999px; font-size: 11px; font-weight: 700; text-decoration: none !important; line-height: 1; vertical-align: middle; }
.botmarley-wa-btn img { width: 13px; height: 13px; display: block; }
.botmarley-wa-btn strong { color: #fff; font-weight: 700; }
.botmarley-wa-btn:hover { opacity: .88; }
.botmarley-sources { margin-top: 8px; padding-top: 6px; border-top: 1px solid #e5e5ea; font-size: 11px; color: #8e8e93; display: flex; flex-direction: column; gap: 3px; }
.botmarley-sources-label { font-weight: 600; }
.botmarley-sources-link { color: var(--bm-primary); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.botmarley-sources-link:hover { text-decoration: underline; }
.botmarley-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e5ea; background: #fff; }
.botmarley-input { flex: 1; padding: 9px 12px; border: 1px solid #d2d2d7 !important; border-radius: 12px; font-size: 13px !important; line-height: 1.4 !important; outline: none !important; box-shadow: none !important; resize: none; overflow: hidden; font-family: inherit; }
.botmarley-input:focus { font-size: 13px !important; line-height: 1.4 !important; border-color: var(--bm-primary) !important; box-shadow: none !important; outline: none !important; }
.botmarley-send { width: 38px; border: none; border-radius: 8px; background: var(--bm-primary); color: var(--bm-secondary); font-size: 15px; cursor: pointer; }
.botmarley-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 10px; padding: 12px 14px; background: #fff; border: 1px solid #e5e5ea; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.botmarley-consent-text { flex: 1; margin: 0; padding: 0; font-size: 12px; color: #3a3a3c; line-height: 1.5; }
.botmarley-consent-text a { color: var(--bm-primary); text-decoration: underline; }
.botmarley-consent-close { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none; background: #f0f0f0; color: #6e6e73; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.botmarley-consent-close:hover { background: #e0e0e0; }
@media (max-width: 480px) {
  .botmarley-panel { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; border-radius: 0 !important; margin-bottom: 0 !important; }
}
