.hoshilu-ai-search{min-width:min(100%,270px);padding:13px 16px;border:2px solid #5b3df5;border-radius:13px;background:linear-gradient(105deg,#ff4f9a,#7357ff,#23b8ff);color:#fff;box-shadow:0 9px 22px #7357ff35;cursor:pointer;text-align:left}.hoshilu-ai-search strong,.hoshilu-ai-search small{display:block;color:#fff}.hoshilu-ai-search strong{margin:0;font-size:12px}.hoshilu-ai-search small{margin-top:3px;font-size:9px;opacity:.94}.marketplace-search-link{border:2px solid transparent;box-shadow:0 4px 12px #17172b18}.marketplace-search-link:focus-visible,.hoshilu-ai-search:focus-visible{outline:3px solid #23b8ff;outline-offset:3px}.marketplace-search-link[data-marketplace="AMAZON_JP"]{background:#ff9900;color:#111}.marketplace-search-link[data-marketplace="RAKUTEN_JP"]{background:#bf0000}.marketplace-search-link[data-marketplace="YAHOO_JP"]{background:#ff0033}.marketplace-search-link[data-marketplace="QOO10_JP"]{background:#e60012}.marketplace-search-link[data-marketplace="SHEIN_JP"]{background:#000}.marketplace-search-link[data-marketplace="ZOZOTOWN_JP"]{background:#111}.marketplace-search-link[data-marketplace="SHOPLIST_JP"]{background:#e5005a}.marketplace-search-link[data-marketplace="MUSINSA_JP"]{background:#000}.marketplace-search-link[data-marketplace="BUYMA_JP"]{background:#222}.marketplace-search-link[data-marketplace="SNKRDUNK_JP"]{background:#3e51ff}.marketplace-search-link[data-marketplace="LOFT_JP"]{background:#ffcc00;color:#111}.marketplace-search-link[data-marketplace="HANDS_JP"]{background:#1e9e50}.marketplace-search-link[data-marketplace="MATSUKIYO_JP"]{background:#ffb300;color:#111}.marketplace-search-link[data-marketplace="COSME_JP"]{background:#009b77}.marketplace-search-link[data-marketplace="ABCMART_JP"]{background:#e2001a}.marketplace-search-link[data-channel="instagram"]{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)}.marketplace-search-link[data-channel="x"]{background:#000}.marketplace-search-link[data-channel="tiktok"]{background:#000;border-color:#25f4ee;box-shadow:3px 3px 0 #fe2c55}.marketplace-search-link[data-channel="youtube"]{background:#f00}.marketplace-search-link[data-channel="line"]{background:#06c755}.marketplace-search-link[data-channel="gmail"]{background:#fff;color:#3c4043;border-color:#dadce0}@media(max-width:760px){.hoshilu-ai-search{width:100%;text-align:center}.marketplace-search-link{min-height:46px;display:grid;place-items:center}}
.product-primary-link{display:grid;gap:12px;color:inherit;text-decoration:none;border-radius:14px}.product-primary-link:hover h3,.product-primary-link:focus-visible h3{color:#5940d8;text-decoration:underline}.product-primary-link:focus-visible{outline:3px solid #24a7ff;outline-offset:4px}.product-primary-link .product-image{width:100%}
.ai-chat-dialog{width:min(92vw,420px);padding:0;border:0;border-radius:20px;background:transparent}.ai-chat-dialog::backdrop{background:#17172ba8;backdrop-filter:blur(5px)}.ai-chat-dialog-card{position:relative;display:grid;gap:12px;padding:20px;max-height:80vh;border:1px solid #e9e5f5;border-radius:20px;background:#fff}.ai-chat-dialog-card>strong{padding-right:24px;color:#5140ba;font-size:13px}.ai-chat-dialog-close{position:absolute;top:12px;right:12px;width:28px;height:28px;border:0;border-radius:50%;background:#f4f0ff;color:#17172b;font-size:13px;cursor:pointer}.ai-chat-messages{display:grid;gap:8px;overflow-y:auto;max-height:50vh;padding-right:2px}.ai-chat-message{padding:9px 12px;border-radius:13px;font-size:12px;line-height:1.55;max-width:88%}.ai-chat-message-user{justify-self:end;background:#7357ff;color:#fff}.ai-chat-message-assistant{justify-self:start;background:#f4f0ff;color:#17172b}.ai-chat-message-status{opacity:.7;font-style:italic}.ai-chat-form{display:flex;gap:8px}.ai-chat-form.hidden{display:none}.ai-chat-form input{flex:1;padding:10px 12px;border:1px solid #e9e5f5;border-radius:11px;font-size:12px}.ai-chat-form button{padding:10px 14px;border:0;border-radius:11px;background:#7357ff;color:#fff;font-weight:800;cursor:pointer}
.ai-chat-retry{justify-self:start;padding:9px 14px;border:1px solid #7357ff;border-radius:11px;background:#fff;color:#5140ba;font-size:12px;font-weight:800;cursor:pointer}.ai-chat-retry:disabled{opacity:.6;cursor:default}
.ai-chat-search-cta{justify-self:start;padding:11px 18px;border:2px solid #5b3df5;border-radius:13px;background:linear-gradient(105deg,#ff4f9a,#7357ff,#23b8ff);color:#fff;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px #7357ff35}.ai-chat-search-cta:disabled{opacity:.6;cursor:default}.ai-chat-search-cta:focus-visible{outline:3px solid #23b8ff;outline-offset:3px}

/* ダイアログは横方向を固定し、本文だけ縦にスクロールする。閉じる操作は常に上部へ残す。 */
.ai-chat-dialog{max-width:92vw;overflow:hidden;overscroll-behavior:contain}.ai-chat-dialog-card{max-height:80dvh;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}.ai-chat-dialog-close{position:sticky;z-index:5;top:0;justify-self:end;margin-bottom:-40px}
.ai-chat-identify-question{white-space:pre-line;font-size:14px;font-weight:800}.ai-chat-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ai-chat-confirm-actions button,.ai-chat-other-malls{min-height:44px;padding:10px 12px;border-radius:12px;font-weight:850;cursor:pointer}.ai-chat-confirm-yes{border:0;background:linear-gradient(105deg,#ff4f9a,#7357ff,#23b8ff);color:#fff}.ai-chat-confirm-no,.ai-chat-other-malls{border:1px solid #7357ff;background:#fff;color:#5140ba}.ai-chat-confirm-actions button:disabled,.ai-chat-other-malls:disabled{cursor:wait;opacity:.55}
/* 2026-09-04 AI確認チャット: 候補名と一緒に参考画像（楽天上位3件） */
.ai-chat-preview-strip{display:grid;gap:6px;margin:4px 0 8px}
.ai-chat-preview-label{font-size:10px;color:#6d6b80}
.ai-chat-preview-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ai-chat-preview-item{display:grid;gap:4px;padding:6px;border:1px solid #e9e5f5;border-radius:12px;background:#fff;color:#17172b;text-decoration:none;min-width:0}
.ai-chat-preview-item img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:8px;background:#f3f1fa}
.ai-chat-preview-name{font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ai-chat-preview-item b{font-size:12px;color:#c90000}
