/*
 * Hintalinja product page template V2.
 * Dormant until a page explicitly links this asset and carries .product-template-v2.
 * Every selector is scoped so this file cannot restyle the current V1 product pages.
 */

.product-template-v2 {
  --product-v2-anchor-offset: 9.5rem;
  display: grid;
  width: min(100% - 2rem, var(--page, 73.75rem));
  gap: clamp(1.5rem, 4vw, 3.75rem);
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 7rem);
  color: var(--text-primary, #10251b);
}

.product-template-v2 *,
.product-template-v2 *::before,
.product-template-v2 *::after {
  box-sizing: border-box;
}

.product-template-v2 .product-v2__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-template-v2 .product-v2__breadcrumbs {
  min-width: 0;
  color: var(--text-secondary, #496458);
  font-size: 0.84rem;
}

.product-template-v2 .product-v2__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-template-v2 .product-v2__breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  gap: 0.4rem;
  align-items: center;
  overflow-wrap: break-word;
}

.product-template-v2 .product-v2__breadcrumbs li:not(:last-child)::after {
  color: var(--border-strong, #88ae98);
  content: "/";
}

.product-template-v2 .product-v2__breadcrumbs a,
.product-template-v2 .product-v2__read-more,
.product-template-v2 .product-v2__overview a,
.product-template-v2 .product-v2__sources a,
.product-template-v2 .product-v2__correction a {
  color: var(--action-primary, #087a49);
  font-weight: 720;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.product-template-v2 .product-v2__hero {
  display: grid;
  grid-template-areas:
    "copy"
    "media"
    "price"
    "facts"
    "identifiers";
  min-width: 0;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 5% 0%, rgb(215 244 228 / 88%), transparent 27rem),
    linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(244 250 246 / 92%));
  box-shadow: 0 1.4rem 4rem rgb(18 36 28 / 7%);
}

.product-template-v2 .product-v2__hero-copy {
  grid-area: copy;
  min-width: 0;
  align-self: center;
}

.product-template-v2 .product-v2__eyebrow {
  margin: 0;
  color: var(--action-primary, #087a49);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-template-v2 .product-v2__hero h1 {
  max-width: 18ch;
  margin: 0.4rem 0 0.8rem;
  overflow-wrap: break-word;
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
  font-weight: 760;
  hyphens: auto;
  letter-spacing: -0.045em;
  line-height: 1.07;
  text-wrap: balance;
  word-break: normal;
}

.product-template-v2 .product-v2__hero--long-title h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
}

.product-template-v2 .product-v2__lede {
  max-width: 60ch;
  margin: 0.85rem 0 0;
  color: var(--text-secondary, #496458);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.58;
}

.product-template-v2 .product-v2__read-more {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.4rem;
  align-items: center;
  margin-block-start: 0.45rem;
}

.product-template-v2 .product-v2__rating-link {
  display: inline-flex;
  min-height: 2.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--text-primary, #10251b);
  font-size: 0.88rem;
  text-decoration: none;
}

.product-template-v2 .product-v2__rating-link > strong {
  font-size: 1rem;
}

.product-template-v2 .product-v2__rating-link > span:last-child {
  color: var(--text-secondary, #496458);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.product-template-v2 .product-v2__rating-link--empty,
.product-template-v2 .product-v2__rating-link--limited {
  color: var(--text-secondary, #496458);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product-template-v2 .product-v2__stars {
  color: #9a6500;
  font-size: 1rem;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.product-template-v2 .product-v2__media {
  display: grid;
  grid-area: media;
  min-width: 0;
  min-height: 15rem;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1.45rem;
  background: rgb(255 255 255 / 94%);
}

.product-template-v2 .product-v2__media img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  max-height: 24rem;
  object-fit: contain;
}

.product-template-v2 .product-v2__price-card {
  display: grid;
  grid-area: price;
  min-width: 0;
  gap: 0.45rem;
  align-self: start;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1.35rem;
  background: linear-gradient(155deg, #fff, #edf8f1);
  box-shadow: 0 1rem 2.8rem rgb(18 36 28 / 10%);
}

.product-template-v2 .product-v2__price-card > p {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  color: var(--text-secondary, #496458);
  font-size: 0.82rem;
  font-weight: 750;
}

.product-template-v2 .product-v2__status-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--action-primary, #087a49);
  box-shadow: 0 0 0 0.25rem rgb(8 122 73 / 12%);
}

.product-template-v2 .product-v2__price-card > strong {
  overflow-wrap: break-word;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.product-template-v2 .product-v2__price-card > span {
  font-weight: 760;
}

.product-template-v2 .product-v2__price-card > small {
  color: var(--text-secondary, #496458);
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-template-v2 .product-v2__price-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: 0.25rem;
}

.product-template-v2 .product-v2__price-card > div span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-secondary, #e8f5ed);
  color: var(--action-primary-hover, #045e37);
  font-size: 0.75rem;
  font-weight: 780;
}

.product-template-v2 .product-v2__primary-action,
.product-template-v2 .product-v2__offer-action a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--action-primary, #087a49);
  color: #fff;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.product-template-v2 .product-v2__key-facts {
  display: grid;
  grid-area: facts;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 74%);
}

.product-template-v2 .product-v2__key-facts > div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border-block-end: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__key-facts dt,
.product-template-v2 .product-v2__identifiers dt,
.product-template-v2 .product-v2__offer-prices dt,
.product-template-v2 .product-v2__fulfilment dt,
.product-template-v2 .product-v2__featured-specs dt {
  color: var(--text-secondary, #496458);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-template-v2 .product-v2__key-facts dd,
.product-template-v2 .product-v2__identifiers dd,
.product-template-v2 .product-v2__offer-prices dd,
.product-template-v2 .product-v2__fulfilment dd,
.product-template-v2 .product-v2__featured-specs dd {
  margin: 0.2rem 0 0;
  overflow-wrap: break-word;
  font-size: 0.94rem;
  font-weight: 740;
  line-height: 1.35;
}

.product-template-v2 .product-v2__identifiers {
  grid-area: identifiers;
  min-width: 0;
  border-block-start: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__identifiers summary,
.product-template-v2 .product-v2__all-specs summary,
.product-template-v2 .product-v2__history-table summary,
.product-template-v2 .product-v2__sources details summary {
  display: flex;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--action-primary, #087a49);
  font-weight: 760;
}

.product-template-v2 .product-v2__identifiers summary::-webkit-details-marker,
.product-template-v2 .product-v2__all-specs summary::-webkit-details-marker,
.product-template-v2 .product-v2__history-table summary::-webkit-details-marker,
.product-template-v2 .product-v2__sources details summary::-webkit-details-marker {
  display: none;
}

.product-template-v2 .product-v2__identifiers summary::after,
.product-template-v2 .product-v2__all-specs summary::after,
.product-template-v2 .product-v2__history-table summary::after,
.product-template-v2 .product-v2__sources details summary::after {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-secondary, #e8f5ed);
  color: var(--text-primary, #10251b);
  content: "+";
  font-size: 1.1rem;
}

.product-template-v2 .product-v2__identifiers[open] summary::after,
.product-template-v2 .product-v2__all-specs[open] summary::after,
.product-template-v2 .product-v2__history-table[open] summary::after,
.product-template-v2 .product-v2__sources details[open] summary::after {
  content: "−";
}

.product-template-v2 .product-v2__identifiers dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0;
  margin: 0;
}

.product-template-v2 .product-v2__identifiers dl > div {
  padding: 0.75rem 0.9rem;
  border-block-start: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__jump-nav {
  position: sticky;
  z-index: 8;
  top: 4.65rem;
  display: flex;
  max-width: 100%;
  gap: 0.3rem;
  padding: 0.4rem;
  overflow-x: auto;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1rem;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 0.8rem 2.4rem rgb(18 36 28 / 8%);
  scrollbar-width: thin;
  -webkit-backdrop-filter: saturate(145%) blur(1rem);
  backdrop-filter: saturate(145%) blur(1rem);
}

.product-template-v2 .product-v2__jump-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.68rem 0.84rem;
  border-radius: 999px;
  color: var(--text-primary, #10251b);
  font-size: 0.85rem;
  font-weight: 760;
  text-decoration: none;
}

.product-template-v2 .product-v2__section {
  min-width: 0;
  scroll-margin-top: var(--product-v2-anchor-offset);
}

.product-template-v2 .product-v2__section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: 1.25rem;
}

.product-template-v2 .product-v2__section-heading > div {
  min-width: 0;
}

.product-template-v2 .product-v2__section-heading h2,
.product-template-v2 .product-v2__overview h2 {
  max-width: 24ch;
  margin: 0.25rem 0 0.45rem;
  overflow-wrap: break-word;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.product-template-v2 .product-v2__section-heading p:last-child {
  max-width: 67ch;
  margin: 0;
  color: var(--text-secondary, #496458);
  line-height: 1.55;
}

.product-template-v2 .product-v2__verified {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 999px;
  background: var(--surface-secondary, #e8f5ed);
  color: var(--action-primary-hover, #045e37);
  font-size: 0.75rem;
  font-weight: 780;
}

.product-template-v2 .product-v2__disclosure {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-inline-start: 0.25rem solid #b97900;
  background: #fff3da;
  color: #5d4416;
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-template-v2 .product-v2__offers {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1.25rem;
  background: var(--surface-primary, #fff);
  box-shadow: 0 0.8rem 2.4rem rgb(18 36 28 / 7%);
  list-style: none;
}

.product-template-v2 .product-v2__offer {
  border-block-end: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__offer:last-child {
  border-block-end: 0;
}

.product-template-v2 .product-v2__offer--best {
  background: linear-gradient(90deg, rgb(215 244 228 / 75%), rgb(255 255 255 / 40%));
  box-shadow: inset 0.24rem 0 var(--action-primary, #087a49);
}

.product-template-v2 .product-v2__offer article {
  display: grid;
  grid-template-areas:
    "rank merchant"
    "prices prices"
    "fulfilment action";
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.9fr);
  gap: 0.8rem 1rem;
  align-items: center;
  padding: 1rem;
}

.product-template-v2 .product-v2__rank {
  display: inline-flex;
  min-height: 2.4rem;
  grid-area: rank;
  width: fit-content;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-secondary, #e8f5ed);
  color: var(--action-primary-hover, #045e37);
}

.product-template-v2 .product-v2__rank span {
  font-size: 0.72rem;
  font-weight: 720;
}

.product-template-v2 .product-v2__merchant {
  display: grid;
  min-width: 0;
  grid-area: merchant;
  gap: 0.25rem;
  justify-items: end;
  text-align: end;
}

.product-template-v2 .product-v2__merchant > strong {
  overflow-wrap: break-word;
  font-size: 1rem;
}

.product-template-v2 .product-v2__merchant > small {
  max-width: 22rem;
  color: #76531a;
  font-size: 0.75rem;
  line-height: 1.4;
}

.product-template-v2 .product-v2__merchant-logo {
  display: grid;
  min-width: 6.5rem;
  min-height: 2.5rem;
  place-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 0.65rem;
  background: #fff;
}

.product-template-v2 .product-v2__merchant-logo img {
  display: block;
  width: auto;
  max-width: 6rem;
  height: auto;
  max-height: 2rem;
  object-fit: contain;
}

.product-template-v2 .product-v2__offer-prices {
  display: grid;
  grid-area: prices;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding-block: 0.75rem;
  border-block: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__offer-prices > div,
.product-template-v2 .product-v2__fulfilment > div {
  min-width: 0;
}

.product-template-v2 .product-v2__offer-total dd {
  font-size: 1.2rem;
}

.product-template-v2 .product-v2__fulfilment {
  display: grid;
  grid-area: fulfilment;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.product-template-v2 .product-v2__offer-action {
  display: grid;
  grid-area: action;
  gap: 0.2rem;
  justify-items: stretch;
}

.product-template-v2 .product-v2__offer-action small,
.product-template-v2 .product-v2__offer-action time {
  color: var(--text-secondary, #496458);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.product-template-v2 .product-v2__comparison-notes {
  display: grid;
  margin-block-start: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__comparison-notes > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border-block-end: 1px solid var(--border-default, #bedac9);
}

.product-template-v2 .product-v2__comparison-notes > div:last-child {
  border-block-end: 0;
}

.product-template-v2 .product-v2__comparison-notes strong,
.product-template-v2 .product-v2__comparison-notes span,
.product-template-v2 .product-v2__comparison-notes time {
  font-size: 0.78rem;
  line-height: 1.4;
}

.product-template-v2 .product-v2__comparison-notes span,
.product-template-v2 .product-v2__comparison-notes time {
  color: var(--text-secondary, #496458);
}

.product-template-v2 .product-v2__reviews,
.product-template-v2 .product-v2__specifications,
.product-template-v2 .product-v2__history,
.product-template-v2 .product-v2__sources {
  padding: clamp(1.1rem, 3vw, 2.35rem);
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: clamp(1.25rem, 2.5vw, 1.8rem);
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 1.2rem 3.5rem rgb(18 36 28 / 5%);
}

.product-template-v2 .product-v2__review-empty {
  display: grid;
  max-width: 52rem;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border-strong, #88ae98);
  border-radius: 1rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__review-empty span {
  color: var(--text-secondary, #496458);
  font-size: 0.9rem;
}

.product-template-v2 .product-v2__comments {
  display: grid;
  gap: 0.45rem;
  margin-block-start: 1.25rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__comments h3,
.product-template-v2 .product-v2__comments p {
  margin: 0;
}

.product-template-v2 .product-v2__comments h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
}

.product-template-v2 .product-v2__comments > p,
.product-template-v2 .product-v2__comments .comments-empty {
  max-width: 52rem;
  color: var(--text-secondary, #496458);
  font-size: 0.9rem;
}

.product-template-v2 .product-v2__comments .published-comments {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.product-template-v2 .product-v2__comments .published-comments > li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1rem;
  background: var(--surface-primary, #fff);
}

.product-template-v2 .product-v2__comment-form {
  max-width: 52rem;
  margin-block-start: 1.1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1.1rem;
  background: var(--surface-secondary, #eef8f2);
}

.product-template-v2 .product-v2__comment-form input,
.product-template-v2 .product-v2__comment-form textarea {
  min-height: 2.75rem;
  border-color: var(--border-default, #bedac9);
}

.product-template-v2 .product-v2__comment-thread {
  max-width: 52rem;
  margin-block-start: 1.35rem;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__comment-thread h4 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

@media (max-width: 35rem) {
  .product-template-v2 .product-v2__comment-form .button {
    width: 100%;
  }
}

.product-template-v2 .product-v2__review-layout {
  display: grid;
  gap: 1.25rem;
}

.product-template-v2 .product-v2__review-summary {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  align-content: start;
  padding: 1rem;
  border-radius: 1.1rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__review-summary > strong {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.product-template-v2 .product-v2__review-summary > span,
.product-template-v2 .product-v2__review-summary > small {
  color: var(--text-secondary, #496458);
}

.product-template-v2 .product-v2__review-summary ol,
.product-template-v2 .product-v2__review-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-template-v2 .product-v2__review-summary ol {
  margin-block-start: 0.8rem;
}

.product-template-v2 .product-v2__review-summary li {
  display: grid;
  grid-template-columns: 4.2rem minmax(5rem, 1fr) 2rem;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.78rem;
}

.product-template-v2 .product-v2__histogram-track {
  display: block;
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #c5d4cc;
}

.product-template-v2 .product-v2__histogram-track > span {
  display: block;
  width: var(--product-v2-bar);
  height: 100%;
  border-radius: inherit;
  background: var(--text-primary, #10251b);
}

.product-template-v2 .product-v2__review-list > li {
  min-width: 0;
}

.product-template-v2 .product-v2__review-list article {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1rem;
  background: #fff;
}

.product-template-v2 .product-v2__review-list header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
}

.product-template-v2 .product-v2__review-list header a {
  color: var(--text-primary, #10251b);
  font-weight: 780;
}

.product-template-v2 .product-v2__review-list header time {
  margin-inline-start: auto;
  color: var(--text-secondary, #496458);
  font-size: 0.78rem;
}

.product-template-v2 .product-v2__review-list h3 {
  margin: 0.8rem 0 0.25rem;
  font-size: 1.05rem;
}

.product-template-v2 .product-v2__review-list p {
  margin: 0.5rem 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.product-template-v2 .product-v2__review-context,
.product-template-v2 .product-v2__review-list article > small {
  color: var(--text-secondary, #496458);
  font-size: 0.8rem;
}

.product-template-v2 .product-v2__overview {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.product-template-v2 .product-v2__overview-copy {
  max-width: 48rem;
}

.product-template-v2 .product-v2__overview-copy > p {
  line-height: 1.65;
}

.product-template-v2 .product-v2__live-price {
  padding-block: 0.85rem;
  border-block: 1px solid var(--border-subtle, #d8e9df);
  color: var(--text-secondary, #496458);
}

.product-template-v2 .product-v2__live-price strong {
  color: var(--text-primary, #10251b);
}

.product-template-v2 .product-v2__before-buying {
  padding: 1rem 1.1rem;
  border: 1px solid #e1bd73;
  border-radius: 1rem;
  background: #fff4dc;
}

.product-template-v2 .product-v2__before-buying h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.08rem;
}

.product-template-v2 .product-v2__before-buying p:last-child {
  margin: 0;
  color: #664817;
  line-height: 1.55;
}

.product-template-v2 .product-v2__featured-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1rem;
}

.product-template-v2 .product-v2__featured-specs > div {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-block-end: 1px solid var(--border-subtle, #d8e9df);
  background: #fff;
}

.product-template-v2 .product-v2__all-specs {
  margin-block-start: 0.8rem;
  overflow: visible;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1rem;
  background: #fff;
}

.product-template-v2 .product-v2__all-specs > summary {
  padding: 0.8rem 1rem;
  color: var(--text-primary, #10251b);
}

.product-template-v2 .product-v2__all-specs > summary small {
  margin-inline-start: auto;
  color: var(--text-secondary, #496458);
  font-size: 0.76rem;
}

.product-template-v2 .product-v2__all-specs[open] > summary span {
  font-size: 0;
}

.product-template-v2 .product-v2__all-specs[open] > summary span::after {
  content: "Piilota tekniset tiedot";
  font-size: 1rem;
}

.product-template-v2 .product-v2__spec-groups {
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  border-block-start: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__spec-groups section {
  min-width: 0;
}

.product-template-v2 .product-v2__spec-groups h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.product-template-v2 .product-v2__table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.product-template-v2 .product-v2__table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.product-template-v2 .product-v2__table-wrap th,
.product-template-v2 .product-v2__table-wrap td {
  padding: 0.75rem 0.8rem;
  border-block-end: 1px solid var(--border-subtle, #d8e9df);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-template-v2 .product-v2__table-wrap th {
  width: 42%;
  color: var(--text-secondary, #496458);
  font-weight: 650;
}

.product-template-v2 .product-v2__table-wrap td {
  font-weight: 720;
}

.product-template-v2 .product-v2__history-empty {
  display: grid;
  max-width: 32rem;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__history-empty span,
.product-template-v2 .product-v2__history-empty small {
  color: var(--text-secondary, #496458);
}

.product-template-v2 .product-v2__history-empty strong {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.045em;
}

.product-template-v2 .product-v2__history-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-template-v2 .product-v2__history-kpis > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__history-kpis span,
.product-template-v2 .product-v2__history-kpis small {
  color: var(--text-secondary, #496458);
  font-size: 0.8rem;
}

.product-template-v2 .product-v2__history-kpis strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.product-template-v2 .product-v2__history-chart {
  height: clamp(13rem, 30vw, 20rem);
  margin: 1rem 0 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #d8e9df);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff, var(--surface-secondary, #e8f5ed));
}

.product-template-v2 .product-v2__history-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.product-template-v2 .product-v2__history-chart line {
  stroke: var(--border-strong, #88ae98);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.product-template-v2 .product-v2__history-chart polyline {
  fill: none;
  stroke: var(--action-primary, #087a49);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.product-template-v2 .product-v2__history-table {
  margin-block-start: 0.75rem;
}

.product-template-v2 .product-v2__method-note {
  margin-block-end: 0;
  color: var(--text-secondary, #496458);
  font-size: 0.82rem;
}

.product-template-v2 .product-v2__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.8rem;
}

.product-template-v2 .product-v2__related-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-default, #bedac9);
  border-radius: 1.1rem;
  background: #fff;
}

.product-template-v2 .product-v2__related-grid article > a {
  display: grid;
  height: 100%;
  color: var(--text-primary, #10251b);
  text-decoration: none;
}

.product-template-v2 .product-v2__related-image {
  display: grid;
  min-height: 12rem;
  place-items: center;
  padding: 0.8rem;
  background: var(--surface-secondary, #e8f5ed);
}

.product-template-v2 .product-v2__related-image img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: contain;
}

.product-template-v2 .product-v2__related-copy {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1rem;
}

.product-template-v2 .product-v2__related-copy > strong {
  overflow-wrap: break-word;
  font-size: 1.02rem;
  line-height: 1.3;
}

.product-template-v2 .product-v2__related-copy small,
.product-template-v2 .product-v2__related-copy > span {
  color: var(--text-secondary, #496458);
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-template-v2 .product-v2__sources details {
  overflow: visible;
  border-block: 1px solid var(--border-subtle, #d8e9df);
}

.product-template-v2 .product-v2__sources ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0 0 1rem 1.2rem;
}

.product-template-v2 .product-v2__sources li {
  line-height: 1.45;
}

.product-template-v2 .product-v2__sources li small {
  display: block;
  margin-block-start: 0.2rem;
  color: var(--text-secondary, #496458);
  font-size: 0.78rem;
}

.product-template-v2 .product-v2__source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-block-start: 1rem;
}

.product-template-v2 .product-v2__source-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.product-template-v2 .product-v2__correction {
  margin: 0;
  padding-block-start: 0.5rem;
  color: var(--text-secondary, #496458);
  font-size: 0.88rem;
  text-align: center;
}

.product-template-v2 a:focus-visible,
.product-template-v2 summary:focus-visible {
  border-radius: 0.35rem;
  outline: 3px solid var(--focus, #1251c8);
  outline-offset: 3px;
}

@media (hover: hover) {
  .product-template-v2 .product-v2__primary-action:hover,
  .product-template-v2 .product-v2__offer-action a:hover {
    background: var(--action-primary-hover, #045e37);
  }

  .product-template-v2 .product-v2__jump-nav a:hover {
    background: var(--surface-secondary, #e8f5ed);
  }

  .product-template-v2 .product-v2__related-grid article:hover {
    border-color: var(--border-strong, #88ae98);
    box-shadow: 0 0.8rem 2.2rem rgb(18 36 28 / 8%);
  }
}

@media (min-width: 48rem) {
  .product-template-v2 .product-v2__comparison-notes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-template-v2 .product-v2__comparison-notes > div {
    border-block-end: 0;
    border-inline-end: 1px solid var(--border-default, #bedac9);
  }

  .product-template-v2 .product-v2__comparison-notes > div:last-child {
    border-inline-end: 0;
  }

  .product-template-v2 .product-v2__review-layout {
    grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  }

  .product-template-v2 .product-v2__overview {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  }
}

@media (min-width: 64rem) {
  .product-template-v2 .product-v2__hero {
    grid-template-areas:
      "media copy price"
      "media facts price"
      "identifiers identifiers identifiers";
    grid-template-columns: minmax(14rem, 0.78fr) minmax(22rem, 1.25fr) minmax(15rem, 0.7fr);
  }

  .product-template-v2 .product-v2__offer article {
    grid-template-areas: "rank merchant prices fulfilment action";
    grid-template-columns: minmax(4rem, 0.35fr) minmax(10rem, 1fr) minmax(18rem, 1.5fr) minmax(12rem, 1fr) minmax(11rem, 0.9fr);
  }

  .product-template-v2 .product-v2__merchant {
    justify-items: start;
    text-align: start;
  }

  .product-template-v2 .product-v2__offer-prices {
    padding-block: 0;
    border-block: 0;
  }
}

@media (max-width: 63.99rem) {
  .product-template-v2 {
    --product-v2-anchor-offset: 5rem;
  }

  .product-template-v2 .product-v2__jump-nav {
    top: calc(0.5rem + env(safe-area-inset-top));
  }
}

@media (max-width: 47.99rem) {
  .product-template-v2 {
    width: min(100% - 1rem, var(--page, 73.75rem));
    gap: 1.6rem;
  }

  .product-template-v2 .product-v2__hero {
    padding: 0.9rem;
  }

  .product-template-v2 .product-v2__hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .product-template-v2 .product-v2__hero--long-title h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
  }

  .product-template-v2 .product-v2__media {
    min-height: 13rem;
  }

  .product-template-v2 .product-v2__media img {
    max-height: 13rem;
  }

  .product-template-v2 .product-v2__jump-nav {
    scroll-snap-type: inline proximity;
  }

  .product-template-v2 .product-v2__jump-nav a {
    scroll-snap-align: start;
  }

  .product-template-v2 .product-v2__offer article {
    grid-template-areas:
      "rank merchant"
      "prices prices"
      "fulfilment fulfilment"
      "action action";
  }

  .product-template-v2 .product-v2__offer-action a {
    width: 100%;
  }

  .product-template-v2 .product-v2__history-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-template-v2 .product-v2__review-list header time {
    width: 100%;
    margin-inline-start: 0;
  }
}

@media (max-width: 22.5rem) {
  .product-template-v2 .product-v2__offer article {
    grid-template-areas:
      "rank"
      "merchant"
      "prices"
      "fulfilment"
      "action";
    grid-template-columns: minmax(0, 1fr);
  }

  .product-template-v2 .product-v2__merchant {
    justify-items: start;
    text-align: start;
  }

  .product-template-v2 .product-v2__offer-prices,
  .product-template-v2 .product-v2__fulfilment {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-template-v2 .product-v2__table-wrap th,
  .product-template-v2 .product-v2__table-wrap td {
    display: block;
    width: 100%;
  }

  .product-template-v2 .product-v2__table-wrap th {
    padding-block-end: 0.25rem;
    border-block-end: 0;
  }

  .product-template-v2 .product-v2__table-wrap td {
    padding-block-start: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-template-v2 *,
  .product-template-v2 *::before,
  .product-template-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .product-template-v2 .product-v2__hero,
  .product-template-v2 .product-v2__section,
  .product-template-v2 .product-v2__offers,
  .product-template-v2 .product-v2__related-grid article {
    border-color: var(--text-primary, #10251b);
  }
}

@media (forced-colors: active) {
  .product-template-v2 .product-v2__status-dot,
  .product-template-v2 .product-v2__histogram-track > span {
    background: CanvasText;
  }

  .product-template-v2 .product-v2__primary-action,
  .product-template-v2 .product-v2__offer-action a {
    border: 1px solid ButtonText;
  }
}

@supports not (backdrop-filter: blur(1rem)) {
  .product-template-v2 .product-v2__jump-nav {
    background: var(--surface-primary, #fff);
  }
}
