/* Punkt 14 – dimensionsskydd för loggor och produktkort.
   Sidavgränsat till Presentlotsens egna guide- och omdömesmallar.
   Inga bilder, produktuppgifter eller annonslänkar byts ut. */
.pl-review,.pl-guide,.presentlotsen-guide,.pm-page,.ph-page,.plp-guide{max-width:100%;overflow-wrap:anywhere}
.pl-review *,.pl-guide *,.presentlotsen-guide *,.pm-page *,.ph-page *,.plp-guide *{box-sizing:border-box}
.pl-review .pr-grid,.pl-review .pr-card,.pl-review .pr-panel,
.pl-guide .pl-product-grid,.pl-guide .pl-product-card,
.presentlotsen-guide .pl-pick-grid,.presentlotsen-guide .pl-pick-card,
.pm-page .pm-picks,.pm-page .pm-pick{min-width:0;max-width:100%}

/* Butiksloggor har alltid logotypformat och förblir små även om en
   mer generell img-regel i en äldre omdömesmall försöker förstora dem. */
.pl-review img.pr-logo,
.pl-review .pr-card img.pr-logo,
.pl-review .pr-panel img.pr-logo{
  display:block!important;
  width:auto!important;
  max-width:min(170px,100%)!important;
  height:auto!important;
  max-height:80px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  padding:0!important;
  margin-left:auto;
  margin-right:auto
}
.pl-review .pr-card>img:not(.pr-logo),
.pl-review .pr-card>a>img:not(.pr-logo){
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:280px;
  aspect-ratio:4/3;
  object-fit:contain!important;
  background:#fff
}

/* Produktbilder ska passa kortet utan att förstoras utanför sin yta. */
.pl-guide .pl-product-media,
.presentlotsen-guide .pl-pick-image,
.pm-page .pm-pick-image{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  max-width:100%;
  overflow:hidden
}
.pl-guide .pl-product-media img,
.presentlotsen-guide .pl-pick-image img,
.pm-page .pm-pick-image img{
  display:block;
  width:100%;
  max-width:100%!important;
  max-height:260px;
  height:auto;
  object-fit:contain!important
}
.pl-guide .pl-logo img,
.presentlotsen-guide .pl-logo img,
.pm-page .pm-logo img{
  display:block;
  width:auto!important;
  max-width:min(170px,100%)!important;
  height:auto!important;
  max-height:75px!important;
  object-fit:contain!important
}
.ph-page .ph-logo img{width:auto!important;max-width:100%!important;height:auto!important;max-height:60px!important;object-fit:contain!important}
.plp-guide .plp-product-image img{width:auto!important;max-width:100%!important;height:auto!important;max-height:220px!important;object-fit:contain!important}

/* Pawrooms produktfeed saknar bilder: endast kortbredden repareras. */
[data-pl-pawroom-products]>div{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr))!important
}
[data-pl-pawroom-products]>div>article{min-width:0;max-width:100%;overflow-wrap:anywhere}
[data-pl-pawroom-products]>div>article a{overflow-wrap:anywhere}

@media(max-width:850px){
  .pl-review .pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
  .pl-review .pr-grid{grid-template-columns:minmax(0,1fr)!important}
  .pl-guide .pl-product-grid,
  .presentlotsen-guide .pl-pick-grid,
  .pm-page .pm-picks{grid-template-columns:minmax(0,1fr)!important}
  .pl-review .pr-card,.pl-guide .pl-product-card,
  .presentlotsen-guide .pl-pick-card,.pm-page .pm-pick{width:100%}
}

/* Punkt 36 (2026-11-03): enhetlig kortlayout. Priser, butikstexter och länkar berörs inte. */
.pl-review .pr-card,.pl-teen .pl-product-card,.plp-guide .plp-product,.ph-page .ph-card--affiliate,.presentlotsen-guide .pl-pick-card,.presentlotsen-guide .pl-product,.pl-bf32 .plbf-card,.pm-page .pm-pick{box-sizing:border-box;min-width:0;max-width:100%;overflow:hidden}
.pl-teen .pl-product-image,.plp-guide .plp-product-image,.presentlotsen-guide .pl-pick-image,.presentlotsen-guide .pl-product-image,.pl-bf32 .plbf-image{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;min-height:200px;max-height:240px;aspect-ratio:4/3;overflow:hidden;background:#f8fafc}
.pl-teen .pl-product-image img,.plp-guide .plp-product-image img,.presentlotsen-guide .pl-pick-image img,.presentlotsen-guide .pl-product-image img,.pl-bf32 .plbf-image img{display:block;max-width:100%!important;max-height:215px!important;width:auto!important;height:auto!important;object-fit:contain!important;margin-left:auto;margin-right:auto}
.pl-review .pr-card>img:not(.pr-logo),.pl-review .pr-card>a>img:not(.pr-logo){width:100%!important;height:210px!important;max-height:210px!important;object-fit:contain!important;background:#fff}
.plp-guide .plp-product-body{box-sizing:border-box;min-width:0;border:0!important;border-radius:0!important;overflow:visible!important}
.plp-guide .plp-product-store{border:0!important;border-radius:0!important;overflow:visible!important}
.pl-teen .pl-product-body,.plp-guide .plp-product-body,.presentlotsen-guide .pl-pick-body,.presentlotsen-guide .pl-product-body,.pl-bf32 .plbf-info,.pl-review .pr-body{min-width:0}
.pl-teen .pl-product-price,.plp-guide .plp-product-price,.presentlotsen-guide .pl-pick-price,.presentlotsen-guide .pl-product-price,.pl-bf32 .plbf-price{font-weight:800;line-height:1.4}
.pl-teen .pl-product-card .pl-btn,.plp-guide .plp-product .plp-button,.presentlotsen-guide .pl-pick-card .pl-pick-btn,.presentlotsen-guide .pl-product .pl-btn,.pl-bf32 .plbf-card .plbf-btn,.pl-review .pr-card .pr-btn,.pm-page .pm-pick a[class*="btn"]{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:100%!important;min-height:46px!important;padding:11px 14px!important;white-space:normal!important;overflow-wrap:break-word;text-align:center;line-height:1.35;border-radius:10px;text-decoration:none!important}
.ph-page .ph-card--affiliate .ph-btn,.pl-guide .pl-tip .pl-button{box-sizing:border-box;max-width:100%;min-height:46px;white-space:normal;overflow-wrap:break-word;text-align:center}
.pl-teen .pl-product-card a:focus-visible,.plp-guide .plp-product a:focus-visible,.presentlotsen-guide .pl-pick-card a:focus-visible,.presentlotsen-guide .pl-product a:focus-visible,.pl-bf32 .plbf-card a:focus-visible,.pl-review .pr-card a:focus-visible,.ph-page .ph-card--affiliate a:focus-visible{outline:3px solid #e9823d;outline-offset:3px}
@media(max-width:600px){.pl-teen .pl-product-grid,.pl-bf32 .plbf-grid{grid-template-columns:minmax(0,1fr)!important}.ph-page .ph-card--affiliate .ph-btn,.pl-guide .pl-tip .pl-button{display:flex;width:100%;padding:12px 15px}}
