.pgrm-generated-resource-block {
  margin: 28px 0 12px;
  padding: 22px;
  border: 1px solid #d9e4ee;
  border-radius: 16px;
  background: #f7fbff;
  color: #1f2937;
}

.pgrm-generated-resource-block h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.pgrm-generated-resource-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e7f7ed;
  color: #0a6b2b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.pgrm-generated-details-list {
  margin: 14px 0;
  padding-left: 1.25rem;
}

.pgrm-generated-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.pgrm-generated-resource-button,
.pgrm-generated-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.pgrm-generated-resource-button {
  background: #2f5b91;
  color: #fff;
}

.pgrm-generated-resource-button:hover,
.pgrm-generated-resource-button:focus {
  color: #fff;
  text-decoration: none;
}

.pgrm-generated-resource-link {
  background: #fff;
  color: #2f5b91;
  border: 1px solid #bdd0e2;
}

@media (max-width: 600px) {
  .pgrm-generated-resource-block {
    padding: 18px;
  }

  .pgrm-generated-resource-actions,
  .pgrm-generated-resource-button,
  .pgrm-generated-resource-link {
    width: 100%;
  }
}

/* Sprint 6: keep migrated-product action buttons compact. */
.pgrm-generated-resource-button,
.pgrm-generated-resource-link {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.94rem;
}

/* Sprint 6: defensive product-category archive scrollbar guard.
   Some theme/plugin combinations create an inner full-height scrolling shell on product archives.
   Keep the browser viewport as the single vertical scroll container. */
body.tax-product_cat,
body.post-type-archive-product {
  overflow-y: auto !important;
}

body.tax-product_cat .wp-site-blocks,
body.tax-product_cat .site,
body.tax-product_cat #page,
body.tax-product_cat .site-content,
body.tax-product_cat .content-area,
body.tax-product_cat main,
body.post-type-archive-product .wp-site-blocks,
body.post-type-archive-product .site,
body.post-type-archive-product #page,
body.post-type-archive-product .site-content,
body.post-type-archive-product .content-area,
body.post-type-archive-product main {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
}

@media (max-width: 600px) {
  .pgrm-generated-resource-button,
  .pgrm-generated-resource-link {
    min-height: 38px;
  }
}
