.cd-reviews {
  padding: 2.5rem 0 3rem;
  flex-shrink: 0;
}

.cd-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cd-reviews-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.cd-reviews-summary {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-600);
}

.cd-reviews-avg {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  color: var(--gold-500);
}

.cd-star {
  color: rgba(18, 24, 32, 0.18);
}

.cd-starOn {
  color: var(--gold-500);
}

.cd-reviews-loading,
.cd-reviews-empty,
.cd-reviews-hint {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.1rem;
  border: 1px dashed var(--line);
  background: var(--white);
  color: var(--ink-600);
  font-size: 14px;
  line-height: 20px;
}

.cd-reviews-hint a {
  color: var(--navy-800);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-500);
}

.cd-review-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cd-review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem 1.1rem;
  font-size: 14px;
  line-height: 20px;
}

.cd-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.55rem;
}

.cd-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
  color: var(--gold-500);
}

.cd-review-who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.cd-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.6px solid var(--navy-800);
  color: var(--navy-800);
  background: var(--cream-100, #f7f4ee);
  flex-shrink: 0;
  overflow: hidden;
}

.cd-review-avatar:has(.cd-review-avatar-img) {
  border-color: transparent;
  background: transparent;
}

.cd-review-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cd-review-avatar-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.cd-review-author {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14px;
  line-height: 20px;
}

.cd-review-date {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-500);
}

.cd-review-aside {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.cd-review-menu {
  position: relative;
}

.cd-review-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
}

.cd-review-more:hover,
.cd-review-more[aria-expanded="true"] {
  background: rgba(15, 40, 70, 0.06);
  color: var(--navy-900);
}

.cd-review-menu-pop {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 4;
  min-width: 5.75rem;
  padding: 0.3rem 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.cd-review-menu-pop button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.cd-review-menu-pop button:hover {
  background: rgba(15, 40, 70, 0.05);
}

.cd-review-menu-pop [data-review-delete] {
  color: var(--ink-500);
}

.cd-review-editor {
  display: grid;
  gap: 0.65rem;
}

.cd-review-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 8rem;
}

.cd-review-editor textarea:focus {
  outline: none;
  border-color: rgba(196, 154, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.15);
}

.cd-review-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cd-review-editor-cancel {
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-700);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cd-review-body {
  margin: 0;
  white-space: pre-line;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-800);
}

.cd-review-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream-100, #f7f4ee);
}

.cd-review-form-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.cd-review-form-label {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy-900);
}

.cd-review-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-600);
}

.cd-rate {
  display: flex;
  gap: 0.15rem;
}

.cd-rate-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(18, 24, 32, 0.2);
  cursor: pointer;
}

.cd-rate-star.cd-rateOn,
.cd-rate-star:hover {
  color: var(--gold-500);
}

.cd-review-field textarea,
.cd-review-editor textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  min-height: 8rem;
}

.cd-review-field textarea:focus {
  outline: none;
  border-color: rgba(196, 154, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.15);
}

.cd-review-error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.cd-review-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cd-review-submit:hover:not(:disabled) {
  background: var(--navy-800);
}

.cd-review-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.cd-review-submitBusy {
  gap: 0.5rem;
  pointer-events: none;
}

.cd-review-submitStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cd-review-submitSpinner {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cd-review-spin 0.75s linear infinite;
}

.cd-review-submitDots {
  display: inline-flex;
  width: 1.1em;
  margin-left: 0.02em;
}

.cd-review-submitDots span {
  opacity: 0.25;
  animation: cd-review-dot 1.2s ease-in-out infinite;
}

.cd-review-submitDots span:nth-child(2) {
  animation-delay: 0.2s;
}

.cd-review-submitDots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes cd-review-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cd-review-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

/* Learn player / in-page composer modal */
.gwc-review-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.gwc-review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.72);
}

.gwc-review-modal-panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  max-height: min(88vh, 40rem);
  overflow: auto;
  border: 1px solid rgba(214, 179, 92, 0.28);
  border-radius: var(--radius-md, 10px);
  background: #0c1626;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
}

.gwc-review-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gwc-review-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.gwc-review-modal-close {
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm, 6px);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gwc-review-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gwc-review-modal-body {
  padding: 1rem 1.1rem 1.2rem;
}

.gwc-review-modal-body .cd-review-form {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  gap: 0.85rem;
}

.gwc-review-modal-body .cd-review-form-label {
  color: rgba(255, 255, 255, 0.9);
}

.gwc-review-modal-body .cd-rate-star {
  color: rgba(255, 255, 255, 0.22);
}

.gwc-review-modal-body .cd-rate-star.cd-rateOn,
.gwc-review-modal-body .cd-rate-star:hover {
  color: var(--gold-400, #d6b35c);
}

.gwc-review-modal-body .cd-review-field textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  min-height: 9rem;
}

.gwc-review-modal-body .cd-review-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.gwc-review-modal-body .cd-review-field textarea:focus {
  border-color: rgba(214, 179, 92, 0.7);
  box-shadow: 0 0 0 3px rgba(214, 179, 92, 0.18);
}

.gwc-review-modal-body .cd-review-error {
  color: #ffb4a8;
}

.gwc-review-modal-body .cd-review-submit {
  background: rgba(196, 154, 60, 0.92);
  color: #1a1204;
}

.gwc-review-modal-body .cd-review-submit:hover:not(:disabled) {
  background: #e0c06a;
}

.gwc-review-modal-status,
.gwc-review-modal-hint,
.gwc-review-modal-done {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.gwc-review-modal-hint a {
  color: var(--gold-400, #d6b35c);
}

.gwc-review-modal-done {
  color: #e0c06a;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .cd-review-submitSpinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.7);
  }

  .cd-review-submitDots span {
    animation: none;
    opacity: 1;
  }
}
