/**
 * The following styles get applied inside the editor only.
 *
 * Replace them with your own styles or remove the file completely.
 */

.testimonials-editor {
  padding: 20px;

  .testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-item-edit {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;

    .testimonial-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      
      h4 {
        margin: 0;
      }
    }

    .testimonial-content {
      display: flex;
      gap: 20px;

      .media-upload-container {
        flex: 0 0 150px;

        .image-button {
          width: 100%;
          height: 150px;
          border: 2px dashed #ddd;
          display: flex;
          align-items: center;
          justify-content: center;
          
          img {
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
          }
        }
      }

      .testimonial-fields {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;

        input, textarea {
          width: 100%;
          padding: 8px;
          border: 1px solid #ddd;
          border-radius: 4px;
        }

        textarea {
          min-height: 100px;
          resize: vertical;
        }

        .rating-field {
          display: flex;
          align-items: center;
          gap: 10px;

          label {
            min-width: 60px;
          }

          input {
            width: 80px;
          }
        }
      }
    }
  }

  .add-testimonial-button {
    margin-top: 20px;
    width: 100%;
  }
}
