.post-feedback-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 1rem;
}

.post-feedback-row .comment-by-email {
  flex: 1;
  margin-top: 0;
}

.post-like-form {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.post-like-button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  height: calc(1.2em + 1.2rem + 2px);
  min-height: calc(1.2em + 1.2rem + 2px);
  padding: 0 0.9rem;
  border: 1px solid var(--bg-3);
  border-radius: 999px;
  background: transparent;
  color: var(--tx-3);
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.post-like-button:hover:not(:disabled) {
  background: var(--bg);
  color: var(--tx-2);
}

.post-like-button:disabled {
  cursor: default;
}

.post-like-heart {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-image: url("/assets/images/icons/heart.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("/assets/images/icons/heart.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  transform-origin: center;
}

.post-like-heart.is-bouncing {
  animation: like-heart-bounce 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.post-like-count {
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.post-like-form.is-liked .post-like-button {
  color: #d53a52;
  border-color: rgba(213, 58, 82, 0.2);
  background: rgba(213, 58, 82, 0.08);
}

.post-like-count.is-hidden {
  display: none;
}

.post-like-message {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  margin: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #d53a52;
}

.like-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--particle-size);
  height: var(--particle-size);
  margin-left: calc(var(--particle-size) * -0.5);
  margin-top: calc(var(--particle-size) * -0.5);
  pointer-events: none;
  opacity: 0;
  background-color: #d53a52;
  mask-image: url("/assets/images/icons/heart.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("/assets/images/icons/heart.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  animation: like-particle-float var(--duration) ease-out var(--delay) forwards;
}

@keyframes like-particle-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg);
  }

  15% {
    opacity: 0.95;
    transform: translate3d(calc(var(--drift-x) * 0.2), -10px, 0) scale(1) rotate(-8deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), -64px, 0) scale(0.85) rotate(12deg);
  }
}

@keyframes like-heart-bounce {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.32);
  }

  60% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .post-feedback-row {
    align-items: stretch;
    gap: 0.5rem;
  }

  .post-like-button {
    min-width: 42px;
    padding-inline: 0.8rem;
  }
}
