#reviewModal {
  font-size: 1rem;
  padding: 0;
  font-size: 1rem;

  .modal-header .close {
    position: unset;
    margin: 0;
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .text-primary {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-box-trim: both;
    text-box-edge: cap alphabetic;
    display: inline-block;
    vertical-align: middle;
    color: var(--black) !important;
  }

  .emojionearea .emojionearea-editor {
    background-color: #f2f2f2;
    border-radius: 0.625rem;
    border: none;
  }

  .field-error-border {
    border: 0.0625rem solid #ef4444 !important;
    background-color: #fef2f2 !important;
    border-radius: 1.4875rem;
  }

  .error-msg {
    color: #ef4444;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.3125rem;
    display: block;
    animation: reviewsFormFadeIn 0.3s ease;
  }

  .shake-anim {
    animation: reviewsFormShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }

  .modal-content {
    border-radius: 1.125rem;
    border: 0;
    box-shadow: none;
  }

  .review-modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black);
  }

  .review-form-product-photo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.25rem;
    margin-right: 0.625rem;
  }

  .review__content_product {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: start;
  }

  .modal-dialog {
    max-width: 490px;
    margin: 1.5rem auto;
    width: calc(100% - 1.5rem);
  }

  .modal-body {
    padding: 0 1.25rem 1.25rem;
  }

  .form-check {
    display: none;
  }

  .review-form-label {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
  }

  .upload-custom-container {
    min-height: 4.875rem;
    padding: 0.875rem;
    border: 0;
    border-radius: 1rem;
    background: #f0f0f0;
  }

  .upload-design-overlay {
    flex-direction: row;
    gap: 0.75rem;
    text-align: left;
  }

  & .widget_image_multi .upload-custom-container .qq-upload-button,
  &
    .widget_image_multi
    .upload-custom-container
    .qq-upload-button
    input[type="file"] {
    display: block !important;
    pointer-events: auto;
  }

  .dz-icon {
    font-size: 1.625rem;
    margin: 0;
    color: var(--black);
  }

  .dz-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    span {
      color: var(--color-dark-gray);
    }
  }

  .dz-hint {
    display: none;
  }

  .buttons {
    flex-wrap: wrap;
    margin-top: 1rem !important;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 1.875rem;
    border: 0;

    & .close {
      position: static;
      padding: 0;
      margin: 0;
      font-size: 1.625rem;
      font-weight: 400;
    }
  }

  .starrating {
    display: flex;
    align-items: center;
    padding: 0;

    .rating-display {
      transform: none;
    }

    .rating-display__star:focus-visible {
      outline: 0.125rem solid #294e99;
      outline-offset: 0.1875rem;
    }
  }

  .panel-rewiews {
    display: flex;
    gap: 1rem;
    & .text {
      font-size: 1rem;
      color: var(--black);
      font-weight: 400;
    }
  }

  .review-form-editor {
    & textarea,
    & .emojionearea-editor {
      overflow-y: auto;
    }

    & textarea,
    & .emojionearea {
      border: 0 !important;
      border-radius: 1.4875rem;
      background: #f0f0f0 !important;
      box-shadow: none;
      min-height: 2.5rem;
      width: 100%;
    }

    & textarea {
      box-sizing: border-box;
      height: 8rem;
      padding: 0.75rem 1rem !important;
      font-size: 1rem;
      line-height: 1.3;
      resize: none;
    }

    & .emojionearea-editor {
      box-sizing: border-box;
      min-height: 8rem;
      height: 8rem;
      max-height: 8rem;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      line-height: 1.3;
    }
  }

  .widget_image_multi {
    &:has(.previews_list .preview) {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }

    &:has(.previews_list .preview) .previews_list {
      width: auto !important;
      flex: 0 1 auto;
      min-width: 0;
      padding-bottom: 10px !important;
      margin-bottom: 0 !important;
      gap: 0.625rem !important;
    }

    &:has(.previews_list .preview) .upload-custom-container {
      flex: 0 0 3.625rem;
      height: 5.25rem;
      min-height: 5.25rem;
      padding: 0;
      border-radius: 0.5rem;
      transform: translateY(0.3125rem);

      .dz-icon svg {
        display: block;
        width: 1.75rem;
        height: auto;
      }
    }

    &:has(.previews_list .preview) .dz-text {
      display: none;
    }

    & .preview.block {
      flex-basis: 62px !important;
      width: 62px !important;
      min-width: 0;
      height: 84px !important;
      border-radius: 0.5rem !important;
      border: 0 !important;

      .btn-del {
        top: 0.1875rem !important;
        right: 0.1875rem !important;
        width: 0.875rem !important;
        height: 0.875rem !important;
        line-height: 0.875rem !important;
        font-size: 0.875rem !important;
        color: #888 !important;
        background: #fff !important;
        box-shadow: none !important;
      }
    }
  }
  .buttons {
    display: flex;
    justify-content: center;
  }
}

@keyframes reviewsFormFadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.3125rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reviewsFormShake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-0.375rem);
  }

  40%,
  80% {
    transform: translateX(0.375rem);
  }
}
.review-form-counter {
  margin-top: 0.3125rem;
  text-align: right;
  color: var(--color-dark-gray);
  font-size: 0.875rem;
}
