.product-preview { min-width: 0; }
.preview-navigation[hidden], .preview-panel[hidden] { display: none; }
.preview-hint { margin: 0 0 16px; color: #626a60; font-size: 16px; }
.preview-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.preview-tabs button { appearance: none; padding: 10px 18px; min-height: 44px; border: 1px solid #233c3040; border-radius: 24px; background: transparent; color: #233c30; font: inherit; font-size: 16px; cursor: pointer; }
.preview-tabs button:hover { background: #233c300b; }
.preview-tabs button[aria-selected="true"] { background: #233c30; border-color: #233c30; color: #faf7ed; }
.preview-panel { margin: 0; }
.preview-panel img { object-fit: contain; }
.preview-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.preview-caption a { text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; }
#voimalused .product-preview { margin-bottom: 56px; }
#voimalused .product-preview .app-preview { margin-bottom: 0; }
#haldusfirmale .product-preview { margin-top: 56px; }
#haldusfirmale .product-preview .app-preview { margin-top: 0; }
.product-preview[data-preview="mobile"] .preview-tabs { justify-content: center; }
.product-preview[data-preview="mobile"] .preview-hint { text-align: center; }
.product-preview[data-preview="mobile"] .preview-caption { justify-content: center; }
.preview-dialog { padding: 0; border: 1px solid #233c3033; border-radius: 16px; color: #233c30; background: #f5f2e9; width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); }
.preview-dialog::backdrop { background: #14241dcc; }
body:has(.preview-dialog[open]) { overflow: hidden; }
.preview-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; }
.preview-dialog-header p { margin: 0; font-size: 16px; }
.preview-dialog-header button { flex-shrink: 0; border: 1px solid #233c3040; border-radius: 24px; padding: 10px 18px; min-height: 44px; color: inherit; background: transparent; cursor: pointer; }
.preview-expanded { overflow: auto; max-height: calc(100dvh - 140px); background: white; overscroll-behavior: contain; }
.preview-expanded img { max-width: none; height: auto; margin: auto; }
@media (max-width: 700px) {
  .preview-tabs { gap: 8px; }
  .preview-tabs button { padding: 10px 14px; }
  .preview-dialog-header { gap: 12px; padding: 12px; }
}
