@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root { --helpful-row-h: 44px; }

.helpful {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 17px;
  width: 678px;
  max-width: 100%;
  min-width: 245px;
  margin: 50px auto;                /* Adds space above and below the module */
  padding: 15px 30px;
  border-radius: 5px;
  background: transparent;          /* Transparent background */
  color: #000;                      /* Default text color black */
  border: 1px solid #ddd;           /* Light gray stroke around container */
}

.helpful p {
  margin: 0;
  padding: 0 !important;
}

.helpful__question {
  margin: 0 12px 0 0;
  font-size: 24px;
  font-weight: 400;
  color: #000;                      /* Make “Was this helpful” text black */
  display: inline-flex;
  align-items: center;
  height: var(--helpful-row-h);
  line-height: 24px;
}

.helpful__group {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}

.helpful__btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: #000;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 80px;
  max-width: 100px;
  padding: 10px 20px;
  border-radius: 5px;
  height: var(--helpful-row-h);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.helpful__btn:hover,
.helpful__btn:focus-visible {
  transform: scale(1.03);
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.12);
  outline: none;
}

.helpful__thanks {
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  color: #000;                      /* Match text color */
  margin: 0;
  height: var(--helpful-row-h);
  line-height: var(--helpful-row-h);
  opacity: 0;
  transition: opacity .3s ease;
}

.helpful__thanks.is-visible {
  opacity: 1;
}

.helpful__counts {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .helpful__btn { transition: none; }
  .helpful__btn:hover,
  .helpful__btn:focus-visible { transform: none; }
  .helpful__thanks { transition: none; }
}