.pinGeneratorPin {
  text-align: center;
  font-size: 11px;
}

.pinGeneratorLink {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  opacity: 0.85;
}

.pinGeneratorLink:hover,
.pinGeneratorLink:focus {
  color: #27c3a6;
  text-decoration: underline;
  opacity: 1;
}

.generated-pin-in-post {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* Quiet dofollow credit — sits under the pin, easy to miss unless you look */
.pg-made-with-text {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.2;
  color: #a7aaad;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.pingen-pin-and-share-button {
  position: relative;
  width: min(267px, 100%);
  margin: 0 auto;
  display: block;
  line-height: 0;
  border-radius: 4px;
}

/* Pin It overlay — only visible on hover/focus */
.pingen-pin-and-share-button .pg-pin-it-button {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pingen-pin-and-share-button:hover .pg-pin-it-button,
.pingen-pin-and-share-button:focus-within .pg-pin-it-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pingen-pin-and-share-button .pg-pin-it-button img {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
}

/* Fast custom tooltip (native title= is ~1–2s and not configurable) */
.pingen-pin-and-share-button .pg-pin-it-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1d2327;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.08s ease 0.05s, visibility 0.08s ease 0.05s;
  z-index: 3;
}

.pingen-pin-and-share-button .pg-pin-it-button:hover::after,
.pingen-pin-and-share-button .pg-pin-it-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
