/* Showlo final (Okno, Noc): the Showlo panel (one app window) and the before/after section.
   Page CSS only: inside visuals. The night system, the ground and the accent live in noc.css. */

:root {
  --sh-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- the panel: one Showlo window */
#panel .sh-app { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sh-app .sh-offers { height: 100%; display: flex; flex-direction: column; }
.sh-app .sh-offers > .ui-win__bar { flex: none; }
.sh-app .sh-offers .ui-win__body { grid-template-columns: 148px minmax(0, 1fr); flex: 1 1 0; min-height: 0; }
/* only whole rows show: the list keeps as many offers as the screen's height leaves room for */
.sh-app .sh-offers .ui-win__main { min-height: 0; overflow: hidden; }
@media (max-height: 1019px) { .sh-app .sh-offers .ui-win__row:nth-child(n+10) { display: none; } }
@media (max-height: 959px) { .sh-app .sh-offers .ui-win__row:nth-child(n+9) { display: none; } }
@media (max-height: 899px) { .sh-app .sh-offers .ui-win__row:nth-child(n+8) { display: none; } }
@media (max-height: 839px) { .sh-app .sh-offers .ui-win__row:nth-child(n+7) { display: none; } }
@media (max-height: 779px) { .sh-app .sh-offers .ui-win__row:nth-child(n+6) { display: none; } }
@media (max-height: 719px) { .sh-app .sh-offers .ui-win__row:nth-child(n+5) { display: none; } }
.sh-app .sh-offers .ui-win__side { display: grid; }
.sh-app .sh-offers .ui-win__cols { display: none; }
.sh-app .sh-offers .ui-win__row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: 18px 16px; row-gap: 2px;
  align-content: center; height: 60px; padding: 0 16px 0 14px; column-gap: 12px; }
.sh-app .sh-offers .ui-win__who { grid-column: 2; grid-row: 1; line-height: 18px; }
.sh-app .sh-offers .ui-win__sub { grid-column: 2; grid-row: 2; }
.sh-app .sh-offers .ui-win__row > .sh-chip { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.sh-app .sh-offers .ui-win__row.is-sel { background: var(--u-fill-2); }
.sh-thumb { grid-row: 1 / 3; width: 44px; height: 34px; border-radius: 6px; object-fit: cover; max-width: none; display: block; }
.sh-thumb--none { display: grid; place-items: center; background: var(--u-fill-2); color: var(--u-soft); box-shadow: inset 0 0 0 1px var(--u-line); }
.sh-thumb--none svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-src { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 2px; background: var(--u-fill-3); }

.sh-app > .sh-op::after { display: none; }
.sh-op { display: flex; flex-direction: column; background: var(--u-bg); color: var(--u-ink); font-family: var(--font-text); }
.sh-op__head { display: flex; align-items: center; gap: 10px; height: 44px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--u-line); background: var(--u-fill); font-size: 13px; }
.sh-op__head img { width: 28px; height: 22px; border-radius: 4px; object-fit: cover; max-width: none; }
.sh-op__head b { font-weight: 500; white-space: nowrap; }
.sh-op__head .sh-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-op__head .sh-chip:first-of-type { margin-left: auto; }
.sh-op__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 20px; }
.sh-op__reel { display: grid; align-content: start; gap: 10px; }
.sh-op__reel .sh-reel { --reel-w: 196px; --cap-size: 15px; }
.sh-op__label { margin: 0; font-size: 12px; line-height: 16px; color: var(--u-muted); font-weight: 500; }
.sh-op__flow { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; min-width: 0; }
.sh-op__flow > .panel { --p-h: 0px; height: auto; min-height: 0; border-radius: 12px; }
.sh-op__foot { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--u-line); font-size: 13px; line-height: 16px; }
.sh-op__foot > div { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 14px 16px; }
.sh-op__foot > div + div { border-left: 1px solid var(--u-line); }
.sh-op__foot span { min-width: 0; }
.sh-op__foot small { display: block; color: var(--u-muted); font-size: 12px; }
.sh-op__foot .ic { --ic-s: 18px; }

@media (max-width: 1279px) {
  .sh-op__foot > div:nth-child(3) small { display: none; }
  .sh-app .sh-offers .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .sh-app .sh-offers .ui-win__side { display: none; }
  .sh-op__head .sh-muted { display: none; }
}
@media (max-width: 1023px) {
  #panel .sh-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  #panel .sh-app > .app__pane--list { display: none; }
  #panel .sh-app > .app__pane + .app__pane { border-top: 0; }
}
@media (max-width: 639px) {
  #panel { --hm: 2; }
  .sh-op__head .sh-muted, .sh-op__head .sh-chip:not(:last-child) { display: none; }
  .sh-op__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(360px, 1fr); padding: 16px; gap: 16px; }
  .sh-op__reel { justify-items: center; }
  .sh-op__reel .sh-reel { --reel-w: 196px; }
  .sh-op__reel .sh-reel__chip { font-size: 10px; padding-inline: 6px; }
  .sh-op__foot { grid-template-columns: minmax(0, 1fr); }
  .sh-op__foot > div + div { border-left: 0; border-top: 1px solid var(--u-line); }
  .sh-op__foot > div { padding: 12px 16px; }
}

/* ---------------------------------------------------------------- before and after: the benefit */
.sh-ba { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); margin-top: var(--s-7); }
.sh-ba__col { grid-column: span 6; display: flex; flex-direction: column; min-height: 0; padding: var(--s-7); border-radius: var(--r-lg); position: relative; isolation: isolate; overflow: hidden; }
.sh-ba__col--now { border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, var(--bg)), color-mix(in oklab, var(--surface) 35%, var(--bg))) color-mix(in oklab, var(--surface) 55%, var(--bg)); }
.sh-ba__col--with { background: radial-gradient(70% 60% at 100% 0%, rgb(22 160 170 / .38), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgb(13 116 128 / .3), transparent 72%), var(--bg); }
.sh-ba__col--with::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--sh-grain); background-size: 180px 180px; opacity: .08; mix-blend-mode: screen; }
.sh-ba__tag { display: flex; align-items: center; gap: var(--s-2); margin: 0; font: 500 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sh-ba__col--with .sh-ba__tag { color: var(--ink); }
.sh-ba__tag .mark { width: 16px; height: 16px; background: #6fd3db; }
.sh-ba__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-auto-rows: minmax(0, 1fr); flex: 1 1 auto; }
.sh-ba__list li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line);
  font: var(--display-weight) clamp(18px, 0.75vw + 10px, 22px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.sh-ba__list li:last-child { border-bottom: 1px solid var(--line); }
.sh-ba__col--now li { color: var(--muted); }
.sh-ba__col--now li > span { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in oklab, var(--ink) 55%, transparent); }
.sh-ba__ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.sh-ba__ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-ba__col--now .sh-ba__ic { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sh-ba__col--with .sh-ba__ic { background: #6fd3db; color: #0b1d22; }
.sh-ba__list li { transition: padding-left var(--dur, .2s) var(--ease, ease); }
html:not([data-motion="off"]) .sh-ba__col--with .sh-ba__list li:hover { padding-left: 4px; }
.sh-ba__cta { margin-top: var(--s-6); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.sh-ba__cta .btn { flex: none; }
.sh-ba__cta { --action: var(--p-action); --action-ink: var(--p-action-ink); }
.sh-ba__cta p { margin: 0; color: var(--muted); font-size: 15px; }
/* the two lists keep their rows level: the left one leaves the room the button takes on the right */
@media (min-width: 640px) { .sh-ba__col--now .sh-ba__list { margin-bottom: calc(var(--s-6) + var(--btn-h, 44px)); } }
@media (prefers-reduced-motion: reduce) { .sh-ba__list li { transition: none; } .sh-ba__col--with .sh-ba__list li:hover { padding-left: 0; } }
@media (max-width: 1023px) {
  .sh-ba__col { padding: var(--s-6); }
}
@media (max-width: 639px) {
  #mniej { --hm: 2; }
  .sh-ba__col { grid-column: 1 / -1; padding: var(--s-5); }
  .sh-ba { margin-top: var(--s-5); }
  .sh-ba__list li { padding: var(--s-3) 0; }
  .sh-ba__cta .btn { width: 100%; justify-content: center; }
}
