/* Scoped additive media styling, preserves original native layout/actions. */
#panel-shop .ifsp-art{position:relative;isolation:isolate;min-height:180px;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#435353 0%,#1c282d 45%,#10191f 100%)}
#panel-shop .ifsp-image{display:block;width:100%;height:auto;aspect-ratio:1040/640;object-fit:contain;position:relative;z-index:1;opacity:0;transition:opacity .18s ease,transform .2s ease;pointer-events:none}
#panel-shop .ifsp-ready .ifsp-image{opacity:1}
#panel-shop .ifsp-ready>.tank-icon,#panel-shop .ifsp-ready>.wot-shop-tile-ico,#panel-shop .ifsp-ready>.wot-camo-swatch{display:none}
#panel-shop .ifsp-art .wot-shop-badge,#panel-shop .ifsp-art .nation-flag-chip{z-index:3}
#panel-shop .ifsp-open{position:absolute;z-index:4;bottom:10px;right:10px;padding:7px 10px;background:#101a21ed;border:1px solid #829a9b66;border-radius:5px;color:#e6ede9;font:600 11px/1.2 system-ui;text-decoration:none}
#panel-shop .ifsp-open[hidden],#panel-shop .ifsp-caption[hidden]{display:none}
#panel-shop .ifsp-caption{display:block;padding:8px 14px;color:#a3b3b5;font:10px/1.4 system-ui;border-top:1px solid #ffffff0c}
#panel-shop .ifsp-open:focus-visible,.ifsp-dialog button:focus-visible{outline:3px solid #e4be73;outline-offset:3px}
.ifsp-dialog{width:min(1000px,92vw);max-height:90vh;overflow:auto;background:#101b23;color:#e7eee9;border:1px solid #78908e;border-radius:12px;padding:22px;font-family:system-ui;box-sizing:border-box}
.ifsp-dialog::backdrop{background:#02080de8;backdrop-filter:blur(5px)}
.ifsp-dialog form{float:right}.ifsp-dialog img{width:100%;height:auto;background:radial-gradient(ellipse,#3b4c4b,#101b23 70%)}
.ifsp-dialog p{color:#acbabb}.ifsp-dialog button{background:#c9a86a;color:#121a20;border:0;padding:10px 15px;border-radius:4px;cursor:pointer}.ifsp-dialog [hidden]{display:none}
@media(prefers-reduced-motion:reduce){#panel-shop .ifsp-image{transition:none}}
#panel-shop .ifsp-open{position:relative;bottom:auto;right:auto;align-self:flex-end;margin:8px 12px;display:inline-block}
.ars-art .ifsp-image{display:block;width:100%;height:auto;object-fit:contain}
.ars-art .ifsp-ready>.tank-icon,.ars-art .ifsp-ready>.wot-shop-tile-ico,.ars-art .ifsp-ready>.wot-camo-swatch{display:none}
#panel-shop .wot-shop-tile-art.ifsp-art{aspect-ratio:1040/640;min-height:180px}
#panel-shop .ifsp-art>.ifsp-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#panel-shop .ifsp-art .wot-shop-flag-chip{z-index:3}

/* V1.1: bounded card thumbnails; the separate image dialog remains larger. */
#panel-shop .wot-shop-card .wot-shop-tile-art.ifsp-art,
#panel-shop.if-arsenal .wot-shop-card .wot-shop-tile-art.ifsp-art{
  box-sizing:border-box;aspect-ratio:auto;height:160px;min-height:160px;max-height:160px;flex:0 0 160px;
}
#panel-shop .wot-shop-card .ifsp-art>.ifsp-image{
  box-sizing:border-box;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;padding:12px 22px;object-fit:contain;aspect-ratio:auto;
}
/* Arsenal fallback image must also ignore its 1040 × 640 HTML dimensions. */
.ars-art .ifsp-art{height:280px;min-height:0;max-height:280px;aspect-ratio:auto;overflow:hidden;}
.ars-art .ifsp-art>.ifsp-image{box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;padding:14px;object-fit:contain;aspect-ratio:auto;}
.ifsp-dialog{width:min(860px,92vw);}
.ifsp-dialog>img{display:block;box-sizing:border-box;width:100%;height:auto;max-height:55vh;max-height:55dvh;object-fit:contain;}
@media(max-width:600px){
  #panel-shop .wot-shop-card .wot-shop-tile-art.ifsp-art,
  #panel-shop.if-arsenal .wot-shop-card .wot-shop-tile-art.ifsp-art{
    height:136px;min-height:136px;max-height:136px;flex-basis:136px;
  }
  #panel-shop .wot-shop-card .ifsp-art>.ifsp-image{padding:10px 16px;}
  .ars-art .ifsp-art{height:210px;max-height:210px;}
}

/* V1.2: daily-offer fallback symbol hides only after its image has loaded. */
#panel-shop .wot-shop-daily-offer.ifsp-has-image>.wot-shop-daily-mark{display:none;}
