/* Presentation chrome belongs to the website; the native image keeps its proportions. */
.kroz-page .product-window {
  --window-line: #d5e2de;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--window-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 5px #163e3610, 0 18px 48px #163e3618;
}
.kroz-page .product-window-bar,
.product-viewer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-left: 16px;
  background: linear-gradient(180deg, #fff, #edf4f2);
  border-bottom: 1px solid #d5e2de;
}
.product-window-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 2px;
  flex: 0 0 auto;
  transform: rotate(-8deg);
}
.product-window-mark i { border-radius: 1px; background: #147a6c; }
.product-window-heading { flex: 1; min-width: 0; }
.product-window-heading .kroz-screen-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #243f39;
}
.product-window-controls { display: flex; align-self: stretch; gap: 3px; padding: 5px; }
.product-window-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #3a514b;
  background: transparent;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
.product-window-controls button:hover { background: #dcece7; border-color: #c5dcd3; }
.product-window-controls button[data-present-close]:hover { color: #fff; background: #b74140; border-color: #b74140; }
.product-window-controls svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.product-window-controls button:focus-visible,
.product-window-restore:focus-visible,
.product-viewer button:focus-visible { outline: 3px solid #147a6c; outline-offset: 2px; }
.kroz-page .product-window .kroz-figure { margin: 0; }
.kroz-page .product-window .kroz-shot { overflow: hidden; background: #cef0ea; }
.kroz-page .product-window .kroz-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.kroz-page .product-window figcaption {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid #e5eeeb;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.product-window-kind { color: #147a6c; font-size: 11px; font-weight: 650; letter-spacing: .015em; }
.product-window-footer { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; background: #f5f8f7; border-top: 1px solid #e5eeeb; font-size: 11px; color: #62736d; }
.product-window-footer button { border: 0; padding: 0; font: inherit; font-weight: 600; color: #147a6c; cursor: pointer; background: transparent; }
.product-window.is-minimized .kroz-figure,
.product-window.is-minimized .product-window-footer { display: none; }
.product-window-restore { display: block; width: 100%; border: 1px dashed #b6cec5; border-radius: 10px; padding: 24px; background: #f5f8f7; color: #147a6c; font: inherit; cursor: pointer; }
.kroz-showcase[data-presenter] .kroz-preview { min-width: 0; }
.product-viewer {
  width: min(1600px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  margin: auto;
  border: 1px solid #b9d0c7;
  border-radius: 12px;
  background: #f5f8f7;
  color: #243f39;
  box-shadow: 0 25px 100px #112b3955;
  overflow: hidden;
}
.product-viewer[open] { display: flex; flex-direction: column; }
.product-viewer::backdrop { background: #122a37aa; backdrop-filter: blur(5px); }
.product-viewer-bar { flex: 0 0 auto; position: relative; z-index: 1; }
.product-viewer-title { flex: 1; min-width: 0; padding-block: 8px; font-size: 13px; font-weight: 650; }
.product-viewer-scroll { overflow: auto; min-height: 0; flex: 1 1 auto; background: #eaf2ef; }
.product-viewer .product-viewer-image {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  border: 0;
  border-radius: 0;
}
.product-viewer.is-actual-size .product-viewer-image { width: auto; max-width: none; max-height: none; }
.product-viewer-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #d5e2de; padding: 10px 16px; background: #fff; font-size: 12px; }
.product-viewer-size { padding: 7px 12px; border: 1px solid #d5e2de; border-radius: 6px; color: #147a6c; background: #f5f8f7; font: inherit; font-weight: 600; cursor: pointer; }
body.product-viewer-open { overflow: hidden; }
@media (max-width: 640px) {
  .kroz-showcase[data-presenter] .kroz-preview { grid-row: 1; }
  .kroz-showcase[data-presenter] .kroz-jobs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
  }
  .kroz-showcase[data-presenter] .kroz-job { flex: 0 0 86%; scroll-snap-align: start; }
  .product-window-controls button { width: 32px; min-height: 38px; }
  .kroz-page .product-window-bar { gap: 8px; padding-left: 12px; }
  .product-window-heading .kroz-screen-title { font-size: 12px; }
  .product-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .product-viewer-title { font-size: 12px; }
  .product-window-footer { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { .product-window-controls button { transition: none; } }
