.ww-feedback-anchor {
  position: relative;
}

.ww-feedback-overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 1px 2px;
  border: 1px solid rgba(151, 163, 171, 0.32);
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 3px 10px rgba(29, 37, 44, 0.08);
  color: #1d252c;
  font-family: Arial, sans-serif;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.ww-feedback-button,
.ww-feedback-star {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #52616b;
  cursor: pointer;
}

.ww-feedback-button:hover,
.ww-feedback-button:focus-visible,
.ww-feedback-star:hover,
.ww-feedback-star:focus-visible {
  background: rgba(232, 243, 248, 0.72);
  color: #075985;
  outline: none;
}

.ww-feedback-button[aria-pressed="true"] {
  color: #0f766e;
  background: rgba(223, 247, 241, 0.68);
}

.ww-feedback-button[data-ww-action="like"][aria-pressed="true"] {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.68);
}

.ww-feedback-button[data-ww-action="like"][aria-pressed="true"] .ww-feedback-icon {
  fill: currentColor;
}

.ww-feedback-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ww-feedback-stars {
  display: inline-flex;
  gap: 0;
  padding: 0;
}

.ww-feedback-star {
  width: 11px;
  color: #7a8790;
  font-size: 12px;
}

.ww-feedback-star.is-selected {
  color: #b7791f;
}

.ww-feedback-count {
  position: absolute;
  right: -3px;
  bottom: -2px;
  min-width: 12px;
  padding: 1px 2px;
  border-radius: 999px;
  background: #075985;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.ww-feedback-score {
  min-width: 13px;
  color: #6b4e16;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.ww-feedback-count[hidden],
.ww-feedback-score[hidden] {
  display: none;
}

.ww-feedback-comment-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #cdd7dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 37, 44, 0.2);
}

.ww-feedback-comment-panel[hidden] {
  display: none;
}

.ww-feedback-comment-panel textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid #cdd7dd;
  border-radius: 6px;
  padding: 7px;
  color: #1d252c;
  font: 13px/1.35 Arial, sans-serif;
}

.ww-feedback-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.ww-feedback-comment-status {
  min-width: 0;
  color: #52616b;
  font-size: 12px;
}

.ww-feedback-send {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #075985;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .ww-feedback-overlay {
    bottom: 0;
    gap: 0;
    padding: 1px 2px;
  }

  .ww-feedback-button {
    width: 16px;
    height: 16px;
  }

  .ww-feedback-star {
    width: 10px;
    height: 16px;
    font-size: 11px;
  }

  .ww-feedback-score {
    min-width: 12px;
    font-size: 8px;
  }
}
