html[data-design-preview] .gp-product-buy .buy-card .buy-tariff-link,
html[data-design-preview] .gp-product-buy .buy-card .buy-tariff-link:hover {
  position: absolute;
  inset: 0;
  grid-area: auto;
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-size: 0;
}

html[data-design-preview] .gp-product-buy .buy-tariff-link:focus-visible,
html[data-design-preview] .gp-product-buy a.buy-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

html[data-design-preview] .gp-product-buy .buy-tariff-link:not([href]) {
  pointer-events: none;
}

.direct-buy-region-group + .direct-buy-region-group,
.direct-buy-tariff-group + .direct-buy-tariff-group {
  margin-block-start: var(--space-md);
}

html[data-design-preview] [data-direct-checkout] .gp-version-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

html[data-design-preview] [data-direct-checkout] .gp-version-option {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--gp-line);
  border-radius: 6px;
  background: var(--gp-surface);
  color: var(--gp-muted);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}

html[data-design-preview] [data-direct-checkout] .gp-version-option[aria-checked="true"] {
  border-color: var(--gp-gold);
  box-shadow: inset 0 0 0 1px var(--gp-gold);
  color: var(--gp-text);
}

html[data-design-preview] [data-direct-checkout] .gp-version-option[data-is-addon="true"] {
  grid-column: 1 / -1;
  border-style: dashed;
}

[data-direct-checkout] .direct-versions-ready :is(.direct-buy-region-group, .direct-buy-tariff-group)[hidden],
[data-direct-checkout] .direct-versions-ready :is(.direct-buy-region-group > .buy-note, .direct-buy-tariff-group > .buy-tariff-title) {
  display: none !important;
}

[data-direct-checkout] .direct-versions-ready .buy-tariff-groups {
  display: block;
}

html[data-design-preview] .related-grid .product-card--compact .product-card-link {
  min-height: 104px;
  flex-direction: row;
  padding-block: var(--space-md) !important;
  padding-inline: var(--space-md) 58px !important;
}

html[data-design-preview] .related-grid .product-card-compact-right {
  align-self: center;
}

html[data-design-preview] .related-grid .product-card-compact-heading {
  padding-inline-end: 0;
}

html[data-design-preview] .related-grid .product-card-badges:empty {
  display: none;
}

html[data-design-preview] .instruction-detail {
  --instruction-width: 1080px;
}

html[data-design-preview] .instruction-detail > :is(
  .article-hero, .article-cta, .article-reading, .related-products, .article-footer
) {
  max-width: var(--instruction-width);
  margin-inline: auto;
}

html[data-design-preview] .instruction-detail > .article-hero {
  margin-block: clamp(20px, 4vw, 44px) var(--space-lg);
  padding: 0;
  border: 0;
  text-align: start;
}

html[data-design-preview] .instruction-detail .article-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  overflow-wrap: anywhere;
}

html[data-design-preview] .instruction-detail .article-body {
  max-width: none;
  padding: clamp(16px, 3.5vw, 48px);
  min-width: 0;
}

html[data-design-preview] .instruction-detail .article-cta-row {
  justify-content: flex-start;
}

html[data-design-preview] .instruction-detail .article-cta-btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: .9rem;
  box-shadow: none;
}

.instruction-detail .article-sections {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
}

.instruction-detail .article-sections h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
}

.instruction-detail .article-sections ul {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-detail .article-sections a {
  display: block;
  padding-block: .3rem;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.instruction-detail .article-sections a:is(:hover, :focus-visible) {
  color: var(--color-accent);
}

.instruction-detail .article-content h2[id] {
  scroll-margin-block-start: var(--space-md);
}

@media (max-width: 640px) {
  html[data-design-preview] .related-grid .product-card--compact .product-card-link {
    min-height: 96px;
    padding-inline-end: 48px !important;
  }
}

@media (min-width: 900px) {
  .instruction-detail .article-reading--indexed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 24%);
    align-items: start;
    gap: var(--space-lg);
  }

  .instruction-detail .article-reading--indexed .article-body {
    grid-area: 1 / 1;
  }

  .instruction-detail .article-sections {
    grid-area: 1 / 2;
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    max-height: calc(100dvh - var(--header-height) - var(--space-xl));
    overflow-y: auto;
  }
}
