/* uzytak.com/<lang>/image-optimizer-plugin/: compression demo. On top of photopack.css + materials-plugin/plugin.css. Prefix io-. */
.io-flag, .cc-flag, .bk-flag { display: inline-block; margin: 18px 0 0; padding: 5px 12px; border-radius: 999px; background: #fff4d6; color: #7a4b00; font-size: 14px; font-weight: 700; }
.io-demo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; margin-top: 16px; align-items: start; }
.io-demo > * { min-width: 0; }
.io-compare { position: relative; line-height: 0; border-radius: 14px; overflow: hidden; background: #0b1533; box-shadow: 0 30px 60px -30px rgba(11, 21, 51, .55); }
.io-compare img { display: block; width: 100%; height: auto; }
.io-compare .io-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.io-compare .io-after-wrap img { height: 100%; object-fit: cover; }
.io-compare .io-after-wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pos) - 1px); width: 3px; background: #fff; z-index: 1; }
.io-compare .lbl { position: absolute; top: 12px; background: rgba(11, 21, 51, .75); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; padding: 4px 10px; border-radius: 6px; }
.io-compare .lbl.l { left: 12px; }
.io-compare .lbl.r { right: 12px; }
.io-compare input[type=range] { position: absolute; left: 16px; right: 16px; bottom: 14px; width: calc(100% - 32px); margin: 0; accent-color: #18b8b5; }
.io-panel { padding: 18px 20px; border: 1px solid var(--pp-line); border-radius: 12px; background: #fff; color: var(--pp-ink); }
.io-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 650; font-size: 15px; }
.io-field select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; color: var(--pp-ink); }
.io-field input[type=range] { width: 100%; accent-color: var(--pp-blue); }
.io-qrow { display: flex; justify-content: space-between; align-items: baseline; }
.io-qv { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; color: var(--pp-blue); }
.io-result { display: flex; flex-direction: column; gap: 4px; min-height: 5.2em; padding: 12px 14px; border-radius: 10px; background: #f3f6fb; font-size: 15px; }
.io-result .is-good { color: #1b7f3b; font-size: 20px; }
.io-result .is-none { color: #7a4b00; }
.io-can, .io-safari { margin: 12px 0 0; font-size: 13px; color: var(--pp-muted); }
@media (max-width: 860px) { .io-demo { grid-template-columns: minmax(0, 1fr); } }
