header .seller-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
}

/* Size the link to the printed mark, whose bounds in the 162 × 115 reference are
   (32, 21) to (133, 113). The original lettering and colours stay in the image. */
header .seller-certificate,
.ahcell-popup .ap-seller-certificate {
  --seller-unit: .76px;
  position: relative;
  display: block;
  flex: none;
  width: calc(101 * var(--seller-unit));
  height: calc(92 * var(--seller-unit));
  line-height: 0;
  background: transparent;
}
.shortcut-cert .seller-certificate-art {
  --seller-unit: 1px;
  position: relative;
  display: block;
  width: 100%;
  height: 125px;
  flex-shrink: 0;
}
header .seller-certificate img,
.ahcell-popup .ap-seller-certificate img,
.shortcut-cert .seller-certificate-art img {
  display: block;
  position: absolute;
  left: calc(-32 * var(--seller-unit));
  top: calc(-21 * var(--seller-unit));
  width: calc(162 * var(--seller-unit));
  height: calc(115 * var(--seller-unit));
  max-width: none;
  max-height: none;
  margin: 0;
  pointer-events: none;
  /* Trace the outside of the coloured ring, including the straight bottom of
     the seller label. This removes the rectangular reference backdrop. */
  clip-path: polygon(
    57.10% 18.70%, 59.57% 19.57%, 63.27% 21.30%, 66.98% 23.91%, 70.06% 26.52%,
    73.15% 30.00%, 75.62% 34.35%, 78.09% 39.57%, 79.94% 44.78%, 81.17% 50.87%,
    81.79% 56.96%, 81.79% 61.30%, 81.79% 66.52%, 81.17% 71.74%, 79.94% 76.96%,
    78.09% 82.17%, 75.62% 87.39%, 73.15% 91.74%, 70.68% 95.22%, 67.45% 97.65%,
    34.20% 97.65%, 31.79% 95.22%, 28.70% 91.74%, 26.23% 87.39%, 23.77% 82.17%,
    22.53% 76.96%, 21.30% 71.74%, 20.68% 66.52%, 20.06% 61.30%, 20.68% 56.96%,
    21.30% 50.87%, 22.53% 44.78%, 23.77% 39.57%, 26.23% 34.35%, 29.32% 30.00%,
    31.79% 26.52%, 34.88% 23.91%, 38.58% 21.30%, 42.28% 19.57%, 44.75% 18.70%
  );
}
.shortcut-cert .seller-certificate-art img {
  left: calc(50% - 82.5 * var(--seller-unit));
  top: calc(50% - 67 * var(--seller-unit));
}
.ahcell-popup .ap-seller-certificate {
  --seller-unit: .73px;
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 8px;
}
.ahcell-popup:not(:has(.ap-image)) .ap-seller-certificate {
  position: relative;
  inset: auto;
  margin: 8px 0 0 12px;
}
header .seller-certificate:focus-visible,
.ahcell-popup .ap-seller-certificate:focus-visible {
  outline: 3px solid #135ee9;
  outline-offset: 2px;
}
@media (max-width: 850px) {
  header .wrap.header { column-gap: 8px; }
  header .seller-header-actions { gap: 6px; }
  header .seller-certificate { --seller-unit: .61px; }
  .shortcut-cert .seller-certificate-art { height: 104px; }
}
@media (max-width: 420px) {
  header .wrap.header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: calc(100% - 22px);
    column-gap: 6px;
  }
  header .wrap.header .brand { min-width: 0; gap: 5px; }
  header .wrap.header .brand .official-logo { flex: 0 1 100px; width: 100px; min-width: 0; }
  header .wrap.header .brand .brand-store { flex: none; padding-left: 5px; }
  header .seller-header-actions { gap: 5px; }
  header .seller-header-actions .header-cta { white-space: nowrap; padding-inline: 8px; }
}
@media (max-width: 359px) {
  header .wrap.header { width: calc(100% - 14px); column-gap: 4px; }
  header .seller-header-actions .header-cta span[aria-hidden="true"] { display: none; }
}
