.lgt-card > .lgt-card-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

:is(#logitech-latest-products, #logitech-featured-products, .lgt-product-grid) .lgt-card-actions > :is(.lgt-stock-badge, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: auto;
  min-width: 0;
  max-width: calc((100% - 6px) / 2);
  min-height: 32px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 6px;
  font-size: 10px !important;
  line-height: 1.4 !important;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.lgt-card-actions > .lgt-stock-badge {
  gap: 4px;
}

.lgt-card-actions > .lgt-stock-badge::before {
  flex-basis: 4px;
  width: 4px;
  height: 4px;
}

:is(#logitech-latest-products, #logitech-featured-products, .lgt-product-grid) .lgt-card-actions > button[data-add] {
  width: 58%;
  max-width: calc(58% - 3px);
  padding: 1px 5px;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

@media (max-width: 549px) {
  :is(#logitech-latest-products, #logitech-featured-products, .lgt-product-grid) .lgt-card-actions > button[data-add] {
    font-size: 11px !important;
  }
}

:is(#logitech-latest-products, #logitech-featured-products, .lgt-product-grid) .lgt-card:has(> .lgt-card-actions) {
  --card-image-inset: 12px;
  padding-top: 0;
}

:is(#logitech-latest-products, #logitech-featured-products) .lgt-card:has(> .lgt-card-actions) {
  --card-image-inset: 10px;
}

.lgt-mobile-home :is(#logitech-latest-products, #logitech-featured-products) .lgt-card:has(> .lgt-card-actions) {
  --card-image-inset: 8px;
  padding-top: 0;
}

:is(#logitech-latest-products, #logitech-featured-products, .lgt-product-grid) .lgt-card:has(> .lgt-card-actions) > .lgt-card-image {
  width: auto;
  aspect-ratio: 1;
  max-height: none;
  align-self: stretch;
  margin-inline: calc(-1 * var(--card-image-inset));
  margin-bottom: 0;
  border-radius: 9px 9px 0 0;
}

@media (max-width: 549px) {
  .lgt-product-grid .lgt-card:has(> .lgt-card-actions) {
    --card-image-inset: 9px;
  }
}
