/* Shared IAS website link. Position depends on the viewport, not page length. */
.floating-webshop-link {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 52px;
  min-height: 164px;
  padding: 16px 12px;
  border: 2px solid var(--ink, #172c32);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: var(--green, #a8d550);
  color: var(--ink, #172c32);
  box-shadow: 0 5px 22px rgba(23, 44, 50, .24);
  font-family: var(--body, Arial, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.floating-webshop-link:hover {
  background: #b8e369;
  color: var(--ink, #172c32);
  box-shadow: 0 7px 26px rgba(23, 44, 50, .32);
}

.floating-webshop-link:focus-visible {
  outline: 3px solid #172c32;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff, 0 7px 26px rgba(23, 44, 50, .32);
}

.floating-webshop-link__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.floating-webshop-link svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.floating-webshop-link .floating-webshop-link__external {
  width: 16px;
  height: 16px;
}

/* Keep reading and form content clear of the tab when page margins are small. */
@media (max-width: 1360px) {
  main .section-shell,
  .site-footer .section-shell { padding-inline-end: 28px; }
}

@media (max-width: 700px) {
  main .section-shell,
  .site-footer .section-shell { padding-inline-end: 36px; }
  .floating-webshop-link {
    gap: 8px;
    width: 46px;
    min-height: 148px;
    padding: 12px 10px;
    font-size: 15px;
  }
}

@media (max-height: 420px) and (max-width: 1360px) {
  main .section-shell,
  .site-footer .section-shell { padding-inline-end: 112px; }
}

/* Keep the menu reachable in a short landscape window. */
@media (max-height: 420px) {
  .floating-webshop-link {
    flex-direction: row;
    width: auto;
    min-height: 48px;
    padding: 12px 14px;
    gap: 8px;
  }
  .floating-webshop-link__label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .floating-webshop-link .floating-webshop-link__external {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-webshop-link { transition: none; }
}

@media (forced-colors: active) {
  .floating-webshop-link {
    color: ButtonText;
    background: ButtonFace;
    border-color: ButtonText;
  }
}

@media print {
  .floating-webshop-link { display: none !important; }
  main .section-shell,
  .site-footer .section-shell { padding-inline-end: 0; }
}
