/* The site's existing Yandex Market artwork; original product URLs are retained. */
.gx-market-button,
.gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]) {
  --gx-market-icon: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  inline-size: fit-content;
  max-inline-size: 100%;
  min-inline-size: min(100%, 300px);
  min-block-size: 60px;
  padding: 12px 18px;
  margin: 12px 0;
  border: 0;
  border-radius: 12px;
  background: #ffcf32;
  color: #191708;
  font: 650 16px/1.35 Inter, system-ui, sans-serif;
  text-align: start;
  text-decoration: none;
  box-shadow: none;
  vertical-align: middle;
  white-space: normal;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .16s ease, transform .16s ease;
}
.gx-market-button::before,
.gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"])::before {
  content: "";
  display: block;
  flex: 0 0 var(--gx-market-icon);
  inline-size: var(--gx-market-icon);
  block-size: var(--gx-market-icon);
  border-radius: 10px;
  background-color: #fff;
  background-image: url('../images/partners/ymarket.png');
  background-repeat: no-repeat;
  background-size: calc(var(--gx-market-icon) * 3.5) calc(var(--gx-market-icon) * 1.625);
  background-position: calc(var(--gx-market-icon) * -.05) calc(var(--gx-market-icon) * -.325);
}
.gx-market-button::after,
.gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"])::after {
  content: "";
  flex: 0 0 18px;
  inline-size: 18px;
  block-size: 18px;
  margin-inline-start: auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gx-market-button:hover,
.gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]):hover {
  background: #ffda59;
  color: #191708;
  transform: translateY(-1px);
  text-decoration: none;
}
.gx-market-button:focus-visible,
.gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]):focus-visible {
  outline: 3px solid #fff0a8;
  outline-offset: 4px;
}
.gx-market-button > span { min-inline-size: 0; overflow-wrap: break-word; }
.gx-site .gx-market-action-row { margin-block: 24px; }
.gx-market-action-row > br { display: none; }
.gx-market-action-row > .gx-market-button { margin: 0; }
.gx-market-button small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; font-weight: 450; }
.gx-market-button--quiet,
.gx-market-button--quiet:hover { background: #192331; color: #ffda59; }
.gx-market-button--quiet:hover { background: #243244; }
.gx-market-button--compact { --gx-market-icon: 32px; min-block-size: 60px; padding: 10px 14px; gap: 10px; background: #17212e; color: #f5f7fc; }
.gx-market-button--compact:hover { background: #233144; color: #fff; }
.gx-market-button--compact small { color: #a4b3c8; }
.gx-market-button--compact::after { color: #ffcf32; }
@media (max-width: 680px) {
  .gx-market-button,
  .gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]) {
    inline-size: 100%;
    min-inline-size: 0;
    padding-inline: 14px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gx-market-button,
  .gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]) { transition: none; }
  .gx-market-button:hover,
  .gx-site a.mydwn:is([href^="https://market.yandex.ru/"],[href^="http://market.yandex.ru/"]):hover { transform: none; }
}
