/* Plugin case: a browser window with an Allegro catalog product; the extension panel slides in beside it
   (below it in a narrow column). Theme rules color .portfolio-panel text, so colors here are set explicitly. */
.plugin-demo{--pd-accent:var(--chosen-accent,#ff5a00);container-type:inline-size;font-size:13px;line-height:1.4;color:#14161b}
.pd-browser{overflow:hidden;border-radius:16px;background:#fff;border:1px solid #d9dde3;box-shadow:0 40px 80px -30px #0d101859,0 18px 36px -24px #0d101840;animation:pd-rise .9s cubic-bezier(.2,.9,.3,1.1) both}
.pd-bar{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#f1f3f5;border-bottom:1px solid #e3e6ea}
.pd-dots{display:flex;gap:5px}.pd-dots i{width:9px;height:9px;border-radius:50%;background:#ff5f57}.pd-dots i:nth-child(2){background:#febc2e}.pd-dots i:nth-child(3){background:#28c840}
.pd-url{flex:1;min-width:0;padding:5px 12px;border-radius:999px;background:#fff;font-size:11px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-ext{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;color:#4b5260;transition:background-color .3s ease,color .3s ease}
.pd-browser:has(.is-open) .pd-ext{background:var(--pd-accent);color:#1a100a}
.pd-ext svg,.pd-panel-mark svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pd-body{display:flex;min-height:430px}
.pd-page{flex:1;min-width:0;padding:12px 14px 14px}
.pd-allegro{display:flex;align-items:center;gap:10px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #eceef1}
.pd-allegro img{width:58px;height:auto}
.pd-allegro span{flex:1;min-width:0;padding:5px 10px;border:1px solid #e3e6ea;border-radius:6px;font-size:11px;color:#9aa1ad;white-space:nowrap;overflow:hidden}
.pd-product{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.pd-thumb{display:grid;place-items:center;width:58px;height:58px;flex:none;border-radius:10px;background:#f4f5f7}
.pd-thumb svg{width:40px;height:40px;fill:none;stroke:#4b5260;stroke-width:3;stroke-linejoin:round}
.pd-product b{display:block;font-size:14px;line-height:1.3}.pd-product small{display:block;font-size:11px;color:#6b7280}
.pd-list-title{display:block;margin-bottom:8px;font-size:11px;font-weight:700;color:#4b5260;text-transform:uppercase;letter-spacing:.04em}
.pd-offers{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pd-offer{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin:0;padding:10px 12px;border:1px solid #eceef1;border-radius:10px;background:#fff;transition:background-color .4s ease,border-color .4s ease}
.pd-offer.is-mine{border-color:#ffc29e;background:#fff8f3}
.pd-offer.is-own{border-color:#bfe3cf;background:#f3faf6}
.pd-offer.is-changed{animation:pd-flash 1.2s ease}
.pd-seller{min-width:0}
.pd-seller b{font-size:12.5px;word-break:break-word}
.pd-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:#14161b;color:#fff;font-size:9.5px;font-weight:700;vertical-align:1px}
.is-own .pd-tag{background:#1a5e3a}
.pd-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;min-height:18px}
.pd-badges span{padding:2px 6px;border-radius:3px;font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap;animation:pd-in .35s ease both}
.pd-top{background:#ff5a00;color:#fff}.pd-super{background:#2f761b;color:#fff}.pd-promo{border:1px solid #d0d4da;color:#6b7280}
.pd-price{display:flex;flex-direction:column;align-items:flex-end;flex:none}
.pd-price strong{font-size:15px;white-space:nowrap}.pd-price s{font-size:10.5px;color:#9aa1ad}
/* Extension panel: width animates open; the inner block keeps its width so text never reflows. */
.pd-panel{flex:none;width:0;overflow:hidden;background:#fbfbfc;border-left:1px solid transparent;transition:width .5s cubic-bezier(.2,.8,.2,1),border-color .5s ease}
.is-open .pd-panel{width:236px;border-left-color:#e3e6ea}
.pd-panel-in{display:flex;flex-direction:column;gap:10px;width:236px;padding:12px;box-sizing:border-box}
.pd-panel-head{display:flex;align-items:center;gap:9px;padding-bottom:10px;border-bottom:1px solid #eceef1}
.pd-panel-mark{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--pd-accent);color:#1a100a}
.pd-panel-head b{display:block;font-size:13px}.pd-panel-head small{display:block;font-size:10.5px;color:#6b7280}
.pd-checks{display:grid;gap:2px}
.pd-check{display:grid;grid-template-columns:20px 1fr;gap:8px;align-items:center;padding:6px 0;animation:pd-in .3s ease both}
.pd-check+.pd-check{border-top:1px solid #f0f1f4}
.pd-check b{display:block;font-size:11.5px;line-height:1.3}.pd-check small{display:block;font-size:10.5px;color:#6b7280;line-height:1.3}
.pd-check-state{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:800;line-height:1}
.pd-check-state i{display:block;width:14px;height:14px;border-radius:50%;border:2px solid #ffd2b3;border-top-color:var(--pd-accent);animation:pd-spin .8s linear infinite;box-sizing:border-box}
.pd-check.is-done .pd-check-state{animation:pd-pop .3s ease both}
.is-ok .pd-check-state{background:#2f9e5b;color:#fff}.is-bad .pd-check-state{background:#d63b2f;color:#fff}
.is-warn .pd-check-state{background:#f2a516;color:#1a100a}.is-info .pd-check-state{background:#e6e9ee;color:#4b5260}
.pd-verdict{padding:9px 10px;border-radius:10px;font-size:11.5px;font-weight:650;line-height:1.4;animation:pd-in .35s ease both}
.pd-verdict.is-bad{background:#fdecea;color:#7a2318}.pd-verdict.is-good{background:#e9f7ef;color:#1a5e3a}.pd-verdict.is-warn{background:#fff4e0;color:#7a4100}
.pd-reco{display:flex;flex-direction:column;gap:2px;padding:10px;border:1px dashed var(--pd-accent);border-radius:10px;background:#fff;animation:pd-in .35s ease both}
.pd-reco b{font-size:14px}.pd-reco small{font-size:10.5px;color:#6b7280}
.pd-reco .pd-reco-label{font-weight:700;color:#863100;text-transform:uppercase;letter-spacing:.04em;font-size:9.5px}
.pd-apply{align-self:flex-start;margin-top:6px;padding:5px 10px;border-radius:999px;background:var(--pd-accent);color:#1a100a;font-size:11px;font-weight:700;transition:background-color .3s ease,color .3s ease}
.pd-reco.is-applied{border-style:solid;border-color:#bfe3cf}
.pd-reco.is-applied .pd-apply{background:#e9f7ef;color:#1a5e3a}
.pd-summary{padding-top:9px;border-top:1px solid #eceef1;font-size:11px;color:#4b5260;animation:pd-in .35s ease both}
.pd-summary b{color:#14161b}
.pd-verdict[hidden],.pd-reco[hidden],.pd-summary[hidden]{display:none}
.pd-suggest{margin-top:14px}
.pd-suggest>span{display:block;margin-bottom:6px;font-size:11px;color:#5f6573}
.pd-chips{display:flex;flex-wrap:wrap;gap:6px}
.pd-chip{min-height:34px;padding:6px 12px;border:1px solid #d9dde3;border-radius:999px;background:#fff;color:#14161b;font:inherit;font-size:12px;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
.pd-chip:hover{border-color:var(--pd-accent)}
.pd-chip[aria-pressed=true]{background:#fff1e8;border-color:var(--pd-accent);color:#863100;font-weight:600}
.pd-chip:focus-visible{outline:3px solid var(--pd-accent);outline-offset:2px}
/* Narrow column: the panel opens below the product instead of beside it. */
@container (max-width:500px){
  .pd-body{flex-direction:column;min-height:0}
  .pd-panel{width:auto;max-height:0;border-left:0;border-top:1px solid transparent;transition:max-height .6s ease,border-color .5s ease}
  .is-open .pd-panel{width:auto;max-height:560px;border-top-color:#e3e6ea}
  .pd-panel-in{width:auto}
  .pd-page{padding:10px 12px 12px}
}
@keyframes pd-rise{from{opacity:0;transform:translateY(30px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pd-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes pd-spin{to{transform:rotate(360deg)}}
@keyframes pd-pop{from{transform:scale(.3)}to{transform:none}}
@keyframes pd-flash{0%,100%{box-shadow:0 0 0 0 transparent}30%{box-shadow:0 0 0 4px #ff5a0040}}
@media(prefers-reduced-motion:reduce){.plugin-demo *{animation:none!important;transition:none!important}}
