.ppa-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
}

.ppa-card-status__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.ppa-card-status--available .ppa-card-status__label {
  background: rgba(27, 38, 20, 0.08);
  color: #36522c;
}

.ppa-card-status--unavailable .ppa-card-status__label {
  background: #fff1dc;
  color: #8a5412;
}

.ppa-card-status__alternatives {
  color: #62666e;
}

.ppa-card-status__remove {
  color: #2b2f38;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ppa-card-status__remove:hover,
.ppa-card-status__remove:focus {
  color: #8a5412;
}

.widget_shopping_cart .ppa-card-status {
  margin: 5px 0 0;
}

/* Credit-card availability indicator on product imagery. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.single-product .woocommerce-product-gallery {
  position: relative;
}

.ppa-product-card-badge {
  position: absolute;
  z-index: 7;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(27, 38, 20, 0.13);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.96);
  color: #1b2614;
  box-shadow: 0 3px 12px rgba(27, 38, 20, 0.1);
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  transition: max-width 180ms ease, gap 180ms ease, padding-right 180ms ease;
}

.ppa-product-card-badge svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ppa-product-card-badge__text {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  color: #1b2614;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: max-width 180ms ease, opacity 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ppa-product-card-badge:hover {
    gap: 6px;
    max-width: 190px;
    padding-right: 10px;
  }

  .ppa-product-card-badge:hover .ppa-product-card-badge__text {
    max-width: 145px;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .ppa-card-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .ppa-product-card-badge {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppa-product-card-badge,
  .ppa-product-card-badge__text {
    transition: none;
  }
}
