/*
 * Buy button component — pairs with app/views/shared/_buy_button.html.erb
 * Vintages cart-icon button; always rendered inside a .wines-table cell.
 */
.wines-table .buy-cell {
  text-align: center;
  width: 50px;
}

.btn.btn-buy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  font-size: var(--font-size-sm);
  line-height: 1;
}

.btn-buy-icon svg {
  display: block;
  flex-shrink: 0;
}

/* ===== Mobile: expand to a full-width labelled button inside the cell ===== */
@media (max-width: 768px) {
  .wines-table .buy-cell,
  .wines-table .actions-cell {
    display: block;
    text-align: left;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    width: auto;
  }

  .wines-table .buy-cell .btn-buy-icon,
  .wines-table .actions-cell .btn-buy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    height: auto;
    min-height: var(--tap-target-min);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }

  .wines-table .buy-cell .btn-buy-icon::after,
  .wines-table .actions-cell .btn-buy-icon::after {
    content: "Buy on Vintages";
    font-weight: 500;
  }
}
