/* All editorial product presentation; native gallery, variants, links and cart remain intact. */
html body.pkvs-preview .ce-pdp[data-category] {
 --kcb-product-line:#e2e5e9;
}
/* Service information uses the same layout on desktop and phones. */
html body.pkvs-preview :is(.ce-purchase-info,.kcb-purchase-payment,.kcb-layout-benefit){display:flex!important;align-items:center;gap:12px;text-align:left;text-decoration:none;color:#242b35!important}
html body.pkvs-preview :is(.ce-purchase-info,.kcb-purchase-payment,.kcb-layout-benefit)>span:not([aria-hidden]){min-width:0;flex:1}
html body.pkvs-preview :is(.ce-purchase-info,.kcb-purchase-payment,.kcb-layout-benefit) small{display:block;color:#737d88;font-size:11px;line-height:1.5;margin-top:3px}
html body.pkvs-preview .kcb-purchase-payment{padding:16px 0;font-size:12px}
html body.pkvs-preview .kcb-purchase-payment>svg{width:18px;height:18px;flex:none}
html body.pkvs-preview .kcb-layout-benefits{order:5;display:flex;flex-direction:column;gap:0;width:100%}
html body.pkvs-preview .kcb-layout-benefit{padding:16px 0;border-bottom:1px solid #edf0f5;font-size:12px;line-height:1.5}
html body.pkvs-preview .kcb-layout-benefit strong{font-size:12px;font-weight:500}
html body.pkvs-preview :is(.kcb-layout-icon,.pcpt-services>a>svg,.pcpt-payment-footer>span>svg,.lp-buy-links>[data-info="delivery"]>svg:first-child){box-sizing:border-box;width:34px!important;height:34px!important;flex:0 0 34px;border-radius:9px;background-position:center;background-repeat:no-repeat;background-size:22px 22px}
html body.pkvs-preview :is(.pcpt-services>a[href*="dostawa-i-platnosc"]>svg,.pcpt-services>a[href*="reklamacje-i-wymiany"]>svg,.pcpt-payment-footer>span>svg,.lp-buy-links>[data-info="delivery"]>svg:first-child)>*{visibility:hidden}
html body.pkvs-preview :is(.kcb-icon-delivery,.pcpt-services>a[href*="dostawa-i-platnosc"]>svg,.lp-buy-links>[data-info="delivery"]>svg:first-child){background-color:#edf4ff;background-image:url('truck.svg')}
html body.pkvs-preview :is(.kcb-icon-returns,.pcpt-services>a[href*="reklamacje-i-wymiany"]>svg){background-color:#fff6df;background-image:url('rotate-ccw.svg')}
html body.pkvs-preview :is(.kcb-icon-payment,.pcpt-payment-footer>span>svg){background-color:#ecf8f0;background-image:url('shield-check.svg')}
html body.pkvs-preview .pcpt-services>a[href^="#"]>svg{color:#087d7c;background-color:#eaf8f7;padding:6px}
html body.pkvs-preview .pcpt-services>a[href^="mailto:"]>svg{color:#7252b7;background-color:#f4effc;padding:6px}
html body.pkvs-preview .pcpt-payment-footer{display:flex;flex-wrap:wrap;gap:12px!important}
html body.pkvs-preview .pcpt-payment-footer>span{display:flex;align-items:center;gap:8px;padding:0!important;border:0!important}
html body.pkvs-preview .kcb-pdp-options:empty{display:none!important}
html body.pkvs-preview .kcb-pdp-options>#pkhmv-variants{border:0!important;margin:0 0 18px!important;padding:0!important}
html body.pkvs-preview .ce-product-facts>dl:empty{display:none!important}

/* Laptops retain native save controls and confirmed variant links. */
@media(min-width:1100px){
 html body.pkvs-preview #pkvs-content .lp-top{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;grid-template-rows:auto auto auto auto auto!important;gap:0 28px!important;align-items:start}
 html body.pkvs-preview #pkvs-content .lp-top.kcb-has-options{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr) 300px!important}
 html body.pkvs-preview #pkvs-content .lp-title{grid-column:1!important;grid-row:1!important;margin:0 0 22px!important}
 html body.pkvs-preview #pkvs-content .lp-top.kcb-has-options .lp-title{grid-column:1/3!important}
 html body.pkvs-preview #pkvs-content .lp-gallery{grid-column:1!important;grid-row:2!important;position:static!important}
 html body.pkvs-preview #pkvs-content .lp-main-image{height:clamp(300px,24vw,350px)!important;min-height:0!important}
 html body.pkvs-preview #pkvs-content .lp-summary{display:contents!important}
 html body.pkvs-preview #pkvs-content .lp-summary>ul{grid-column:1!important;grid-row:3!important;margin:20px 0 0!important;padding:18px 0 0!important;border-top:1px solid #e2e5e9!important}
 html body.pkvs-preview #pkvs-content .lp-summary>ul:before{content:'Dane techniczne';display:block;font-size:15px;font-weight:650;color:#19212d;margin-bottom:10px}
 html body.pkvs-preview #pkvs-content .lp-summary>ul>li{font-size:14px!important;line-height:1.5!important;margin:0 0 5px!important}
 html body.pkvs-preview #pkvs-content .lp-summary>.lp-text-link{grid-column:1!important;grid-row:4!important;margin:10px 0 0!important}
 html body.pkvs-preview #pkvs-content .lp-summary-actions{grid-column:1!important;grid-row:5!important;margin:10px 0 0!important;padding:0!important}
 html body.pkvs-preview #pkvs-content .lp-summary>.kcb-pdp-options{grid-column:2!important;grid-row:2/6!important;margin:0!important;padding:2px 0 0 24px!important;border-left:1px solid #e2e5e9!important;align-self:stretch}
 html body.pkvs-preview #pkvs-content .lp-buy{grid-column:2!important;grid-row:1/6!important;position:sticky;top:24px}
 html body.pkvs-preview #pkvs-content .lp-top.kcb-has-options .lp-buy{grid-column:3!important}
}
/* Computer templates already keep services/facts underneath the gallery. */
html body.pkvs-preview .kcb-imported-pc-facts{border-top:1px solid #e2e5e9!important;margin-top:20px!important;padding-top:18px!important}
html body.pkvs-preview .pcpt-top>.pkh-paid-services{border-top:1px solid #e2e5e9!important}
@media(min-width:1100px){
 html body.pkvs-preview #pkvs-content .pcpt-top>.pcpt-info{border-left:1px solid #e2e5e9!important;padding-left:24px!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top){grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr) 300px!important;grid-template-rows:auto auto!important;gap:20px 28px!important;align-items:start}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top)>.pkpc-heading{grid-area:1/1/2/3!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top)>.pcpt-media{grid-area:2/1/3/2!important;position:static!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top)>.pcpt-info{grid-area:2/2/3/3!important;align-self:stretch}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top)>.pcpt-buy{grid-area:1/3/3/4!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top):not(:has(.pcpt-info .pkhmv)){grid-template-columns:minmax(0,1fr) 300px!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top):not(:has(.pcpt-info .pkhmv))>.pkpc-heading{grid-column:1!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top):not(:has(.pcpt-info .pkhmv))>.pcpt-info{grid-area:3/1/4/2!important;border:0!important;padding:0!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top):not(:has(.pcpt-info .pkhmv))>.pcpt-buy{grid-area:1/2/4/3!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top) .pcpt-photo{height:350px!important;min-height:0!important}
 html body.pkvs-preview #pkvs-content .pcpt-top:not(.kcb-own-top) .pcpt-photo .pkpdp-main{height:100%!important;min-height:0!important}
}
/* Electronic licences retain their product-specific fulfilment description. */
html body.pkvs-preview .kcb-license-facts{border-top:1px solid #e2e5e9;margin-top:20px;padding-top:18px}
html body.pkvs-preview .kcb-license-facts .pkpdp-small-title{font-size:15px;line-height:1.5;margin:0 0 10px!important}
html body.pkvs-preview .kcb-license-facts .pkpdp-quick{display:block!important;margin:0 0 10px!important;padding:0!important}
html body.pkvs-preview .kcb-license-facts .pkpdp-quick>div{display:block!important;border:0!important;padding:0!important;margin:0 0 5px!important;font-size:14px;line-height:1.5}
html body.pkvs-preview .kcb-license-facts .pkpdp-quick dt{display:inline;font-weight:400;color:#737d88}
html body.pkvs-preview .kcb-license-facts .pkpdp-quick dt:after{content:': '}
html body.pkvs-preview .kcb-license-facts .pkpdp-quick dd{display:inline;margin:0;font-weight:600}
html body.pkvs-preview .kcb-license-facts .pkpdp-text-link{font-size:13px}
html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-commercial{height:auto!important;min-height:0!important;align-self:start}
html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-info h1{font-size:24px!important;line-height:1.3!important;font-weight:650;margin:0 0 12px!important}
html body.pkvs-preview .pkpdp-v2:not(.pcpt) :is(.pkpdp-info,.pkpdp-media){margin-bottom:0!important}
html body.pkvs-preview .pkpdp-v2:not(.pcpt) .kcb-license-facts{margin-bottom:0!important}
@media(min-width:1100px){
 html body.pkvs-preview #pkvs-content#pkvs-content .pcpt-top.kcb-own-top>.pcpt-info{padding-left:24px!important}
 html body.pkvs-preview #pkvs-content .kcb-imported-pc-facts .pcpt-facts>div{padding:0!important;margin:0 0 5px!important;line-height:1.5!important}
 html body.pkvs-preview #pkvs-content .kcb-imported-pc-facts .pcpt-facts :is(dt,dd){font-size:14px!important;line-height:1.5!important}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-top{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;grid-template-rows:auto auto!important;gap:20px 28px!important;align-items:start}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-info{grid-area:1/1/2/2!important;padding:0!important}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-media{grid-area:2/1/3/2!important;position:static!important}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-commercial{grid-area:1/2/3/3!important;border-left:1px solid #e2e5e9!important}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-main{height:350px!important;min-height:0!important;aspect-ratio:auto!important}
 html body.pkvs-preview .pkpdp-v2:not(.pcpt) .pkpdp-main img{height:100%;width:100%;object-fit:contain}
}
@media(max-width:1099px){html body.pkvs-preview :is(.lp-summary,.pcpt-info){border-top:1px solid #e2e5e9;padding-top:18px!important}}
html body.pkvs-preview .ce-pdp[data-category] .ce-purchase-info>svg,
html body.pkvs-preview .ce-pdp[data-category] .kcb-purchase-payment>span[aria-hidden]>svg {
 box-sizing:border-box;width:34px!important;height:34px!important;flex:0 0 34px;
 border-radius:9px;background-position:center;background-repeat:no-repeat;background-size:22px 22px;
}
html body.pkvs-preview .ce-pdp[data-category] .ce-purchase-info>svg>*,
html body.pkvs-preview .ce-pdp[data-category] .kcb-purchase-payment>span[aria-hidden]>svg>* { visibility:hidden; }
html body.pkvs-preview .ce-pdp[data-category] .ce-purchase-info[href*="dostawa-i-platnosc"]>svg {
 background-color:#edf4ff;background-image:url('truck.svg');
}
html body.pkvs-preview .ce-pdp[data-category] .ce-purchase-info[href*="reklamacje-i-wymiany"]>svg {
 background-color:#fff6df;background-image:url('rotate-ccw.svg');
}
html body.pkvs-preview .ce-pdp[data-category] .kcb-purchase-payment>span[aria-hidden]>svg {
 background-color:#ecf8f0;background-image:url('shield-check.svg');
}
html body.pkvs-preview .ce-pdp[data-category] .kcb-purchase-payment>span[aria-hidden] { display:flex;flex:none; }

@media(min-width:1100px) {
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-top {
  display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr) 300px!important;
  grid-template-rows:auto auto auto auto!important;gap:0 28px!important;align-items:start;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-title {
  grid-column:1/3!important;grid-row:1!important;margin:0 0 22px!important;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-gallery {
  grid-column:1!important;grid-row:2!important;position:static!important;align-self:start;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-main-image {
  height:clamp(300px,24vw,350px)!important;min-height:0!important;padding:6px!important;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-main-image img { object-fit:contain!important; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-thumbs { justify-content:center; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts { display:contents!important; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>dl {
  grid-column:1!important;grid-row:3!important;border-top:1px solid var(--kcb-product-line)!important;
  padding:18px 0 0!important;margin:20px 0 0!important;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>dl:not(:empty):before {
  content:'Dane techniczne';display:block;font-size:15px;font-weight:650;color:#19212d;margin-bottom:10px;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>dl>div { margin:0 0 5px!important;line-height:1.5!important; }
 html body.pkvs-preview .ce-pdp#pkce-main#pkce-main#pkce-main[data-category] .ce-product-facts>dl :is(dt,dd) { font-size:14px!important;line-height:1.5!important; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>dl dd { font-weight:600; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>.ce-detail-link {
  grid-column:1!important;grid-row:4!important;margin:10px 0 0!important;align-self:start;font-size:13px!important;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts>.kcb-pdp-options {
  grid-column:2!important;grid-row:2/5!important;margin:0!important;padding:2px 0 0 24px!important;
  border-left:1px solid var(--kcb-product-line)!important;align-self:stretch;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-purchase {
  grid-column:3!important;grid-row:1/5!important;position:sticky;top:24px;
 }
 /* Products without confirmed alternatives use the full left column. */
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-top:not(.kcb-has-options) {
  grid-template-columns:minmax(0,1fr) 300px!important;
 }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-top:not(.kcb-has-options) .ce-product-title { grid-column:1!important; }
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-top:not(.kcb-has-options) .ce-purchase { grid-column:2!important; }
}
@media(min-width:761px) and (max-width:1099px) {
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts {
  border-top:1px solid var(--kcb-product-line);padding-top:18px!important;
 }
}
@media(max-width:760px) {
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-facts {
  border-top:1px solid var(--kcb-product-line);padding-top:18px!important;
 }
}
/* Long variant lists use the available width instead of a tall narrow column. */
html body.pkvs-preview .kcb-ram-gallery-facts{border-top:1px solid #e2e5e9!important;margin-top:20px!important;padding-top:18px!important}
@media(min-width:1100px){
 html body.pkvs-preview #pkvs-content .lp-gallery{margin-bottom:0!important}
 html body.pkvs-preview .ce-pdp[data-category] .ce-product-top.kcb-many-options,
 html body.pkvs-preview #pkvs-content .lp-top.kcb-many-options{grid-template-columns:minmax(0,1fr) 300px!important}
 html body.pkvs-preview .ce-pdp[data-category] .kcb-many-options .ce-product-title,
 html body.pkvs-preview #pkvs-content .lp-top.kcb-many-options .lp-title{grid-column:1!important}
 html body.pkvs-preview .ce-pdp[data-category] .kcb-many-options .ce-purchase,
 html body.pkvs-preview #pkvs-content .lp-top.kcb-many-options .lp-buy{grid-column:2!important;grid-row:1/7!important}
 html body.pkvs-preview .ce-pdp[data-category] .kcb-many-options .kcb-pdp-options,
 html body.pkvs-preview #pkvs-content .lp-top.kcb-many-options .kcb-pdp-options{grid-column:1!important;grid-row:6!important;align-self:start;border-left:0!important;border-top:1px solid #e2e5e9!important;padding:18px 0 0!important;margin-top:20px!important}
 html body.pkvs-preview .kcb-many-options .kcb-pdp-options>#pkhmv-variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
 html body.pkvs-preview .kcb-many-options .kcb-pdp-options>#pkhmv-variants>:is(h2,p){grid-column:1/-1;margin:0!important}
}

/* Restore full-width gallery flow in compact generic product cards. */
html body.kcb-retail #pkvs-content#pkvs-content .pkpdp-v2:not(.pcpt) .pkpdp-panel{scroll-margin-top:calc(var(--pkh-header-top,0px) + var(--pkh-header-height,124px) + 80px)}
@media(max-width:767px){
 html body.kcb-retail.kcb-retail.kcb-mobile.kcm-compact #pkvs-content#pkvs-content .pkpdp-v2:not(.pcpt) .pkpdp-top{align-items:stretch!important}
 html body.kcb-retail.kcb-retail.kcb-mobile.kcm-compact #pkvs-content#pkvs-content .pkpdp-v2:not(.pcpt) .pkpdp-media{width:100%!important;max-width:100%!important;align-self:stretch!important;box-sizing:border-box}
 html body.kcb-retail #pkvs-content#pkvs-content .pkpdp-v2:not(.pcpt) .pkpdp-panel{scroll-margin-top:calc(var(--pkh-header-top,0px) + var(--pkh-header-height,58px) + 16px)}
}
