/* Only new retailer actions; no header, form or quantity styling. */
a.retailer-buy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .75rem 1rem;
  border: 1px solid #164b43;
  border-radius: .3rem;
  background: #164b43;
  color: #fff9ed !important;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
a.retailer-buy-link:hover { background: #103c35; }
a.retailer-buy-link:focus-visible, .retailer-browse a:focus-visible { outline: 3px solid #d7a65c; outline-offset: 3px; }
.retailer-variant-note { font-size: .8rem; line-height: 1.45; }
.retailer-browse { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #ffffff40; }
.retailer-browse a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 750; line-height: 1.4; text-underline-offset: .2em; }
.retailer-browse p { margin: .3rem 0 0; font-size: .78rem; line-height: 1.4; }
@media print { .retailer-buy-link, .retailer-browse, .retailer-variant-note { display: none !important; } }

/* Local product media and separate retailer choices, within existing cards only. */
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.45;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  padding: .5rem;
  box-sizing: border-box;
  border: 1px solid #ded8c9;
  border-radius: .3rem;
  background: #f7f3ea;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 182px;
  object-fit: contain;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail-caption {
  margin-top: .35rem;
  color: #485a50;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail-unavailable {
  margin: 0;
  color: #485a50;
  font-size: 14px;
  text-align: center;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail [hidden] {
  display: none !important;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .retailer-alternatives,
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .retailer-alternative {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  max-width: 100%;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .retailer-alternatives {
  gap: .8rem;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) a.retailer-alternative-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  box-sizing: border-box;
  border: 1px solid #164b43;
  border-radius: .3rem;
  color: #164b43;
  background: #f7f3ea;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) a.retailer-alternative-link:hover {
  background: #e7eadc;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) a.retailer-alternative-link:focus-visible {
  outline: 3px solid #d7a65c;
  outline-offset: 3px;
}
:is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .retailer-alternative-note {
  margin: 0;
  color: #485a50;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media print {
  :is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .product-thumbnail,
  :is(.paint-product-card, .screed-shopping-card, .tile-shopping-card, .paving-shopping-card) .retailer-alternatives {
    display: none !important;
  }
}

/* Keep general supplier choices together without spreading the form layout. */
.retailer-browse-choices { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.retailer-browse-choices a { max-width: 100%; overflow-wrap: anywhere; }
