/* Community Feedback */

.community-feedback {
  --feedback-purple: #6c3baa;
  --feedback-blue: #3273dc;
  --feedback-text: #363636;
  --feedback-muted: #5c6875;
  --feedback-heading: #14285a;
  --feedback-surface: rgb(252 239 221 / 94%);
  --feedback-success: #eaf8ee;
  --feedback-success-border: #42a85a;

  width: min(100%, 980px);
  padding: clamp(20px, 3vw, 28px);
  color: var(--feedback-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.45;
  text-align: left;
}

.community-feedback:not(.billboard-card) {
  margin-bottom: 22px;
  border: 1px solid rgb(108 59 170 / 18%);
  border-radius: 10px;
  background: var(--feedback-surface);
  box-shadow: 0 8px 22px rgb(0 0 0 / 13%);
}

.community-feedback.community-feedback-snap-inline {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  box-sizing: border-box;
  background: #ffaed7;
}

.community-feedback.community-feedback-brand-inline {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  box-sizing: border-box;
  background: #ffaed7;
}

.brand-sugarpop-signature {
  margin: 0 0 12px;
}

.snap-sugarpop-signature {
  margin-bottom: 12px;
}

.community-feedback[hidden] {
  display: none;
}

.community-feedback-heading {
  margin-bottom: 8px;
}

.community-feedback-heading .billboard-section-label,
.community-feedback-heading .text-purple,
.community-feedback-heading p {
  margin: 0;
  color: var(--feedback-purple);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-transform: uppercase;
}

.community-feedback-status {
  display: none;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgb(245 247 251 / 92%);
  color: #43505f;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

.community-feedback-status.is-visible {
  display: block;
}

.community-feedback-status.is-success {
  border-color: var(--feedback-success-border);
  background: var(--feedback-success);
  color: #205f30;
}

.community-feedback-status.is-error {
  border-color: #cc5968;
  background: #fff0f2;
  color: #8d1727;
}

.community-feedback-context {
  margin: 6px 0 16px;
  color: var(--feedback-muted);
  font-size: 1.08rem;
  line-height: 1.42;
}

.community-feedback-reaction-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgb(17 17 17 / 10%);
  border-bottom: 1px solid rgb(17 17 17 / 10%);
}

.community-feedback-reaction-group {
  display: grid;
  min-width: 0;
  grid-template-columns: max-content auto;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.community-feedback-reaction-label {
  margin: 0;
  color: var(--feedback-heading);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.community-feedback-options {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, 48px);
  gap: 8px;
  align-items: center;
}

.community-feedback-option {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #eef4ff;
  color: #111;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: inherit;
}

.community-feedback-option:hover,
.community-feedback-option:focus-visible {
  border-color: var(--feedback-purple);
  background: #f4efff;
  outline: none;
  transform: translateY(-1px);
}

.community-feedback-option.is-selected {
  border-color: var(--feedback-purple);
  background: #fff1ad;
  box-shadow: 0 0 0 3px rgb(108 59 170 / 18%);
}

.community-feedback-option:disabled {
  cursor: wait;
  opacity: 0.6;
}

.community-feedback-emoji {
  font-size: 1.65rem;
  line-height: 1;
}

.community-feedback .community-feedback-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #26323f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 17px;
  text-align: center;
}

.community-feedback-actions {
  display: flex;
  min-height: 50px;
  padding: 13px 0 4px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.community-feedback-response-total {
  color: var(--feedback-muted);
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
}

.community-feedback-action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.community-feedback-comments-trigger,
.community-feedback-comment-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--feedback-blue);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.community-feedback-comment-trigger {
  min-height: 42px;
  padding: 9px 17px;
  border: 2px solid #aeb9c6;
  border-radius: 8px;
  background: #fff;
  color: #425063;
}

.community-feedback-comments-trigger:hover,
.community-feedback-comments-trigger:focus-visible {
  text-decoration: underline;
}

.community-feedback-comment-trigger:hover,
.community-feedback-comment-trigger:focus-visible {
  border-color: var(--feedback-purple);
  background: #f4efff;
  color: var(--feedback-purple);
  outline: none;
}

.community-feedback-comments {
  padding-top: 14px;
  border-top: 1px solid rgb(17 17 17 / 10%);
}

.community-feedback-comment-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.community-feedback-comment {
  min-width: 0;
  padding: 14px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #b4d9ef;
  color: #000;
}

.community-feedback-comment-text {
  margin: 0;
  color: #000;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.community-feedback-comment-byline {
  margin: 7px 0 0;
  color: #000;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.community-feedback-read-all {
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #aeb9c6;
  border-radius: 8px;
  background: #fff;
  color: #26323f;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.community-feedback-read-all:hover,
.community-feedback-read-all:focus-visible {
  border-color: var(--feedback-purple);
  outline: none;
}

.community-feedback-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgb(17 17 17 / 10%);
}

.community-feedback-comment-heading {
  margin: 0 0 10px;
  color: var(--feedback-heading);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.3;
}

.community-feedback-textarea,
.community-feedback-input {
  width: 100%;
  border: 1px solid #aeb9c6;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
}

.community-feedback-textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

.community-feedback-input {
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 11px;
}

.community-feedback-name-field[hidden] {
  display: none;
}

.community-feedback-form-controls {
  display: flex;
  margin-top: 12px;
  gap: 10px 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.community-feedback-check {
  display: inline-flex;
  color: #52606d;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}

.community-feedback-check input {
  margin: 2px 0 0;
}

.community-feedback-form-actions {
  display: flex;
  margin-top: 14px;
  gap: 10px;
  align-items: center;
}

.community-feedback-submit,
.community-feedback-cancel {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
}

.community-feedback-submit {
  border: 0;
  background: #111;
  color: #fff;
}

.community-feedback-submit:hover,
.community-feedback-submit:focus-visible {
  background: var(--feedback-purple);
}

.community-feedback-cancel {
  border: 1px solid #aeb9c6;
  background: #fff;
  color: #26323f;
}

.community-feedback-cancel:hover,
.community-feedback-cancel:focus-visible {
  border-color: var(--feedback-purple);
}

@media (width <= 900px) {
  .community-feedback {
    padding: 20px;
  }

  .community-feedback-reaction-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .community-feedback-reaction-group {
    grid-template-columns: max-content auto;
    gap: 10px;
    justify-content: start;
  }

  .community-feedback-reaction-label {
    text-align: left;
  }
}

@media (width <= 700px) {
  .community-feedback {
    padding: 19px;
    font-size: 1.05rem;
  }

  .community-feedback-heading .billboard-section-label,
  .community-feedback-heading .text-purple,
  .community-feedback-heading p {
    font-size: 0.92rem;
  }

  .community-feedback-context {
    margin-bottom: 13px;
    font-size: 1rem;
  }

  .community-feedback-reaction-bar {
    gap: 10px;
    padding: 14px 0;
  }

  .community-feedback-reaction-label {
    font-size: 1rem;
  }

  .community-feedback-options {
    grid-template-columns: repeat(5, 44px);
  }

  .community-feedback-option {
    width: 44px;
    height: 44px;
  }

  .community-feedback-emoji {
    font-size: 1.5rem;
  }

  .community-feedback-actions {
    min-height: 48px;
    padding-top: 12px;
  }

  .community-feedback-response-total {
    font-size: 0.92rem;
  }

  .community-feedback-comment-trigger {
    min-height: 40px;
    padding: 8px 14px;
  }

  .community-feedback-comment-list {
    grid-template-columns: 1fr;
  }

  .community-feedback-form-controls {
    flex-direction: column;
  }
}

@media (width <= 390px) {
  .community-feedback {
    padding-inline: 16px;
  }

  .community-feedback-reaction-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .community-feedback-options {
    grid-template-columns: repeat(5, 40px);
    gap: 5px;
    justify-content: space-between;
  }

  .community-feedback-option {
    width: 40px;
    height: 40px;
  }

  .community-feedback-emoji {
    font-size: 1.38rem;
  }

  .community-feedback-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-feedback-action-buttons {
    width: 100%;
  }

  .community-feedback-comment-trigger {
    width: 100%;
  }
}

.community-feedback-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}