/* DEAL_REVIEWS_UI_V1 */

.gz-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.gz-review-modal {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.gz-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gz-review-head h2 {
  margin: 0;
}

.gz-review-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}


.gz-review-loading,
.gz-review-empty,
.gz-review-error {
  padding: 22px;
  border-radius: 18px;
  background: #f3f8f6;
}

.gz-review-error {
  background: #fff2ee;
  color: #a72b1f;
}

.gz-review-counterparty {
  margin-bottom: 22px;
}


.gz-review-rating-summary {
  font-weight: 700;
}

.gz-review-explanation {
  border-radius: 16px;
}

.gz-review-form {
  margin-top: 20px;
  border: 1px solid #dce7e3;
}


.gz-review-stars {
  display: flex;
  gap: 6px;
  margin: 6px 0 18px;
}

.gz-review-star {
  padding: 0;
  border: 0;
  background: transparent;
  color: #cad4d0;
  line-height: 1;
  cursor: pointer;
}

.gz-review-star.is-active {
  color: #f2ac00;
}

.gz-review-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #ccd9d4;
  border-radius: 14px;
  font: inherit;
  box-sizing: border-box;
}

.gz-review-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gz-review-form-footer small {
  color: #71807b;
}

.gz-review-submit {
  border: 0;
  background: #00c980;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gz-review-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.gz-review-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.gz-review-item {
  padding: 18px;
  border: 1px solid #dce7e3;
  border-radius: 18px;
}

.gz-review-item.is-hidden {
  background: #f5f7f6;
  color: #68756f;
}

.gz-review-item-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.gz-review-stars-text {
  color: #e69d00;
  letter-spacing: 2px;
  white-space: nowrap;
}

.gz-review-comment {
  margin-top: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.gz-review-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #eaf8f2;
  color: #087b53;
  font-weight: 600;
}

@media (max-width: 640px) {
  .gz-review-overlay {
    padding: 10px;
    align-items: flex-start;
  }

  .gz-review-modal {
    margin-top: 10px;
    border-radius: 20px;
  }

  .gz-review-head,
  .gz-review-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gz-review-head h2 {
    font-size: 23px;
  }

  .gz-review-star {
    font-size: 35px;
  }

  .gz-review-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
