/* ==========================================================================
   ARTICLE BUY BOX — UI v1 component
   Affiliate CTA "Подобрать инструменты": layout, button states and mobile.
   Final typography roles remain in typography.css.
   ========================================================================== */

/* Legacy editorial affiliate styles retained for backwards compatibility. */
.article-affiliate{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin:34px 0 0;
  padding:20px;
  border-radius:12px;
  background:#f4f6f5;
}
.article-affiliate-button{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border-radius:8px;
  background:var(--green);
  color:#fff;
  font-weight:700;
}
.article-affiliate-button:hover{filter:brightness(.94);color:#fff}
.article-affiliate small{color:var(--muted);font-size:11px;line-height:1.4}

/* Current article template buy-box baseline. */
.article-buy-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 18px;
  align-items:center;
  margin:-8px 0 34px;
  padding:17px 18px;
  border:1px solid var(--line);
  border-left:3px solid var(--green);
  border-radius:11px;
  background:#fff;
  box-shadow:0 2px 10px rgba(16,35,45,.025);
}
.article-buy-box>div>span{
  display:block;
  margin-bottom:5px;
  color:var(--green);
  font-size:var(--type-label);
  line-height:1.2;
  font-weight:900;
  letter-spacing:.55px;
}
.article-buy-box h2{margin:0 0 4px!important}
.article-buy-box p{
  margin:0;
  color:#65757d;
}
.article-affiliate-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 15px;
  border-radius:7px;
  background:var(--green);
  color:#fff;
  font-size:var(--type-ui);
  line-height:var(--leading-ui);
  font-weight:800;
  white-space:nowrap;
}
.article-affiliate-button:hover{color:#fff;filter:brightness(.95)}
.article-buy-box small{
  grid-column:1/-1;
  color:#7a878e;
  font-size:var(--type-label);
  line-height:var(--leading-small);
}

@media (min-width:1001px){
  .article-buy-box>div>span{
    font-size:9.5px;
  }
}

@media(max-width:700px){
  .article-buy-box{
    grid-template-columns:1fr;
    margin-top:-4px;
    padding:15px;
  }
  .article-affiliate-button{
    width:100%;
    white-space:normal;
    text-align:center;
  }
  .article-buy-box small{grid-column:auto}
}
