/* Competition page: winners of the same kind of prize (owner 2026-11-17). Markup: includes/product-winners.php.
   Compact on purpose (owner: small 1:1 photos, little air): one label line and one row of square photos;
   the open photo widens into a pill with the winner's name and prize. */
.tmc-pw{
  --pw-ink:var(--tmc-clean-ink,#152332);
  --pw-muted:var(--tmc-clean-muted,#526171);
  --pw-line:var(--tmc-clean-line,#dbe2e8);
  --pw-blue:var(--tmc-clean-blue,#086db1);
  --pw-ease:cubic-bezier(.22,1,.36,1);
  --pw-s:56px;
  padding:8px 0 0;
  background:#fff;
  font-family:var(--tmc-clean-font,'TMC Exo',Arial,sans-serif);
}
/* Straight under the buy block the theme leaves an empty band; the strip moves up into it. */
.tmc25-product-hero + .tmc-pw{margin-top:-18px;position:relative}
/* Owner: as little air as possible. An empty instant-win section (a draw has no prize list) takes no room after the strip,
   and "Competition details" starts close under it. */
.tmc-pw + .tmc25-product-instant-win-prizes:not(:has(.tmc24-container > *)){display:none}
body.tmc24-theme .tmc-pw ~ .tmc25-below-product{padding-top:6px!important}
/* The theme zeroes container padding with !important, hence the same here. */
body.tmc24-theme .tmc-pw .tmc24-container{box-sizing:border-box!important;width:100%!important;max-width:960px!important;margin-inline:auto!important;padding-inline:16px!important}
.tmc-pw__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 6px}
body.tmc24-theme .tmc-pw .tmc-pw__title{margin:0;padding:0;color:var(--pw-ink);font-size:.9375rem;font-weight:700;line-height:1.3;letter-spacing:0;text-align:left}
.tmc-pw__all{position:relative;flex:none;color:var(--pw-blue);font-size:.8125rem;font-weight:600;line-height:1.3;text-decoration:none}
.tmc-pw__all::before{content:"";position:absolute;inset:-14px -10px}
.tmc-pw__all:hover{text-decoration:underline}
.tmc-pw__all:focus-visible{outline:2px solid var(--pw-blue);outline-offset:3px;border-radius:4px}
.tmc-pw__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.tmc-pw__row{display:flex;gap:6px;height:var(--pw-s);margin:0;padding:0;list-style:none;contain:layout}
.tmc-pw__item{flex:0 0 var(--pw-s);min-width:0;height:var(--pw-s);border-radius:12px;overflow:hidden;background:#eef3f8;box-shadow:inset 0 0 0 1px rgba(21,35,50,.06);transition:flex-grow .45s var(--pw-ease),background-color .2s ease-out}
.tmc-pw__item.is-active{flex-grow:1;background:#e6f0f9}
/* How many photos fit: the script counts exactly (.is-fit + [hidden]); these are the counts without it. */
.tmc-pw__item[hidden]{display:none}
.tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+5){display:none}
@media (max-width:359px){.tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+4){display:none}}
.tmc-pw__link{display:flex;align-items:center;height:100%;color:var(--pw-ink);text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tmc-pw__link img{flex:none;display:block;width:var(--pw-s);height:var(--pw-s);aspect-ratio:1;object-fit:cover;border-radius:12px;filter:saturate(.9);transition:filter .2s ease-out,transform .2s var(--pw-ease)}
.tmc-pw__item.is-active img{filter:none}
.tmc-pw__link:active img{transform:scale(.96)}
.tmc-pw__cap{display:grid;gap:1px;min-width:0;padding:0 12px 0 10px;opacity:0;transform:translateX(-6px);transition:opacity .12s ease-out,transform .12s ease-out}
.tmc-pw__item.is-active .tmc-pw__cap{opacity:1;transform:none;transition:opacity .28s ease-out .14s,transform .4s var(--pw-ease) .14s}
.tmc-pw__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmc-pw__prize{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tmc-pw__name{font-size:.875rem;font-weight:700;line-height:1.25}
.tmc-pw__prize{color:var(--pw-muted);font-size:.75rem;line-height:1.3}
.tmc-pw__link:focus-visible{outline:2px solid var(--pw-blue);outline-offset:-2px;border-radius:12px}

@media (hover:hover){
  .tmc-pw__item:hover img{filter:none}
}
@media (min-width:480px){
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+5){display:block}
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+6){display:none}
}
@media (min-width:700px){
  .tmc-pw{--pw-s:72px;padding:10px 0 0}
  .tmc-pw__row{gap:8px}
  body.tmc24-theme .tmc-pw .tmc-pw__title{font-size:1.0625rem}
  .tmc-pw__all{font-size:.875rem}
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+6){display:block}
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+8){display:none}
  .tmc-pw__cap{padding:0 16px 0 12px}
  .tmc-pw__name{font-size:.9375rem}
  .tmc-pw__prize{font-size:.8125rem}
}
@media (min-width:1000px){
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+8){display:block}
  .tmc-pw:not(.is-fit) .tmc-pw__item:nth-child(n+10){display:none}
  body.tmc24-theme .tmc-pw .tmc24-container{padding-inline:0!important}
}
@media (prefers-reduced-motion:reduce){
  .tmc-pw *{transition:none!important}
}
@media (forced-colors:active){
  .tmc-pw__item{border:1px solid CanvasText}
}
