:is(.mmm-es-buy, .mmm-es-sold-out) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.mmm-es-buy {
  background: var(--mmm-es-ink, #192b2c);
  color: #fff;
}

.mmm-es-buy:hover {
  background: var(--mmm-es-teal-dark, #126c69);
  color: #fff;
}

.mmm-es-sold-out {
  border-color: var(--mmm-es-rule, #dce5e4);
  background: #fff;
  color: var(--mmm-es-muted, #4f6162);
}

.mmm-es-sold-out:hover {
  text-decoration: underline;
}

:is(.mmm-es-buy, .mmm-es-sold-out):focus-visible {
  outline: 2px solid var(--mmm-es-teal, #168783);
  outline-offset: 3px;
}

/* The same purchase treatment applies to the shared card and its Bricks counterpart. */
html body :is(.brxe-ygvacj.brxe-ygvacj, .mmm-product-card.mmm-product-card)
  :is(.brxe-tawfzf, .mmm-card-actions) :is(a.mmm-es-buy, a.add_to_cart_button, a.product_type_variable, a.product_type_grouped, a.mmm-es-sold-out) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 44px !important;
  min-height: 44px !important;
  min-width: min(110px, 100%);
  padding: 0 6px !important;
  border: 1px solid var(--mc-ink, #211f1c) !important;
  border-radius: 0 !important;
  background: var(--mc-ink, #211f1c) !important;
  color: var(--mc-paper, #fbf9f5) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

html body :is(.brxe-ygvacj.brxe-ygvacj, .mmm-product-card.mmm-product-card)
  :is(.brxe-tawfzf, .mmm-card-actions) a.mmm-es-sold-out {
  height: auto !important;
  padding-block: 5px !important;
  background: transparent !important;
  color: var(--mc-ink, #211f1c) !important;
}

@media (max-width: 767px) {
  html body :is(.brxe-ygvacj.brxe-ygvacj, .mmm-product-card.mmm-product-card)
    :is(.brxe-tawfzf, .mmm-card-actions) :is(a.mmm-es-buy, a.add_to_cart_button, a.product_type_variable, a.product_type_grouped, a.mmm-es-sold-out) {
    min-width: 0;
    font-size: 11px !important;
  }
}
