/* =====================================================================
   v33: kommentarer med stjerner
   ===================================================================== */
.comments {
  margin: 32px 0 8px;
  padding-top: 24px;
  border-top: 1.5px solid var(--rule);
}
.cm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.cm-head .section-h {
  margin: 0 !important;
}
.cm-count {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--stone);
}
.cm-avg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.cm-avg b {
  font-size: 18px;
}
.cm-stars {
  display: inline-flex;
  gap: 1px;
  color: #b07d12;
  vertical-align: middle;
}
.cm-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cm {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  animation: riseIn 300ms ease backwards;
}
.cm-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.cm-name {
  font-size: 15.5px;
}
.cm-time {
  font-size: 13.5px;
  color: var(--stone);
  margin-left: auto;
}
.cm-text {
  margin: 8px 0 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15.5px;
}
.cm-report {
  font-size: 13px !important;
  color: var(--stone) !important;
  font-weight: 500 !important;
}
.cm-form {
  background: var(--wash);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.cm-form h4 {
  margin: 0 0 4px;
  font-size: 17px;
}
.cm-rate {
  border: 0;
  margin: 0;
  padding: 0;
}
.cm-rate legend {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  padding: 0;
}
.cm-starpick {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}
.cm-starpick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cm-starpick label {
  cursor: pointer;
  color: #cfc4b6;
  padding: 4px;
  border-radius: 6px;
  transition:
    color 150ms ease,
    transform 150ms ease;
}
.cm-starpick label svg {
  width: 30px;
  height: 30px;
}
.cm-starpick label:hover,
.cm-starpick label:hover ~ label,
.cm-starpick input:checked ~ label {
  color: #b07d12;
}
.cm-starpick label:active {
  transform: scale(0.9);
}
.cm-starpick input:focus-visible + label {
  outline: 3px solid var(--garnet);
  outline-offset: 1px;
}
.cm-l {
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
}
.cm-form textarea {
  resize: vertical;
  min-height: 110px;
  font: inherit;
  padding: 12px;
}
.cm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.cm-rules {
  margin: 4px 0 0;
  font-size: 13.5px !important;
}
.cm-msg {
  margin: 0;
  font-weight: 600;
  min-height: 1em;
}
.cm-msg.err {
  color: #a52a1f;
}
.cm-msg.ok {
  color: #2e6b3a;
}
@media (max-width: 760px) {
  .cm-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cm-foot .btn {
    width: 100%;
  }
  .cm-time {
    margin-left: 0;
    flex-basis: 100%;
  }
}
