/* PPP recipe Cooked button 1.2.0. Scoped to the personal recipe control. */
.ppp-recipe-cooked[hidden],
.ppp-recipe-cooked:not([data-cooked-ready]) {
  display: none !important;
}

.ppp-recipe-cooked {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  margin: 16px auto 0;
  color: #0e3857;
  text-align: center;
}

.ppp-recipe-cooked .ppp-recipe-cooked__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: auto;
  min-width: 130px;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
}

.ppp-recipe-cooked .ppp-recipe-cooked__button:hover:not(:disabled) {
  background: rgba(14, 56, 87, .08);
}

.ppp-recipe-cooked .ppp-recipe-cooked__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ppp-recipe-cooked .ppp-recipe-cooked__button:disabled {
  cursor: default;
  opacity: .8;
}

.ppp-recipe-cooked .ppp-recipe-cooked__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 27px;
  min-height: 25px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0e3857;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.ppp-recipe-cooked .ppp-recipe-cooked__status {
  /* Keep save feedback available to screen readers without visible subtext. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ppp-custom-3-hero-content .ppp-recipe-cooked,
.wprm-recipe-header-container .ppp-recipe-cooked {
  color: #fff;
}

.ppp-custom-3-hero-content .ppp-recipe-cooked__count,
.wprm-recipe-header-container .ppp-recipe-cooked__count {
  background: #fff;
  color: #0e3857;
}

.ppp-custom-3-hero-content .ppp-recipe-cooked__button:hover:not(:disabled),
.wprm-recipe-header-container .ppp-recipe-cooked__button:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
}

.ppp-recipe-cooked.is-cooked .ppp-recipe-cooked__button {
  opacity: 1;
}

@media print {
  .ppp-recipe-cooked { display: none !important; }
}

/* A viewport overlay keeps the decorative burst clear of clipped recipe cards. */
.ppp-cooked-celebration {
  position: fixed;
  inset: 0;
  z-index: 100010;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.ppp-cooked-celebration__particle {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.ppp-cooked-celebration__particle.is-round { border-radius: 50%; }
.ppp-cooked-celebration__particle.is-ribbon { border-radius: 2px; }

@media (prefers-reduced-motion: reduce), print {
  .ppp-cooked-celebration { display: none !important; }
}
