/* Shared promotion: Chinese artwork and native Korean creative use the same slot. */
.kusobao-promo-stack { position:fixed; right:14px; top:50%; transform:translateY(-50%); z-index:990; width:150px; display:flex; justify-content:center; font-family:"Microsoft YaHei","PingFang SC",sans-serif; }
.kusobao-promo-stack:has(> .ai-commerce-ad[hidden]) { display:none; }
.kusobao-promo-stack .ai-commerce-ad { position:relative; inset:auto; transform:none; flex:none; margin:0; }
.ai-commerce-ad__ko-art{height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding:11px 5px 8px;overflow:hidden;background:radial-gradient(ellipse at 20% 24%,#b4aaff 0,transparent 52%),linear-gradient(155deg,#7563f5,#4933c6 65%,#a15df0);color:#fff;text-align:center;font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;word-break:keep-all}
.ai-commerce-ad__ko-badge{font-size:9px;font-weight:700;line-height:1.3;padding:3px 4px;border:1px solid #d4caff;border-radius:8px;background:#ffffff1c}
.ai-commerce-ad__ko-art strong{font-size:15px;line-height:1.45;letter-spacing:-.6px;text-shadow:0 2px 5px #2a1b7b}
.ai-commerce-ad__ko-caption{font-size:10px;line-height:1.6;color:#f3edff}
.ai-commerce-ad__ko-cta{font-size:9px;line-height:1.5;font-weight:700;background:#fff;color:#5033b8;padding:5px 4px;border-radius:12px;white-space:nowrap}
.ai-commerce-ad__ko-visual{position:relative;display:grid;place-items:center;width:55px;height:65px;flex-shrink:0}
.ai-commerce-ad__ko-visual>span{display:grid;place-items:center;position:absolute;inset:5px 7px 9px 0;border:1px solid #ffffffa8;border-radius:10px;background:linear-gradient(130deg,#e3e9ff,#b0b9f2);color:#5d39ca;font-size:22px;font-weight:800;transform:rotate(-12deg);box-shadow:0 7px 12px #26147a55}
.ai-commerce-ad__ko-visual i{position:absolute;width:13px;height:29px;right:0;bottom:5px;border:1px solid #ffffffe0;border-radius:4px;background:linear-gradient(#fff,#d6bbff);transform:rotate(15deg)}
.ai-commerce-ad__ko-visual b{position:absolute;right:0;top:0;color:#fff1a6;font-size:21px}
.ai-commerce-ad__ko-art[hidden],.ai-commerce-ad__art[hidden]{display:none!important}
.ai-commerce-ad { position:fixed; right:24px; top:50%; transform:translateY(-50%); width:80px; height:232px; z-index:990; border-radius:10px; box-shadow:0 4px 16px rgba(105,67,225,.23); }
.ai-commerce-ad[hidden] { display:none !important; }
.ai-commerce-ad__link { position:relative; display:block; width:100%; height:100%; overflow:hidden; border-radius:inherit; background:#7654ef; }
.ai-commerce-ad__art { position:absolute; display:block; width:90px !important; max-width:none !important; height:auto !important; left:-4.5px; top:-8px; margin:0 !important; }
.ai-commerce-ad__close { position:absolute; z-index:1; top:1px; right:1px; width:18px; height:18px; padding:0; border:0; border-radius:50%; background:#695ee0; color:#fff; font:16px/18px Arial,sans-serif; text-align:center; cursor:pointer; }
.ai-commerce-ad__link:focus-visible, .ai-commerce-ad__close:focus-visible { outline:3px solid #a5b4fc; outline-offset:3px; }
.ai-commerce-ad__close:hover { background:#5145bc; }
/* Keep the official site's existing trial/contact control below the advert. */
body:has(.ai-commerce-ad--official) .referral-float { bottom:24px; }
@media(max-width:1420px) {
  .kusobao-promo-stack--official { position:relative; inset:auto; transform:none; z-index:2; width:100%; max-width:500px; margin:0 auto 22px; }
  .kusobao-promo-stack--official .ai-commerce-ad { width:auto; height:auto; border-radius:8px; box-shadow:none; }
  .kusobao-promo-stack--official .ai-commerce-ad__art { display:none; }
  .kusobao-promo-stack--official .ai-commerce-ad__link { padding:6px 26px 6px 10px; color:white; font-size:12px; }
  .kusobao-promo-stack--official .ai-commerce-ad__link::after { content:'AI电商制图'; }
}
@media(max-width:640px) {
  .ai-commerce-ad { right:8px; top:auto; bottom:110px; transform:none; width:72px; height:209px; }
  .ai-commerce-ad__art { width:81px !important; left:-4px; top:-7px; }
  .ai-commerce-ad__close { width:20px; height:20px; font-size:17px; line-height:20px; }
}
@media(max-height:480px) { .ai-commerce-ad { top:80px; bottom:auto; transform:none; } }
@media(min-width:1100px) and (max-height:560px) {
  .kusobao-promo-stack:not(.kusobao-promo-stack--official) .ai-commerce-ad { width:62px; height:180px; }
  .kusobao-promo-stack:not(.kusobao-promo-stack--official) .ai-commerce-ad__art { width:70px!important; left:-3.5px; top:-6px; }
}
