/* =========================================================
   Poosting - DEPOIMENTOS
   ========================================================= */

.testimonials-page-shell {
  width: min(1180px, calc(100% - 20px));
  margin: 14px auto 28px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.testimonials-main-card {
  min-height: 560px;
  overflow: hidden;
  border-radius: 0 38px 0 0;
}

.testimonials-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid #c7d5e3;
}

.testimonials-header h1 {
  margin: 0;
  color: #111;
  font-size: 30px;
  font-weight: 400;
}

.testimonials-header p {
  margin: 5px 0 0;
  color: #6f7b85;
}

.write-testimonial {
  padding: 14px;
  background: #f2f8fc;
  border-bottom: 1px solid #c8d8e5;
}

.write-testimonial h2,
.testimonials-section-title h2 {
  margin: 0;
  color: #111;
  font-size: 17px;
}

.write-testimonial textarea {
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  min-height: 120px;
  border: 1px solid #aac0d2;
  resize: vertical;
}

.testimonial-form-footer {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#testimonialCounter {
  color: #7d8992;
  font-size: 11px;
}

.testimonials-primary-button,
.testimonials-secondary-button,
.testimonials-danger-button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
}

.testimonials-primary-button {
  border: 1px solid #4f7da5;
  background: linear-gradient(#79a8cf, #5385af);
  color: #fff;
}

.testimonials-secondary-button {
  border: 1px solid #a9bdcd;
  background: linear-gradient(#fff, #e8f0f6);
  color: #47718f;
}

.testimonials-danger-button {
  border: 1px solid #bd9d9d;
  background: linear-gradient(#fff, #f3e6e6);
  color: #9b4141;
}

.testimonials-primary-button:disabled,
.testimonials-secondary-button:disabled,
.testimonials-danger-button:disabled {
  opacity: .6;
  cursor: wait;
}

.testimonials-message {
  min-height: 18px;
  margin-top: 7px;
  color: #6b7882;
  font-size: 12px;
}

.testimonials-message.error {
  color: #a93636;
}

.testimonials-message.success {
  color: #28703e;
}

.pending-testimonials-section {
  border-bottom: 1px solid #cbd8e3;
}

.testimonials-section-title {
  padding: 11px 14px 7px;
}

.testimonials-section-title span {
  color: #47718f;
  font-weight: 400;
}

.testimonials-list {
  border-top: 1px solid #ccd9e4;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  border-bottom: 1px solid #cad9e5;
}

.testimonial-card:nth-child(odd) {
  background: #eaf4fc;
}

.testimonial-card:nth-child(even) {
  background: #dfeef9;
}

.testimonial-author {
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid #c4d4e1;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 5px;
  display: block;
  object-fit: cover;
  border: 1px solid #aebfcd;
  background: #edf2f7;
}

.testimonial-author-name {
  display: block;
  color: #397091;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.testimonial-body {
  min-width: 0;
  padding: 10px;
}

.testimonial-date {
  margin-bottom: 7px;
  color: #85919a;
  font-size: 10px;
}

.testimonial-text {
  margin: 0;
  color: #30373d;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.testimonial-actions {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pending-card {
  background: #fff7d9 !important;
}

.pending-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #f0d77b;
  color: #675817;
  font-size: 10px;
  font-weight: 700;
}

.testimonials-empty {
  min-height: 220px;
  padding: 42px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #74818b;
  text-align: center;
}

.testimonials-empty strong {
  margin-bottom: 5px;
  color: #536875;
}

.testimonials-empty[hidden],
.pending-testimonials-section[hidden],
.write-testimonial[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .testimonials-page-shell {
    width: calc(100% - 12px);
    display: flex;
    flex-direction: column;
    margin-top: 8px;
  }

  .testimonials-page-shell .left-column {
    width: 100%;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
  }

  .testimonials-main-card {
    width: 100%;
    border-radius: 7px;
  }
}

@media (max-width: 430px) {
  .testimonial-card {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .testimonial-avatar {
    width: 46px;
    height: 46px;
  }
}

/* Resposta ao depoimento */
.testimonial-reply-controls,
.testimonial-reply-box {
  margin-top: 10px;
}

.testimonial-reply-form {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #c5d7e5;
  background: #f7fbfe;
}

.testimonial-reply-form[hidden] {
  display: none !important;
}

.testimonial-reply-form textarea {
  width: 100%;
  min-height: 74px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #aac0d2;
  resize: vertical;
  font: inherit;
}

.testimonial-reply-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 7px;
}

.testimonial-reply-counter {
  color: #7d8992;
  font-size: 11px;
}

.testimonial-reply-box {
  padding: 9px 11px;
  border-left: 3px solid #6f9fc6;
  background: #f3f8fc;
}

.testimonial-reply-title {
  color: #47718f;
  font-size: 11px;
  font-weight: 700;
}

.testimonial-reply-date {
  margin-top: 2px;
  color: #8a959d;
  font-size: 10px;
}

.testimonial-reply-text {
  margin-top: 6px;
  color: #30373d;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
