/* OmaKirppis v27: responsive public storefront only, on top of approved v26 branding. */
:root {
 --oma-brand-teal:#07556b;
 --oma-brand-coral:#f26b53;
 --oma-brand-ink:#173d49;
 --oma-brand-paper:#faf9f6;
}
.oma-brand-lockup {display:inline-flex;align-items:center;justify-content:flex-start;max-width:100%;vertical-align:middle;text-decoration:none!important;color:var(--oma-brand-teal)!important}
.oma-brand-lockup img {display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.oma-brand-lockup--nav {width:clamp(142px,18vw,220px);min-width:0;max-width:100%}
.oma-brand-lockup--hero {display:flex;justify-content:center;width:min(420px,100%);margin:0 auto}
.oma-brand-tagline {display:block;margin:.42rem 0 0;color:var(--oma-brand-ink);font-size:clamp(.78rem,2.5vw,1.02rem);font-weight:600;letter-spacing:.01em;line-height:1.35;text-align:center}
.oma-brand-hero-wrap {display:flex;align-items:center;flex-direction:column;gap:0;max-width:100%;margin-inline:auto}
.oma-brand-hero-wrap--header {align-items:flex-start;margin:0;gap:4px;width:max-content;max-width:100%}
.oma-brand-hero-wrap--header .oma-brand-tagline {display:block!important;margin:0;font-size:clamp(12px,1.2vw,15px);font-weight:600;line-height:1.35;letter-spacing:0;text-align:left;white-space:normal}
.oma-brand-lockup--nav+.oma-brand-tagline {display:none}
.oma-brand-visually-hidden {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.oma-brand-install {padding:.8rem 0 1.3rem}
.oma-brand-footer-tagline {margin:.7rem auto .2rem;font-size:.77rem;opacity:.85}
/* The public catalog gets a discrete scope class. Admin and product-detail layouts stay untouched. */
body.oma-public-catalog .hero h1 {margin:8px 0 7px!important;line-height:1.12}
body.oma-public-catalog .hero > div:first-child {min-width:0}
body.oma-public-catalog .hero .oma-brand-lockup--nav {width:clamp(230px,29vw,360px);max-width:100%}
body.oma-public-catalog .public-lang button.active {background:var(--oma-brand-teal);border-color:var(--oma-brand-teal)}
body.oma-public-catalog .chips .chip.active {background:var(--oma-brand-teal);border-color:var(--oma-brand-teal);color:#fff}
body.oma-public-catalog .hero .favorites-link,body.oma-public-catalog .hero .my-reservation-link {color:var(--oma-brand-teal);border-color:#d7e3e5;background:#eef5f4}
body.oma-public-catalog .selection {background:var(--oma-brand-teal)}
body.oma-public-catalog .pick {min-height:44px;color:var(--oma-brand-teal);background:#edf5f3;border:1px solid #d7e3e5;border-radius:10px}
body.oma-public-catalog .pick:focus-visible,body.oma-public-catalog .card a:focus-visible {outline:3px solid var(--oma-brand-coral);outline-offset:2px}
body.oma-public-catalog .grid > .card {min-width:0;width:100%;box-shadow:0 2px 12px rgba(7,85,107,.055)}
body.oma-public-catalog .grid .card-body h3 {line-height:1.35;overflow-wrap:anywhere}
body.oma-public-catalog .grid .card-body .price {font-size:clamp(20px,1.9vw,23px)}
@media (max-width:650px){
 body.oma-public-catalog .hero {display:flex;flex-direction:column;align-items:stretch!important;gap:10px!important;padding:18px 14px 15px!important}
 body.oma-public-catalog .hero>div:first-child {width:100%}
 body.oma-public-catalog .hero h1 {margin:8px 0!important;max-width:100%}
 body.oma-public-catalog .hero .oma-brand-lockup--nav {width:min(81vw,305px)!important}
 body.oma-public-catalog .hero .oma-brand-hero-wrap--header .oma-brand-tagline {font-size:clamp(12px,3.4vw,14px);max-width:calc(100vw - 28px)}
 body.oma-public-catalog .hero .eyebrow {font-size:11px;letter-spacing:.095em}
 body.oma-public-catalog .hero p {margin:6px 0 0;line-height:1.4;font-size:13px}
 body.oma-public-catalog .hero-actions {display:flex;width:100%;flex-wrap:wrap;justify-content:flex-start!important;gap:8px}
 body.oma-public-catalog .hero-actions>a {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 12px}
 body.oma-public-catalog .toolbar {margin:12px auto 8px;padding:0 14px}
 body.oma-public-catalog .toolbar input {min-height:46px;padding:12px 14px}
 body.oma-public-catalog .chips {gap:7px;padding:10px 0;scrollbar-width:thin}
 body.oma-public-catalog .chip {min-height:38px;padding:8px 11px}
 body.oma-public-catalog .catalog-options {column-gap:8px;row-gap:6px}
 body.oma-public-catalog .grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0 14px 34px!important}
 body.oma-public-catalog .grid>.card {border-radius:14px}
 body.oma-public-catalog .grid>.card .card-body {padding:11px}
 body.oma-public-catalog .grid>.card h3 {font-size:15px;line-height:1.35;margin:8px 0}
 body.oma-public-catalog .grid>.card .price {font-size:20px;margin:8px 0 10px}
 body.oma-public-catalog .grid>.card .pick {font-size:14px;min-height:44px;padding:10px 8px}
 /* When filters leave one visible item, it expands to a comfortable product-card size. */
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] {grid-column:1/-1;width:min(100%,390px)!important;justify-self:center}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] .photo {aspect-ratio:4/3;background:#f3f3f0}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] .photo img {object-fit:contain}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] .card-body {padding:14px}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] h3 {font-size:18px;margin:8px 0}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] .price {font-size:24px}
 body.oma-public-catalog .grid>.card[data-oma-single-card="1"] .pick {font-size:15px;min-height:46px}
}
@media(max-width:360px){
 body.oma-public-catalog .grid {gap:9px!important;padding-inline:10px!important}
 body.oma-public-catalog .grid>.card .card-body {padding:9px}
 body.oma-public-catalog .grid>.card .pick {font-size:13px}
}
@media(prefers-reduced-motion:no-preference){.oma-brand-lockup img{transition:opacity .12s ease}}

/* OmaKirppis v28 correction: actual visible items drive layout, regardless of
 * inflated viewport widths from Android Chrome desktop-view/text scaling. */
body.oma-public-catalog .hero .oma-brand-lockup--nav {
  width: min(90vw, 410px) !important;
  max-width: 100% !important;
}
body.oma-public-catalog .hero .oma-brand-hero-wrap--header .oma-brand-tagline {
  display: block !important;
  margin: 5px 0 0 !important;
  color: var(--oma-brand-ink) !important;
  font-size: clamp(16px, 1.9vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: normal !important;
}
/* The singleton layout uses a class kept in sync by JS; :only-child is a CSS
 * fallback before JS executes and for a genuine catalog of one article. */
body.oma-public-catalog #grid.oma-single-visible,
body.oma-public-catalog #grid:has(> article.card:only-child) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: calc(100% - 28px) !important;
  max-width: 710px !important;
  padding: 0 0 34px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]),
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) {
  width: 100% !important;
  max-width: none !important;
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) .photo,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) .photo {
  aspect-ratio: 4 / 3 !important;
  background: #f3f3f0;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) .photo img,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) .photo img {
  object-fit: contain !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) .card-body,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) .card-body {
  padding: 16px !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) h3,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) h3 {
  font-size: clamp(19px, 2.2vw, 23px) !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) .price,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) .price {
  font-size: clamp(24px, 3vw, 28px) !important;
}
body.oma-public-catalog #grid.oma-single-visible > article.card:not([hidden]) .pick,
body.oma-public-catalog #grid > article.card:only-child:not([hidden]) .pick {
  min-height: 50px !important;
  font-size: 16px !important;
}
/* 650px is insufficient on some Android configurations that report a wide
 * layout viewport: retain two readable cards up to a 980 CSS-pixel viewport. */
@media (max-width: 980px) {
  body.oma-public-catalog #grid:not(.oma-single-visible):not(:has(> article.card:only-child)) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 14px 34px !important;
  }
  body.oma-public-catalog .hero {
    padding: 20px 14px !important;
    column-gap: 12px;
  }
  body.oma-public-catalog .hero .oma-brand-lockup--nav {
    width: min(84vw, 400px) !important;
  }
  body.oma-public-catalog .hero p {font-size: 15px; line-height: 1.4;}
  body.oma-public-catalog .hero .eyebrow {font-size: 12px;}
  body.oma-public-catalog .grid > article.card .price {font-size: 21px;}
  body.oma-public-catalog .grid > article.card .pick {min-height: 46px;}
}
@media (max-width: 650px) {
  body.oma-public-catalog .hero .oma-brand-lockup--nav {width: min(90vw, 360px) !important;}
  body.oma-public-catalog .hero .oma-brand-hero-wrap--header .oma-brand-tagline {font-size:16px!important;}
  body.oma-public-catalog #grid.oma-single-visible,
  body.oma-public-catalog #grid:has(> article.card:only-child) {max-width:100%!important;}
}


/* Mobile-first private seller product card (no styles on public listings) */
main.formpage.oma-structured-product{max-width:900px;padding-bottom:115px;--oma-ink:#163b3c;--oma-accent:#07556b;--oma-paper:#fff;--oma-divider:#dce5e3}
.oma-structured-product .oma-card-overview{padding:20px;border:1px solid var(--oma-divider);border-radius:19px;background:var(--oma-paper);margin:14px 0}
.oma-card-overview>a[href="/admin"]{display:inline-flex;margin-bottom:14px;font-weight:700;text-decoration:none}
.oma-card-badge-row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.oma-card-badge-row .meta{margin:0}
.oma-card-state{background:#e5f1ef;color:#105649;font-size:12px;padding:5px 12px;border-radius:999px;font-weight:800}
.oma-card-overview h1{font-size:clamp(21px,4vw,29px);line-height:1.25;margin:12px 0}
.oma-card-hero-price{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:5px 0 9px}
.oma-card-price-title{color:#697676;font-weight:600}
.oma-card-hero-price .bigprice{font-size:clamp(27px,5vw,34px);font-weight:900}
.oma-status-line{color:#637371;font-size:14px;margin:8px 0}
.oma-card-shortcuts{display:flex;overflow-x:auto;gap:9px;margin-top:15px;padding-bottom:3px}
.oma-card-shortcuts a{white-space:nowrap;border:1px solid #d9e5e1;border-radius:999px;padding:9px 14px;text-decoration:none;color:#07556b;font-size:13px;font-weight:750;background:#f4faf8}
.oma-card-overview .oma-desc-preview{border-top:1px solid #e1e7e4;margin-top:15px;padding-top:12px}
.oma-desc-preview summary{cursor:pointer;color:#546765}
.oma-card-zone,.oma-structured-product .oma-content-zone{scroll-margin-top:85px;background:var(--oma-paper)}
.oma-card-zone h2,.oma-content-zone h2{margin:0 0 11px;font-size:20px}
.oma-card-zone>.muted{font-size:13px;margin:0 0 16px;line-height:1.5}
.oma-pricing label,.oma-technical label,.oma-language-pane label{display:grid;gap:6px;font-weight:700}
.oma-pricing input,.oma-pricing select,.oma-pricing textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cfd8d5;border-radius:11px;background:#fff;font-size:16px}
.oma-pricing .oma-main-price{max-width:280px}
.oma-pricing .oma-main-price label{font-size:16px;color:#174a49}
.oma-pricing .oma-main-price input{font-weight:800;font-size:22px}
.oma-offer-prices,.oma-tech-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.oma-fold{border:1px solid #dce4e1;border-radius:13px;margin:12px 0;background:#fbfdfa}
.oma-fold>summary{cursor:pointer;padding:15px;font-weight:800;color:#24483f;line-height:1.4;list-style-position:inside}
.oma-fold[open]>summary{border-bottom:1px solid #e0e7e3}
.oma-fold> :not(summary){margin-left:13px;margin-right:13px}
.oma-offer-fold .offer-settings{margin-bottom:14px}
.oma-price-help{font-size:12px;padding-bottom:8px}
.oma-market-inline,.oma-assistant-inline{margin:8px 0!important;padding:11px!important;border:0!important;background:transparent!important}
.oma-market-inline>details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:800}
.oma-market-inline form,.oma-assistant-inline form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.oma-market-inline .wide,.oma-assistant-inline .wide{grid-column:1/-1}
.oma-market-inline textarea,.oma-assistant-inline textarea{width:100%;max-width:100%;box-sizing:border-box}
.oma-assistant-old{background:#f6fafb}
.oma-assistant-inline #assistantPriceForm{display:block}
.oma-photo-zone .oma-photos-strip{display:flex;align-items:stretch;gap:12px;overflow-x:auto;max-width:100%;margin:12px 0;padding:2px 2px 12px;scroll-snap-type:x proximity}
.oma-photo-zone .oma-photos-strip .admin-photo{position:relative;flex:0 0 clamp(155px,45%,205px);scroll-snap-align:start}
.oma-photo-zone .oma-photos-strip .admin-photo img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.oma-photo-zone .oma-inner-box{border:0;background:none;padding:3px;margin:0 0 14px}
.oma-photo-zone .oma-inner-box h2{font-size:16px}
.oma-content-zone .oma-organized-form,.oma-content-zone .formgrid{display:flex;flex-direction:column;gap:15px}
.oma-form-pane{display:grid;gap:14px}
.oma-form-pane h2{margin-bottom:0}
.oma-form-pane .oma-source-row{display:grid;gap:6px;border-bottom:1px solid #e5ece8;padding-bottom:10px}
.oma-source-help{font-size:12px;margin:0}
.oma-form-pane .translate-actions{margin:0}
.oma-language-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#edf3f2;padding:5px;border-radius:12px}
.oma-language-tabs .oma-language-tab{background:transparent;color:#41605c;border:0;border-radius:9px;min-height:45px;padding:8px;font-weight:850;cursor:pointer}
.oma-language-tabs .oma-language-tab[aria-selected="true"]{background:#fff;color:#07556b;box-shadow:0 1px 5px #0f4c4a22}
.oma-language-pane{display:grid;gap:13px}
.oma-language-pane[hidden]{display:none!important}
.oma-language-pane textarea{min-height:155px}
.oma-technical .oma-tech-grid{padding:0 0 8px}
.oma-check-fold .oma-listing-review{margin:0 0 13px}
.oma-content-zone .publish-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:13px 0;background:#fff}
.oma-content-zone .publish-actions button{min-height:48px;border-radius:12px;font-weight:800}
.oma-block-fold{background:#fff}
.oma-block-fold>summary{font-size:17px;color:#244c4c}
.oma-block-fold>.publish-center-title{margin:12px}
.oma-block-fold .publish-channel{margin:12px 0}
.oma-channel-detail>summary{cursor:pointer;list-style-position:inside}
.oma-channel-detail>summary .publish-channel-head{display:inline-flex;width:calc(100% - 28px);vertical-align:middle}
.oma-channel-detail:not([open]){padding:10px}
.oma-channel-detail> :not(summary){margin-top:12px}
.oma-danger-zone{border-color:#ead9d9}
.oma-danger-zone .oma-block-fold>summary{color:#8e4242}
.oma-structured-product .oma-content-zone,.oma-structured-product>.box{margin:14px 0}
.oma-structured-product .oma-card-zone{margin:14px 0}
@media(max-width:700px){
 main.formpage.oma-structured-product{padding:0 12px 145px}
 .oma-structured-product .oma-card-overview{padding:14px;margin:10px 0}
 .oma-structured-product>.box{padding:14px}
 .oma-offer-prices,.oma-tech-grid{grid-template-columns:1fr}
 .oma-market-inline form,.oma-assistant-inline form{grid-template-columns:1fr}
 .oma-structured-product .oma-content-zone .publish-actions{
  position:fixed;bottom:0;left:0;right:0;z-index:100;padding:10px 12px calc(11px + env(safe-area-inset-bottom));
  box-shadow:0 -6px 25px rgba(10,45,42,.15);border-top:1px solid #dfe8e5;
  background:#fff;justify-content:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))
 }
 .oma-structured-product .oma-content-zone .publish-actions button{min-width:0;width:100%;font-size:clamp(11px,3.3vw,14px);line-height:1.25;white-space:normal;padding:12px 5px}
 .oma-structured-product .oma-content-zone .publish-actions button:only-of-type{grid-column:1/-1}
 .oma-structured-product .oma-content-zone .publish-actions #editStatus{grid-column:1/-1;font-size:12px;line-height:1.35}
 .oma-structured-product .oma-content-zone .publish-actions #editStatus:empty{display:none}
 .oma-structured-product .oma-content-zone .publish-actions .view-public-link{grid-column:1/-1;text-align:center;font-size:12px;min-height:28px;padding:4px}
 .oma-card-overview .oma-card-shortcuts a{padding:9px 12px}
 .oma-photo-zone .oma-photos-strip .admin-photo{flex-basis:155px}
}


/* Buyer product detail: decision first, long description below */
.oma-product-detail .oma-detail-delivery{margin:10px 0;color:#3a5b51;font-weight:750}
.oma-product-detail .oma-detail-main-actions{display:grid;gap:10px;margin:12px 0 18px;padding:14px;border:1px solid #dce8e3;border-radius:15px;background:#f7faf8}
.oma-product-detail .oma-detail-main-actions .pick{width:100%;min-height:50px;font-weight:850;border-radius:12px}
.oma-product-detail .oma-detail-main-actions .price-offer-box{margin-top:4px;background:#fff}
.oma-product-detail .oma-detail-information{border-top:1px solid #dce6e0;padding-top:14px;margin-top:18px}
.oma-product-detail .oma-detail-information h2{font-size:19px;margin:4px 0 12px;color:#254b42}
.oma-product-detail .oma-detail-information .product-description{white-space:pre-line;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:650px){.oma-product-detail .oma-detail-main-actions{padding:12px;margin:10px 0 15px}}
