/* Enterprise Wordpress Chat Support Plugin chat widget */
.enterprise-wordpress-chat-support-plugin-chat-bubble{position:fixed;bottom:18px;right:18px;min-width:170px;height:60px;border-radius:30px;background:linear-gradient(135deg,var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5),#0f5fb8);color:#fff;display:flex;align-items:center;gap:10px;cursor:pointer;z-index:999999;box-shadow:0 14px 34px rgba(0,0,0,.24);user-select:none;border:0;padding:0 14px}.enterprise-wordpress-chat-support-plugin-chat-bubble.left{left:18px;right:auto}.enterprise-wordpress-chat-support-plugin-chat-bubble__icon{width:34px;height:34px;border-radius:18px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:18px}.enterprise-wordpress-chat-support-plugin-chat-bubble__copy{display:grid;line-height:1.1;text-align:left}.enterprise-wordpress-chat-support-plugin-chat-bubble__copy strong{font-size:14px}.enterprise-wordpress-chat-support-plugin-chat-bubble__copy small{font-size:11px;opacity:.9}
.enterprise-wordpress-chat-support-plugin-chat-panel{position:fixed;bottom:88px;right:18px;width:380px;max-width:calc(100vw - 28px);height:620px;background:#fff;border-radius:22px;box-shadow:0 20px 50px rgba(15,23,42,.18);z-index:999999;overflow:hidden;display:none;flex-direction:column;border:1px solid #e5e7eb}.enterprise-wordpress-chat-support-plugin-chat-panel.open{display:flex}.enterprise-wordpress-chat-support-plugin-chat-panel.left{left:18px;right:auto}
.enterprise-wordpress-chat-support-plugin-chat-header{padding:16px 16px;background:linear-gradient(135deg,var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5),#0f5fb8);color:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.enterprise-wordpress-chat-support-plugin-chat-header__title{display:grid;gap:4px}.enterprise-wordpress-chat-support-plugin-chat-header__title strong{font-size:16px}.enterprise-wordpress-chat-support-plugin-chat-header__title small{font-size:12px;opacity:.92}.enterprise-wordpress-chat-support-plugin-chat-close{background:rgba(255,255,255,.16);border:0;color:#fff;font-size:24px;line-height:1;border-radius:12px;width:36px;height:36px;cursor:pointer}
.enterprise-wordpress-chat-support-plugin-chat-body{flex:1;padding:16px 18px;overflow-y:auto;overflow-x:hidden;background:#f8fafc;display:flex;flex-direction:column;gap:14px;min-height:0;}.enterprise-wordpress-chat-support-plugin-chat-intro{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px}.enterprise-wordpress-chat-support-plugin-chat-intro__meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.enterprise-wordpress-chat-support-plugin-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef4ff;border:1px solid #dbe7ff;color:#145f79;font-size:12px;font-weight:700}.enterprise-wordpress-chat-support-plugin-chat-prompts{display:flex;gap:8px;flex-wrap:wrap}.enterprise-wordpress-chat-support-plugin-chat-prompt{padding:8px 10px;border:1px solid #dbe7ff;border-radius:999px;background:#fff;color:#1f4052;font-size:12px;font-weight:700;cursor:pointer}
.enterprise-wordpress-chat-support-plugin-chat-messages{display:grid;gap:14px}
/* [P7] Assistant has NO bubble — text flows on the canvas. User keeps bubble. */
.enterprise-wordpress-chat-support-plugin-chat-msg{font-size:14px;line-height:1.55;display:grid;gap:5px;max-width:88%;}
.enterprise-wordpress-chat-support-plugin-chat-msg.user{padding:12px 14px;border-radius:16px;background:#e8f1ff;border:1px solid #d4e4ff;margin-left:auto;white-space:pre-wrap;}
.enterprise-wordpress-chat-support-plugin-chat-msg.assistant{padding:0;background:transparent;border:0;max-width:100%;}
/* [P7] hide the "ORION AI" / "Visitor" meta label by default since it duplicates with channel UI; keep visible only on user bubble for accessibility */
.enterprise-wordpress-chat-support-plugin-chat-msg.assistant .enterprise-wordpress-chat-support-plugin-chat-msg__meta{display:none;}
.enterprise-wordpress-chat-support-plugin-chat-msg__meta{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}
.enterprise-wordpress-chat-support-plugin-typing{display:flex;gap:6px}.enterprise-wordpress-chat-support-plugin-typing span{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:enterprise-wordpress-chat-support-plugin-typing 1.2s infinite ease-in-out}.enterprise-wordpress-chat-support-plugin-typing span:nth-child(2){animation-delay:.15s}.enterprise-wordpress-chat-support-plugin-typing span:nth-child(3){animation-delay:.3s}@keyframes enterprise-wordpress-chat-support-plugin-typing{0%,80%,100%{transform:scale(.7);opacity:.6}40%{transform:scale(1);opacity:1}}

/* [P7] Markdown element styles for assistant rich text. */
.enterprise-wordpress-chat-support-plugin-chat-h2{font-size:1.15em;font-weight:700;margin:.6em 0 .25em;line-height:1.3;color:#111827;}
.enterprise-wordpress-chat-support-plugin-chat-h3{font-size:1.05em;font-weight:700;margin:.5em 0 .2em;line-height:1.3;color:#111827;}
.enterprise-wordpress-chat-support-plugin-chat-h4{font-size:1em;font-weight:700;margin:.5em 0 .15em;line-height:1.3;color:#111827;}
.enterprise-wordpress-chat-support-plugin-chat-ul,.enterprise-wordpress-chat-support-plugin-chat-ol{margin:.3em 0;padding-inline-start:1.4em;list-style-position:outside;}
.enterprise-wordpress-chat-support-plugin-chat-ul li,.enterprise-wordpress-chat-support-plugin-chat-ol li{margin:.15em 0;padding-inline-start:.3em;}
.enterprise-wordpress-chat-support-plugin-chat-ul{list-style:disc;}
.enterprise-wordpress-chat-support-plugin-chat-ol{list-style:decimal;}
.enterprise-wordpress-chat-support-plugin-chat-quote{margin:.5em 0;padding:.4em .8em;border-right:3px solid #d1d5db;background:#f9fafb;color:#4b5563;border-radius:6px;}
[dir="ltr"] .enterprise-wordpress-chat-support-plugin-chat-quote{border-right:0;border-left:3px solid #d1d5db;}
.enterprise-wordpress-chat-support-plugin-chat-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:#f3f4f6;padding:1px 5px;border-radius:4px;border:1px solid #e5e7eb;}
.enterprise-wordpress-chat-support-plugin-chat-pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;background:#f3f4f6;padding:10px 12px;border-radius:8px;border:1px solid #e5e7eb;overflow-x:auto;margin:.4em 0;white-space:pre;}
.enterprise-wordpress-chat-support-plugin-chat-pre code{background:transparent;border:0;padding:0;}
.enterprise-wordpress-chat-support-plugin-chat-hr{border:0;border-top:1px solid #e5e7eb;margin:.7em 0;}
.enterprise-wordpress-chat-support-plugin-chat-table{border-collapse:collapse;width:100%;margin:.5em 0;font-size:.92em;}
.enterprise-wordpress-chat-support-plugin-chat-table th,.enterprise-wordpress-chat-support-plugin-chat-table td{border:1px solid #e5e7eb;padding:6px 8px;text-align:right;}
.enterprise-wordpress-chat-support-plugin-chat-table th{background:#f9fafb;font-weight:700;}
.enterprise-wordpress-chat-support-plugin-chat-table tr:nth-child(even) td{background:#fafbfc;}
[dir="ltr"] .enterprise-wordpress-chat-support-plugin-chat-table th,[dir="ltr"] .enterprise-wordpress-chat-support-plugin-chat-table td{text-align:left;}
.enterprise-wordpress-chat-support-plugin-chat-lead{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;display:grid;gap:10px}.enterprise-wordpress-chat-support-plugin-chat-lead.is-complete{display:none}.enterprise-wordpress-chat-support-plugin-chat-lead label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#475569}
/* [P7.1a] Footer is now a direct child of panel (not body) so it can pin to the bottom while body scrolls. */
.enterprise-wordpress-chat-support-plugin-chat-footer{display:flex;gap:10px;align-items:flex-end;padding:12px 14px;background:#fff;border-top:1px solid #e5e7eb;flex-shrink:0;}
.enterprise-wordpress-chat-support-plugin-chat-input{flex:1;padding:12px 14px;border:1px solid #d6dde6;border-radius:14px;font-size:14px;background:#fff;resize:none;min-height:48px;max-height:140px;}
.enterprise-wordpress-chat-support-plugin-chat-input--lead{min-height:auto}
.enterprise-wordpress-chat-support-plugin-chat-send{padding:12px 14px;border:0;border-radius:14px;background:var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5);color:#fff;cursor:pointer;font-weight:700;min-width:84px}
.enterprise-wordpress-chat-support-plugin-chat-send--full{width:100%}
.enterprise-wordpress-chat-support-plugin-chat-footer__note{font-size:11px;color:#94a3b8;padding:6px 14px 10px;background:#fff;flex-shrink:0;text-align:center;border-top:1px solid #f1f5f9;}
@media (max-width:720px){.enterprise-wordpress-chat-support-plugin-chat-bubble{min-width:64px;padding:0 14px}.enterprise-wordpress-chat-support-plugin-chat-bubble__copy{display:none}.enterprise-wordpress-chat-support-plugin-chat-panel{left:12px;right:12px;width:auto;height:70vh;bottom:86px}}

/* ---- Sprint 1: commerce cards + auth hint ---- */
.enterprise-wordpress-chat-support-plugin-chat-card{margin-top:10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px;display:grid;gap:8px;font-size:13px}
.enterprise-wordpress-chat-support-plugin-chat-card--cart{border-left:3px solid var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5)}
.enterprise-wordpress-chat-support-plugin-chat-card--order{border-left:3px solid #0f766e}
.enterprise-wordpress-chat-support-plugin-chat-card__head{display:flex;align-items:center;gap:8px;font-weight:700;color:#1f2937}
.enterprise-wordpress-chat-support-plugin-chat-card__icon{font-size:16px}
.enterprise-wordpress-chat-support-plugin-chat-card__title{flex:1}
.enterprise-wordpress-chat-support-plugin-chat-card__row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;border-bottom:1px solid #f1f5f9}
.enterprise-wordpress-chat-support-plugin-chat-card__row:last-of-type{border-bottom:0}
.enterprise-wordpress-chat-support-plugin-chat-card__row--muted{color:#64748b;font-size:12px}
.enterprise-wordpress-chat-support-plugin-chat-card__row--total{font-weight:700;color:#0f172a}
.enterprise-wordpress-chat-support-plugin-chat-card__label{color:#475569}
.enterprise-wordpress-chat-support-plugin-chat-card__value{color:#0f172a;text-align:right}
.enterprise-wordpress-chat-support-plugin-chat-card__value--mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.enterprise-wordpress-chat-support-plugin-chat-card__badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#f1f5f9;color:#334155;text-transform:capitalize}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--processing{background:#fef3c7;color:#92400e}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--completed,.enterprise-wordpress-chat-support-plugin-chat-card__badge--delivered{background:#dcfce7;color:#166534}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--shipped{background:#dbeafe;color:#1e40af}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--not_shipped{background:#f1f5f9;color:#475569}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--cancelled,.enterprise-wordpress-chat-support-plugin-chat-card__badge--failed,.enterprise-wordpress-chat-support-plugin-chat-card__badge--refunded{background:#fee2e2;color:#991b1b}
.enterprise-wordpress-chat-support-plugin-chat-card__badge--on-hold,.enterprise-wordpress-chat-support-plugin-chat-card__badge--pending{background:#fef3c7;color:#92400e}
.enterprise-wordpress-chat-support-plugin-chat-card__items{margin-top:4px}
.enterprise-wordpress-chat-support-plugin-chat-card__items-label{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.enterprise-wordpress-chat-support-plugin-chat-card__items-list{list-style:none;padding:0;margin:0;display:grid;gap:3px}
.enterprise-wordpress-chat-support-plugin-chat-card__items-row{display:flex;justify-content:space-between;font-size:12px;color:#334155}
.enterprise-wordpress-chat-support-plugin-chat-card__items-row--more{color:#64748b;font-style:italic;justify-content:flex-start}
.enterprise-wordpress-chat-support-plugin-chat-card__items-name{flex:1}
.enterprise-wordpress-chat-support-plugin-chat-card__items-qty{color:#64748b;font-weight:700;margin-left:8px}
.enterprise-wordpress-chat-support-plugin-chat-card__cta{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}
.enterprise-wordpress-chat-support-plugin-chat-card__btn{flex:1;padding:9px 12px;border-radius:10px;font-size:13px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer;border:1px solid transparent;min-width:92px}
.enterprise-wordpress-chat-support-plugin-chat-card__btn--primary{background:var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5);color:#fff}
.enterprise-wordpress-chat-support-plugin-chat-card__btn--primary:hover{filter:brightness(1.05)}
.enterprise-wordpress-chat-support-plugin-chat-card__btn--secondary{background:#fff;color:#1f4052;border-color:#dbe7ff}
.enterprise-wordpress-chat-support-plugin-chat-card__btn--secondary:hover{background:#f8fafc}
.enterprise-wordpress-chat-support-plugin-chat-auth-hint{margin-top:10px;background:#fef3c7;border:1px solid #fcd34d;border-radius:10px;padding:8px 12px;display:flex;align-items:center;gap:8px;font-size:12px;color:#92400e}
.enterprise-wordpress-chat-support-plugin-chat-auth-hint__icon{font-size:14px}
.enterprise-wordpress-chat-support-plugin-chat-auth-hint__text{flex:1;font-weight:600}
.enterprise-wordpress-chat-support-plugin-chat-input.is-emphasized{border-color:var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5);box-shadow:0 0 0 3px rgba(30,136,229,.18);transition:box-shadow .25s ease,border-color .25s ease}

/* H1 Agent UI formatting */
.enterprise-wordpress-chat-support-plugin-chat-msg__content{white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.55;}
/* [P7.1a] Clean professional text link — replaces the old pill/tag style */
.enterprise-wordpress-chat-support-plugin-chat-link{color:var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5);text-decoration:none;font-weight:600;border-bottom:1px solid transparent;transition:border-color .15s ease,opacity .15s ease;}
.enterprise-wordpress-chat-support-plugin-chat-link:hover{border-bottom-color:var(--enterprise-wordpress-chat-support-plugin-primary,#1E88E5);opacity:.85;}

/* H2 settings/reset UX */
.enterprise-wordpress-chat-support-plugin-chat-header__actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.enterprise-wordpress-chat-support-plugin-chat-reset{background:rgba(255,255,255,.16);border:0;color:#fff;font-size:12px;line-height:1;border-radius:12px;height:36px;padding:0 10px;cursor:pointer;font-weight:700;}
.enterprise-wordpress-chat-support-plugin-chat-reset:hover,.enterprise-wordpress-chat-support-plugin-chat-close:hover{background:rgba(255,255,255,.25);}

/* [P7.1a] Fullscreen toggle button in header */
.enterprise-wordpress-chat-support-plugin-chat-fullscreen{background:rgba(255,255,255,.16);border:0;color:#fff;font-size:18px;line-height:1;border-radius:12px;width:36px;height:36px;cursor:pointer;font-family:inherit;}
.enterprise-wordpress-chat-support-plugin-chat-fullscreen:hover{background:rgba(255,255,255,.25);}

/* [P7.1a] Fullscreen mode — panel takes the whole viewport */
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  max-width:100vw!important;
  max-height:100vh!important;
  border-radius:0!important;
  bottom:0!important;
  right:0!important;
  left:0!important;
  top:0!important;
}
/* [P7.1a.2] In fullscreen, the body uses a centered max-width column.
   This works the same way for RTL and LTR because we use auto margins
   on a block-level element (.chat-messages-wrap) inside the body. */
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-body{
  padding:24px;
  align-items:center;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-intro,
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-prompts,
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-messages{
  width:100%;
  max-width:760px;
}
/* In fullscreen, footer also gets a centered, narrower input row */
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-footer{
  padding:16px 24px;
  justify-content:center;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-footer .enterprise-wordpress-chat-support-plugin-chat-input{
  max-width:680px;
  max-height:200px;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-footer__note{
  text-align:center;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-msg{
  max-width:100%;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-msg.user{
  max-width:520px;
  margin-inline-start:auto;
  margin-inline-end:0;
}

/* [P7.1a] Status icons — V (success) and X (failure). The PHP/LLM uses the
   ✅ and ❌ emoji directly (Unicode 2705 / 274C) which render natively
   colored on all platforms. These classes are for cases where we render
   them inline in HTML — color overrides if needed. */
.enterprise-wordpress-chat-support-plugin-chat-status-ok::before{content:"✅ ";}
.enterprise-wordpress-chat-support-plugin-chat-status-fail::before{content:"❌ ";}

/* [P7.1a] Tighten message scrolling: messages container fills body. */
.enterprise-wordpress-chat-support-plugin-chat-messages{flex:1;display:flex;flex-direction:column;gap:14px;}


/* =====================================================================
   P8.3-A1 Exact Shopping UI inside chat — Google Shopping style, RTL-safe
   ===================================================================== */
.enterprise-wordpress-chat-support-plugin-shopping-panel{
  position:relative;background:#fff;color:#202124;border:1px solid #e8eaed;border-radius:14px;overflow:hidden;margin-top:10px;box-shadow:0 1px 4px rgba(32,33,36,.08);font-family:Roboto,Arial,sans-serif;direction:rtl;max-width:100%;
}
.enterprise-wordpress-chat-support-plugin-shopping-sticky{position:sticky;top:0;background:#fff;z-index:3;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.enterprise-wordpress-chat-support-plugin-shopping-filters{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #e8eaed;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;scrollbar-width:none}
.enterprise-wordpress-chat-support-plugin-shopping-filters::-webkit-scrollbar{display:none}
.enterprise-wordpress-chat-support-plugin-shopping-filter{display:inline-flex;align-items:center;gap:4px;padding:7px 12px;background:#fff;border:1px solid #dadce0;border-radius:16px;font-size:13px;color:#3c4043;cursor:pointer;white-space:nowrap;transition:all .2s;font-family:inherit}
.enterprise-wordpress-chat-support-plugin-shopping-filter:hover{background:#f8f9fa;border-color:#3c4043}
.enterprise-wordpress-chat-support-plugin-shopping-filter.active{background:#e8f0fe;color:#1967d2;border-color:#1967d2}
.enterprise-wordpress-chat-support-plugin-shopping-filter-icon{font-size:14px;line-height:1}
.enterprise-wordpress-chat-support-plugin-shopping-results-info{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:#fff}
.enterprise-wordpress-chat-support-plugin-shopping-results-count{font-size:13px;color:#70757a;white-space:nowrap}
.enterprise-wordpress-chat-support-plugin-shopping-sort{position:relative;flex-shrink:0}
.enterprise-wordpress-chat-support-plugin-shopping-sort-btn{display:flex;align-items:center;gap:4px;padding:7px 10px;border:1px solid #dadce0;border-radius:8px;background:#fff;font-size:13px;color:#3c4043;cursor:pointer;transition:all .2s;font-family:inherit}
.enterprise-wordpress-chat-support-plugin-shopping-sort.open .enterprise-wordpress-chat-support-plugin-shopping-sort-btn{border-color:#1967d2;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.enterprise-wordpress-chat-support-plugin-shopping-sort-options{position:absolute;top:calc(100% + 4px);left:0;background:#fff;border:1px solid #e8eaed;border-radius:8px;box-shadow:0 2px 16px rgba(0,0,0,.12);min-width:190px;display:none;z-index:10;overflow:hidden}
.enterprise-wordpress-chat-support-plugin-shopping-sort.open .enterprise-wordpress-chat-support-plugin-shopping-sort-options{display:block}
.enterprise-wordpress-chat-support-plugin-shopping-sort-option{display:block;width:100%;text-align:right;padding:10px 14px;border:0;background:#fff;font-size:13px;color:#202124;cursor:pointer;font-family:inherit}
.enterprise-wordpress-chat-support-plugin-shopping-sort-option:hover{background:#f8f9fa}
.enterprise-wordpress-chat-support-plugin-shopping-sort-option.selected{color:#1967d2;font-weight:700}
.enterprise-wordpress-chat-support-plugin-shopping-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;padding:14px;max-height:520px;overflow:auto;background:#fff}
.enterprise-wordpress-chat-support-plugin-shopping-product-card{background:#fff;border:1px solid #e8eaed;border-radius:8px;overflow:hidden;transition:all .2s;position:relative;min-width:0}
.enterprise-wordpress-chat-support-plugin-shopping-product-card:hover{box-shadow:0 1px 6px rgba(32,33,36,.28);transform:translateY(-1px)}
.enterprise-wordpress-chat-support-plugin-shopping-image-container{position:relative;width:100%;padding-top:100%;background:#f8f9fa;overflow:hidden;border:0;display:block;cursor:pointer}
.enterprise-wordpress-chat-support-plugin-shopping-product-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;direction:ltr}
.enterprise-wordpress-chat-support-plugin-shopping-image-fallback{position:absolute;inset:0;display:grid;place-items:center;font-size:44px;background:#f8f9fa;color:#70757a}
.enterprise-wordpress-chat-support-plugin-shopping-badge{position:absolute;top:8px;right:8px;background:#ea4335;color:white;padding:4px 8px;border-radius:4px;font-size:11px;font-weight:700;z-index:1}
.enterprise-wordpress-chat-support-plugin-shopping-badge.new{background:#34a853}
.enterprise-wordpress-chat-support-plugin-shopping-product-info{padding:12px;display:grid;gap:7px}
.enterprise-wordpress-chat-support-plugin-shopping-product-source{font-size:11px;color:#70757a;min-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.enterprise-wordpress-chat-support-plugin-shopping-product-title{font-size:13px;color:#202124;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:36px;font-weight:500}
.enterprise-wordpress-chat-support-plugin-shopping-rating{display:flex;align-items:center;gap:4px}
.enterprise-wordpress-chat-support-plugin-shopping-stars{display:inline-flex;color:#fbbc04;font-size:13px;letter-spacing:-1px;direction:ltr}
.enterprise-wordpress-chat-support-plugin-shopping-rating-count{font-size:11px;color:#70757a}
.enterprise-wordpress-chat-support-plugin-shopping-price-section{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.enterprise-wordpress-chat-support-plugin-shopping-price{font-size:18px;font-weight:700;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-original-price{font-size:13px;color:#70757a;text-decoration:line-through}
.enterprise-wordpress-chat-support-plugin-shopping-features{display:flex;flex-wrap:wrap;gap:6px;margin-top:1px}
.enterprise-wordpress-chat-support-plugin-shopping-feature-tag{font-size:11px;color:#5f6368;padding:2px 7px;background:#f8f9fa;border-radius:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.enterprise-wordpress-chat-support-plugin-shopping-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.enterprise-wordpress-chat-support-plugin-shopping-card-btn{flex:1;min-width:72px;padding:8px 9px;border-radius:8px;font-size:12px;font-weight:700;text-align:center;text-decoration:none;cursor:pointer;border:1px solid transparent;font-family:inherit;line-height:1.2}
.enterprise-wordpress-chat-support-plugin-shopping-card-btn.primary{background:#1a73e8;color:#fff}
.enterprise-wordpress-chat-support-plugin-shopping-card-btn.secondary{background:#fff;color:#1967d2;border-color:#dbe7ff}
.enterprise-wordpress-chat-support-plugin-shopping-card-btn.link{background:#f8f9fa;color:#3c4043;border-color:#e8eaed;flex-basis:100%}
.enterprise-wordpress-chat-support-plugin-shopping-card-btn:disabled{opacity:.55;cursor:not-allowed}
.enterprise-wordpress-chat-support-plugin-shopping-empty{grid-column:1/-1;background:#f8f9fa;border:1px dashed #dadce0;border-radius:12px;padding:18px;display:grid;gap:6px;color:#5f6368;text-align:center}
.enterprise-wordpress-chat-support-plugin-shopping-empty strong{color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-modal{position:absolute;inset:0;background:rgba(0,0,0,.48);z-index:20;display:none;overflow:auto;padding:16px}
.enterprise-wordpress-chat-support-plugin-shopping-modal.active{display:block}
.enterprise-wordpress-chat-support-plugin-shopping-modal-content{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.2);max-width:920px;margin:0 auto;min-height:280px}
.enterprise-wordpress-chat-support-plugin-shopping-modal-header{padding:14px 18px;border-bottom:1px solid #e8eaed;display:flex;justify-content:space-between;align-items:center;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-modal-close{width:34px;height:34px;border-radius:50%;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:24px;color:#5f6368}
.enterprise-wordpress-chat-support-plugin-shopping-modal-close:hover{background:#f8f9fa;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-modal-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:22px}
.enterprise-wordpress-chat-support-plugin-shopping-loading{grid-column:1/-1;display:grid;place-items:center;padding:40px;color:#70757a}
.enterprise-wordpress-chat-support-plugin-shopping-gallery{min-width:0}
.enterprise-wordpress-chat-support-plugin-shopping-main-image-wrap{position:relative;overflow:hidden;border-radius:8px;background:#f8f9fa;margin-bottom:12px;min-height:260px;display:grid;place-items:center}
.enterprise-wordpress-chat-support-plugin-shopping-main-image{width:100%;height:320px;object-fit:contain;background:#f8f9fa;direction:ltr}
.enterprise-wordpress-chat-support-plugin-shopping-main-image-fallback{font-size:56px;color:#70757a}
.enterprise-wordpress-chat-support-plugin-shopping-thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;direction:ltr}
.enterprise-wordpress-chat-support-plugin-shopping-thumb{width:68px;height:68px;border-radius:8px;cursor:pointer;border:2px solid transparent;transition:all .2s;flex-shrink:0;background:#f8f9fa;padding:0;overflow:hidden}
.enterprise-wordpress-chat-support-plugin-shopping-thumb img{width:100%;height:100%;object-fit:cover}
.enterprise-wordpress-chat-support-plugin-shopping-thumb.active{border-color:#1a73e8}
.enterprise-wordpress-chat-support-plugin-shopping-details{display:flex;flex-direction:column;gap:14px;min-width:0}
.enterprise-wordpress-chat-support-plugin-shopping-detail-title{font-size:22px;font-weight:400;color:#202124;margin:0;line-height:1.3}
.enterprise-wordpress-chat-support-plugin-shopping-detail-rating{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #e8eaed;color:#5f6368;font-size:13px}
.enterprise-wordpress-chat-support-plugin-shopping-price-display{background:#f8f9fa;border-radius:12px;padding:16px;display:grid;gap:10px}
.enterprise-wordpress-chat-support-plugin-shopping-price-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#5f6368}
.enterprise-wordpress-chat-support-plugin-shopping-price-row strong{font-size:15px;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-price-row.total{border-top:1px solid #e8eaed;padding-top:10px;margin-top:2px;color:#202124;font-weight:700}
.enterprise-wordpress-chat-support-plugin-shopping-price-row.total strong{font-size:24px;color:#188038}
.enterprise-wordpress-chat-support-plugin-shopping-description{font-size:13px;color:#3c4043;line-height:1.6;margin:0}
.enterprise-wordpress-chat-support-plugin-shopping-quantity-section label,.enterprise-wordpress-chat-support-plugin-shopping-option-label{font-size:13px;font-weight:700;color:#202124;margin-bottom:8px;display:block}
.enterprise-wordpress-chat-support-plugin-shopping-quantity-selector{display:flex;align-items:center;gap:14px;border:1px solid #dadce0;border-radius:8px;padding:7px;width:max-content}
.enterprise-wordpress-chat-support-plugin-shopping-quantity-selector button{width:30px;height:30px;border:0;background:#f8f9fa;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#5f6368;font-size:18px}
.enterprise-wordpress-chat-support-plugin-shopping-quantity-selector button:hover{background:#e8eaed;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-options{display:grid;gap:14px}
.enterprise-wordpress-chat-support-plugin-shopping-option-buttons{display:flex;flex-wrap:wrap;gap:8px}
.enterprise-wordpress-chat-support-plugin-shopping-option-button{padding:8px 14px;border:1px solid #dadce0;border-radius:20px;background:#fff;cursor:pointer;transition:all .2s;font-size:13px;color:#3c4043;font-family:inherit}
.enterprise-wordpress-chat-support-plugin-shopping-option-button:hover{border-color:#1a73e8;background:#f8f9fa}
.enterprise-wordpress-chat-support-plugin-shopping-option-button.selected{background:#e8f0fe;color:#1967d2;border-color:#1967d2;font-weight:700}
.enterprise-wordpress-chat-support-plugin-shopping-modal-actions{display:flex;gap:10px;margin-top:4px}
.enterprise-wordpress-chat-support-plugin-shopping-btn-primary{flex:1;padding:12px 18px;background:#1a73e8;color:#fff;border:0;border-radius:5px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.enterprise-wordpress-chat-support-plugin-shopping-btn-primary:hover{background:#1557b0;box-shadow:0 2px 8px rgba(26,115,232,.28)}
.enterprise-wordpress-chat-support-plugin-shopping-btn-primary:disabled{opacity:.6;cursor:not-allowed}
.enterprise-wordpress-chat-support-plugin-shopping-btn-icon{width:44px;height:44px;border:1px solid #dadce0;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;color:#3c4043;font-size:20px}
.enterprise-wordpress-chat-support-plugin-shopping-btn-icon:hover{background:#f8f9fa;border-color:#1a73e8}
.enterprise-wordpress-chat-support-plugin-shopping-btn-icon.liked{background:#fce8e6;border-color:#ea4335;color:#ea4335}
.enterprise-wordpress-chat-support-plugin-shopping-toast{position:absolute;bottom:16px;right:16px;left:auto;background:#1e8e3e;color:#fff;padding:12px 16px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.22);display:none;z-index:30;font-weight:700;font-size:13px}
.enterprise-wordpress-chat-support-plugin-shopping-toast.show{display:block;animation:enterprise-wordpress-chat-support-plugin-shopping-slide-in .25s ease-out}
@keyframes enterprise-wordpress-chat-support-plugin-shopping-slide-in{from{transform:translateX(100%);opacity:.7}to{transform:translateX(0);opacity:1}}
.enterprise-wordpress-chat-support-plugin-shopping-categories-title{padding:14px 16px;border-bottom:1px solid #e8eaed;font-weight:700;color:#202124}
.enterprise-wordpress-chat-support-plugin-shopping-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:14px}
.enterprise-wordpress-chat-support-plugin-shopping-category-card{background:#fff;border:1px solid #e8eaed;border-radius:10px;padding:14px;display:grid;gap:6px;justify-items:start;text-align:right;cursor:pointer;font-family:inherit;color:#202124;transition:all .2s}
.enterprise-wordpress-chat-support-plugin-shopping-category-card:hover{box-shadow:0 1px 6px rgba(32,33,36,.2);transform:translateY(-1px)}
.enterprise-wordpress-chat-support-plugin-shopping-category-icon{font-size:24px}
.enterprise-wordpress-chat-support-plugin-shopping-category-card small{color:#70757a}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-shopping-grid{max-height:calc(100vh - 250px);grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-shopping-panel{width:100%;max-width:1040px;margin-inline:auto}
@media (max-width:720px){
  .enterprise-wordpress-chat-support-plugin-shopping-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;max-height:440px}
  .enterprise-wordpress-chat-support-plugin-shopping-product-info{padding:10px}
  .enterprise-wordpress-chat-support-plugin-shopping-results-info{align-items:flex-start;flex-direction:column}
  .enterprise-wordpress-chat-support-plugin-shopping-sort-options{right:0;left:auto}
  .enterprise-wordpress-chat-support-plugin-shopping-modal{padding:8px}
  .enterprise-wordpress-chat-support-plugin-shopping-modal-body{grid-template-columns:1fr;padding:14px;gap:16px}
  .enterprise-wordpress-chat-support-plugin-shopping-main-image{height:240px}
  .enterprise-wordpress-chat-support-plugin-shopping-detail-title{font-size:19px}
  .enterprise-wordpress-chat-support-plugin-shopping-price-row.total strong{font-size:21px}
}

/* =====================================================================
   P8.3-A2 Flattened Shopping UI
   Products now sit directly in the chat stream without the large wrapper/card
   that consumed empty space around the result grid. Product cards keep the
   original Google-Shopping style; only the outside shell is removed.
   ===================================================================== */
.enterprise-wordpress-chat-support-plugin-shopping-panel{
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:visible !important;
  margin-top:4px !important;
  width:100% !important;
  max-width:none !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-sticky{
  position:relative !important;
  top:auto !important;
  box-shadow:none !important;
  background:transparent !important;
  z-index:4 !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-filters{
  border-bottom:0 !important;
  padding:8px 0 8px !important;
  background:transparent !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-results-info{
  padding:6px 0 10px !important;
  background:transparent !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-grid{
  padding:0 !important;
  background:transparent !important;
  max-height:none !important;
  overflow:visible !important;
  grid-template-columns:repeat(auto-fit,minmax(210px,260px)) !important;
  justify-content:start !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-grid{
  justify-content:end !important;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-shopping-panel{
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
}
.enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-shopping-grid{
  max-height:none !important;
  grid-template-columns:repeat(auto-fit,minmax(220px,280px)) !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:1000000 !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-category-grid{
  padding:0 !important;
  background:transparent !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-categories-title{
  padding:4px 0 10px !important;
  border-bottom:0 !important;
  background:transparent !important;
}
@media (max-width:720px){
  .enterprise-wordpress-chat-support-plugin-shopping-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    justify-content:stretch !important;
  }
}

/* =====================================================================
   P8.3-A3 RTL + variation/review polish
   ===================================================================== */
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"],
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-chat-body,
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-chat-messages{
  direction:rtl !important;
  text-align:right !important;
}
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-chat-msg.user{
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
  direction:rtl !important;
}
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-chat-msg.assistant{
  text-align:right !important;
  direction:rtl !important;
}
.enterprise-wordpress-chat-support-plugin-chat-panel[dir="rtl"].enterprise-wordpress-chat-support-plugin-chat-panel--fullscreen .enterprise-wordpress-chat-support-plugin-chat-msg.user{
  margin-left:auto !important;
  margin-right:0 !important;
  margin-inline-start:0 !important;
  margin-inline-end:auto !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-grid{
  direction:rtl !important;
  justify-content:start !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-product-card,
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-product-info,
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-details{
  direction:rtl !important;
  text-align:right !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-card-actions,
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-modal-actions,
.enterprise-wordpress-chat-support-plugin-shopping-panel[dir="rtl"] .enterprise-wordpress-chat-support-plugin-shopping-option-buttons{
  direction:rtl !important;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-section{
  background:#f8f9fa;
  border-radius:12px;
  padding:16px;
  display:grid;
  gap:10px;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-title{
  font-size:15px;
  font-weight:700;
  margin:0;
  color:#202124;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-stars{
  display:flex;
  gap:6px;
  direction:ltr;
  justify-content:flex-end;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-stars button{
  border:0;
  background:transparent;
  color:#dadce0;
  font-size:26px;
  cursor:pointer;
  line-height:1;
  padding:0 2px;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-stars button.active,
.enterprise-wordpress-chat-support-plugin-shopping-review-stars button:hover{
  color:#fbbc04;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-comment{
  width:100%;
  min-height:72px;
  padding:10px 12px;
  border:1px solid #dadce0;
  border-radius:8px;
  font-family:inherit;
  font-size:13px;
  resize:vertical;
  box-sizing:border-box;
  direction:rtl;
  text-align:right;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-submit,
.enterprise-wordpress-chat-support-plugin-shopping-google-review{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:6px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  font-family:inherit;
}
.enterprise-wordpress-chat-support-plugin-shopping-review-submit{
  background:#1a73e8;
  color:#fff;
  border:0;
}
.enterprise-wordpress-chat-support-plugin-shopping-google-review{
  background:#fff;
  color:#1967d2;
  border:1px solid #dbe7ff;
}
.enterprise-wordpress-chat-support-plugin-shopping-google-sync-info{
  font-size:11px;
  color:#5f6368;
  line-height:1.5;
}
